yatex
diff docs/yahtmlj.tex @ 472:355b28fc0025
Preparing release of 1.80
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 10 Sep 2017 00:03:52 +0859 |
parents | d467c0fb6083 |
children |
line diff
1.1 --- a/docs/yahtmlj.tex Thu May 10 11:40:02 2012 +0900 1.2 +++ b/docs/yahtmlj.tex Sun Sep 10 00:03:52 2017 +0859 1.3 @@ -1,561 +1,564 @@ 1.4 -\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 1.5 -\input texinfo 1.6 -@setfilename yahtmlj 1.7 -@settitle Yet Another html-mode for Emacs 1.8 - 1.9 -@iftex 1.10 -@c @syncodeindex fn cp 1.11 -@c Last modified Thu May 10 11:13:11 2012 on firestorm 1.12 -@syncodeindex vr cp 1.13 -@end iftex 1.14 - 1.15 -@titlepage 1.16 -@sp 10 1.17 -@center 1.18 -@subtitle Yet Another html-mode for emacs 1.19 -@title 『HTML屋』 1.20 -@subtitle // yahtml // 1.21 -@author @copyright{} 1994-2012 by HIROSE, Yuuji [yuuji@@yatex.org] 1.22 -@end titlepage 1.23 - 1.24 -@node Top, Intro, (dir), (dir) 1.25 -@comment node-name, next, previous, up 1.26 - 1.27 -@menu 1.28 -* Intro:: はじめに 1.29 -* Installation:: インストール 1.30 -* Command Invocation:: 外部コマンド起動 1.31 -* Completion:: 補完入力 1.32 -* Jump:: カーソルジャンプ 1.33 -* Changing and Deleting:: 変更と削除 1.34 -* CSS Support:: スタイルシート補完 1.35 -* Customizations:: カスタマイズ変数一覧 1.36 -* Copying:: とりあつかい 1.37 -* Concept Index:: 索引 1.38 - 1.39 -@end menu 1.40 - 1.41 -@node Intro, Installation, Top, Top 1.42 -@comment node-name, next, previous, up 1.43 -@chapter はじめに 1.44 -@cindex Demacs 1.45 -@cindex Mule 1.46 -@cindex LaTeX 1.47 -@cindex HTML屋[HTMLや] 1.48 - 1.49 -yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補 1.50 -完機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ 1.51 -クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー 1.52 -アの起動などを Emacs 編集画面中から 1.53 -行えるようにするパッケージです。 1.54 - 1.55 -(このInfoは未完成です(__)…) 1.56 - 1.57 -@node Installation, Command Invocation, Intro, Top 1.58 -@comment node-name, next, previous, up 1.59 -@chapter インストール 1.60 -@menu 1.61 -* yahtml起動のための設定:: 1.62 -* lintプログラム/ブラウザ/イメージヴューア環境等の設定:: 1.63 -* WWWページ環境用変数の設定:: 1.64 -@end menu 1.65 - 1.66 -@node yahtml起動のための設定, lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation, Installation 1.67 -@section yahtml起動のための設定 1.68 - 1.69 - 1.70 -@file{~/.emacs}に下の2項目を加えます。 1.71 - 1.72 -@lisp 1.73 -(setq auto-mode-alist 1.74 - (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 1.75 -(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 1.76 -@end lisp 1.77 - 1.78 -次にyahtmlに必要なファイル(@file{yahtml.el}, @file{yatexlib.el}, 1.79 -@file{yatexprc.el}) を置くディレクトリを load-path に加えます。たとえば、 1.80 -@file{~/src/emacs/yahtml}に置くのであれば、 1.81 - 1.82 -@lisp 1.83 -(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 1.84 -@end lisp 1.85 - 1.86 -@noindent 1.87 -などとします。 1.88 - 1.89 - 以上の設定により、拡張子が .html であるファイルを編集すると自動的に 1.90 -yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示が 1.91 -「yahtml」に変わります。 1.92 - 1.93 -@node lintプログラム/ブラウザ/イメージヴューア環境等の設定, WWWページ環境用変数の設定, yahtml起動のための設定, Installation 1.94 -@section lintプログラム/ブラウザ/イメージヴューア環境等の設定 1.95 - 1.96 -利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変 1.97 -更します(括弧内はデフォルト値)。 1.98 -@table @code 1.99 -@item yahtml-www-browser 1.100 - @dots{} 起動するブラウザのコマンド名(netscape) 1.101 -@item yahtml-image-viewer 1.102 - @dots{} 起動する画像ビューアのコマンド名(xv) 1.103 -@item yahtml-lint-program 1.104 - @dots{} 構文チェックプログラムのコマンド名(jweblint) 1.105 -@item yahtml-kanji-code 1.106 - @dots{} htmlファイルの漢字コード 1.107 -@end table 1.108 - 1.109 -@node WWWページ環境用変数の設定, , lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation 1.110 -@section WWWページ環境用変数の設定 1.111 - 1.112 -ホームページとなるファイルが存在するPATH名に関する変数を設定します。 1.113 -@table @code 1.114 -@item yahtml-path-url-alist 1.115 - @dots{} ファイルシステム上のPATH名と、URLの対応表 1.116 -@item yahtml-directory-index 1.117 - @dots{} URL指定でファイル名を省略したときに表示されるインデックス 1.118 - ファイル名(NCSA系httpdなら @file{index.html}, CERN系なら 1.119 - @file{Welcome.html}が一般的) 1.120 -@end table 1.121 - 1.122 -変数 @code{yahtml-path-url-alist} の設定例を示します。例えば、自宅では、 1.123 -@file{/home/yuuji/http/} が @code{http://localhost/~yuuji} で参照でき、職 1.124 -場では @file{/usr/home/yuuji/www/} が@code{http://www.keio.ac.jp/~yuuji/} 1.125 -で参照できるようになっている場合は以下のように設定します。 1.126 - 1.127 -@lisp 1.128 -(setq yahtml-path-url-alist 1.129 - '(("/home/yuuj/http" . "http://localhost/~yuuji") 1.130 - ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji"))) 1.131 -@end lisp 1.132 - 1.133 -この対応組はいくらでも設定することができます。 1.134 - 1.135 -@node Command Invocation, Completion, Installation, Top 1.136 -@comment node-name, next, previous, up 1.137 -@chapter 外部コマンド起動 1.138 - 1.139 -HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。 1.140 -@table @kbd 1.141 -@item [prefix] t j 1.142 - @dots{} HTML構文チェッカ(jweblint)起動 1.143 -@item [prefix] t p 1.144 - @dots{} 現在のページを対象としたブラウザ起動 1.145 -@item [prefix] t r 1.146 - @dots{} 現在のページがブラウザに表示されているときのreload指定 1.147 -@end table 1.148 - 1.149 -@node Completion, Jump, Command Invocation, Top 1.150 -@comment node-name, next, previous, up 1.151 -@chapter 補完入力 1.152 - 1.153 -「野鳥」で利用できる、「begin型補完」、「section型補完」、 1.154 -「large型補完」、「maketitle型補完」、「アクセント補完」 1.155 -と全く同じキー操作で対応する 1.156 -HTMLタグの補完入力ができます。それぞれの型の補完は順に、 1.157 -「複数行に渡るタグ入力」、「空要素タグ(imgなど)の補完」、 1.158 -「一行内での開始/終了タグの入力」、「空要素空属性タグの入力」、 1.159 -「文字参照入力」 1.160 -に 1.161 -対応しています。具体的には 1.162 - 1.163 -@table @kbd 1.164 -@item [prefix] b (野鳥のbegin補完に対応) 1.165 -@dots{} 1.166 -@example 1.167 -<ul> 1.168 -</ul> 1.169 -@end example 1.170 - 1.171 -@noindent 1.172 -のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。 1.173 -おもにブロック型タグが補完候補に含まれます。 1.174 - 1.175 -@item [prefix] s (野鳥のsection型補完に対応) 1.176 -@dots{} 1.177 -@example 1.178 -<img src="foo.gif" alt="photo"> 1.179 -@end example 1.180 - 1.181 -@noindent 1.182 -のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完します。 1.183 -補完候補としては、img, input が存在します。 1.184 - 1.185 -@item [prefix] l (野鳥のlarge型補完に対応) 1.186 -@dots{} begin型補完とほぼ同じですが、 1.187 - 1.188 -@example 1.189 -<big> 〜 </big> 1.190 -@end example 1.191 - 1.192 -@noindent 1.193 -のように一行内に開始/終了タグを入れたいときに利用します。 1.194 - 1.195 -@item [prefix] m (野鳥のmaketitle型補完に対応) 1.196 -@dots{} 要素も属性値も持たないタグを補完入力します。<br> 1.197 -などが補完候補に相当します。 1.198 - 1.199 -@item [prefix] a (野鳥のアクセント補完に対応) 1.200 -@dots{} エンティティ参照による文字表記を入力するときに用います。 1.201 -デフォルトでは < (<), > (>), & (&), " ("), ' ('), 1.202 -ブランク ( ) の補完入力が行えます。 1.203 -@end table 1.204 - 1.205 -@node Jump, Changing and Deleting, Completion, Top 1.206 -@comment node-name, next, previous, up 1.207 -@chapter カーソルジャンプ 1.208 -文書中のいろいろな場所で 1.209 - 1.210 -@table @kbd 1.211 -@item [prefix] g 1.212 - @dots{} 対応するオブジェクトにジャンプ 1.213 -@end table 1.214 - 1.215 -@noindent 1.216 -を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプ 1.217 -します。対応関係が存在すると解釈されるコマンドには以下のものがあります。 1.218 - 1.219 -@itemize @bullet 1.220 -@item @code{<TAG>} ←→ @code{</TAG>} 1.221 -@item @code{<img src="画像ファイル">} → 対応するviewer起動 1.222 -@item @code{<a href="リンク先">} → リンク先へのポイント移動 1.223 -@item @code{<applet code="プログラム">} → Javaソースプログラムへの移動 1.224 -@c @item @code{\include(\input)} → 対応するファイル 1.225 -@end itemize 1.226 - 1.227 -@node Changing and Deleting, CSS Support, Jump, Top 1.228 -@comment node-name, next, previous, up 1.229 -@chapter 変更/削除 1.230 - 1.231 -@menu 1.232 -* 対タグの変更:: 1.233 -* 文字参照への変更:: 1.234 -* リジョン内文字のURLencode:: 1.235 -* td括り/tr括り:: 1.236 -@end menu 1.237 - 1.238 -@node 対タグの変更, 文字参照への変更, Changing and Deleting, Changing and Deleting 1.239 -@comment node-name, next, previous, up 1.240 -@section 対タグの変更 1.241 -文書中のいろいろな場所で 1.242 - 1.243 -@table @kbd 1.244 -@item [prefix] c 1.245 - @dots{} 対応するタグ等を変更 1.246 -@end table 1.247 - 1.248 -@noindent 1.249 -を押すことにより、カーソル位置のHTML構文に応じた 1.250 -記述内容の変更を行います。カーソル位置と変更する内容の 1.251 -対応は以下の通りです。 1.252 - 1.253 -@itemize @bullet 1.254 -@item @code{<TAG>}〜@code{</TAG>} 1.255 -@dots{} @code{TAG} の変更 1.256 -@item @code{<img src="画像ファイル" alt="photo">} などの属性値 1.257 -@dots{} 属性値の変更 1.258 -@end itemize 1.259 - 1.260 -@node 文字参照への変更, リジョン内文字のURLencode, 対タグの変更, Changing and Deleting 1.261 -@comment node-name, next, previous, up 1.262 -@section 文字参照への変更 1.263 -文字としての < や > を表現するときは、文字参照を用いて 1.264 -< や > と表記する必要がありますが、 1.265 -HTML以外のファイルからこれらの文字を含むテキストを張り込んだ場合 1.266 -などに、これらの文字を一括して文字参照形式に変換できます。 1.267 - 1.268 -@table @kbd 1.269 -@item [prefix] ; 1.270 - @dots{} 指定した領域の文字参照に置き換えるべき文字の置換 1.271 -@item [prefix] : 1.272 - @dots{} 指定した領域の文字参照を参照文字そのものに置換 1.273 - ([prefix] ; の逆変換) 1.274 -@end table 1.275 - 1.276 - 1.277 -@node リジョン内文字のURLencode, td括り/tr括り, 文字参照への変更, Changing and Deleting 1.278 -@comment node-name, next, previous, up 1.279 -@section リジョン内文字のURLencode 1.280 -@table @kbd 1.281 - @item [prefix] # 1.282 - @dots{} 指定した領域内に URLencode すべき文字があればそれらを 1.283 - エンコード表記に置換。 1.284 -@end table 1.285 - 1.286 -@node td括り/tr括り, , リジョン内文字のURLencode, Changing and Deleting 1.287 -@comment node-name, next, previous, up 1.288 -@section td括り/tr括り 1.289 -空白区切りで書いた表形式の行レコードを <td> 括りの並び, 1.290 -あるいはそれらをさらに <tr> で括った行並びに変換できます。 1.291 -@table @kbd 1.292 - @item [prefix] @} 1.293 - @dots{} 現在のリジョンにあるデータを空白区切りごとに 1.294 - <td>...</td> で括る 1.295 - @item [prefix] ] 1.296 - @dots{} 現在のリジョンにある行を 1.297 - 上記td括りをほどこしてからさらに行ごとに <tr>...</tr> で括る 1.298 -@end table 1.299 -デフォルトでは空白区切りですが,これを変えるときは 1.300 -Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,) 1.301 -を指定するとCSVから表を作ることができます。 1.302 - 1.303 -td以外の要素,具体的には th で括りたい場合は universal-argument 1.304 -(@kbd{C-u}) をつけて上記2つのコマンドを呼びます。どの要素で括るかの 1.305 -質問が増えるのでそれに th と入れれば,各フィールドを <th>...</th> 1.306 -で括ります。もし,第1フィールドのみ th で,残りを全部 td 括りにしたいとき 1.307 -は thd と入力して下さい。 1.308 - 1.309 -@node CSS Support, Customizations, Changing and Deleting, Top 1.310 -@comment node-name, next, previous, up 1.311 -@chapter CSS(スタイルシート)サポート 1.312 - 1.313 -@menu 1.314 -* CSS-class completion:: 1.315 -* Reread CSS file:: 1.316 -@end menu 1.317 - 1.318 -@node CSS-class completion, Reread CSS file, CSS Support, CSS Support 1.319 -@comment node-name, next, previous, up 1.320 -@section CSSクラス名補完 1.321 -HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。 1.322 -スタイル定義として 1.323 - 1.324 -@display 1.325 - h1.foo, h2.foo @{ background-color: 0xffffff; @} 1.326 - h1.bar, h2.bar @{ font-size: 120%; @} 1.327 -@end display 1.328 - 1.329 -のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補 1.330 -完入力した場合に、それらに有効な class 名である foo, bar を候補として補完 1.331 -入力することが可能です。また 1.332 - 1.333 -@display 1.334 - .caution @{ font-size: 120%; background-color: 0xc00000;@} 1.335 -@end display 1.336 - 1.337 -のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補 1.338 -完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入 1.339 -力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を 1.340 -キャンセルできます。たとえば 1.341 - 1.342 -@display 1.343 - @kbd{[prefix] l} 行内タグ補完を起動 1.344 - (または@kbd{[prefix] l SPC}) 1.345 - tt <tt></tt>をいれたいのでttと入力 1.346 - @kbd{C-m} 1.347 -@end display 1.348 - 1.349 -とした場合は続いて class= と補完プロンプトが出ますが、 1.350 - 1.351 -@display 1.352 - @kbd{[prefix] l} 行内タグ補完を起動 1.353 - (または@kbd{[prefix] l SPC}) 1.354 - tt <tt></tt>をいれたいのでttと入力 1.355 - @kbd{C-j} 1.356 -@end display 1.357 - 1.358 -と最後を @kbd{C-j} で入力した場合は class 補完プロンプトは出ません。 1.359 - 1.360 -@node Reread CSS file, , CSS-class completion, CSS Support 1.361 -@comment node-name, next, previous, up 1.362 -@section CSS定義ファイルの読み直し 1.363 -htmlファイルを編集中にCSS定義ファイルを修正し、追加した 1.364 -classを補完候補として直ちに読み込ませたい場合は、 1.365 -@kbd{M-x yahtml-mode} として再起動を行ってください。 1.366 - 1.367 -@node Customizations, Copying, CSS Support, Top 1.368 -@comment node-name, next, previous, up 1.369 -@chapter カスタマイズ 1.370 -@cindex カスタマイズ[かすたまいす] 1.371 -@cindex キーアサイン[きいあさいん] 1.372 - 1.373 -yahtmlの動作を制御する変数について説明します。 1.374 - 1.375 -@menu 1.376 -* All customizable variables:: カスタマイズ変数一覧 1.377 -* Hook variables:: hook変数 1.378 -@end menu 1.379 - 1.380 -@node All customizable variables, Hook variables, Customizations, Customizations 1.381 -@comment node-name, next, previous, up 1.382 -@section カスタマイズ変数一覧 1.383 - 1.384 -@defvar yahtml-prefix 1.385 -yahtml-mode 中のプリフィクスキー (@kbd{\C-c}) 1.386 -@end defvar 1.387 - 1.388 -@defvar yahtml-image-viewer 1.389 -imgで参照している画像ファイルを表示するときに起動するコマンド (xv) 1.390 -@end defvar 1.391 - 1.392 -@defvar yahtml-www-browser 1.393 -@kbd{[prefix]g} で外部ページを表示するときに起動するブラウザ (netscape) 1.394 -@end defvar 1.395 - 1.396 -@defvar yahtml-kanji-code 1.397 -デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2) 1.398 -.htaccess ファイルに 1.399 -@quotation 1.400 - AddType "text/html; charset=xxx" .html 1.401 -@end quotation 1.402 -の記述があった場合はそれに従う 1.403 -@end defvar 1.404 - 1.405 -@defvar yahtml-fill-column 1.406 -auto-fillするときのカラム数 (72) 1.407 -@end defvar 1.408 - 1.409 -@defvar yahtml-fill-prefix 1.410 -yahtml-mode 固有のfill-prefix (@code{nil}) 1.411 -@end defvar 1.412 - 1.413 -@defvar yahtml-path-url-alist 1.414 -OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。 1.415 -@end defvar 1.416 - 1.417 -@defvar yahtml-directory-index 1.418 -サーバアクセス時ファイル名を省略したときにデフォルトで開かれる 1.419 -インデックスファイルの名前。多くの場合 index.html。(@code{"index.html"}) 1.420 -@end defvar 1.421 - 1.422 -@defvar yahtml-lint-program 1.423 -HTML構文チェックプログラム。(@code{"jweblint"}) 1.424 -@end defvar 1.425 - 1.426 -@defvar yahtml-hate-too-deep-indentation 1.427 -ネストした列挙系環境でのインデントが深すぎるときにtにする。(@code{nil}) 1.428 -@end defvar 1.429 - 1.430 -@defvar yahtml-always-/p 1.431 -@code{<p>} をいれたら必ず @code{</p>} したい人向け。@code{nil} 1.432 -@end defvar 1.433 - 1.434 -@defvar yahtml-p-prefered-env-regexp 1.435 -自動的に @code{<p>} を入れて欲しい環境。 1.436 -(@code{"^\\(body\\|dl\\|blockquote\\)"}) 1.437 -@end defvar 1.438 - 1.439 -@defvar yahtml-template-file 1.440 -新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。 1.441 -@file{"~/http/template.html"} 1.442 -@end defvar 1.443 - 1.444 -@defvar yahtml-prefer-upcases 1.445 -タグに大文字を使いたい。@code{nil} 1.446 -@end defvar 1.447 - 1.448 -@defvar yahtml-prefer-upcase-attributes 1.449 -属性指定子に大文字を使いたい。@code{nil} 1.450 -@end defvar 1.451 - 1.452 -@defvar yahtml-server-type 1.453 -Apache系のサーバを利用している場合は 'apache をセットする。 1.454 -./.htaccess を参照するかどうかを決定する。@code{'apache} 1.455 -@end defvar 1.456 - 1.457 -@defvar yahtml-apache-access-file 1.458 -@code{yahtml-server-type} が @code{'apache} のときに 1.459 -アクセス制限ファイル名を指定。@file{".htaccess"} 1.460 -@end defvar 1.461 - 1.462 -@defvar yahtml-shell-command-option 1.463 -シェルで別コマンドを起動するときのオプション。 1.464 -@end defvar 1.465 - 1.466 -@defvar yahtml-translate-hyphens-when-comment-region 1.467 -領域コメントアウトをするときに既に存在するハイフンを @code{-} に 1.468 -変更するかどうか。(@code{t}) 1.469 -@end defvar 1.470 - 1.471 -@defvar yahtml-entity-reference-chars-alist 1.472 -エンティティ参照(Entity Reference)で記述すべき文字群を 1.473 - @code{'(?文字 . "エンティティ表記")} という形式を列挙した 1.474 -alistで並べる。デフォルトで @code{<}, @code{>}, @code{&}, @code{'}, 1.475 -@code{"} に対するalistが設定されているので、追加したい分だけを記述すれば良 1.476 -い。cdr部 @code{"エンティティ表記"} は、先頭の @code{&} と 末尾の@code{;} 1.477 -は含めずに書く。 1.478 -@end defvar 1.479 - 1.480 -@defvar yahtml-faithful-to-htmllint 1.481 -構文チェッカとして htmllint を利用する場合ちょっとした余計な空白などに 1.482 -対しても警告を示すので、これを回避するときにはこの変数を@code{t}に 1.483 -する。 1.484 -@end defvar 1.485 - 1.486 -@defvar yahtml-use-css 1.487 -CSSの補完機能を使うかどうか (@code{t}) 1.488 -@end defvar 1.489 - 1.490 -@defvar yahtml-image-inspection-bytes 1.491 -画像ファイルのサイズを調べるときに読み込むバイト数 (@code{10000}) 1.492 -@end defvar 1.493 - 1.494 -@defvar yahtml:img-default-alt-format 1.495 -<img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、 1.496 -%yは画像の高さ、%sはファイルサイズに置換される (@code{"%xx%y(%sbytes)"}) 1.497 -@end defvar 1.498 - 1.499 -@defvar yahtml-escape-chars 1.500 -href補完などのときに予約文字をURLエンコードするか; 1.501 -'askのときは確認してから置換する (@code{'ask}) 1.502 -@end defvar 1.503 - 1.504 -@defvar yahtml-use-font-lock 1.505 -ソースの色づけパッケージとして font-lock を利用するか 1.506 -(@code{(featurep 'font-lock)}) 1.507 -@end defvar 1.508 - 1.509 -@defvar yahtml-use-hilit19 1.510 -ソースの色づけパッケージとして hilit19 を利用するか 1.511 -(@code{(featurep 'hilit19)}) 1.512 -@end defvar 1.513 - 1.514 -@defvar yahtml-indentation-boundary 1.515 -インデント計算を打ち切ってよい境界となる正規表現 1.516 -(@code{"^\\s *<h[1-3]>"}) 1.517 -@end defvar 1.518 - 1.519 -@node Hook variables, , All customizable variables, Customizations 1.520 -@comment node-name, next, previous, up 1.521 -@section hook変数 1.522 - 1.523 - 1.524 -@node Copying, Concept Index, Customizations, Top 1.525 -@comment node-name, next, previous, up 1.526 -@chapter 取り扱い 1.527 - 1.528 - 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな 1.529 -る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた 1.530 -しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい 1.531 -ただくと、作者は喜んでサポートに励むことでしょう。 1.532 - 1.533 - 苦情、希望、バグ報告、感想等は歓迎いたします。 1.534 -連絡は yuuji@@yatex.org まで(2000年12月現在)。 1.535 -継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に 1.536 -是非加入してください。加入方法については本パッケージの @file{docs/htmlqa} 1.537 -ファイルの「その他」の章を御覧ください。 1.538 - 1.539 -仕様は、予告なく確実に(気分次第で)変更されます:-p。 1.540 - 1.541 -@flushright 1.542 -広瀬雄二 1.543 -@end flushright 1.544 - 1.545 - 1.546 -@node Concept Index, , Copying, Top 1.547 -@comment node-name, next, previous, up 1.548 -@unnumbered 索引 1.549 -@printindex cp 1.550 - 1.551 - 1.552 -@contents 1.553 - 1.554 -@bye 1.555 - 1.556 -@c Local Variables: 1.557 -@c fill-column: 74 1.558 -@c fill-prefix: nil 1.559 -@c buffer-file-coding-system: sjis-dos 1.560 -@c End: 1.561 - 1.562 -Tag table: 1.563 - 1.564 -End tag table 1.565 +\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1 1.566 +\input texinfo 1.567 +@setfilename yahtmlj 1.568 +@settitle Yet Another html-mode for Emacs 1.569 +@direntry 1.570 +* yahtml: (yahtmlj). Yet Another html-mode for Emacs (Japanese). 1.571 +@end direntry 1.572 + 1.573 +@iftex 1.574 +@c @syncodeindex fn cp 1.575 +@c Last modified Fri May 11 15:42:05 2012 on firestorm 1.576 +@syncodeindex vr cp 1.577 +@end iftex 1.578 + 1.579 +@titlepage 1.580 +@sp 10 1.581 +@center 1.582 +@subtitle Yet Another html-mode for emacs 1.583 +@title 『HTML屋』 1.584 +@subtitle // yahtml // 1.585 +@author @copyright{} 1994-2012 by HIROSE, Yuuji [yuuji@@yatex.org] 1.586 +@end titlepage 1.587 + 1.588 +@node Top, Intro, (dir), (dir) 1.589 +@comment node-name, next, previous, up 1.590 + 1.591 +@menu 1.592 +* Intro:: はじめに 1.593 +* Installation:: インストール 1.594 +* Command Invocation:: 外部コマンド起動 1.595 +* Completion:: 補完入力 1.596 +* Jump:: カーソルジャンプ 1.597 +* Changing and Deleting:: 変更と削除 1.598 +* CSS Support:: スタイルシート補完 1.599 +* Customizations:: カスタマイズ変数一覧 1.600 +* Copying:: とりあつかい 1.601 +* Concept Index:: 索引 1.602 + 1.603 +@end menu 1.604 + 1.605 +@node Intro, Installation, Top, Top 1.606 +@comment node-name, next, previous, up 1.607 +@chapter はじめに 1.608 +@cindex Demacs 1.609 +@cindex Mule 1.610 +@cindex LaTeX 1.611 +@cindex HTML屋[HTMLや] 1.612 + 1.613 +yahtmlは GNU Emacs 上で HTML文書を作成する時に、繁雑なHTMLタグの入力を補 1.614 +完機能によってスムーズに行えるようにするだけでなく、weblintなどの構文チェッ 1.615 +クプログラム、カーソル位置のURLやファイル名に依存したブラウザ/イメージヴュー 1.616 +アの起動などを Emacs 編集画面中から 1.617 +行えるようにするパッケージです。 1.618 + 1.619 +(このInfoは未完成です(__)…) 1.620 + 1.621 +@node Installation, Command Invocation, Intro, Top 1.622 +@comment node-name, next, previous, up 1.623 +@chapter インストール 1.624 +@menu 1.625 +* yahtml起動のための設定:: 1.626 +* lintプログラム/ブラウザ/イメージヴューア環境等の設定:: 1.627 +* WWWページ環境用変数の設定:: 1.628 +@end menu 1.629 + 1.630 +@node yahtml起動のための設定, lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation, Installation 1.631 +@section yahtml起動のための設定 1.632 + 1.633 + 1.634 +@file{~/.emacs}に下の2項目を加えます。 1.635 + 1.636 +@lisp 1.637 +(setq auto-mode-alist 1.638 + (cons (cons "\\.html$" 'yahtml-mode) auto-mode-alist)) 1.639 +(autoload 'yahtml-mode "yahtml" "Yet Another HTML mode" t) 1.640 +@end lisp 1.641 + 1.642 +次にyahtmlに必要なファイル(@file{yahtml.el}, @file{yatexlib.el}, 1.643 +@file{yatexprc.el}) を置くディレクトリを load-path に加えます。たとえば、 1.644 +@file{~/src/emacs/yahtml}に置くのであれば、 1.645 + 1.646 +@lisp 1.647 +(setq load-path (cons (expand-file-name "~/src/emacs/yahtml") load-path)) 1.648 +@end lisp 1.649 + 1.650 +@noindent 1.651 +などとします。 1.652 + 1.653 + 以上の設定により、拡張子が .html であるファイルを編集すると自動的に 1.654 +yahtml がロードされます。yahtmlが正常に起動できたときはモードラインの表示が 1.655 +「yahtml」に変わります。 1.656 + 1.657 +@node lintプログラム/ブラウザ/イメージヴューア環境等の設定, WWWページ環境用変数の設定, yahtml起動のための設定, Installation 1.658 +@section lintプログラム/ブラウザ/イメージヴューア環境等の設定 1.659 + 1.660 +利用する外部プログラムなどに関する以下の変数を確認し、必要なら正しい値に変 1.661 +更します(括弧内はデフォルト値)。 1.662 +@table @code 1.663 +@item yahtml-www-browser 1.664 + @dots{} 起動するブラウザのコマンド名(netscape) 1.665 +@item yahtml-image-viewer 1.666 + @dots{} 起動する画像ビューアのコマンド名(xv) 1.667 +@item yahtml-lint-program 1.668 + @dots{} 構文チェックプログラムのコマンド名(jweblint) 1.669 +@item yahtml-kanji-code 1.670 + @dots{} htmlファイルの漢字コード 1.671 +@end table 1.672 + 1.673 +@node WWWページ環境用変数の設定, , lintプログラム/ブラウザ/イメージヴューア環境等の設定, Installation 1.674 +@section WWWページ環境用変数の設定 1.675 + 1.676 +ホームページとなるファイルが存在するPATH名に関する変数を設定します。 1.677 +@table @code 1.678 +@item yahtml-path-url-alist 1.679 + @dots{} ファイルシステム上のPATH名と、URLの対応表 1.680 +@item yahtml-directory-index 1.681 + @dots{} URL指定でファイル名を省略したときに表示されるインデックス 1.682 + ファイル名(NCSA系httpdなら @file{index.html}, CERN系なら 1.683 + @file{Welcome.html}が一般的) 1.684 +@end table 1.685 + 1.686 +変数 @code{yahtml-path-url-alist} の設定例を示します。例えば、自宅では、 1.687 +@file{/home/yuuji/http/} が @code{http://localhost/~yuuji} で参照でき、職 1.688 +場では @file{/usr/home/yuuji/www/} が@code{http://www.keio.ac.jp/~yuuji/} 1.689 +で参照できるようになっている場合は以下のように設定します。 1.690 + 1.691 +@lisp 1.692 +(setq yahtml-path-url-alist 1.693 + '(("/home/yuuj/http" . "http://localhost/~yuuji") 1.694 + ("/usr/home/yuuj/www" . "http://www.keio.ac.jp/~yuuji"))) 1.695 +@end lisp 1.696 + 1.697 +この対応組はいくらでも設定することができます。 1.698 + 1.699 +@node Command Invocation, Completion, Installation, Top 1.700 +@comment node-name, next, previous, up 1.701 +@chapter 外部コマンド起動 1.702 + 1.703 +HTMLファイル編集にかかわるいくつかのコマンドを即座に呼ぶことができます。 1.704 +@table @kbd 1.705 +@item [prefix] t j 1.706 + @dots{} HTML構文チェッカ(jweblint)起動 1.707 +@item [prefix] t p 1.708 + @dots{} 現在のページを対象としたブラウザ起動 1.709 +@item [prefix] t r 1.710 + @dots{} 現在のページがブラウザに表示されているときのreload指定 1.711 +@end table 1.712 + 1.713 +@node Completion, Jump, Command Invocation, Top 1.714 +@comment node-name, next, previous, up 1.715 +@chapter 補完入力 1.716 + 1.717 +「野鳥」で利用できる、「begin型補完」、「section型補完」、 1.718 +「large型補完」、「maketitle型補完」、「アクセント補完」 1.719 +と全く同じキー操作で対応する 1.720 +HTMLタグの補完入力ができます。それぞれの型の補完は順に、 1.721 +「複数行に渡るタグ入力」、「空要素タグ(imgなど)の補完」、 1.722 +「一行内での開始/終了タグの入力」、「空要素空属性タグの入力」、 1.723 +「文字参照入力」 1.724 +に 1.725 +対応しています。具体的には 1.726 + 1.727 +@table @kbd 1.728 +@item [prefix] b (野鳥のbegin補完に対応) 1.729 +@dots{} 1.730 +@example 1.731 +<ul> 1.732 +</ul> 1.733 +@end example 1.734 + 1.735 +@noindent 1.736 +のように開始タグと終了タグを二行に渡って書きたい場合の補完を指します。 1.737 +おもにブロック型タグが補完候補に含まれます。 1.738 + 1.739 +@item [prefix] s (野鳥のsection型補完に対応) 1.740 +@dots{} 1.741 +@example 1.742 +<img src="foo.gif" alt="photo"> 1.743 +@end example 1.744 + 1.745 +@noindent 1.746 +のように終了タグを持たず、かつ属性値のみで機能を指定するタグを補完します。 1.747 +補完候補としては、img, input が存在します。 1.748 + 1.749 +@item [prefix] l (野鳥のlarge型補完に対応) 1.750 +@dots{} begin型補完とほぼ同じですが、 1.751 + 1.752 +@example 1.753 +<big> 〜 </big> 1.754 +@end example 1.755 + 1.756 +@noindent 1.757 +のように一行内に開始/終了タグを入れたいときに利用します。 1.758 + 1.759 +@item [prefix] m (野鳥のmaketitle型補完に対応) 1.760 +@dots{} 要素も属性値も持たないタグを補完入力します。<br> 1.761 +などが補完候補に相当します。 1.762 + 1.763 +@item [prefix] a (野鳥のアクセント補完に対応) 1.764 +@dots{} エンティティ参照による文字表記を入力するときに用います。 1.765 +デフォルトでは < (<), > (>), & (&), " ("), ' ('), 1.766 +ブランク ( ) の補完入力が行えます。 1.767 +@end table 1.768 + 1.769 +@node Jump, Changing and Deleting, Completion, Top 1.770 +@comment node-name, next, previous, up 1.771 +@chapter カーソルジャンプ 1.772 +文書中のいろいろな場所で 1.773 + 1.774 +@table @kbd 1.775 +@item [prefix] g 1.776 + @dots{} 対応するオブジェクトにジャンプ 1.777 +@end table 1.778 + 1.779 +@noindent 1.780 +を押すことにより、カーソル位置のHTML構文に対応する場所にジャンプ 1.781 +します。対応関係が存在すると解釈されるコマンドには以下のものがあります。 1.782 + 1.783 +@itemize @bullet 1.784 +@item @code{<TAG>} ←→ @code{</TAG>} 1.785 +@item @code{<img src="画像ファイル">} → 対応するviewer起動 1.786 +@item @code{<a href="リンク先">} → リンク先へのポイント移動 1.787 +@item @code{<applet code="プログラム">} → Javaソースプログラムへの移動 1.788 +@c @item @code{\include(\input)} → 対応するファイル 1.789 +@end itemize 1.790 + 1.791 +@node Changing and Deleting, CSS Support, Jump, Top 1.792 +@comment node-name, next, previous, up 1.793 +@chapter 変更/削除 1.794 + 1.795 +@menu 1.796 +* 対タグの変更:: 1.797 +* 文字参照への変更:: 1.798 +* リジョン内文字のURLencode:: 1.799 +* td括り/tr括り:: 1.800 +@end menu 1.801 + 1.802 +@node 対タグの変更, 文字参照への変更, Changing and Deleting, Changing and Deleting 1.803 +@comment node-name, next, previous, up 1.804 +@section 対タグの変更 1.805 +文書中のいろいろな場所で 1.806 + 1.807 +@table @kbd 1.808 +@item [prefix] c 1.809 + @dots{} 対応するタグ等を変更 1.810 +@end table 1.811 + 1.812 +@noindent 1.813 +を押すことにより、カーソル位置のHTML構文に応じた 1.814 +記述内容の変更を行います。カーソル位置と変更する内容の 1.815 +対応は以下の通りです。 1.816 + 1.817 +@itemize @bullet 1.818 +@item @code{<TAG>}〜@code{</TAG>} 1.819 +@dots{} @code{TAG} の変更 1.820 +@item @code{<img src="画像ファイル" alt="photo">} などの属性値 1.821 +@dots{} 属性値の変更 1.822 +@end itemize 1.823 + 1.824 +@node 文字参照への変更, リジョン内文字のURLencode, 対タグの変更, Changing and Deleting 1.825 +@comment node-name, next, previous, up 1.826 +@section 文字参照への変更 1.827 +文字としての < や > を表現するときは、文字参照を用いて 1.828 +< や > と表記する必要がありますが、 1.829 +HTML以外のファイルからこれらの文字を含むテキストを張り込んだ場合 1.830 +などに、これらの文字を一括して文字参照形式に変換できます。 1.831 + 1.832 +@table @kbd 1.833 +@item [prefix] ; 1.834 + @dots{} 指定した領域の文字参照に置き換えるべき文字の置換 1.835 +@item [prefix] : 1.836 + @dots{} 指定した領域の文字参照を参照文字そのものに置換 1.837 + ([prefix] ; の逆変換) 1.838 +@end table 1.839 + 1.840 + 1.841 +@node リジョン内文字のURLencode, td括り/tr括り, 文字参照への変更, Changing and Deleting 1.842 +@comment node-name, next, previous, up 1.843 +@section リジョン内文字のURLencode 1.844 +@table @kbd 1.845 + @item [prefix] # 1.846 + @dots{} 指定した領域内に URLencode すべき文字があればそれらを 1.847 + エンコード表記に置換。 1.848 +@end table 1.849 + 1.850 +@node td括り/tr括り, , リジョン内文字のURLencode, Changing and Deleting 1.851 +@comment node-name, next, previous, up 1.852 +@section td括り/tr括り 1.853 +空白区切りで書いた表形式の行レコードを <td> 括りの並び, 1.854 +あるいはそれらをさらに <tr> で括った行並びに変換できます。 1.855 +@table @kbd 1.856 + @item [prefix] @} 1.857 + @dots{} 現在のリジョンにあるデータを空白区切りごとに 1.858 + <td>...</td> で括る 1.859 + @item [prefix] ] 1.860 + @dots{} 現在のリジョンにある行を 1.861 + 上記td括りをほどこしてからさらに行ごとに <tr>...</tr> で括る 1.862 +@end table 1.863 +デフォルトでは空白区切りですが,これを変えるときは 1.864 +Delimiter: の問い合わせに区切り文字を指定します。たとえばカンマ(,) 1.865 +を指定するとCSVから表を作ることができます。 1.866 + 1.867 +td以外の要素,具体的には th で括りたい場合は universal-argument 1.868 +(@kbd{C-u}) をつけて上記2つのコマンドを呼びます。どの要素で括るかの 1.869 +質問が増えるのでそれに th と入れれば,各フィールドを <th>...</th> 1.870 +で括ります。もし,第1フィールドのみ th で,残りを全部 td 括りにしたいとき 1.871 +は thd と入力して下さい。 1.872 + 1.873 +@node CSS Support, Customizations, Changing and Deleting, Top 1.874 +@comment node-name, next, previous, up 1.875 +@chapter CSS(スタイルシート)サポート 1.876 + 1.877 +@menu 1.878 +* CSS-class completion:: 1.879 +* Reread CSS file:: 1.880 +@end menu 1.881 + 1.882 +@node CSS-class completion, Reread CSS file, CSS Support, CSS Support 1.883 +@comment node-name, next, previous, up 1.884 +@section CSSクラス名補完 1.885 +HTML屋はCSS(Cascading Style Sheets)のクラス名を補完入力することができます。 1.886 +スタイル定義として 1.887 + 1.888 +@display 1.889 + h1.foo, h2.foo @{ background-color: 0xffffff; @} 1.890 + h1.bar, h2.bar @{ font-size: 120%; @} 1.891 +@end display 1.892 + 1.893 +のようなものがあった場合に、h1またはh2タグを [prefix] b や [prefix] l で補 1.894 +完入力した場合に、それらに有効な class 名である foo, bar を候補として補完 1.895 +入力することが可能です。また 1.896 + 1.897 +@display 1.898 + .caution @{ font-size: 120%; background-color: 0xc00000;@} 1.899 +@end display 1.900 + 1.901 +のような全てのエレメントに働くclassが定義されていた場合は、全てのタグの補 1.902 +完入力時にclass参照入力を求められます。これが煩わしい場合はエレメント名入 1.903 +力確定のときにリターンキー(またはC-m)ではなく、C-jを押せばclass補完入力を 1.904 +キャンセルできます。たとえば 1.905 + 1.906 +@display 1.907 + @kbd{[prefix] l} 行内タグ補完を起動 1.908 + (または@kbd{[prefix] l SPC}) 1.909 + tt <tt></tt>をいれたいのでttと入力 1.910 + @kbd{C-m} 1.911 +@end display 1.912 + 1.913 +とした場合は続いて class= と補完プロンプトが出ますが、 1.914 + 1.915 +@display 1.916 + @kbd{[prefix] l} 行内タグ補完を起動 1.917 + (または@kbd{[prefix] l SPC}) 1.918 + tt <tt></tt>をいれたいのでttと入力 1.919 + @kbd{C-j} 1.920 +@end display 1.921 + 1.922 +と最後を @kbd{C-j} で入力した場合は class 補完プロンプトは出ません。 1.923 + 1.924 +@node Reread CSS file, , CSS-class completion, CSS Support 1.925 +@comment node-name, next, previous, up 1.926 +@section CSS定義ファイルの読み直し 1.927 +htmlファイルを編集中にCSS定義ファイルを修正し、追加した 1.928 +classを補完候補として直ちに読み込ませたい場合は、 1.929 +@kbd{M-x yahtml-mode} として再起動を行ってください。 1.930 + 1.931 +@node Customizations, Copying, CSS Support, Top 1.932 +@comment node-name, next, previous, up 1.933 +@chapter カスタマイズ 1.934 +@cindex カスタマイズ[かすたまいす] 1.935 +@cindex キーアサイン[きいあさいん] 1.936 + 1.937 +yahtmlの動作を制御する変数について説明します。 1.938 + 1.939 +@menu 1.940 +* All customizable variables:: カスタマイズ変数一覧 1.941 +* Hook variables:: hook変数 1.942 +@end menu 1.943 + 1.944 +@node All customizable variables, Hook variables, Customizations, Customizations 1.945 +@comment node-name, next, previous, up 1.946 +@section カスタマイズ変数一覧 1.947 + 1.948 +@defvar yahtml-prefix 1.949 +yahtml-mode 中のプリフィクスキー (@kbd{\C-c}) 1.950 +@end defvar 1.951 + 1.952 +@defvar yahtml-image-viewer 1.953 +imgで参照している画像ファイルを表示するときに起動するコマンド (xv) 1.954 +@end defvar 1.955 + 1.956 +@defvar yahtml-www-browser 1.957 +@kbd{[prefix]g} で外部ページを表示するときに起動するブラウザ (netscape) 1.958 +@end defvar 1.959 + 1.960 +@defvar yahtml-kanji-code 1.961 +デフォルトの漢字コード。1=sjis, 2=jis, 3=euc, 4=utf-8 (2) 1.962 +.htaccess ファイルに 1.963 +@quotation 1.964 + AddType "text/html; charset=xxx" .html 1.965 +@end quotation 1.966 +の記述があった場合はそれに従う 1.967 +@end defvar 1.968 + 1.969 +@defvar yahtml-fill-column 1.970 +auto-fillするときのカラム数 (72) 1.971 +@end defvar 1.972 + 1.973 +@defvar yahtml-fill-prefix 1.974 +yahtml-mode 固有のfill-prefix (@code{nil}) 1.975 +@end defvar 1.976 + 1.977 +@defvar yahtml-path-url-alist 1.978 +OSのファイルシステム上でのフルパス名と、その外部公開時のURLの対応表。 1.979 +@end defvar 1.980 + 1.981 +@defvar yahtml-directory-index 1.982 +サーバアクセス時ファイル名を省略したときにデフォルトで開かれる 1.983 +インデックスファイルの名前。多くの場合 index.html。(@code{"index.html"}) 1.984 +@end defvar 1.985 + 1.986 +@defvar yahtml-lint-program 1.987 +HTML構文チェックプログラム。(@code{"jweblint"}) 1.988 +@end defvar 1.989 + 1.990 +@defvar yahtml-hate-too-deep-indentation 1.991 +ネストした列挙系環境でのインデントが深すぎるときにtにする。(@code{nil}) 1.992 +@end defvar 1.993 + 1.994 +@defvar yahtml-always-/p 1.995 +@code{<p>} をいれたら必ず @code{</p>} したい人向け。@code{nil} 1.996 +@end defvar 1.997 + 1.998 +@defvar yahtml-p-prefered-env-regexp 1.999 +自動的に @code{<p>} を入れて欲しい環境。 1.1000 +(@code{"^\\(body\\|dl\\|blockquote\\)"}) 1.1001 +@end defvar 1.1002 + 1.1003 +@defvar yahtml-template-file 1.1004 +新規HTMLファイル作成時に自動的に挿入して欲しいファイル名。 1.1005 +@file{"~/http/template.html"} 1.1006 +@end defvar 1.1007 + 1.1008 +@defvar yahtml-prefer-upcases 1.1009 +タグに大文字を使いたい。@code{nil} 1.1010 +@end defvar 1.1011 + 1.1012 +@defvar yahtml-prefer-upcase-attributes 1.1013 +属性指定子に大文字を使いたい。@code{nil} 1.1014 +@end defvar 1.1015 + 1.1016 +@defvar yahtml-server-type 1.1017 +Apache系のサーバを利用している場合は 'apache をセットする。 1.1018 +./.htaccess を参照するかどうかを決定する。@code{'apache} 1.1019 +@end defvar 1.1020 + 1.1021 +@defvar yahtml-apache-access-file 1.1022 +@code{yahtml-server-type} が @code{'apache} のときに 1.1023 +アクセス制限ファイル名を指定。@file{".htaccess"} 1.1024 +@end defvar 1.1025 + 1.1026 +@defvar yahtml-shell-command-option 1.1027 +シェルで別コマンドを起動するときのオプション。 1.1028 +@end defvar 1.1029 + 1.1030 +@defvar yahtml-translate-hyphens-when-comment-region 1.1031 +領域コメントアウトをするときに既に存在するハイフンを @code{-} に 1.1032 +変更するかどうか。(@code{t}) 1.1033 +@end defvar 1.1034 + 1.1035 +@defvar yahtml-entity-reference-chars-alist 1.1036 +エンティティ参照(Entity Reference)で記述すべき文字群を 1.1037 + @code{'(?文字 . "エンティティ表記")} という形式を列挙した 1.1038 +alistで並べる。デフォルトで @code{<}, @code{>}, @code{&}, @code{'}, 1.1039 +@code{"} に対するalistが設定されているので、追加したい分だけを記述すれば良 1.1040 +い。cdr部 @code{"エンティティ表記"} は、先頭の @code{&} と 末尾の@code{;} 1.1041 +は含めずに書く。 1.1042 +@end defvar 1.1043 + 1.1044 +@defvar yahtml-faithful-to-htmllint 1.1045 +構文チェッカとして htmllint を利用する場合ちょっとした余計な空白などに 1.1046 +対しても警告を示すので、これを回避するときにはこの変数を@code{t}に 1.1047 +する。 1.1048 +@end defvar 1.1049 + 1.1050 +@defvar yahtml-use-css 1.1051 +CSSの補完機能を使うかどうか (@code{t}) 1.1052 +@end defvar 1.1053 + 1.1054 +@defvar yahtml-image-inspection-bytes 1.1055 +画像ファイルのサイズを調べるときに読み込むバイト数 (@code{10000}) 1.1056 +@end defvar 1.1057 + 1.1058 +@defvar yahtml:img-default-alt-format 1.1059 +<img src...>のALT属性のデフォルト文字列の書式。%xは画像の幅、 1.1060 +%yは画像の高さ、%sはファイルサイズに置換される (@code{"%xx%y(%sbytes)"}) 1.1061 +@end defvar 1.1062 + 1.1063 +@defvar yahtml-escape-chars 1.1064 +href補完などのときに予約文字をURLエンコードするか; 1.1065 +'askのときは確認してから置換する (@code{'ask}) 1.1066 +@end defvar 1.1067 + 1.1068 +@defvar yahtml-use-font-lock 1.1069 +ソースの色づけパッケージとして font-lock を利用するか 1.1070 +(@code{(featurep 'font-lock)}) 1.1071 +@end defvar 1.1072 + 1.1073 +@defvar yahtml-use-hilit19 1.1074 +ソースの色づけパッケージとして hilit19 を利用するか 1.1075 +(@code{(featurep 'hilit19)}) 1.1076 +@end defvar 1.1077 + 1.1078 +@defvar yahtml-indentation-boundary 1.1079 +インデント計算を打ち切ってよい境界となる正規表現 1.1080 +(@code{"^\\s *<h[1-3]>"}) 1.1081 +@end defvar 1.1082 + 1.1083 +@node Hook variables, , All customizable variables, Customizations 1.1084 +@comment node-name, next, previous, up 1.1085 +@section hook変数 1.1086 + 1.1087 + 1.1088 +@node Copying, Concept Index, Customizations, Top 1.1089 +@comment node-name, next, previous, up 1.1090 +@chapter 取り扱い 1.1091 + 1.1092 + 本プログラムはフリーソフトウェアです。本プログラムを使用して生じたいかな 1.1093 +る結果に対しても作者は責任を負わないこととします。転載等に関しては制限いた 1.1094 +しません。常識的に扱ってください。また、使用している旨をメイルでお知らせい 1.1095 +ただくと、作者は喜んでサポートに励むことでしょう。 1.1096 + 1.1097 + 苦情、希望、バグ報告、感想等は歓迎いたします。 1.1098 +連絡は yuuji@@yatex.org まで(2000年12月現在)。 1.1099 +継続的に使用してくださる方はメイリングリスト「fj野鳥の会」に 1.1100 +是非加入してください。加入方法については本パッケージの @file{docs/htmlqa} 1.1101 +ファイルの「その他」の章を御覧ください。 1.1102 + 1.1103 +仕様は、予告なく確実に(気分次第で)変更されます:-p。 1.1104 + 1.1105 +@flushright 1.1106 +広瀬雄二 1.1107 +@end flushright 1.1108 + 1.1109 + 1.1110 +@node Concept Index, , Copying, Top 1.1111 +@comment node-name, next, previous, up 1.1112 +@unnumbered 索引 1.1113 +@printindex cp 1.1114 + 1.1115 + 1.1116 +@contents 1.1117 + 1.1118 +@bye 1.1119 + 1.1120 +@c Local Variables: 1.1121 +@c fill-column: 74 1.1122 +@c fill-prefix: nil 1.1123 +@c buffer-file-coding-system: sjis 1.1124 +@c End: 1.1125 + 1.1126 +Tag table: 1.1127 + 1.1128 +End tag table