¿ÉÄÜ»¹ÓÐһЩÕâЩ¹¤¾ßµÄÆäËû·¢²¼°ü£®ÇëÏòÎĵµÓʼþÁÐ±í±¨¸æ°ü״̬£¬ÎÒÃǽ«ÔÚÕâÀï°üº¬ÄÇЩÐÅÏ¢£®
°²×° Norm Walsh µÄ×îзç¸ñ±í¡£È¡¾öÓÚ RPM µÄоɣ¬×îеķç¸ñ±í¿ÉÄÜ±È RPM Àï°üº¬µÄÒª¸Ä½øÁËһЩ¡£
¸üÐÂÄãµÄ src/Makefile.custom ÒÔ°üº¬Ö¸Ïò·ç¸ñ±íµÄ HSTYLE ºÍ PSTYLE ¶¨Òå¡£
% cd /usr/ports/devel/gmake && make install % cd /usr/ports/textproc/docproj && make install % cd /usr/ports/textproc/docbook && make install % cd /usr/ports/textproc/dsssl-docbook-modular && make installÉèÖû·¾³±äÁ¿ÒÔ·ÃÎÊ jade ¹¤¾ß¼¯¡£
×¢Ò⣺ÕâЩ¶ÔÓÚ postgresql.org ÄÇ̨ FreeBSD »úÆ÷ÊDz»ÐèÒªµÄ£¬Òò´ËÄãÒ²¿ÉÄܲ»ÐèÒª×öÕâЩÊÂÇé¡£
export SMGL_ROOT=/usr/local/share/sgml SGML_CATALOG_FILES=/usr/local/share/sgml/jade/catalog SGML_CATALOG_FILES=/usr/local/share/sgml/html/catalog:$SGML_CATALOG_FILES SGML_CATALOG_FILES=/usr/local/share/sgml/iso8879/catalog:$SGML_CATALOG_FILES SGML_CATALOG_FILES=/usr/local/share/sgml/transpec/catalog:$SGML_CATALOG_FILES SGML_CATALOG_FILES=/usr/local/share/sgml/docbook/catalog:$SGML_CATALOG_FILES export SGML_CATALOG_FILES£¨ÕâÊÇ sh/bash Óï·¨£»¸ù¾ÝʵÇéΪ csh/tcsh ×öµ÷Õû£©¡£
Make ÐèҪһЩÌØÊâµÄ²ÎÊý£¬»òÕßÄãÒª°ÑÕâЩ¼ÓÈëÄãµÄ Makefile.custom À
HSTYLE=/usr/local/share/sgml/docbook/dsssl/modular/html/ PSTYLE=/usr/local/share/sgml/docbook/dsssl/modular/print/
µ±È»£¬ÄãÒªÓà gmake ¶ø²»Ö»ÊǼòµ¥µÄ 'make' À´ÖÆ×÷¡£
°²×° Debian °ü
apt-get install jade apt-get install docbook apt-get install docbook-stylesheets°²×°×îеķç¸ñ±í¡£
apt-get install unzip´Ó http://www.nwalsh.com/docbook/dsssl ץȡ×îеķç¸ñ±í²¢ÇÒ½âѹËõµ½Ò»¸öλÖ㨿ÉÄÜÊÇ /usr/share£©¡£
HSTYLE= /usr/share/docbook/html PSTYLE= /usr/share/docbook/print
»ñÈ¡ SGML ºÍ DocBook ¹¤¾ßµÄ×î¼òµ¥·½·¨¿ÉÄÜÊÇ´Ó sgmltools »ñÈ¡ sgmltools¡£sgmltools ÐèÒª GNU °æ±¾µÄ m4¡£ÒªºËʵÄãÓµÓÐÕýÈ·µÄ m4 °æ±¾£¬¼üÈë
gnum4 --versionÈç¹ûÄã°²×° GNU m4£¬°ÑËü×°³ÉÃûΪ gnum4£¬ÕâÑù sgmltools ½«ÄÜÕÒµ½Ëü¡£ÔÚ°²×°¹ýºó£¬Ä㽫ÓÐ sgmltools£¬jade ºÍ Norm Walsh µÄ DocBook ·ç¸ñ±í¡£ÏÂÃæµÄ²½ÖèÊÇ·Ö±ðÓÃÓÚ°²×°ÕâЩ¹¤¾ßµÄ¡£
Ò»¸ö¿ÉÓÃµÄ Emacs 19.19 »ò¸üа汾
Ò»¸öÓÃÓÚ UNIX µÄ unzip ³ÌÐò, ÓÃÒÔ½â°ü
James Clark µÄ Jade £¨ÔÚÎļþ jade1_1.zip ÀïµÄ°æ±¾ 1.1 ÊÇд×÷µÄʱºò×îеİ汾£©
Norman Walsh µÄ Modular Stylesheets £¨×î³õÓÃÓÚÖÆ×÷ÕâЩÎĵµµÄÊÇ°æ±¾ 1.19£©
Lennart Staflin µÄ PSGML £¨Ð´×÷µÄʱºò¿ÉÓõÄ×îа汾ÊÇ psgml-1.0.1.tar.gz ÀïµÄ 1.0.1£©
ÔÚÒ»¸öºÏÊʵÄλÖà Unzip £¨½âѹËõ£©·¢²¼°ü£®×öÕâЩµÄÃüÁî¿´ÆðÀ´Ïó
unzip -aU jade1_1.zipJade ²»ÊÇÓà GNU Autoconf ÖÆ×÷µÄ£¬ËùÒÔÄãÐèÒª×Ô¼º±à¼ Makefile¡£ÒòΪ James Clark °ÑËûµÄ¹¤¾ß×öµÃºÜÈÝÒ×´¦ÀíÕâЩÊÂÇ飬ËùÒÔÄã×îºÃÔÚ Jade ·¢²¼µÄÖ÷Ŀ¼Ï½¨Á¢Ò»¸öÖÆ×÷Ŀ¼£¨Ò²ÐíÓÃÄãµÄ»úÆ÷µÄÌåϵÃüÃû£©£¬°ÑÖ÷Ŀ¼µÄ Makefile ¿½±´µ½Õâ¸öλÖã¬ÔÚÕâÀï±à¼Ö®£¬È»ºóÔÚ¸ÃĿ¼ÏÂÔËÐÐ make¡£
²»¹ý£¬¿ÉÒÔ²»±à¼ Makefile£®ÔÚÖ÷Ŀ¼ÀïÓÐÒ»¸öÎļþÃûΪ Makefile.jade£¬Æä×÷ÓÃÊÇÖÆ×÷ Jade£¨Ïà¶ÔÓÚÖ»ÊÇÖÆ×÷ Jade ÒÐÀµµÄ SGML ·ÖÎöÆ÷¹¤¾ß SP£©Ê±¿ÉÒÔÓà make -f Makefile.jade£®²»¹ýÎÒÃǽ¨Òé²»ÒªÕâÑù×ö£¬ÒòΪÕâÑùÄãÐèÒªÐÞ¸Ä±È Makefile.jade Àï¸ü¶àµÄ¶«Î÷£¬ËùÒÔ²»¹ÜÔõÑùÄ㶼Ҫ±à¼ÆäÖÐÖ®Ò»£¨Òë×¢£ºMakefile Makefile.jade£©¡£
±à¼ Makefile£¬ÔĶÁ James µÄÖ¸µ¼²¢ÇÒÐÞ¸ÄÄãÐèÒªÐ޸ĵĵط½£®ÓÐÐí¶à±äÁ¿ÐèÒªÉèÖã®ÏÂÃæÊÇ×îÖØÒªµÄһЩ£¬ÒÔ¼°ËüÃǵĵäÐ͵ÄÖµ£º
prefix = /usr/local XDEFINES = -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" XLIBS = -lm RANLIB = ranlib srcdir = .. XLIBDIRS = grove spgrove style XPROGDIRS = jade×¢Òâ SGML Ö§³ÖÎļþȱʡ·¾¶µÄÉùÃ÷££Äã¿ÉÄÜÐèÒªÕë¶ÔÄã×Ô¼ºµÄ°²×°×öһЩ¸Ä¶¯£®Èç¹ûÄãµÄϵͳ²»ÐèÒªÉÏÃæÄÇЩ¹ØÓÚÊýѧ¿âºÍ ranlib ÃüÁîµÄÉèÖ㬽ö½ö°ÑËüÃÇÁôÔÚ Makefile À
¼üÈë make ÖÆ×÷ Jade ºÍ¸÷ÖÖ¸÷Ñù SP ¹¤¾ß£®
Ò»µ©Íê³ÉÈí¼þµÄÖÆ×÷£¬make install ½«Íê³É°²×°£®
ÄãÐèÒª°ÑÖÆ×÷ DocBookDTD ¹¤¾ßµÄÎļþ·Åµ½ÄãÖÆ×÷ Jade µÄĿ¼ÀÈç¹ûÄã°´ÕÕÎÒÃÇÉÏÃ潨ÒéµÄ»°£¬Ó¦¸ÃÊÇ /usr/local/share/sgml/¡£³ýÁË DocBook ÎļþÒÔÍ⣬Ä㻹ÐèÒªÓÐÒ»¸ö¾ÍλµÄ catalog Îļþ£¬ÓÃÓÚÎĵµÀàÐÍÉùÃ÷ºÍ¸ÃĿ¼Àïʵ¼ÊÎļþµÄÍⲿʵÌå²Î¿¼£®Ä㻹ҪÓÐ ISO×Ö·û¼¯Ó³ÉäÒÔ¼°¿ÉÄÜ»¹ÐèÒªÒ»¸ö»ò¸ü¶à¸ö°æ±¾µÄHTML£®
CATALOG /usr/local/share/sgml/CATALOGÎļþ CATALOG Ó¦¸Ã°üº¬ÈýÖÖÀàÐ͵ÄÐУ®µÚÒ»ÖÖÊÇ£¨¿ÉÑ¡µÄ£©SGML ÉùÃ÷£¬ÕâÑù£º
SGMLDECL docbook.dclÏÂÒ»²½£¬±ØÐë½âÊ͸÷ÖÖ¸÷ÑùµÄ DTD µÄ²Î¿¼ºÍʵÌåÎļþ£®¶ÔÓÚ DocBook Îļþ£¬ÕâЩ¿´ÆðÀ´ÏóÏÂÃ漸ÐУº
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" docbook.dtd PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" cals-tbl.dtd PUBLIC "-//Davenport//ELEMENTS DocBook Information Pool V3.0//EN" dbpool.mod PUBLIC "-//Davenport//ELEMENTS DocBook Document Hierarchy V3.0//EN" dbhier.mod PUBLIC "-//Davenport//ENTITIES DocBook Additional General Entities V3.0//EN" dbgenent.modµ±È»£¬Ò»¸ö°üº¬ÕâЩµÄÎļþºÍ DocBook¹¤¾ßÒ»Æð·¢²¼£®×¢ÒâÕâЩÐеÄ×îºóÒ»ÏÊÇÎļþÃû£¬ÕâÀï¸ø³öµÄûÓз¾¶£®Äã¿ÉÒÔ°ÑÕâЩÎļþ·Åµ½ÄãµÄ SGML Ŀ¼µÄ×ÓĿ¼Àµ±È»»¹ÒªÐÞ¸Ä CATALOG ÎļþÀïµÄÒýÓã®DocBook »¹ÒýÓÃÁË ISO×Ö·û¼¯ÊµÌ壬ËùÒÔÄ㻹Ҫ»ñÈ¡ºÍ°²×°ÕâЩ¶«Î÷£¨ËüÃÇ¿ÉÒÔͨ¹ý¼¸ÖÖ²»Í¬Í¾¾¶»ñÈ¡£¬²¢ÇÒ¿ÉÒÔÔÚÉÏÃæÁгöµÄ URL ÀïºÜÈÝÒ×µÄÕÒµ½£©£¬ÒÔ¼°ËùÓÐÕâЩ¶«Î÷µÄĿ¼ʵÌ壬ÀàËÆ£º
PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN" ISO/ISOlat1×¢ÒâÕâÀïÎļþÃûÊÇÈçºÎ°üº¬Ò»¸öĿ¼ÃûµÄ£¬ÕâÀïÏÔʾÁËÎÒÃÇ°Ñ ISO ʵÌåÎļþ·Åµ½ÁËÒ»¸öÃûΪ ISO µÄ×ÓĿ¼£®Í¬Ñù£¬ÕýÈ·µÄĿ¼Èë¿ÚÓ¦¸Ã¶ÔÓ¦Äã»ñÈ¡µÄ¹¤¾ßʵÌ壮
°²×° Norman µÄ·ç¸ñ±í£¬Ö»ÐèÒªÔÚºÏÊʵÄλÖüòµ¥µÄ½âѹËõ·¢²¼µÄ¹¤¾ß£®Ò»¸ö´¦ÀíÕâЩÊÂÇéµÄºÏÊʵÄλÖÃÊÇ /usr/local/share£¬°Ñ¹¤¾ß·Åµ½ÔÚ /usr/local/share/docbook Ŀ¼Ê÷ϵÄĿ¼À´¦ÀíÕâЩµÄÃüÁî¿´ÆðÀ´½«Ïó
unzip -aU db119.zip²âÊÔ°²×°³É¹¦Óë·ñµÄÒ»¸ö·½·¨ÊÇÖÆ×÷ PostgreSQLÓû§ÊÖ²áµÄHTML ºÍ RTF ÐÎʽ£®
jade -t sgml -d /usr/local/share/docbook/html/docbook.dsl -D ../graphics postgres.sgmlbook1.htm ÊÇÊä³öµÄ¶¥¼¶½Úµã¡£
Éú³É RTF Êä³ö£¬ÎªÄã³£ÓõÄ×Ö´¦ÀíϵͳºÍ´òӡϵͳ×ö×¼±¸£¬¼üÈ룺
jade -t rtf -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml
½â¿ª·¢²¼µÄѹËõÎļþ£¬ÔËÐÐ configure£¬make ºÍ make install °Ñ byte-compiled£¨×Ö½Ú±àÒ룩ÎļþºÍÐÅÏ¢¿â¾Íλ£®
(setq load-path (cons "/usr/local/share/emacs/site-lisp/psgml" load-path)) (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)Èç¹ûÄãÔڱ༠HTML ʱҲÐèҪʹÓà PSGML£¬ÔÙ¼ÓÒ»ÐУº
(setq auto-mode-alist (cons '("\\.s?html?\\'" . sgml-mode) auto-mode-alist))ÓÐÒ»¸ö¹ØÓÚ PSGML µÄºÜÖØÒªµÄÎÊÌ⣺ËüµÄ×÷Õß¼ÙÉèÄãµÄÖ÷ SGMLDTD Ŀ¼ÊÇ /usr/local/lib/sgml£®Èç¹ûÈçÎÒÃDZ¾ÕÂÀý×ÓËù˵£¬ÄãÓõÄÊÇ /usr/local/share/sgml£¬Äã±ØÐëΪ´Ë×öЩ²¹³¥£®
ÄãÉõÖÁ¿ÉÒÔÔÚ±àÒëºÍ°²×° PSGML Ç°±à¼Ô´Îļþ psgml.el£¬°ÑдËÀµÄ·¾¶Ó²´úÂë¸Ä³ÉÄã×Ô¼ºµÄȱʡֵ£®
Òª°²×°ºÍʹÓÃJadeTeX£¬ÄãÐèÒªÓÐÒ»¸ö¿ÉÓõÄTeX ºÍLaTeX2e °²×°£¬°üÀ¨Ö§³ÖµÄ¹¤¾ß£¨tools£©ºÍͼÐΣ¨graphics£©°ü£¬Babel£¬AMS ×ÖÌå ºÍ AMS-LaTeX£¬PSNFSS ££"35ÖÖ×ÖÌå" £¨"the 35 fonts"£©µÄÀ©Õ¹ºÍ°é¹¤¾ß£¬ÓÃÓÚÉú³É PostScript µÄ dvips ³ÌÐò£¬ºê°ü fancyhdr£¬hyperref£¬minitoc£¬url ºÍ ot2enc£¬µ±È»»¹ÓÐ JadeTeX ±¾Éí£®ËùÓÐÕâЩ¿ÉÒÔÔÚÀëÄã×î½üµÄ CTAN Õ¾µãÕÒµ½£®
JadeTeX µ½Ð´×÷ʱΪֹ»¹Ã»ÓÐËæ×ÅһЩ·¢²¼´øÓа²×°Ïòµ¼£¬µ«ÊÇÓÐÒ»¸ö makefile ÏÔʾÁËÐèÒªµÄ¶«Î÷£®Ëü»¹°üÀ¨Ò»¸öĿ¼ cooked£¬ÔÚÕâÀïÄã»á·¢ÏÖһЩÄãÐèÒªµÄºêÈí¼þ°ü£¬µ«²»ÊÇÈ«²¿£¬²¢ÇÒÒ²²»ÍêÕû££ÖÁÉÙÎÒÃÇ×îºóÒ»´Î¿´µ½µÄÊÇÕâÑùµÄ£®
ÔÚÖÆ×÷ jadetex.fmt ¸ñʽÎļþ֮ǰ£¬Äã¿ÉÄÜÐèÒª±à¼ jadetex.ltx Îļþ£¬ÒÔ±ã¸ü¸Ä Babel µÄÅäÖÃÒÔÊʺÏÄãµÄ·¾¶£®ÒªÐ޸ĵÄÐп´ÆðÀ´Ïó
\RequirePackage[german,french,english]{babel}[1997/01/23]²¢ÇÒºÜÏÔÈ»ÄãÓ¦¸ÃÖ»ÁгöÄãʵ¼ÊÉÏÐèÒªµÄÓïÑÔ£¬È»ºó°Ñ Babel ÅäÖóÉÄÇÑù£®
ÔÚ JadeTeX Äܹ¤×÷ºó£¬ÄãÓ¦¸Ã¿ÉÒÔÓÃÏÂÃæÃüÁîΪPostgreSQLÊÖ²áÉú³ÉºÍ¸ñʽ»¯TeXÊä³ö£¨ÏóÉÏÃ棬ÔÚ doc/src/sgml Ŀ¼ÀïÃ棩
jade -t tex -d /usr/local/share/docbook/print/docbook.dsl -D ../graphics postgres.sgml jadetex postgres.tex jadetex postgres.tex dvips postgres.dviµ±È»£¬Äã×öÕâЩµÄʱºò£¬TeX»áÔÚµÚ¶þ´ÎÔËÐÐʱͣÏÂÀ´£¬²¢ÇÒ¸æËßÄ㳬³öÆäÈÝÁ¿ÁË£®¾ÝÎÒÃÇËùÖª£¬ÕâÊÇÓÉÓÚ JadeTeX Éú³É½»²æÒýÓÃÐÅÏ¢Ôì³ÉµÄ£®µ±È» TeX ¿ÉÒÔ±àÒëΪ´óµÄÊý¾Ý½á¹¹³ß´ç£®ÕâЩµÄϸ½ÚÎÊÌâ¸ù¾ÝÄãµÄ°²×°²»Í¬¶øÒì¡£