[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hyphenating non-english characters
From: |
Gáspár Gergő |
Subject: |
hyphenating non-english characters |
Date: |
Sat, 27 Jul 2024 08:51:32 +0200 |
Hi,
I'm trying to make justified text look nicer, so I turned to hyphenation.
Hungarian is not supported out of the box by groff, but I found a tex patterns
file which seems quite good, that is what I tried to use, to not much success.
Hyphenation happens, but not as often as I'd hope. After some more reading,
I think the problem might be with the accented Hungarian characters not having
hyphenation codes assigned to them, since hyphenation seemingly only happens
near non-accented vowels.
These are the requests that I used for hyphenation originally:
.hla hu
.hpf /home/gergo/projekt/jella/huhyphn.tex
.hy 1
The manual told me that
> A hyphenation code must be an ordinary character (not a special character
> escape sequence) other than a digit or a space.
So I tried following the example, with these requests:
.hcode á á Á á
.hcode é é É é
.hcode í í Í í
.hcode ó ó Ó ó
.hcode ö ö Ö ö
.hcode ő ő Ő ő
.hcode ú ú Ú ú
.hcode ü ü Ü ü
.hcode ű ű Ű ű
However, groff throws errors saying "error: hyphenation code must be ordinary
character". I tried with and without preconv to no avail. The example supplied
in the manual, with German characters, didn't work either.
What could be the problem here?
Best regards,
Gergő Gáspár
- hyphenating non-english characters,
Gáspár Gergő <=