> Thanks a lot. I hope I can do it by myself. My understanding of problems with > those patterns is that the author incorrectly specified groups of letters > (E.g.: made 'ь' a consonant which is incorrect) and this lead to conflicts > since there are special rules for ь ' й ў.
It’s a safe bet that the author(s) didn’t really know what they were doing. > BTW, I found another variant of patterns in OpenOffice [1] Interesting, where did you find them exactly? > It doesn't include impossible combinations (mostly) and even have some > exceptions from general rules. Yes, they look much more reasonable, but I still think it could be worth making contact with Alex Buloichik to ask him what these combinations were supposed to stand for. They didn’t just come out of nowhere. If you do, you can ask him if he would agree to change the licence to the MIT licence (https://opensource.org/licenses/MIT), this makes it easier to share the patterns across projects since the patterns are potentially useful to all typesetting systems, hyphenation libraries, and even Web browsers nowadays. > There are still some duplicates and conflicts. > E.g.: > ь8ь ь1ь % 'ьь' is an impossible combination anyway Forget about it, then. Clearly this has been automatically generated from a set of (meta-)patterns. > .пад1ж д8ж > .пад1з д8з Note that these are not actually conflicts in TeX’s view, they work exactly the way hyphenation patterns are intended; obviously they specify the opposite of what’s correct, but that’s another problem ;-) > Actually .пад1ж should override д8ж > I.e.: > .пад7ж д4ж > .пад7з д4з > > Is this correct? That’s correct, but actually I would just write д2ж д2з .пад3 Using lower numbers to begin with makes it easier to refine later. That being said, is пад really always a prefix? > It seems to me this is a better starting point. Yes, indeed. > If I need to prohibit hyphenation before й or ў can I write 8й 8ў ? > Or I need write all possible combinations of vowel + й|ў ? No, 8й 8ў is perfectly valid and expresses what you want. Or even 4й 4ў, for that matter -- using the even number greater or equal to any other number in the patterns. Best, Arthur
