GROHTML(1) GROHTML(1) 名称 grohtml - groff の HTML ドライバ 書式 grohtml [ -atTvdgm? ] [ -Fdir ] [ -Iimagetype ] [ -rresolution ] [ files... ] コマンドラインオプションとパラメータの間に空白を含めることが可能です。 解説 grohtml は GNU troff の出力を HTML に翻訳します。通 常 は grohtml は -Thtml オプションを付けて groff コマンドを使用することで起動されます。 ファイルが与えられない場合、 grohtml は標準入力を読みます。ファイル名が - のときでも、 grohtml は標準入力を読みます。 HTML 出力は標準出力へ書き 出されます。 groff から grohtml を実行する時は、 groff -P を使 用 し て grohtml にオプションを渡すことが出来ます。 オプション -a grohtml に troff が指定したのと同じ位置で HTML の改行を出力する よう強制します。このオプションなしでは grohtml は HTML ブラウ ザ により整形される段落中にテキストを出力します。 -d 内部デバッギングを有効にします。 -g grohtml に表題や見出しを推測しないよう伝えます。 -m や -a フラグ と一緒にこのフラグを使用することにより grohtml は HTML ブラウ ザ を整形機ではなくプリンタとして扱います。 -m 余白をそのままにします。 grohtml は左の余白を取り除きません。 -t grohtml が字下げや表の文を実現する時に HTML の表を生成することを 禁止します。 grohtml は表あるいは HTML の字下げにより .IP を実現 出 来ます。しかしながら .2C が使用される場合には、テーブル構造を 使用したときだけ、それと判るように HTML に変換出来ます。 HTML の テ ーブルのコードに 2,3 の既知のバグがまだ存在するため、このオプ ションは、開発中のコードの実行を抑止するために存在します。 gro- html でのデフォルトは、適切な時には HTML テーブルが生成されます 。 -T tbl からの出力を処理するときに、 grohtml がイメージを生成する こ とを禁止します。簡単なテキストの表が生成されるときに有用です。 -Fdir フォントとデバイス記述ファイルのために dir/devname を検索します ; name がデバイスの名前であり、通常は html です。 -Iimagetype grohtmlが式や表、図に遭遇した時に生成する画像の形式を選択しま す 。 このデフォルトは png256 です。受け付けられる画像形式は gif お よび ghostscript gs(1) によりサポートされる任意の png です。 -rresolution 全ての画像の解像度を選択します。デフォルトではインチ当り 80 ピク セルです。例: -r100 はインチ当り 100 ピクセルを示します。 -v バージョン番号を印字します。 -? 使用法を表示します。 使用法 R, I, B, BI という形式があり、フォントポジション 1 から 4 にマウントさ れます。 groff を -mhtml マクロセット付きで起動する事をお勧めします。こ の マクロセットを指定すると、へッダ、フッタ、ハイフネーションを無効にし て、更にテキストを右揃えします。 依存関係 grohtml は grops と gs に依存します。 grohtml が gif ファイルを生成する よ う構成されている場合には、更に ppmtogif と ppmquant にも依存します。 しかしながら png ファイルを生成するよう構成されている場合 (デフォル ト) には png 出力デバイスを持つ gs に依存します。画像は表、図、式や線に遭遇 した時に生成されます。 バグ これはまだまだアルファバージョンです。少なくとも三つの大きなバグが残 っ ています。第一に、 grohtml は HTML テーブルの終わりの判断を間違えて、同 じテキストが 2 回出力されてしまうことがあります。第二に式番号が正しく処 理されません。第三に式マクロと図のマクロが grohtml を混乱させることがあ ります。 関連項目 afmtodit(1), groff(1), troff(1), psbb(1), groff_out(5), groff_font(5), groff_char(7) Groff Version 1.16.1 7 December 2000 GROHTML(1)
GROHTML(1) GROHTML(1)
NAME
grohtml - html driver for groff
SYNOPSIS
grohtml [ -vhlrn ] [ -Ddir ] [ -Fdir ] [ -iresolution ]
[ -Iimage-stem ] [ -oimage-vertical-offset ] [ -aaa-text-bits ]
[ -aaa-graphic-bits ] [ files... ]
DESCRIPTION
The grohtml front end (which consists of a preprocessor, pre-grohtml,
and a device driver, post-grohtml) translates the output of GNU troff
to html. Users should always invoke grohtml via the groff command with
a -Thtml option. If no files are given, grohtml will read the standard
input. A filename of - will also cause grohtml to read the standard
input. Html output is written to the standard output. When grohtml is
run by groff options can be passed to grohtml using groff’s -P option.
OPTIONS
-aaa-text-bits
Number of bits of antialiasing information to be used by text
when generating png images. The default is 4 but legal values
are 0, 1, 2, and 4. Note your version of gs needs to support
the -dTextAlphaBits and -dGraphicAlphaBits options in order to
exploit antialiasing. A value of 0 stops grohtml from issuing
antialiasing commands to gs.
-gaa-graphic-bits
Number of bits of antialiasing information to be used by graph-
ics when generating png images. The default is 4 but legal val-
ues are 0, 1, 2, and 4. Note your version of gs needs to sup-
port the -dTextAlphaBits and -dGraphicAlphaBits options in order
to exploit antialiasing. A value of 0 stops grohtml from issu-
ing antialiasing commands to gs.
-b Initialize the background color to white.
-h Generates section and number headings by using ... and
increasing the font size, rather than using the
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa