unicode a mapovani znaku
Pavel Reznicek
pavel.jindrich at tiscali.cz
Wed Jun 15 14:05:49 CEST 2005
Arnost Stedry napsal(a):
> Dobry den,
>
> snazim se vyrobit sadu kodovani pro pohodlnou praci s truetypy
>
> bohuzel prilis casto pri pouziti ttf2tfm narazim na hlasky typu:
>
> ttf2tfm: WARNING: Cannot find character `afii10094'
> specified in input encoding.
>
> pripadne
>
> ttf2tfm: WARNING: Cannot find character `cyrbreve'
> ...
>
> pricemz urcite vim, ze hledany znak se ve fontu urcite nachazi, pouze
> pod jinym jmenem. nevite, jestli lze
> v .enc souboru pouzit odkaz na cislo znaku?
>
> inspiraci jsem hledal hlavne v projektu MinionPro
> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/minionpro/MinionPro/enc/#dirlist
>
>
> tam bohuzel pouzivaji odkaz typu /uni03C2 ktery mne take nefunguje
>
> Arnost Stedry
>
Dobry den,
cituji z texmf/doc/ttf2pk/ttf2pk.doc:
... With afm2tfm, you must access each glyph with its
Adobe glyph name, e.g. `/quotedsingle' or `/Acircumflex'.
This has been extended with ttf2tfm; now you can (and
sometimes must) access the code points and/or glyphs directly using
the following syntax for specifying the character position in decimal,
octal, or hexadecimal notation: `/.c<decimal-number>',
`/.c0<octal-number>', or `/.c0x<hexadecimal-number>'. Examples:
`/.c72', `/.c0646', `/.c0x48'. To access a glyph index directly, use
the character `g' instead of `c' in the just introduced notation.
Example: `/.g0x32'. ...
Takze pro Vas by se hodil pristup k jednotlivym znakum pomoci
unikodovych indexu
/.c<cislo> (character/znak s kodem <cislo>)
Pristup /.g<cislo> (<cislo>-ty "obrazek znaku" v TTF fontu) by taky sel,
ale zde jde o absolutni posici jen mezi znaky,
ktere font obsahuje, takze to povazuji za dosti mene prakticke.
Na ukazku prikladam sve kodovani pro hebrejsky font Shebrew. Funguje dobre.
Pavel Reznicek
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shebrew.enc
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20050615/b23c8350/attachment-0002.ksh>
More information about the csTeX
mailing list