[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <HTML> 2 <HEAD> 3 <TITLE> 4 Scripts to support CJK-LaTeX 5 </TITLE> 6 </HEAD> 7 <BODY> 8 <H2> 9 Scripts to support CJK-LaTeX 10 </H2> 11 12 by Mike Fabian 13 <[email protected]> 14 <p> 15 16 The tiny Perl-script '<tt>sfd2map</tt>' converts <tt>.sfd</tt> files (as used by 17 CJK-LaTeX) to <tt>.map</tt> files (as used by ttf2pt1). 18 <p> 19 20 Actually I currently don't use that script stand-alone for performance 21 reasons. 22 <p> 23 24 Currently I use such a conversion in another small script '<tt>cjk-latex-config</tt>' 25 (attached as well) which creates <tt>.tfm</tt> files usable with CJK-LaTeX 26 from TrueType fonts as listed in <tt>/etc/ttf2pk/ttfonts.map</tt>. When called like 27 <br> 28 <tt>cjk-latex-config --type1</tt> 29 <br> 30 this script will use ttf2pt1 to generate <tt>.pfb</tt> files as well from these TrueType 31 fonts to be used with CJK-LaTeX. 32 <p> 33 34 The <tt>.sfd</tt> files cannot be directly used as input to ttf2pt1 because the 35 format of the <tt>.map</tt> files which ttf2pt1 expects is slightly different, 36 therefore I made the '<tt>sfd2map</tt>' converter script. 37 <p> 38 39 But then I noticed that I would have to parse the generated map file 40 *again* to get a list of the plane numbers to use. That seemed to be a 41 bit wastful because I had just parsed the <tt>.sfd</tt> file to convert it to 42 <tt>.map</tt>, therefore I included <tt>sfd2map</tt> as a function in '<tt>cjk-latex-config</tt>' 43 as well and collected the plane numbers during the conversion. 44 <p> 45 46 But '<tt>cjk-latex-config</tt>' is maybe a little bit SuSE specific, therefore 47 I kept '<tt>sfd2map</tt>' also as a standalong script. Use it if you like. 48 <p> 49 50 '<tt>cjk-latex-config</tt>' calls another small script '<tt>cjk-latex-t1mapgen</tt>' 51 to generate a <tt>cjk-latex.map</tt> file containing something like 52 <br> 53 <tt> cyberb00 BitstreamCyberbit-Roman-00 <cyberb00.pfb</tt> 54 <br> 55 <tt> cyberb01 BitstreamCyberbit-Roman-01 <cyberb01.pfb</tt> 56 <br> 57 <tt> cyberb02 BitstreamCyberbit-Roman-02 <cyberb02.pfb</tt> 58 <br> 59 <tt> [...]</tt> 60 <br> 61 after all <tt>.pfb</tt> files have been generated. 62 <p> 63 64 Maybe this is also SuSE specific, I'm not sure about in what 65 directories the relevant files are stored on other Linux-like systems. 66 <p> 67 68 I'm not yet sure whether they work on other systems beside SuSE Linux. 69 They have hard coded path names where to find the TrueType fonts, 70 <tt>ttfonts.map</tt>, the TeX fonts etc and <tt>cjk-latex-config</tt> checks 71 whether freetype-tools.rpm is installed. freetype-tools.rpm might 72 have another name for other distributions and for distributions 73 which don't use rpm this check can't work anyway. 74 <p> 75 76 These are small details and it should not be difficult to adapt the 77 scripts for other Linux-like systems though. 78 <p> 79 </BODY> 80 </HTML>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |