I have made a new encoding for "modern" greek based on ISO 8859-7.
Now I'd like to create hyphenation patterns for it, to use with
pdftex (that is, 8 bit based).
If I understand correctly, I can do this with hyph-utf8 by creating a
.dat file mapping my encoding to unicode and then processing the unicode hyphenation patterns for monotonic greek with it.
Here's an excerpt of a
0x9A U+04D8 CYRSCHWA 0x9B U+040A CYRNJE 0x9C U+0401 CYRYO 0x9D U+2116 textnumero 0x9E U+00A4 textcurrency 0x9F U+00A7 textsection 0xA0 U+0491 1 cyrgup 0xA1 U+0493 1 cyrghcrs 0xA2 U+0452 1 cyrdje 0xA3 U+045B 1 cyrtshe
Most of the columns are rather self-explaining, but I'd still love to see some documentation before I start experimenting ;-)
In particular, it will save some copy-pasting work if I could just ignore everything but the first two columns (what is the significance of the glyph name for the hyphenation pattern, after all?)
Thanks to Patrick Gundlach for suggesting the README in the hyph-utf8 CTAN source directory. On conversions, this file has to say,
generate-converters.rb ====================== INPUT: - source/generic/hyph-utf8/data/encodings/*.dat OUTPUT: - tex/generic/hyph-utf8/conversions/conv-utf8-*.dat Auto-generates conversions from UTF-8 to some particular encoding.
So now, I know what to do with the
.dat file. An important step forward :-)
But I still need to know what exactly the contents of the file mean (as I have to make a new one for my own encoding).
After analysing this a bit more the only information I need is what the "1" in the third column is for.
Looking at the ruby code, it has the effect that for instance the following
0xE0 U+00E0 1 agrave
ec.dat) will generate in the converter
conv-utf8-ec.tex (which will take the unicode hyphenation patterns and map them to T1 fontencoding) the line
\lccode"E0="E0 % à - U+00E0 - agrave
So, hopefully this can be answered now by anybody who knows hyphenation patterns at all: What types of characters is such a line needed for?