Mailinglist Archive: opensuse-m17n (41 mails)

< Previous Next >
Re: [m17n] Amaharic (Ethiopic) in Latex,
  • From: Mike FABIAN <mfabian@xxxxxxx>
  • Date: Wed, 19 Nov 2003 17:26:22 +0000 (UTC)
  • Message-id: <s3td6bo8e2r.fsf@xxxxxxxxxxxxxxxx>
Tesfaye Ayalew <tesfaye.ayalew@xxxxxxxxxxxxxxxx> さんは書きました:

> Can any one help me on how to write an Amaharic (Ethiopic) single word
> in Latex, Emacs, Suse.

[...]

> I read the documentation of the latex-ucs package which mentions about
> Amharic, ucs.ps (Page 27), but was not clear at all.

> Would you please give me some tips on how can I insert a latex comand
> in side my english (German) manuscript using UTF-8 as input encoding
> or what ever?

> How and what package I should include and one example for any other
> language than Latin, preferably Amharic??

I just tried that and it worked. My small test file
UTF8-amharic-german.tex is attached.

I used the CODE2000 font for testing.

And I did the following preparations according to the instructions
from ucs.ps from the latex-ucs package:

mfabian@magellan:~$ mkdir -p texmf/fonts/tfm
mfabian@magellan:~$ mkdir -p texmf/fonts/truetype
mfabian@magellan:~$ cd texmf/fonts/truetype/
mfabian@magellan:~/texmf/fonts/truetype$ ls
CODE2000.ttf@
mfabian@magellan:~/texmf/fonts/truetype$ ln -s /usr/X11R6/lib/X11/fonts/truetype/CODE2000.TTF ./CODE2000.ttf
mfabian@magellan:~/texmf/fonts/truetype$

Note that the .ttf file extension must be lowercase in the symlink, it
won't work with uppercase.

mfabian@magellan:~/texmf/fonts/truetype$ cd ../..
mfabian@magellan:~/texmf$ ttf2tfm fonts/truetype/CODE2000.ttf fonts/tfm/code2k@Unicode@
[... lots of output ...]
mfabian@magellan:~/texmf$

Many .tfm files have been generated here:

mfabian@magellan:~/texmf$ ls fonts/tfm
code2k00.tfm code2k34.tfm code2k5f.tfm code2k8b.tfm code2kc0.tfm
[...]
mfabian@magellan:~/texmf$

Now add the line

code2k@Unicode@ CODE2000.ttf

to the end of /etc/ttf2pk/ttfonts.map.

Have a look into the file

/usr/share/texmf/tex/latex/ucs/contrib/letc2000.fd

to see why I used "code2k" as the latex file name.

Call "texhash":

mfabian@magellan:~/texmf$ texhash
texhash: Updating /suse/mfabian/texmf/ls-R...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Updating /var/lib/texmf/db/ls-R...
texhash: Updating /var/cache/fonts/ls-R...
texhash: Done.
mfabian@magellan:~/texmf$

After these preparations,

latex UTF8-amharic-german.tex
dvips UTF8-amharic-german.dvi
gv UTF8-amharic-german.ps

worked for me.


--
Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
< Previous Next >
This Thread
Follow Ups
References