yatex

view docs/yahtmle @ 123:590fc51462c7

New typeset menu `latex+p(D)f' added. Call dvipdfmx when typesetting succeeded.
author yuuji@gentei.org
date Thu, 27 May 2010 10:16:56 +0900
parents 680d92784c1a
children 6d682b9d4bc8
line source
1 Info file: yahtmle, -*-Text-*-
2 produced by `texinfo-format-buffer'
3 from file `yahtmle.tex'
4 using `texinfmt.el' version 2.42 of 7 Jul 2006.
6 
7 File: yahtmle, Node: Top, Next: Intro, Prev: (dir), Up: (dir)
9 * Menu:
11 * Intro:: Introduction
12 * Installation:: Installing yahtml
13 * Command Invocation:: Using External Commands
14 * Completion:: Input with Completion
15 * Jump:: Moving the Cursor
16 * Changing and Deleting:: Changing and Deleting
17 * CSS Support:: Style Sheet Support
18 * Customizations:: List of Customize Variables
19 * Copying:: Copyright
20 * Concept Index:: Index
23 
24 File: yahtmle, Node: Intro, Next: Installation, Prev: Top, Up: Top
26 Introduction
27 ************
29 yahtml is a package to support creating HTML documents on Emacsens. Easy
30 input of elements (tags) by completion, syntax checking with programs like
31 weblint, and invoking the appropriate browser or image viewer depending on
32 the cursor position is its main features.
34 (This Info is still incomplete)
37 
38 File: yahtmle, Node: Installation, Next: Command Invocation, Prev: Intro, Up: Top
40 Installing yahtml
41 *****************
42 * Menu:
44 * Setting up yahtml::
45 * Setting environments for weblint browsers and image viewers::
46 * Setting environment variables for WWW pages::
49 
50 File: yahtmle, Node: Setting up yahtml, Next: Setting environments for weblint browsers and image viewers, Prev: Installation, Up: Installation
52 Setting up yahtml
53 =================
56 Add the following to `~/.emacs'
58 (setq auto-mode-alist
59 (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist))
60 (autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t)
62 Next, add to load-path the directory with the yahtml files (`yahtml.el',
63 `yatexlib.el', `yatexprc.el'). For example, if you put them in
64 `~/src/emacs/yahtml',
66 (setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path))
68 is what you add.
70 By this, yahtml will be automatically loaded when editing files with .html
71 extensions. "yahtml" will be displayed on the mode line if no errors
72 occurred.
75 
76 File: yahtmle, Node: Setting environments for weblint browsers and image viewers, Next: Setting environment variables for WWW pages, Prev: Setting up yahtml, Up: Installation
78 Setting environments for weblint, browsers, and image viewers
79 =============================================================
81 Check the variables for invoking external commands and modify as needed.
82 Defaults are in parenthesis.
84 `yahtml-www-browser'
85 ... browser command name (netscape)
86 `yahtml-image-viewer'
87 ... image viewer command name (xv)
88 `yahtml-lint-program'
89 ... syntax check programs command name (jweblint)
90 `yahtml-kanji-code'
91 ... kanji code for HTML files
94 
95 File: yahtmle, Node: Setting environment variables for WWW pages, Prev: Setting environments for weblint browsers and image viewers, Up: Installation
97 Setting environment variables for WWW pages
98 ===========================================
100 Variables regarding path names for files that will be your home page.
101 `yahtml-path-url-alist'
102 ... list of matching path name on file system and URLs
103 `yahtml-directory-index'
104 ... index file displayed when none is given in URL. Usually
105 `index.html' on NCSA type httpd and `Welcome.html' on CERN types.
107 Examples for `yahtml-path-url-alist'. If `/home/yuuji/http/' is
108 `http://localhost/~yuuji' at home and `/usr/home/yuuji/www/' is
109 `http://www.keio.ac.jp/~yuuji/' at work, then
111 (setq yahtml-path-url-alist
112 '(("/home/yuuji/http" . "http://localhost/~yuuji")
113 ("/usr/home/yuuji/www" . "http://www.keio.ac.jp/~yuuji")))
115 Any number of additions can be made to this list.
118 
119 File: yahtmle, Node: Command Invocation, Next: Completion, Prev: Installation, Up: Top
121 Invoking external commands
122 **************************
124 For easy use of commands that are handy when editing HTML files.
125 `[prefix] t j'
126 ... Invoke HTML syntax checker (jweblint)
127 `[prefix] t p'
128 ... Display current page in browser
129 `[prefix] t r'
130 ... Reload current page if browser is already running
133 
134 File: yahtmle, Node: Completion, Next: Jump, Prev: Command Invocation, Up: Top
136 Completion Input
137 ****************
139 Completion input of HTML elements is done through the same key strokes as
140 YaTeX's begin-type completion, section-type completion, large-type
141 completion, maketitle-type completion, and accent completion.
142 Corresponding elements in this order is; elements that span multiple
143 lines, empty elements such as img, tags that start and end in a single
144 line, elements with no attributes or contents, and special or symbol
145 entities.
147 `[prefix] b (YaTeX begin-type completion)'
148 ...
149 <ul>
150 </ul>
152 Completion for elements that the start tag and the end tag span
153 multiple lines. Mostly block-level elements.
155 `[prefix] s (YateX section-type completion)'
156 ...
157 <img src="foo.gif" alt="photo">
159 Completion for elements that do not have end tags and require only
160 attributes. Possible completions are, <img>, <input>.
162 `[prefix] l (YaTeX large-type completion)'
163 ...
165 <big> 〜 </big>
167 Similar to begin-type completion but used for elements that start and
168 end on a single line.
171 `[prefix] m (YaTeX maketitle-type completion)'
172 ... Completion for elements without attributes or contents. Possible
173 completion is <br>
175 `[prefix] a (YaTeX accent completion)'
176 ... Used to enter special or symbol entities. By default completion
177 for < (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&apos;), blank
178 (&nbsp;) is possible.
181 
182 File: yahtmle, Node: Jump, Next: Changing and Deleting, Prev: Completion, Up: Top
184 Cursor Movement
185 ***************
186 By using
188 `[prefix] g'
189 ... move to corresponding object
191 the cursor will go to the corresponding object according to the context.
192 Recognized contexts are
194 * `<TAG>' <--> `</TAG>'
195 * `<img src="image.file">' -> invoke viewer
196 * `<a href="link.to.somewhere">' -> move cursor to linked target
197 * `<applet code="program">' -> open Java source
200 
201 File: yahtmle, Node: Changing and Deleting, Next: CSS Support, Prev: Jump, Up: Top
203 Changing and Deleting
204 *********************
206 * Menu:
208 * Changing tags in pairs::
209 * Changing entities::
210 * URLencoding of strings within region::
213 
214 File: yahtmle, Node: Changing tags in pairs, Next: Changing entities, Prev: Changing and Deleting, Up: Changing and Deleting
216 Changing tags in pairs
217 ======================
218 By using
220 `[prefix] c'
221 ... change tags in matching pairs
223 the content can be changed according to the context of the HTML document
224 where the cursor is located.
226 * `<TAG>'〜`</TAG>'
227 ... change `TAG' element name
228 * attributes such as `<img src="image.file" alt="photo">'
229 ... change attributes
232 
233 File: yahtmle, Node: Changing entities, Next: URLencoding of strings within region, Prev: Changing tags in pairs, Up: Changing and Deleting
235 Changing entities
236 =================
237 Special characters such as < or > must be written as &lt; and &gt;. Easy
238 conversion of these characters can be done when importing text from non
239 HTML files.
242 `[prefix] ;'
243 ... convert char to special entity in marked region
244 `[prefix] :'
245 ... convert special entity to original char in marked region
246 (reverse of [prefix] ;)
250 
251 File: yahtmle, Node: URLencoding of strings within region, Prev: Changing entities, Up: Changing and Deleting
253 URLencoding of strings within region
254 ====================================
256 `[prefix] #'
257 ... encode chars that needs to be URLencoded within region
260 
261 File: yahtmle, Node: CSS Support, Next: Customizations, Prev: Changing and Deleting, Up: Top
263 CSS(Style Sheets) Support
264 *************************
266 * Menu:
268 * CSS-class completion::
269 * Reread CSS definition::
272 
273 File: yahtmle, Node: CSS-class completion, Next: Reread CSS definition, Prev: CSS Support, Up: CSS Support
275 CSS class-name completion
276 =========================
277 You can input a class name in your CSS definition with completion. If you
278 have CSS defined as below;
280 h1.foo, h2.foo { background-color: 0xffffff; }
281 h1.bar, h2.bar { font-size: 120%; }
283 when you input h1(or h2) tag with completing-read by [prefix] b or
284 [prefix] l, yahtml prompts you to input class name with completion from
285 the words which are effective to h1 or h2. And if you defined global
286 class like this;
288 .caution { font-size: 120%; background-color: 0xc00000;}
290 when you input any tags via completing-read, yahtml prompts you to input
291 class name. If this is bothering, typing `C-j' instead of
292 `RET' (or `C-m') cancels the next prompt to class name completion.
295 
296 File: yahtmle, Node: Reread CSS definition, Prev: CSS-class completion, Up: CSS Support
298 Re-reading CSS definition
299 =========================
300 If you add some class to your CSS file and you want yahtml to load new
301 definitions, type `M-x yahtml-mode RET' to make yahtml do.
304 
305 File: yahtmle, Node: Customizations, Next: Copying, Prev: CSS Support, Up: Top
307 Customizations
308 **************
310 Variables that modify yahtml's behavior.
312 * Menu:
314 * All customizable variables:: List of customizable variables
315 * Hook variables:: hook variables
318 
319 File: yahtmle, Node: All customizable variables, Next: Hook variables, Prev: Customizations, Up: Customizations
321 List of customizable variables. Defaults in parenthesis
322 ========================================================
324 -- Variable: yahtml-prefix
325 Prefix key for yahtml-mode. (`\C-c')
327 -- Variable: yahtml-image-viewer
328 Command to view image files refered by img. (xv)
330 -- Variable: yahtml-www-browser
331 Browser to view external pages with `[prefix]g'. (netscape)
333 -- Variable: yahtml-kanji-code
334 Default kanji code. 1=sjis, 2=jis, 3=euc, 4=utf-8 (2) If AddType
335 text/html; charset=xxx" .html is written in .htaccess, this will
336 override yahtml-kanji-code.
338 -- Variable: yahtml-fill-column
339 Columns to auto-fill (72)
341 -- Variable: yahtml-fill-prefix
342 fill-prefix specific to yahtml-mode. (`nil')
344 -- Variable: yahtml-path-url-alist
345 Matching list of URL and full path name on OS's file system.
347 -- Variable: yahtml-directory-index
348 Default index filed opened when accessing a server without a
349 filename, usually index.html. (`"index.html"')
351 -- Variable: yahtml-lint-program
352 HTML syntax check program. (`"jweblint"')
354 -- Variable: yahtml-hate-too-deep-indentation
355 setq to t when indentations for nested enumerate elements are too
356 deep. (`nil')
358 -- Variable: yahtml-always-/p
359 setq to t if you always want `</p>' after `</p>'. `nil'
361 -- Variable: yahtml-p-prefered-env-regexp
362 Elements that `<p>' will be automatically inserted.
363 (`"^\\(body\\|dl\\|blockquote\\)"')
365 -- Variable: yahtml-template-file
366 File to automatically insert when editing a new HTML file.
367 `"~/http/template.html"'
369 -- Variable: yahtml-prefer-upcases
370 Use uppercase for tags. `nil'
372 -- Variable: yahtml-prefer-upcase-attributes
373 Use uppercase for attributes. `nil'
375 -- Variable: yahtml-server-type
376 setq to 'apache if using a Apache server, and will refer ./.htaccess.
377 `'apache'
379 -- Variable: yahtml-apache-access-file
380 When `yahtml-server-type' is `'apache', define name of access
381 restriction file. `".htaccess"'
383 -- Variable: yahtml-shell-command-option
384 Options needed to invoke shell commands.
386 -- Variable: yahtml-translate-hyphens-when-comment-region
387 Whether to change hyphens to `&#45;' when commenting out region.
388 (`t')
390 -- Variable: yahtml-entity-reference-chars-alist
391 alist of characters that needs to be written by Entity Reference.
392 Enter as `'(?char . "EntityReference")'. By default, `<', `>', `&',
393 `'', is set. Add as needed. Do not include `&' at beginning and `;'
394 at end of cdr portion of `"EntityReference"'.
396 -- Variable: yahtml-faithful-to-htmllint
397 When using htmllint to check syntax, it will complain about excess
398 spaces. setq to `t' to avoid this.
400 -- Variable: yahtml-use-css
401 Use style-sheet support or not (`t')
403 -- Variable: yahtml-image-inspection-bytes
404 Number of bytes to inspect the image for geometry information
405 (`10000')
407 -- Variable: yahtml:img-default-alt-format
408 format of img entity's ALT attributes. %x: width, %y: height, %s:
409 size in bytes, %c: first comment string, %f: filename
410 (`"%xx%y(%sbytes)"')
412 -- Variable: yahtml-escape-chars
413 When, completing href-s, Escape reserved characters to URL-encoding
414 or not. Nil for never, t for everytime, and 'ask for inquiring at
415 each reserved chars. (`'ask')
417 -- Variable: yahtml-use-font-lock
418 Use font-lock to fontify buffer or not (`(featurep 'font-lock)')
420 -- Variable: yahtml-use-hilit19
421 Use hilit19 to highlight buffer or not (`(featurep 'hilit19)')
423 -- Variable: yahtml-indentation-boundary
424 Boundary regexp for indentation calculation. (`"^\\s *<h[1-3]>"')
427 
428 File: yahtmle, Node: Hook variables, Prev: All customizable variables, Up: Customizations
430 hook variables
431 ==============
435 
436 File: yahtmle, Node: Copying, Next: Concept Index, Prev: Customizations, Up: Top
438 Copying
439 *******
441 This program is distributed as freesoftware. The author will take no
442 responsibility to any damages due to the usage of this software
443 whatsoever. There are no restrictions to its redistribution, just use
444 common sense. Mail me your thoughts on this program and I will be more
445 than willing to help.
447 Complaints, requests, bug reports and comments are welcome. Make contacts
448 to yuuji@yatex.org (as of December 2000)
450 If you like this program and use it on a regular basis, please join the
451 mailing list "fj Wild Bird Society". Procedures can be found in the "etc"
452 section of `docs/htmlqa.eng' in this package.
455 HIROSE, Yuuji
459 
460 File: yahtmle, Node: Concept Index, Prev: Copying, Up: Top
462 Index
463 *****
465 * Menu:
467 * Customize: Customizations. (line 5)
468 * Demacs: Intro. (line 5)
469 * Key Assign: Customizations. (line 5)
470 * LaTeX: Intro. (line 5)
471 * Mule: Intro. (line 5)
472 * yahtml: Intro. (line 5)
473 
474 Tag table:
475 Node: Top147
476 Node: Intro724
477 Node: Installation1122
478 Node: Setting up yahtml1388
479 Node: Setting environments for weblint browsers and image viewers2179
480 Node: Setting environment variables for WWW pages2875
481 Node: Command Invocation3846
482 Node: Completion4274
483 Node: Jump5790
484 Node: Changing and Deleting6270
485 Node: Changing tags in pairs6502
486 Node: Changing entities6997
487 Node: URLencoding of strings within region7533
488 Node: CSS Support7803
489 Node: CSS-class completion8014
490 Node: Reread CSS definition8867
491 Node: Customizations9142
492 Node: All customizable variables9418
493 Node: Hook variables13185
494 Node: Copying13311
495 Node: Concept Index14102
496 
497 End tag table