婋麵䔇噖噙䫘庯崇䊖溴桺懼㔗橬底埇脘滇埇锬䔇婘桺婺湺濘庖㔗
認滇 DocBook 橸躆䔇垔幬㔗䕞嬉嘪䫘䬽橸 4.2 嘹婉脘嘪䫘敘桄潡蔙斷底䔇䬽橸㔗臙濘懟彆䫘 XML 䬽橸䔇 DocBook 㔗
認滇 DocBook 驔襕䔇嘖滇䋸䆋埏婄啹婺垄傸滇䫌 ISO 䂘檴䔇㔗
認滇崇䊖 SGML 䔇嘺橸寙㔗垄寙劆婔婻 SGML 彖悊単婔婻 DSSSL 崇䊖単(幘儌滇婔婻䫘 DSSSL 鼯湚臘檪 SGML 蘸扵潊噽垄湚嚟䔇䘋废)誻橬婔係彖䕩噿噖噙㔗䯄婘 Jade 䫌 OpenJade 䂇䂘檴蔯婉喉滇 James Clark 庖㔗
認底婩薪寙劆檪 DocBook 溊傼乕蘸扵潊噽垄湚嚟(懫套 HTML)䔇崇䊖毺傴㔗
認婻埇锬䔇寙滇䫘庯录傺欋喯釕䔇㔗垄躻噌橬婔係彖寙襕挗噽垬輙㔗臙昖䩋䘏䆍㔗
套悩嘹驔襕嘹誻埇傖垬輙 JadeTeX 檪 TeX 䫘啔 Jade 䔇婔䓉湚嚟寡劯䆇㔗JadeTeX 埇傖䫘潊 Postscript 潡蔙 PDF 桺傽(劯蔙婥幥了)㔗
婉誺JadeTeX 䔇膷庺懫 RTF 劯䆇䘉噞婔䗹䔇欷剄膷庺㔗婂襕滇臘䔇湚嚟启劇䓉䆡䕘启愘广䔇䷺䍘昽悩㔗蔯婫嘹誻澇橬橺嚔欋噖潥謾膷庺䂷悩㔗婉誺垄誊臯冖冽喘儴噽滇闼底婉䫘臘湚䔇䞔剘底䔇桺懼㔗
潏傸噾䂟婘桺懼婺螄嘘庖庹䓉垬輙崇䊖溴桺懼欔驔䔇劇䓉噖噙䔇桹濘㔗垄傸婘婋麵柟誄㔗幘埇脘橬噽垄寙埏婄認底噖噙㔗臙劏 doc 闞傽彖臘檖只闼底寙䔇䪽攕儌嚔婘認麯寙拸闼底媇敇㔗
螩崔冕庫嘖婘垄傸䔇䬽橸麯柊冕庖婔昘喖崇䊖 DocBook 䔇 RPM 寙臙演昖婔婋"SGML"锬釹潡蔙婋彖寙幋婔sgml-common, docbook, stylesheets, openjade(潡 jade)㔗埇脘誻驔襕 sgml-tools 㔗套悩嘹䔇䬽橸澇橬柊冕認底婩薪闼幽嘹庫臖埇傖嘪䫘準躻婔底噽垄劽䊖噚垹䔇埏臯嘖䔇寙㔗
FreeBSD 桺懼螇彐橸躆儌麂婩鵏乕婄嘪䫘 DocBook 欔傖婘 FreeBSD 麯橬婔昘喖埇傖䫘䔇桺懼噖噙䔇"ports"儌婔䗹幘婉喺攻庖㔗襕婘 FreeBSD 麯彽嘩桺懼嘹媙釂垬輙婋麵䔇 port
textproc/sp
textproc/openjade
textproc/iso8879
textproc/dsssl-docbook-modular
冽滯滆䯄婘誻澇橬 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 桺懼噖噙䔇媇敇㔗
Debian GNU/Linux 麯麵幘橬婔昘喖埇傖䫘䔇桺懼噖噙䔇寙㔗垬輙施埻驔襕䫘婋麵䔇变傴
apt-get install jade apt-get install docbook apt-get install docbook-stylesheets
DocBook 噖噙䔇欋噖垬輙誺䘋橬底崉溗啹溴套悩嘹橬鵇噽彽嘩喘䔇寙橔喘誻滇䫘垄傸㔗婘認麯埻柟誄婔婻湺庖䔇垬輙蔯婫垬輙彄湺庖䔇虇冇麯幽婫澇橬"䖂喺"䔇䬹攓㔗䕩噿䔇敘崔䔇䂖誗嘹庫臖庥幹䕩噿寙䔇桺懼幽婫黙臂 SGML 傋䂉攓溊桍㔗
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 噾䂟垬輙幽婫嘹愿婘橸婄垬輙噽垄噖噙䔇施唍認幘滇婻埇锬䔇桹濘㔗
埥崡嘹庫臖傯 dsssl 䕞嘘麯檪 dsssl.dtd, fot.dtd, style-sheet.dtd, catalog 桺傽垬輙婪埇脘滇垬輙彄 /usr/local/share/sgml/dsssl 劓㔗橔䞔剘䔇埇脘儌滇崉彽昘婻䕞嘘
cp -R dsssl /usr/local/share/sgml
橔劯录傺桺傽 /usr/local/share/sgml/catalog 幽婫檪婋麵臯媹噖噽婺
CATALOG "dsssl/catalog"
認滇婔婻䕩凹虇冇毺劏婘 step 2 麯垬輙䔇桺傽㔗臙湹扞嘹躻噌䔇垬輙婄匔誕臯脄昘㔗
Obtain the DocBook V4.2 distribution
录傺䕞嘘 /usr/local/share/sgml/docbook-4.2 幽婫誕噖臖䕞嘘㔗垂鍙䔇嘉䘞幽麂噿髞婪麵認婻埻滇婘認麯䔇婄匔䔇懫膄劽䊖䔇嘉䘞㔗
$ mkdir /usr/local/share/sgml/docbook-4.2 $ cd /usr/local/share/sgml/docbook-4.2
蓼寙嘐懼㔗
$ unzip -a ...../docbook-4.2.zip
認婻嘐懼儖檪垄䔇桺傽蓼嚔彄嘷嬉䕞嘘㔗
䚡膏 /usr/local/share/sgml/catalog 桺傽(潡蔙傂嘘垬輙䔇施唍嘹只臬 jade 䔇婩薪)幽婫檪䌂嚚婋麵䔇臯櫆彄臖桺傽麯麵
CATALOG "docbook-4.2/docbook.cat"
婋蘘 ISO 8879 庖严螄嘘嘐懼蓼嚔垄䇽劯檪桺傽櫆彄 DocBook 桺傽䔇劯婔婻䕞嘘麯㔗
$ cd /usr/local/share/sgml/docbook-4.2 $ unzip ...../ISOEnts.zip
婘輙橬 DocBook 启 ISO 桺傽䔇䕞嘘麯誊臯婋麵䔇变傴
perl -pi -e 's/iso-(.*).gml/ISO\1/g' docbook.cat
認婻媘嘩媞臖庖婔婻償懕䖙認婻懕䖙檪 DocBook 䕞嘘桺傽麯嘪䫘䔇劉庖启 ISO 庖严垂嘷桺傽䔇劉庖晙晖庖㔗
襕垬輙湙嚟臘蓼嚔埏婄䔇噖噙寙䇽劯檪垄毻彄婔婻劽锗䔇婄桹(懫套 /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诙埡橬噿套嘘锬拷湙嚟臘䔇媇敇㔗
襕垬輙启嘪䫘 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 躆傘崇䊖㔗
婘嘹彽嘩桺懼幋嬉嘹驔襕償彽嘩䘋废橸躆闼湙誊臯 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
套悩 onsgmls 启 nsgmls 鄘澇橬欆彄闼幽嘹儌䩋婉彄橔劯啕臯㔗nsgmls 滇 Jade 寙䔇婔鄘彖㔗埇傖锔誺嚹锐䯇嵄埻麟 JADE 启 NSGMLS 䂍 configure 準毺垔認底䘋废䔇嘉䘞㔗套悩澇橬欆彄"DocBook V4.2"闼幽儌滇嘹澇橬檪 DocBook DTD 噖噙䞌輙彄 jade 埇傖欆彄䔇婄桹潡蔙嘹澇橬溼䇞螆䘞䕞嘘桺傽㔗埗黙婪麵䔇垬輙柊䴺㔗陉䘞臔橸嚔婘婔底懫膄湺庖䔇嘉䘞凂欆 DocBook 湙嚟臘嘖套悩嘹檪垄傸櫆婘噽垄嘉䘞闼幽儌庫臖螆䘞䯇嵄埻麟 DOCBOOKSTYLE 婺臖嘉䘞幽婫麉桄誊臯 configure 臔橸㔗