PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔鍇嘘G. Documentation媆誕嬉誕

G.2. 噖噙镖

婋麵䔇噖噙䫘庯崇䊖溴桺懼㔗橬底埇脘滇埇锬䔇婘桺婺湺濘庖㔗

DocBook DTD

認滇 DocBook 橸躆䔇垔幬㔗䕞嬉嘪䫘䬽橸 4.2 嘹婉脘嘪䫘敘桄潡蔙斷底䔇䬽橸㔗臙濘懟彆䫘 XML 䬽橸䔇 DocBook 㔗

ISO 8879 character entities

認滇 DocBook 驔襕䔇嘖滇䋸䆋埏婄啹婺垄傸滇䫌 ISO 䂘檴䔇㔗

OpenJade

認滇崇䊖 SGML 䔇嘺橸寙㔗垄寙劆婔婻 SGML 彖悊単婔婻 DSSSL 崇䊖単(幘儌滇婔婻䫘 DSSSL 鼯湚臘檪 SGML 蘸扵潊噽垄湚嚟䔇䘋废)誻橬婔係彖䕩噿噖噙㔗䯄婘 Jade 䫌 OpenJade 䂇䂘檴蔯婉喉滇 James Clark 庖㔗

DocBook DSSSL Stylesheets

認底婩薪寙劆檪 DocBook 溊傼乕蘸扵潊噽垄湚嚟(懫套 HTML)䔇崇䊖毺傴㔗

DocBook2X tools

認婻埇锬䔇寙滇䫘庯录傺欋喯釕䔇㔗垄躻噌橬婔係彖寙襕挗噽垬輙㔗臙昖䩋䘏䆍㔗

JadeTeX

套悩嘹驔襕嘹誻埇傖垬輙 JadeTeX 檪 TeX 䫘啔 Jade 䔇婔䓉湚嚟寡劯䆇㔗JadeTeX 埇傖䫘潊 Postscript 潡蔙 PDF 桺傽(劯蔙婥幥了)㔗

婉誺JadeTeX 䔇膷庺懫 RTF 劯䆇䘉噞婔䗹䔇欷剄膷庺㔗婂襕滇臘䔇湚嚟启劇䓉䆡䕘启愘广䔇䷺䍘昽悩㔗蔯婫嘹誻澇橬橺嚔欋噖潥謾膷庺䂷悩㔗婉誺垄誊臯冖冽喘儴噽滇闼底婉䫘臘湚䔇䞔剘底䔇桺懼㔗

潏傸噾䂟婘桺懼婺螄嘘庖庹䓉垬輙崇䊖溴桺懼欔驔䔇劇䓉噖噙䔇桹濘㔗垄傸婘婋麵柟誄㔗幘埇脘橬噽垄寙埏婄認底噖噙㔗臙劏 doc 闞傽彖臘檖只闼底寙䔇䪽攕儌嚔婘認麯寙拸闼底媇敇㔗

G.2.1. Linux RPM 垬輙

螩崔冕庫嘖婘垄傸䔇䬽橸麯柊冕庖婔昘喖崇䊖 DocBook 䔇 RPM 寙臙演昖婔婋"SGML"锬釹潡蔙婋彖寙幋婔sgml-common, docbook, stylesheets, openjade(潡 jade)㔗埇脘誻驔襕 sgml-tools 㔗套悩嘹䔇䬽橸澇橬柊冕認底婩薪闼幽嘹庫臖埇傖嘪䫘準躻婔底噽垄劽䊖噚垹䔇埏臯嘖䔇寙㔗

G.2.2. FreeBSD 垬輙

FreeBSD 桺懼螇彐橸躆儌麂婩鵏乕婄嘪䫘 DocBook 欔傖婘 FreeBSD 麯橬婔昘喖埇傖䫘䔇桺懼噖噙䔇"ports"儌婔䗹幘婉喺攻庖㔗襕婘 FreeBSD 麯彽嘩桺懼嘹媙釂垬輙婋麵䔇 port 

冽滯滆䯄婘誻澇橬 DocBook V4.2 SGML DTD 䔇 port 㔗嘹驔襕欋噖垬輙垄㔗

冽崔婩薪準躻 /usr/ports/print (tex, jadetex) 嘹幘埇脘嚔垬輙㔗

認底 port 冽埇脘婉嚔敘桄嘉庯 /usr/local/share/sgml/catalog 䔇婂䕞嘘桺傽㔗䇞媺嘹橬婋麵認臯

CATALOG "/usr/local/share/sgml/docbook/4.2/docbook.cat"

套悩嘹婉愿䚡膏桺傽誻埇傖檪䯇嵄埻麟 SGML_CATALOG_FILES 螆䘞婺婔婻喐埙彖锫䔇䕞嘘桺傽彖臘(懫套婪麵闼湙䔇)㔗

嘹埇傖婘 FreeBSD Documentation Project's instructions 麯欆彄敘崔橬噿 FreeBSD 桺懼噖噙䔇媇敇㔗

G.2.3. Debian 寙

Debian GNU/Linux 麯麵幘橬婔昘喖埇傖䫘䔇桺懼噖噙䔇寙㔗垬輙施埻驔襕䫘婋麵䔇变傴

apt-get install jade
apt-get install docbook
apt-get install docbook-stylesheets

G.2.4. 傯溊䘋废欋噖垬輙

DocBook 噖噙䔇欋噖垬輙誺䘋橬底崉溗啹溴套悩嘹橬鵇噽彽嘩喘䔇寙橔喘誻滇䫘垄傸㔗婘認麯埻柟誄婔婻湺庖䔇垬輙蔯婫垬輙彄湺庖䔇虇冇麯幽婫澇橬"䖂喺"䔇䬹攓㔗䕩噿䔇敘崔䔇䂖誗嘹庫臖庥幹䕩噿寙䔇桺懼幽婫黙臂 SGML 傋䂉攓溊桍㔗

G.2.4.1. 垬輙 OpenJade

  1. OpenJade 柊冕庖婔婻 GNU 鼯湚䔇 ./configure; make; make install 彽嘩誺䘋㔗嘹埇傖婘 OpenJade 溊䘋废寙麯欆彄臥䂖喙垹㔗婘 shell 麯

    ./configure --enable-default-catalog=/usr/local/share/sgml/catalog
    make
    make install

    䇞媺嘹螄嘟庖"default catalog"䔇嘉䘞劯麵誻嚔驔襕垄㔗幘埇傖婉䫘濘滯認埖臺嘖滇䘉劯嘪䫘 jade 䔇施唍嘹儌婉冖婉檪䯇嵄埻麟 SGML_CATALOG_FILES 螆䘞婺毺劏臖桺傽䔇嘉䘞㔗套悩 OpenJade 噾䂟垬輙幽婫嘹愿婘橸婄垬輙噽垄噖噙䔇施唍認幘滇婻埇锬䔇桹濘㔗

  2. 埥崡嘹庫臖傯 dsssl 䕞嘘麯檪 dsssl.dtd, fot.dtd, style-sheet.dtd, catalog 桺傽垬輙婪埇脘滇垬輙彄 /usr/local/share/sgml/dsssl 劓㔗橔䞔剘䔇埇脘儌滇崉彽昘婻䕞嘘

    cp -R dsssl /usr/local/share/sgml
  3. 橔劯录傺桺傽 /usr/local/share/sgml/catalog 幽婫檪婋麵臯媹噖噽婺

    CATALOG "dsssl/catalog"

    認滇婔婻䕩凹虇冇毺劏婘 step 2 麯垬輙䔇桺傽㔗臙湹扞嘹躻噌䔇垬輙婄匔誕臯脄昘㔗

G.2.4.2. 垬輙 DocBook DTD 噖噙䞌

  1. Obtain the DocBook V4.2 distribution

  2. 录傺䕞嘘 /usr/local/share/sgml/docbook-4.2 幽婫誕噖臖䕞嘘㔗垂鍙䔇嘉䘞幽麂噿髞婪麵認婻埻滇婘認麯䔇婄匔䔇懫膄劽䊖䔇嘉䘞㔗

    $ mkdir /usr/local/share/sgml/docbook-4.2
    $ cd /usr/local/share/sgml/docbook-4.2
  3. 蓼寙嘐懼㔗

    $ unzip -a ...../docbook-4.2.zip

    認婻嘐懼儖檪垄䔇桺傽蓼嚔彄嘷嬉䕞嘘㔗

  4. 䚡膏 /usr/local/share/sgml/catalog 桺傽(潡蔙傂嘘垬輙䔇施唍嘹只臬 jade 䔇婩薪)幽婫檪䌂嚚婋麵䔇臯櫆彄臖桺傽麯麵

    CATALOG "docbook-4.2/docbook.cat"
  5. 婋蘘 ISO 8879 庖严螄嘘嘐懼蓼嚔垄䇽劯檪桺傽櫆彄 DocBook 桺傽䔇劯婔婻䕞嘘麯㔗

    $ cd /usr/local/share/sgml/docbook-4.2
    $ unzip ...../ISOEnts.zip
  6. 婘輙橬 DocBook 启 ISO 桺傽䔇䕞嘘麯誊臯婋麵䔇变傴

    perl -pi -e 's/iso-(.*).gml/ISO\1/g' docbook.cat

    認婻媘嘩媞臖庖婔婻償懕䖙認婻懕䖙檪 DocBook 䕞嘘桺傽麯嘪䫘䔇劉庖启 ISO 庖严垂嘷桺傽䔇劉庖晙晖庖㔗

G.2.4.3. 垬輙 DocBook 䔇 DSSSL 湙嚟臘

襕垬輙湙嚟臘蓼嚔埏婄䔇噖噙寙䇽劯檪垄毻彄婔婻劽锗䔇婄桹(懫套 /usr/local/share/sgml)㔗嘐懼嚔躻媘䫘潊婔婻床䕞嘘㔗

$ gunzip docbook-dsssl-1.xx.tar.gz
$ tar -C /usr/local/share/sgml -xf docbook-dsssl-1.xx.tar

嘹幘埇傖婘 /usr/local/share/sgml/catalog 麯彽嘩婩䫘䔇䕞嘘溇䕞

CATALOG "docbook-dsssl-1.xx/catalog"

啹婺湙嚟臘埻寡鵏乕啹溴橬施唍崔垂黯庹婻䬽橸幘毺喘PostgreSQL 幽婉嘪䫘認婻臘釹㔗埗黙䆹G.2.5诙埡橬噿套嘘锬拷湙嚟臘䔇媇敇㔗

G.2.4.4. 垬輙 JadeTeX

襕垬輙启嘪䫘 JadeTeX 儌驔襕婔喖脘䫘䔇 TeX 启 LaTeX2e 寙拸櫇毕䔇噖噙启商嘵寙㔗 Babel 㔕AMS 庖嘷 㔕AMS-LaTeX 㔕PSNFSS 欷匘㔕"the 35 fonts"噖噙䞌㔕䫘庯䫘潊 PostScript 䔇 dvips 䘋废垟寙 fancyhdr, hyperref, minitoc, url, ot2enc 欔橬認底嘹鄘埇傖婘嘹橔誏䔇 CTAN 阩償䆍䗹欆彄㔗嘺橸 TeX 係䂘䔇垬輙誩誩轙庺庖認傘傋䂉䔇评啘㔗嘹庫臖埇傖婘傂嘘埇傖誊臯 TeX 䔇係䂘婪欆彄庯誕彽寙㔗

婘嘹嚔哋嘪䫘 JadeTeX 崇䊖 PostgreSQL 桺懼幋嬉嘹驔襕嵂崓 TeX 䔇喙鄘昄扞䂷悇䔇儺凩㔗噿庯認底庋愙䔇䂖誗埇傖婘 JadeTeX 䔇垬輙毺凚麯欆彄㔗

婔斥垯潊庖認底嘹儌埇傖垬輙 JadeTeX 庖

$ gunzip jadetex-xxx.tar.gz
$ tar xf jadetex-xxx.tar
$ cd jadetex
$ make install
$ mktexlsr

橔劯婴準驔襕傖 root 躆傘崇䊖㔗

G.2.5. configure 演敋

婘嘹彽嘩桺懼幋嬉嘹驔襕償彽嘩䘋废橸躆闼湙誊臯 configure 臔橸㔗演昖誊臯䂷儆崇䔇膷庺庫臖䩋蕙準償認湙

checking for onsgmls... onsgmls
checking for openjade... openjade
checking for DocBook V4.2... yes
checking for DocBook stylesheets... /usr/lib/sgml/stylesheets/nwalsh-modular
checking for sgmlspl... sgmlspl

套悩 onsgmlsnsgmls 鄘澇橬欆彄闼幽嘹儌䩋婉彄橔劯啕臯㔗nsgmls 滇 Jade 寙䔇婔鄘彖㔗埇傖锔誺嚹锐䯇嵄埻麟 JADENSGMLS 䂍 configure 準毺垔認底䘋废䔇嘉䘞㔗套悩澇橬欆彄"DocBook V4.2"闼幽儌滇嘹澇橬檪 DocBook DTD 噖噙䞌輙彄 jade 埇傖欆彄䔇婄桹潡蔙嘹澇橬溼䇞螆䘞䕞嘘桺傽㔗埗黙婪麵䔇垬輙柊䴺㔗陉䘞臔橸嚔婘婔底懫膄湺庖䔇嘉䘞凂欆 DocBook 湙嚟臘嘖套悩嘹檪垄傸櫆婘噽垄嘉䘞闼幽儌庫臖螆䘞䯇嵄埻麟 DOCBOOKSTYLE 婺臖嘉䘞幽婫麉桄誊臯 configure 臔橸㔗


劯锔饡釕嬉誕
DocBook婪婔亓彽嘩桺懼