source: branches/2.2/filemanager/tp/dompdf/lib/ttf2ufm/ttf2ufm-src/app/TeX/README.html @ 3019

Revision 3019, 2.7 KB checked in by amuller, 14 years ago (diff)

Ticket #1135 - Corrigindo CSS e adicionando filemanager

Line 
1<HTML>
2<HEAD>
3<TITLE>
4Scripts to support CJK-LaTeX
5</TITLE>
6</HEAD>
7<BODY>
8<H2>
9Scripts to support CJK-LaTeX
10</H2>
11
12by Mike Fabian
13&lt;mfabian@suse.de&gt;
14<p>
15
16The tiny Perl-script '<tt>sfd2map</tt>' converts <tt>.sfd</tt> files (as used by
17CJK-LaTeX) to <tt>.map</tt> files (as used by ttf2pt1).
18<p>
19
20Actually I currently don't use that script stand-alone for performance
21reasons.
22<p>
23
24Currently 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
26from TrueType fonts as listed in <tt>/etc/ttf2pk/ttfonts.map</tt>. When called like
27<br>
28&nbsp;&nbsp;<tt>cjk-latex-config --type1</tt>
29<br>
30this script will use ttf2pt1 to generate <tt>.pfb</tt> files as well from these TrueType
31fonts to be used with CJK-LaTeX.
32<p>
33
34The <tt>.sfd</tt> files cannot be directly used as input to ttf2pt1 because the
35format of the <tt>.map</tt> files which ttf2pt1 expects is slightly different,
36therefore I made the '<tt>sfd2map</tt>' converter script.
37<p>
38
39But 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
41bit 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>'
43as well and collected the plane numbers during the conversion.
44<p>
45
46But '<tt>cjk-latex-config</tt>' is maybe a little bit SuSE specific, therefore
47I 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>'
51to generate a <tt>cjk-latex.map</tt> file containing something like
52<br>
53<tt>&nbsp;&nbsp;cyberb00 BitstreamCyberbit-Roman-00 <cyberb00.pfb</tt>
54<br>
55<tt>&nbsp;&nbsp;cyberb01 BitstreamCyberbit-Roman-01 <cyberb01.pfb</tt>
56<br>
57<tt>&nbsp;&nbsp;cyberb02 BitstreamCyberbit-Roman-02 <cyberb02.pfb</tt>
58<br>
59<tt>&nbsp;&nbsp;[...]</tt>
60<br>
61after all <tt>.pfb</tt> files have been generated.
62<p>
63
64Maybe this is also SuSE specific, I'm not sure about in what
65directories the relevant files are stored on other Linux-like systems.
66<p>
67
68I'm not yet sure whether they work on other systems beside SuSE Linux.
69They 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
71whether freetype-tools.rpm is installed. freetype-tools.rpm might
72have another name for other distributions and for distributions
73which don't use rpm this check can't work anyway.
74<p>
75
76These are small details and it should not be difficult to adapt the
77scripts for other Linux-like systems though.
78<p>
79</BODY>
80</HTML>
Note: See TracBrowser for help on using the repository browser.