📄 documentation.dbk
字号:
<!--================================================================doc/docbook/documentation/documentation.dbk$Id: documentation.dbk,v 1.15 2004/11/24 16:52:39 vruppert Exp $This is the top level file for the Bochs Documentation Manual.================================================================--><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [<!-- include definitions that are common to all bochs documentation --><!ENTITY % bochsdefs SYSTEM "../include/defs.sgm">%bochsdefs;]><book><bookinfo> <title>Bochs Documentation Manual</title> <authorgroup> <author><firstname>Bryce</firstname><surname>Denney</surname></author> <author><firstname>Michael</firstname><surname>Calabrese</surname></author> </authorgroup></bookinfo><chapter id="layout"><title>Layout of Bochs Documentation</title><para>The Bochs documentation is divided into three major divisions:<itemizedlist> <listitem> <para> The User's Guide introduces the Bochs Emulator, and covers installation and use. </para> </listitem> <listitem> <para> Developer's Guide: Describes the internals of the Bochs Emulator for developers. </para> </listitem> <listitem> <para> Documentation Guide: Describes how the documentation is organized, and how to render it, and how to add to it. This section is in the documentation guide. </para> </listitem></itemizedlist> </para><para>In docbook terminology, each of the three divisions is a book. Inside eachbook are a series of chapters. A chapter may be divided into sections, andeach section is divided into more sections. Eventually we will add fancythings like a table of contents, index, and glossary, when we learn how.</para></chapter><chapter id="basics"><title>Docbook Basics</title><para>Some of the most commonly used docbook patterns are described herefor quick reference. For all the details (sometimes more than youwanted), try &docbookTDG; by Norman Walsh and Leonard Muellner, which O'Reilly& Associates has generously placed on their web site. In this section,many of the SGML tags are linked to the page of Walsh's book that describesthat tag in detail.</para><section><title>Small Tutorial</title><para>Docbook files are text files containing SGML. If you have ever lookedat HTML, then a docbook file will look familiar. Not the same, but familiar.The easiest way of getting familiar with the docbook format is by looking atexamples such as the Bochs documentation itself. When you compare the sourcecode to the rendered documentation on the web site, it will be pretty obviouswhat all the codes are doing. HTML is very forgiving about breaking the syntaxrules, such as not putting </h1> at then end of an <h1> section.SGML is picky; if you forget that kind of thing in SGML, it will insist thatyou fix it. </para><para>Every paragraph must begin with the <para> tag and end with thecorresponding end tag, </para>.<programlisting><<ulink url="http://www.docbook.org/tdg/en/html/para.html">para</ulink>>This is a paragraph.</para></programlisting></para><para>A chapter looks like this:<programlisting><<ulink url="http://www.docbook.org/tdg/en/html/chapter.html">chapter</ulink>> <title><replaceable>title of the chapter</replaceable></title> <replaceable>text of the chapter</replaceable></chapter></programlisting>The text of the chapter must contain at least one complete <para> tag,and it can include <section>s.</para><para>A section looks like this:<programlisting><<ulink url="http://www.docbook.org/tdg/en/html/section.html">section</ulink>> <title><replaceable>title of the section</replaceable></title> <replaceable>text of the section</replaceable></section></programlisting>The text of the section must contain at least one complete <para> tag,and it can include other <section>s.</para><para>To make a link to any URL, use the syntax:<programlisting><<ulink url="http://www.docbook.org/tdg/en/html/ulink.html">ulink</ulink> url="<replaceable>URL</replaceable>"><replaceable>text of the hyperlink</replaceable></ulink></programlisting>However, if you like to link to another target inside the same document,for example to a section, use something like that:<programlisting><section id="<replaceable>unique identifier</replaceable>"> <replaceable>All stuff that is needed here...</replaceable></section><replaceable>...</replaceable><<ulink url="http://www.docbook.org/tdg/en/html/link.html">link</ulink> linkend="<replaceable>unique identifier to link to</replaceable>"><replaceable>text of hyperlink</replaceable></link></programlisting></para><para>To include a picture in the text, use the <graphic> tag. In SGML, thisgraphic tag has no closing tag.<programlisting><<ulink url="http://www.docbook.org/tdg/en/html/graphic.html">graphic</ulink> format="<replaceable>fmt</replaceable>" fileref="<replaceable>filename</replaceable>"></programlisting>The <replaceable>fmt</replaceable> can be one of many formats including GIF,JPG, PNG, PS, and EPS. The filename should be on the local disk. If there isa pathname, it should be relative to the source file or it won't be found onanyone's system other than yours.</para><para>There are over 300 tags defined in the latest version of docbook, so we won't try to list them all here. Once you get the idea, you can either find examples in the rest of the documentation that do what youneed, or look at Walsh and Muellner's<ulink url="http://www.docbook.org/tdg/en/html/docbook.html">DocBook: The Definitive Guide</ulink>for more details.</para></section> <!-- end of Docbook Basics:Small Tutorial section --><section id="references"><title>References and Other Tutorials</title><para>Docbook was created more than 10 years ago, but since 1999, Docbook has been under the guidance of the DocBook Technical Committee at OASIS. The <ulink url="http://www.oasis-open.org/committees/docbook">OASIS website</ulink>distributes the official DocBook DTDs, and has pages on Docbook history,samples, tools, and runs a few docbook mailing lists.</para><para>Since the Linux Documentation Project uses docbook, they have written somegood tutorial material. In particular the <ulink url="http://www.linuxdoc.org/LDP/LDP-Author-Guide/index.html">LDP Author Guide</ulink>, by Jorge Godoyis very good.</para><para>O'Reilly & Associates publishes a book called <ulinkurl="http://www.docbook.org/tdg/en/html/docbook.html">DocBook: The DefinitiveGuide</ulink> by Norman Walsh and Leonard Muellner. You can buy it or read itonline. Norman Walsh knows what he's talking about, since he is the chair ofthe DocBook Technical Committee. This is good for reference, since it has acomplete list of tags and their grammar.</para><para><ulink url="http://www.ibiblio.org/godoy/sgml/docbook/howto/index.html">DocBookHOWTO, also by Jorge Godoy</ulink></para><para>An article on lwn.net called <ulinkurl="http://lwn.net/2000/features/DocBook">Exploring SGML Docbook</ulink>focuses mostly on installation of tools from scratch: openjade, Norman Walsh'sDSSSL stylesheets, and jade2tex. If you can get the tools from RPMs or whatever package your OS uses, use that instead.</para></section> <!-- end of Docbook Basics:References and Other Tutorials --></chapter><chapter id="conventions"><title>Conventions</title><para>Put a &FIXME; near things that need to be fixed up. A &FIXME; causesthe under construction symbol to appear, like this &FIXME;.</para><para>A &NEEDHELP; indicates, that you need someone's help in order to documentsomething, you don't know for sure. This is mostly the case if you need insideinformation from a developer. The symbol looks like this: &NEEDHELP;.</para><para>Don't get confused because &FIXME; looks the same as &NEEDHELP; -this is just for the moment. When you like to use one of them, think of whatit should mean, instead of how it looks like: Take &FIXME; if you havegreat ideas of what to document, but have no time or no knowledge about it, orjust noticed something wrong or outdated. &NEEDHELP; instead should be usedto request help on something (see above).</para><para>This is just a first try to clearify the difference between&NEEDHELP; and &FIXME;.</para><para>To maintain a consistent spelling, some "problem words" are mentioned here,along with a hint on how to spell them.<table> <title>list of problem words</title> <tgroup cols="2"> <tbody> <row> <entry>Bochs</entry> <entry>Bochs is written with a leading capital letter.</entry> </row> <row> <entry><filename>bochsrc</filename></entry> <entry> This is what the Bochs configuration file should be refered as. It is a good compromise between what is common on Unix and what is possible on Windows (file names starting with a dot aren't easy to create). Remember to use <<ulink url="http://www.docbook.org/tdg/en/html/filename.html">filename</ulink>>bochsrc</filename>. </entry> </row> <row> <entry>CD-ROM</entry> <entry>This abbreviation is written in all capital letters, with a hyphen in between.</entry> </row> <row> <entry>Unix</entry> <entry> Unix is written using a leading capital letter, followed by all lower-case letters. See the <ulink url="http://en.wikipedia.org/wiki/Unix#Branding">Unix entry in Wikipedia</ulink>. </entry> </row>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -