|
Lines 50-78
Link Here
|
| 50 |
¸Ë¤F³oÓ port ¤§«á¡A¡yÀ³¸Ó¡z´N·|¦Û°Ê¤U¸ü¡B¦w¸Ë¥»³¹©Ò·|¤¶²Ð¨ìªº¤u¨ã¤F¡C |
50 |
¸Ë¤F³oÓ port ¤§«á¡A¡yÀ³¸Ó¡z´N·|¦Û°Ê¤U¸ü¡B¦w¸Ë¥»³¹©Ò·|¤¶²Ð¨ìªº¤u¨ã¤F¡C |
| 51 |
Yn³B²z¤¤¤åªº¸Ü¡A«ØÄ³¦A¸Ë <filename role="package">chinese/docproj</filename> ·|¤ñ¸û¦n¡C</para> |
51 |
Yn³B²z¤¤¤åªº¸Ü¡A«ØÄ³¦A¸Ë <filename role="package">chinese/docproj</filename> ·|¤ñ¸û¦n¡C</para> |
| 52 |
|
52 |
|
| 53 |
<para>One of the packages that you might need is the JadeTeX macro set. |
53 |
<para>¦b³o¨Ç packages ·í¤¤¡A§A¥i¯à·|»Ýn¨Ï¥Î JadeTeX ³oÓ macro ³]©w¡A |
| 54 |
In turn, this macro set requires &tex; to be installed. &tex; is a large |
54 |
¤@¥¹¿ï¾Ü¨Ï¥Î¸Ó macro ªº¸Ü¡A¥¦·|±µµÛ¥h¸Ë &tex;¡C¥Ñ©ó &tex; ºâ¬OÓÆZ¤jªº®M¥ó¡A |
| 55 |
package, and you only need it if you want to produce Postscript or PDF |
55 |
°£«D§A»Ýn¿é¥X Postscript ©Î PDF ®æ¦¡¡A§_«h´N¤£¥²¸Ë¤F¡C</para> |
| 56 |
output.</para> |
56 |
|
| 57 |
|
57 |
<para>©Ò¥H½Ð¦Ò¼{¬O§_n¸`¬Ù½sͮɶ¡¡BµwºÐªÅ¶¡¡A¥H§P©wn¤£n¸Ë JadeTeX (¥H¤Î &tex;) |
| 58 |
<para>To save yourself time and space you must specify whether or not you |
58 |
¤F¡CYn¤@¨Ö¸Ë°_¨Óªº¸Ü¡G</para> |
| 59 |
want JadeTeX (and therefore &tex;) installed when you install this port. |
|
|
| 60 |
Either do:</para> |
| 61 |
|
59 |
|
| 62 |
<screen>&prompt.root; <userinput>make JADETEX=yes install</userinput></screen> |
60 |
<screen>&prompt.root; <userinput>make JADETEX=yes install</userinput></screen> |
| 63 |
|
61 |
|
| 64 |
<para>or</para> |
62 |
<para>©Î¬O¡A¤£¸Ëªº¸Ü¡G</para> |
| 65 |
|
63 |
|
| 66 |
<screen>&prompt.root; <userinput>make JADETEX=no install</userinput></screen> |
64 |
<screen>&prompt.root; <userinput>make JADETEX=no install</userinput></screen> |
| 67 |
|
65 |
|
| 68 |
<para>as necessary. Alternatively you may install <filename |
66 |
<para>©ÎªÌ¡A¤]¥i¥H¿ï¾Ü <filename |
| 69 |
role="package">textproc/docproj-jadetex</filename> or <filename |
67 |
role="package">textproc/docproj-jadetex</filename> ©Î¬O <filename |
| 70 |
role="package">textproc/docproj-nojadetex</filename>. These slave ports |
68 |
role="package">textproc/docproj-nojadetex</filename> ³o¨âÓ¤§¤@¨Ó¸Ë¡A |
| 71 |
define the <makevar>JADETEX</makevar> variable for you, therefore they |
69 |
¥¦Ì³£¬O¤w¨Æ¥ý³]©w <makevar>JADETEX</makevar> Åܼƪº slave ports¡A |
| 72 |
will install the same suite of applications on your machine. |
70 |
³£¤@¼Ë·|¸Ë docproj ®t§O¶È¦b©ó¦³¨S¦³ JadeTeX ¦Ó¤w¡C |
| 73 |
Note that you can produce only HTML or ASCII |
71 |
½Ðª`·N¡GY¥un¿é¥X HTML ©Î ASCII ®æ¦¡¤å¥ó¡A¨º´N¤£¥Î¸Ë <application>JadeTeX</application>¡A |
| 74 |
text output if you do not install <application>JadeTeX</application>. |
72 |
¦ÓYn¿é¥X PostScript¡BPDF ®æ¦¡¡A´N»Ýn¸Ë &tex; ¤~¦æ¡C</para> |
| 75 |
PostScript or PDF output require &tex;.</para> |
|
|
| 76 |
</tip> |
73 |
</tip> |
| 77 |
|
74 |
|
| 78 |
<sect1 id="tools-mandatory"> |
75 |
<sect1 id="tools-mandatory"> |
|
Lines 81-90
Link Here
|
| 81 |
<sect2> |
78 |
<sect2> |
| 82 |
<title>³nÅé</title> |
79 |
<title>³nÅé</title> |
| 83 |
|
80 |
|
| 84 |
<para>These programs are required before you can usefully work with the |
81 |
<para>³o¨Ç³£¬O¦b¶i¦æ FreeeBSD ¤å¥óp¹º®É©Ò·|»Ýn¥Î¤Wªº¤u¨ãµ{¦¡¡A |
| 85 |
FreeBSD documentation, and they will allow you to convert the |
82 |
¦Ó¥B¥i¥H¥Î¨ÓÂà´«¤å¥ó¬° HTML¡Bplain text¥H¤Î RTF ®æ¦¡¡C³o¨Ç¬ÛÃö®M¥ó¦b |
| 86 |
documentation to HTML, plain text, and RTF formats. They are all |
83 |
<filename role="package">textproc/docproj</filename> ³£¤w¸g¥þ³¡¦¬¿ý¤F¡C</para> |
| 87 |
included in <filename role="package">textproc/docproj</filename>.</para> |
|
|
| 88 |
|
84 |
|
| 89 |
<variablelist> |
85 |
<variablelist> |
| 90 |
<varlistentry> |
86 |
<varlistentry> |
|
Lines 92-99
Link Here
|
| 92 |
(<filename role="package">textproc/jade</filename>)</term> |
88 |
(<filename role="package">textproc/jade</filename>)</term> |
| 93 |
|
89 |
|
| 94 |
<listitem> |
90 |
<listitem> |
| 95 |
<para>A DSSSL implementation. Used for converting marked up |
91 |
<para>DSSSL ³W®æªº¹ê§@µ{¦¡¡A¥i¥Î¨Ó§â¼Ð°O»y¨¥ªº¤å¥ó(marked up)Âà´«¬°¨ä¥L®æ¦¡¡A¹³¬O¡GHTML ¤Î &tex;¡C</para> |
| 96 |
documents to other formats, including HTML and &tex;.</para> |
|
|
| 97 |
</listitem> |
92 |
</listitem> |
| 98 |
</varlistentry> |
93 |
</varlistentry> |
| 99 |
|
94 |
|
|
Lines 102-110
Link Here
|
| 102 |
(<filename role="package">www/tidy</filename>)</term> |
97 |
(<filename role="package">www/tidy</filename>)</term> |
| 103 |
|
98 |
|
| 104 |
<listitem> |
99 |
<listitem> |
| 105 |
<para>An HTML <quote>pretty printer</quote>, used to reformat some of the |
100 |
<para>HTML <quote>pretty printer</quote>¡A¥i¥Î¨Ó§â¦Û°Ê²£¥Íªº HTML ¤º®e¾ã²z±o§ó©ö¾\Ū¡B¥H«K¤é«áºûÅ@¡C</para> |
| 106 |
automatically generated HTML so that it is easier to |
|
|
| 107 |
follow.</para> |
| 108 |
</listitem> |
101 |
</listitem> |
| 109 |
</varlistentry> |
102 |
</varlistentry> |
| 110 |
|
103 |
|
|
Lines 113-120
Link Here
|
| 113 |
(<filename role="package">www/links</filename>)</term> |
106 |
(<filename role="package">www/links</filename>)</term> |
| 114 |
|
107 |
|
| 115 |
<listitem> |
108 |
<listitem> |
| 116 |
<para>A text-mode WWW browser that can also convert |
109 |
<para>¤å¦r¾Þ§@¼Ò¦¡ªº WWW ÂsÄý¾¹(browser)¥i¥H§â HTML ÀÉÂର plain text ®æ¦¡¡C</para> |
| 117 |
HTML files to plain text.</para> |
|
|
| 118 |
</listitem> |
110 |
</listitem> |
| 119 |
</varlistentry> |
111 |
</varlistentry> |
| 120 |
|
112 |
|
|
Lines 123-149
Link Here
|
| 123 |
(<filename role="package">graphics/peps</filename>)</term> |
115 |
(<filename role="package">graphics/peps</filename>)</term> |
| 124 |
|
116 |
|
| 125 |
<listitem> |
117 |
<listitem> |
| 126 |
<para>Some of the documentation includes images, some of which are |
118 |
<para>¤å¥ó¤¤¦³¨Ç¹Ï¬O¦s¦¨ EPS ®æ¦¡ªº¡A³o¨Ç¥²¶·nÂର PNG ®æ¦¡¡A |
| 127 |
stored as EPS files. These must be converted to PNG before most |
119 |
¤~¯àÅý¤@¯ëÂsÄý¾¹¥i¥H¥¿±`Æ[¬Ý¡C</para> |
| 128 |
web browsers will display them.</para> |
|
|
| 129 |
</listitem> |
120 |
</listitem> |
| 130 |
</varlistentry> |
121 |
</varlistentry> |
| 131 |
</variablelist> |
122 |
</variablelist> |
| 132 |
</sect2> |
123 |
</sect2> |
| 133 |
|
124 |
|
| 134 |
<sect2> |
125 |
<sect2> |
| 135 |
<title>DTDs ¤Î Entities</title> |
126 |
<title>DTD ¤Î Entity</title> |
| 136 |
|
127 |
|
| 137 |
<para>These are the DTDs and entity sets used by the FDP. They need to |
128 |
<para>¥Ñ©ó FDP ¦³¥Î¨ì³\¦h DTD ¸ò Entity¡A¦]¦¹¦b¶}¤u«e¡An¸Ë¤W³o¨Ç¤~¦æ¡C</para> |
| 138 |
be installed before you can work with any of the documentation.</para> |
|
|
| 139 |
|
129 |
|
| 140 |
<variablelist> |
130 |
<variablelist> |
| 141 |
<varlistentry> |
131 |
<varlistentry> |
| 142 |
<term>HTML DTD (<filename role="package">textproc/html</filename>)</term> |
132 |
<term>HTML DTD (<filename role="package">textproc/html</filename>)</term> |
| 143 |
|
133 |
|
| 144 |
<listitem> |
134 |
<listitem> |
| 145 |
<para>HTML is the markup language of choice for the World Wide |
135 |
<para>HTML ¬O¥Î©ó WWW ªº¼Ð°O»y¨¥¡A¥B¤]¬O FreeBSD ºô¶©Ò¨Ï¥Îªº®æ¦¡¡C</para> |
| 146 |
Web, and is used throughout the FreeBSD web site.</para> |
|
|
| 147 |
</listitem> |
136 |
</listitem> |
| 148 |
</varlistentry> |
137 |
</varlistentry> |
| 149 |
|
138 |
|
|
Lines 151-158
Link Here
|
| 151 |
<term>DocBook DTD (<filename role="package">textproc/docbook</filename>)</term> |
140 |
<term>DocBook DTD (<filename role="package">textproc/docbook</filename>)</term> |
| 152 |
|
141 |
|
| 153 |
<listitem> |
142 |
<listitem> |
| 154 |
<para>DocBook is designed for marking up technical documentation. |
143 |
<para>DocBook ¬O±Mªù¥Î¨Ó»s§@§Þ³N¤å¥óªº¼Ð¥Ü»y¨¥ª©¥»¡A |
| 155 |
All the FreeBSD documentation is written in DocBook.</para> |
144 |
FreeBSD ¥þ³¡¤å¥ó³£¬O¥H DocBook ©Ò¼g¦¨ªº¡C</para> |
| 156 |
</listitem> |
145 |
</listitem> |
| 157 |
</varlistentry> |
146 |
</varlistentry> |
| 158 |
|
147 |
|
|
Lines 161-170
Link Here
|
| 161 |
(<filename role="package">textproc/iso8879</filename>)</term> |
150 |
(<filename role="package">textproc/iso8879</filename>)</term> |
| 162 |
|
151 |
|
| 163 |
<listitem> |
152 |
<listitem> |
| 164 |
<para>19 of the ISO 8879:1986 character entity sets used by many |
153 |
<para>¦b ISO 8879:1986 ¤§¤¤¦³ 19 Ó entity ³Q³\¦h DTD ©Ò¤j¶q¨Ï¥Î¡A |
| 165 |
DTDs. Includes named mathematical symbols, additional |
154 |
¥]¬A¤F¼Æ¾Ç²Å¸¹¡B©Ô¤B¦r¥À²Å¸¹(¦y«µµ¥µ¸`²Å¸¹¤]¬O)¥H¤Î§ÆÃ¾²Å¸¹¡C</para> |
| 166 |
characters in the Latin character set (accents, diacriticals, |
|
|
| 167 |
and so on), and Greek symbols.</para> |
| 168 |
</listitem> |
155 |
</listitem> |
| 169 |
</varlistentry> |
156 |
</varlistentry> |
| 170 |
</variablelist> |
157 |
</variablelist> |
|
Lines 173-190
Link Here
|
| 173 |
<sect2> |
160 |
<sect2> |
| 174 |
<title>¼Ë¦¡ªí(Stylesheets)</title> |
161 |
<title>¼Ë¦¡ªí(Stylesheets)</title> |
| 175 |
|
162 |
|
| 176 |
<para>The stylesheets are used when converting and formatting the |
163 |
<para>³o¨Ç¼Ë¦¡ªí³£¬O¥Î¨ÓÂà´«¡B«±Æ¤å¥óªº¿Ã¹õÅã¥Ü¡B¦C¦Lµ¥®ÄªG³B²z</para> |
| 177 |
documentation for display on screen, printing, and so on.</para> |
|
|
| 178 |
|
164 |
|
| 179 |
<variablelist> |
165 |
<variablelist> |
| 180 |
<varlistentry> |
166 |
<varlistentry> |
| 181 |
<term>Modular DocBook Stylesheets |
167 |
<term>Modular DocBook ¼Ë¦¡ªí |
| 182 |
(<filename role="package">textproc/dsssl-docbook-modular</filename>)</term> |
168 |
(<filename role="package">textproc/dsssl-docbook-modular</filename>)</term> |
| 183 |
|
169 |
|
| 184 |
<listitem> |
170 |
<listitem> |
| 185 |
<para>The Modular DocBook Stylesheets are used when converting |
171 |
<para>Modular DocBook ¼Ë¦¡ªí¡A¬O¥Î¨Ó§â DocBook ªº¼Ð°O»y¨¥¤å¥óÂà´«¬°¨ä¥L®æ¦¡¡A¹³¬O¡G |
| 186 |
documentation marked up in DocBook to other formats, such as |
172 |
HTML ©Î RTF¡C</para> |
| 187 |
HTML or RTF.</para> |
|
|
| 188 |
</listitem> |
173 |
</listitem> |
| 189 |
</varlistentry> |
174 |
</varlistentry> |
| 190 |
</variablelist> |
175 |
</variablelist> |
|
Lines 192-263
Link Here
|
| 192 |
</sect1> |
177 |
</sect1> |
| 193 |
|
178 |
|
| 194 |
<sect1 id="tools-optional"> |
179 |
<sect1 id="tools-optional"> |
| 195 |
<title>Optional tools</title> |
180 |
<title>»²§U¤u¨ã</title> |
| 196 |
|
181 |
|
| 197 |
<para>You do not need to have any of the following installed. However, |
182 |
<para>¤£¤@©w±o¸Ë¤U¦Cªº¤u¨ã¤~¦æ¡A¦ý¬O¡A¸Ë¤F¤§«á·|§ó®e©ö¶i¦æ¦U¶µ¤u§@¡A |
| 198 |
you may find it easier to work with the documentation if you do, and |
183 |
¦Ó¥B¥i¿é¥Xªº®æ¦¡¤]§ó¨ã¼u©Ê¡C</para> |
| 199 |
they may give you more flexibility in the output formats that can be |
|
|
| 200 |
generated.</para> |
| 201 |
|
184 |
|
| 202 |
<sect2> |
185 |
<sect2> |
| 203 |
<title>Software</title> |
186 |
<title>³nÅé</title> |
| 204 |
|
187 |
|
| 205 |
<variablelist> |
188 |
<variablelist> |
| 206 |
<varlistentry> |
189 |
<varlistentry> |
| 207 |
<term><application>JadeTeX</application> and |
190 |
<term><application>JadeTeX</application> ¤Î |
| 208 |
<application>teTeX</application> |
191 |
<application>teTeX</application> |
| 209 |
(<filename role="package">print/jadetex</filename> and |
192 |
(<filename role="package">print/jadetex</filename> ¤Î |
| 210 |
<filename role="package">print/teTeX</filename>)</term> |
193 |
<filename role="package">print/teTeX</filename>)</term> |
| 211 |
|
194 |
|
| 212 |
<listitem> |
195 |
<listitem> |
| 213 |
<para><application>Jade</application> and |
196 |
<para><application>Jade</application> »P |
| 214 |
<application>teTeX</application> are used to convert DocBook |
197 |
<application>teTeX</application> ¥i¥Î¨Ó§â DocBook ®æ¦¡¤å¥óÂର |
| 215 |
documents to DVI, Postscript, and PDF formats. The |
198 |
DVI, Postscript ¤Î PDF ®æ¦¡¡C¦w¸Ë®É½Ð°O±o¥[¤W |
| 216 |
<application>JadeTeX</application> macros are needed in order to |
199 |
<application>JadeTeX</application> ³oÓ macro¡A³o¼Ë¤~·|¶¶«K¸Ë¤W³o¨âÓ®M¥ó¡C</para> |
| 217 |
do this.</para> |
200 |
|
| 218 |
|
201 |
<para>YµL·N§â¤å¥óÂà´«§ó¦h®æ¦¡ªº¸Ü(Á|¨Ò¡G¥un HTML, plain text, RTF ³o¨Ç®æ¦¡´N°÷ªº¸Ü) |
| 219 |
<para>If you do not intend to convert your documentation to one of |
202 |
¡A¨º»ò´N¤£¥Î¸Ë |
| 220 |
these formats (i.e., HTML, plain text, and RTF are sufficient) |
203 |
<application>JadeTeX</application> »P |
| 221 |
then you do not need to install |
204 |
<application>teTeX</application>¡C ¦p¦¹¤@¨Ó¥i¬Ù¤U¤@¨Çªº½sͮɶ¡¡B¦w¸ËªÅ¶¡¡A |
| 222 |
<application>JadeTeX</application> and |
205 |
¦]¬° <application>teTeX</application> ¤j¬ùn¦Ü¤Ö 30MB ªÅ¶¡¡C</para> |
| 223 |
<application>teTeX</application>. This can be a significant |
|
|
| 224 |
space and time saver, as <application>teTeX</application> is |
| 225 |
over 30MB in size.</para> |
| 226 |
|
206 |
|
| 227 |
<important> |
207 |
<important> |
| 228 |
<para>If you decide to install |
208 |
<para>Y¨M©wn¸Ë |
| 229 |
<application>JadeTeX</application> and |
209 |
<application>JadeTeX</application> ¥H¤Î |
| 230 |
<application>teTeX</application> then you will need to |
210 |
<application>teTeX</application> ªº¸Ü¡A¨º»ò¦b¸Ë§¹ <application>JadeTeX</application> ¤§«á¡A |
| 231 |
configure <application>teTeX</application> after |
211 |
n°O±o³]©w <application>teTeX</application> ¤~¦æ¡C |
| 232 |
<application>JadeTeX</application> has been installed. |
212 |
<filename>print/jadetex/pkg-message</filename> ¤º¦³¸Ô²Ó¤¶²Ð¬ÛÃö¨BÆJ¡C</para> |
| 233 |
<filename>print/jadetex/pkg-message</filename> contains |
|
|
| 234 |
detailed instructions explaining what you need to do.</para> |
| 235 |
</important> |
213 |
</important> |
| 236 |
</listitem> |
214 |
</listitem> |
| 237 |
</varlistentry> |
215 |
</varlistentry> |
| 238 |
|
216 |
|
| 239 |
<varlistentry> |
217 |
<varlistentry> |
| 240 |
<term><application>Emacs</application> or |
218 |
<term><application>Emacs</application> ©Î |
| 241 |
<application>XEmacs</application> |
219 |
<application>XEmacs</application> |
| 242 |
(<filename role="package">editors/emacs</filename> or |
220 |
(<filename role="package">editors/emacs</filename> ©Î |
| 243 |
<filename role="package">editors/xemacs</filename>)</term> |
221 |
<filename role="package">editors/xemacs</filename>)</term> |
| 244 |
|
222 |
|
| 245 |
<listitem> |
223 |
<listitem> |
| 246 |
<para>Both these editors include a special mode for editing |
224 |
<para>³o¨âªÌ½s¿è¾¹³£¨ã¦³³B²z SGML DTD ¼Ð°O¤å¥óªº¯S®í¼Ò¦¡¡C |
| 247 |
documents marked up according to an SGML DTD. This mode |
225 |
¸Ó¼Ò¦¡´£¨Ñ¤@¨Ç«ü¥O¡A¨Ó²¤Æ©Ò»Ýªº¥´¦r¦¸¼Æ¡A¦Ó¥B¥i¥H´î¤Ö¥i¯àµo¥Íªº¿ù»~¡C</para> |
| 248 |
includes commands to reduce the amount of typing you need, and |
226 |
|
| 249 |
help reduce the possibility of errors.</para> |
227 |
<para>¤£¹L¡A³o¨Ç½s¿è¾¹¨Ã¤£¬O¥²³Æªº¡F¥ô¦ó¤å¦r½s¿è¾¹³£¥i¥H¥Î¨Ó½s¿è¼Ð°O»y¨¥¤å¥ó¡C |
| 250 |
|
228 |
¤£¹L¡A§A¥i¥H³z¹LÃþ¦ü¤Wz³o¼Ëªº½s¿è¾¹¡A¨ÓÅý³o¨ÇÁcº¾§@·~§ó»´ÃP¦³®Ä²v¨Ç¡C</para> |
| 251 |
<para>You do not need to use them; any text editor can be used to |
|
|
| 252 |
edit marked up documents. You may find they make you more |
| 253 |
efficient.</para> |
| 254 |
</listitem> |
229 |
</listitem> |
| 255 |
</varlistentry> |
230 |
</varlistentry> |
| 256 |
</variablelist> |
231 |
</variablelist> |
| 257 |
|
232 |
|
| 258 |
<para>If anyone has recommendations for other software that is useful |
233 |
<para>Y¦³±ÀÂ˨ä¥L¦n¥Îªº³B²z SGML ¤å¥óµ{¦¡¡A½Ð¨Ó«HÅý &a.doceng; ª¾¹D¡A |
| 259 |
when manipulating SGML documents, please let &a.doceng; know, so they |
234 |
¦p¦¹¤@¨Ó¡A¸Ó³nÅé´N·|¦C¤J³o¸Ì¤¶²Ð¤F¡C</para> |
| 260 |
can be added to this list.</para> |
|
|
| 261 |
</sect2> |
235 |
</sect2> |
| 262 |
</sect1> |
236 |
</sect1> |
| 263 |
</chapter> |
237 |
</chapter> |