Discussion:
[9fans] Spanish hyphenation in troff
(too old to reply)
trebol
2013-01-18 12:59:51 UTC
Permalink
Hello all,
Anyone know how to get spanish hyphenation in troff?

Thanks in advance,
trebol.
Gorka Guardiola
2013-01-18 13:12:39 UTC
Permalink
Find a hyphen.tex you like and bind it at the proper place before running troff:

bind /sys/lib/texmf/tex/generic/hyphen/sphyphen.tex
/sys/lib/texmf/tex/generic/hyphen/hyphen.tex

G.
trebol
2013-01-18 14:14:35 UTC
Permalink
Thanks Gorka, but I've tried that with
ftp.ctan.org/pub/tex/language/hyphenation/eshyph.tex
and all I've is:

assertion failed: file n8.c:543

I'm new to plan9, so I'm a little lost. Sorry if this is an
obvious/common task.

trebol.
Gorka Guardiola
2013-01-18 15:22:21 UTC
Permalink
In other words, forget my previous recommendation, hyphenation only seems
to work for ascii.
Or, alternatively, this is an opportunity for you to reimplement n8.c
for UTF8 support.


G.
t***@polynum.com
2013-01-18 16:21:26 UTC
Permalink
Post by Gorka Guardiola
In other words, forget my previous recommendation, hyphenation only seems
to work for ascii.
Or, alternatively, this is an opportunity for you to reimplement n8.c
for UTF8 support.
Or alternatively, to use the TeX hyphen stuff with TeX since TeX is
available for Plan9:

http://www.kergis.com/en/kertex.html
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
trebol
2013-01-18 18:43:58 UTC
Permalink
Post by Gorka Guardiola
In other words, forget my previous recommendation, hyphenation only seems
to work for ascii.
This is a shame... I was very happy with the multilingual point in the OS's design.
Post by Gorka Guardiola
Or, alternatively, this is an opportunity for you to reimplement n8.c
for UTF8 support.
I'm just starting to learn C (In fact to learn programming!), but this
could be my first mission.
Post by Gorka Guardiola
Or alternatively, to use the TeX hyphen stuff with TeX since TeX is
http://www.kergis.com/en/kertex.html
I'm familiar with kerTeX, but I would like to work with troff.

Anyone has compiled heirloom troff with APE?
And thanks for your responses,
trebol.
Charles Forsyth
2013-01-18 21:10:15 UTC
Permalink
Post by trebol
This is a shame... I was very happy with the multilingual point in the OS's design.
troff predated the multilingual part by a few decades;
its parent roff was even older.

Gorka Guardiola
2013-01-18 15:17:36 UTC
Permalink
Post by trebol
Thanks Gorka, but I've tried that with
ftp.ctan.org/pub/tex/language/hyphenation/eshyph.tex
assertion failed: file n8.c:543
I'm new to plan9, so I'm a little lost. Sorry if this is an
obvious/common task.
trebol.
Looking at the version on our tree, there was a fix for this, but to
me it seems wrong.
The function trieindex (and maybe the whole implementation of hyphenation) looks
ascii-centric and most probably needs reimplementation. I may be
wrong, though, as
I am unfamiliar with the code.

G.
Nemo
2013-01-18 18:22:46 UTC
Permalink
Yes, it was a hack I made, but a hack anyway.

In most cases it worked fine, but it's not a real fix, so I didn't say anything in this thread.
Post by Gorka Guardiola
Post by trebol
Thanks Gorka, but I've tried that with
ftp.ctan.org/pub/tex/language/hyphenation/eshyph.tex
assertion failed: file n8.c:543
I'm new to plan9, so I'm a little lost. Sorry if this is an
obvious/common task.
trebol.
Looking at the version on our tree, there was a fix for this, but to
me it seems wrong.
The function trieindex (and maybe the whole implementation of hyphenation) looks
ascii-centric and most probably needs reimplementation. I may be
wrong, though, as
I am unfamiliar with the code.
G.
Loading...