[tex-hyphen] Hyphenation patterns for Belarusian

Maksim Salau maksim.salau at gmail.com
Sat Sep 3 02:33:55 CEST 2016


Hi,

> > Is there any simple way to feed a bunch of words to *TeX and get hyphenated words back?
> The easy part is to use the testhyphens.sty small package, that is 
> included in any TeX system full installation.

Do you know a way that doesn't involve system-wide installation of patterns and generation of a full-blown *TeX document?
I had in mind something like this:
% -- BEGIN --
\catcode`\{=1
\catcode`\}=2
\input unicode-letters
\lccode`\'=`\'
\input hyph-be
% Some TeX magic
\input word-list.txt
% Some more TeX magic
% -- END --

And result printed to standard output.

I got such work-flow with https://github.com/hunspell/hyphen
But I'm not sure if this library produces the same output as *TeX does.

And here is my first result that works not as expected:
left hyphen min = right hyphen min = 2
 а б а б ' ю
.а8
 а1
     а1
        8'1
           ю1
          8ю.

.а8ба1б8'8ю.

So I expect to get аба=б'ю, but the library says there are no valid hyphenation points in the word.
Adding rule .аба3б doesn't help. The only explanation I can imagine is that the library doesn't treat quote as part of the alphabet and hyphenates the word as two separate words. The word абаб'юц=ца proves that theory.

Does anyone have any experience with the library?

Best regards,
Maksim.



More information about the tex-hyphen mailing list