Re: [tex-hyphen] Hyphenation patterns for Belarusian

2016-09-16 Thread Arthur Reutenauer
Hi Maksim, Sorry for the late answer, this may still be useful: > 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 un

Re: [tex-hyphen] Hyphenation patterns for Belarusian

2016-09-16 Thread Arthur Reutenauer
Hi again, > Also, is there any easy way to prohibit hyphenation of consonant-only > endings/beginnings of a word? > I can remember a word with 3 consonants at the end. > Is generation of .ccc8 8ccc. patterns the only way to go? (patterns for 2 > consonants are already in place) Yes, a

Re: [tex-hyphen] Hyphenation patterns for Belarusian

2016-09-16 Thread Maksim Salau
Hi Arthur, > I would use my library Hydra: > > -- BEGIN -- > require 'hydra' > > hydra = Hydra.new > hydra.setlefthyphenmin(2) > hydra.setrighthyphenmin(2) > hydra.ingest_file('/path/to/patterns.txt') > File.read('/path/to/wordlist.txt').each_line do |line| > puts hydra.showhyphens(line.stri