📄 898.html
字号:
-l --license Print license information<br>
<br>
For help on a specific backend, use "--backend xyz --help".<br>
<br>
从 RPM 进行安装<br>
如果使用的是基于 RPM 的系统,可以使用 RPM 来安装 SGMLtools-Lite。需要下载最新的 sgmltools-lite 包和支持文件。下载了这两个 RPM 后,继续使用 -i 选项安装它们。您还是可以通过运行 sgmltools -- help 命令来测试安装,确保每个部分都安装成功。<br>
<br>
安装疑难解答<br>
要使 SGMLtools-Lite 能正确工作,您可能需要做的一件事就是设置 SGML_CATALOG_FILES 环境变量,以使 SGMLtools-Lite 知道在什么地方查找目录文件。可以通过手工发出设置正确环境变量的命令来做到。在我的系统上使用的就是这种方法(是的,输入工作可能有些繁重)。<br>
<br>
export SGML_CATALOG_FILES=/usr/local/share/sgml/stylesheets/docbook/catalog:<br>
/usr/local/share/sgml/entities/iso-entities-8879.1986/iso-entities.cat:<br>
/usr/local/share/sgml/dtd/jade/dsssl.cat:<br>
/usr/local/share/sgml/stylesheets/sgmltools/sgmltools.cat:<br>
/usr/local/share/sgml/dtd/sgmltools/catalog:<br>
/usr/local/share/sgml/dtd/docbook/3.1/docbook.cat<br>
<br>
要避免在每次登录时都不得不执行这一步,您可能需要继续设置 .bash_profile 中的 SGML_CATALOG_FILES 环境变量。请注意,如果在一个 x-term 中设置环境变量,可能无法扩大到其它 x-term,因此如果收到错误,需要通过检查来确保正确设置环境。<br>
<br>
使用 SGMLtools-Lite 产生输出文件<br>
一旦安装了 SGMLtools-Lite,使用起来就相当简单。SGMLtools-Lite 主要用来从 DocBook 文件中产生 HTML、PostScript、RTF 或纯文本文件。还可以使用 SGMLtools 来将 linuxdoc 文件转换成 DocBook 格式。<br>
<br>
产生 HTML 文件<br>
以下是如何使用 SGMLtools-Lite 来产生 HTML 输出的方法。如果所产生的文档带有图像,则需要引用不带有文件扩展名的图像名。例如,不是这样引用:<br>
<br>
<screenshot><br>
<graphic fileref="..../misc/datebook1.gif"><graphic><br>
<screenshot><br>
<br>
而希望这样使用:<br>
<br>
<screenshot><br>
<graphic fileref="..../misc/datebook1"><graphic><br>
<screenshot><br>
<br>
在处理 DocBook 文件时,如果产生的是 HTML 文件,SGMLtools-Lite 需要的是 gif,如果产生的是 PostScript 文件,需要的是 EPS 文件。在产生 HTML 时,SGMLtools-Lite 自动附加 .gif 扩展名,因此 HTML 文档可以正确使用。<br>
<br>
要从名为 book.sgml 的 DocBook 文件中产生 HTML 输出,输入以下命令:<br>
<br>
sgmltools -b html book.sgml<br>
<br>
"-b" (后端)参数告诉 SGMLtools-Lite 产生 HTML 输出。<br>
<br>
这将创建一个名为 "book" 的目录,并且 HTML 文件在其中。如果您的 DocBook 文档调用其它文件,SGMLtools-Lite 也将处理它们,并自动创建索引和“页面”之间的导航。<br>
<br>
由 SGMLtools-Lite 产生的 HTML 标记过于花俏。在把文件上载到服务器之前,您需要对它们运行 "HTML Tidy" (请参阅参考资料)。HTML Tidy 不仅可以整理代码,它还会用 CSS 规则替换例如 <font> 和 <center> 这样的显示标记。<br>
<br>
产生 PostScript 文件<br>
要产生 PostScript 输出,使用以下命令:<br>
<br>
sgmltools -b ps book.sgml<br>
<br>
由 SGMLtools-Lite 产生的 PostScript 输出看上去很专业,适合于许多文档的使用,例如软件手册或公司报告;通常情况下,会使用排版程序来产生这些文档。SGMLtools-Lite 甚至还可以直接产生封面和目录表。<br>
<br>
产生 RTF 文件<br>
如果需要与使用 Word 的人共享文档,则需要输出多文本格式 (Rich Text Format),或 RTF 格式的文件。如果使用 SGMLtools-Lite,这一过程和产生任何其它输出类型的过程一样简单:<br>
<br>
sgmltools -b rtf book.sgml<br>
<br>
不幸的是,据我所知,Microsoft Word 没有导出到 DocBook 的选项。<br>
<br>
产生纯文本文件<br>
最后,如果需要,可以用 DocBook 创建纯文本文件。要使用 SGMLtools-Lite 产生纯文本,使用 "-b txt" 参数。<br>
<br>
将 linuxdoc 转换成 DocBook<br>
在某些情况下,也许要负责维护 linuxdoc 格式的文档。可能您所在公司是使用 Linuxdoc 来编写文档的,也可能您碰巧遇到一些以 Linuxdoc 编写的旧文档。幸运的是,SGMLtools-Lite 的一个特性是能够将文档从 Linuxdoc DTD 转换成 DocBook DTD。<br>
<br>
要将名为 Howto.sgml 的 linuxdoc 文件转换成 DocBook 格式,使用以下命令:<br>
<br>
sgmltools -b ld2db Howto.sgml<br>
<br>
这将从 linuxdoc 文件中创建 DocBook SGML 文件。然后,可以使用新的 DocBook 文件来产生其它各种类型的文件。SGMLtools-Lite 不能从 Linuxdoc 文件中产生除 DocBook 以外的输出。<br>
<br>
以上是 SGMLtools-Lite 安装和使用的简要概述。使用 DocBook 进行的出版工作可能非常复杂,但您现在应该已经具备了一些起步阶段所需的基本知识。<br>
<br>
参考资料<br>
<br>
* 请访问 DocBook.org,这是官方 DocBook 站点。<br>
* 请参阅 RPM 格式的 SGML ISO 实体声明。<br>
* 请参考 DocBook DTD RPM。<br>
* 仔细查看 DocBook DSSSL 样式表 RPM。<br>
* linux 文档项目包含了许多以 DocBook 编写的文档。LDP Author Guide 有一些 DocBook 入门方面的技巧。<br>
* 从 SGML-tools Lite 上下载源码或 RPM,然后按照指令安装它们。该站点有许多将 DocBook 文档转换成 HTML、PDF、PostScript、RTF 或纯文本时所需的工具。<br>
* 可以在 OASIS DocBook 页面上找到 DocBook 技术委员会主页。<br>
* 有关开始使用 SGML DTD 的帮助,请参阅 SGML 资源 W3C 概述。<br>
* 有关详细信息,请参阅常规 SGML/XML 应用,这是 SGML/XML 应用的 OASIS 指南。<br>
* 尝试使用 HTML Tidy 来整理 HTML 输出,并使用 CSS 规则来替换显示标记。<br>
<br>
关于作者<br>
Joe "Zonker" Brockmeier 是 linux 杂志的撰稿编辑,为 Prima Publishing 著有 Install, Configure and Customize Slackware Linux 一书。他的第二本书是 DocBook Publishing,将由 Prima 于 2001 年初出版。Joe 欢迎您提出有关今后 DocBook 文章的问题、建议或意见,可以通过 jbrockmeier@earthlink.net 与他联系。<br>
<br>
您对这篇文章的看法如何?<br>
<br>
真棒! 好文章 一般,尚可 需提高 太差!<br>
<br>
意见?<br>
<br>
<br>
(c) Copyright IBM Corp. 2001, (c) Copyright IBM China 2001, All Right Reserved<br>
隐私 法律 联系<br>
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -