[Trennmuster] Railroad diagram first complete version

Werner LEMBERG wl at gnu.org
Fr Nov 15 14:56:14 CET 2013


> Please review the first complete railroad diagram of the hyphenation
> format found in the attachment. It should cover the complete file
> wortliste.

This looks very nice graphically!  However, I'm not happy with the
contents.  Here are my comments.

. Hyphen:

  - Neither the order nor the number of the elements are not fixed.
    In other words, something like `=|' is also valid, meaning the
    same as `|='.

  - The number of elements is not limited (except `·' which can occur
    only once).  Theoretically, something like `-----' could also
    happen.

  - The `_' element is currently undocumented and subject to change.

. MorphemeAltSpelling:

  You must use the class `Hyphen' instead of listing the possible
  hyphenation characters explicitly.

. MorphemeMultiHyphenation:

  It's a *very* bad idea to list the possible values explicitly, since
  it neither covers future additions nor recursion correctly.

. Char:

  Similarly, it's a bad idea to list the possible values explicitly.
  Instead, I would use the Unicode Latin ranges.

My conclusion is that this grammar is just an ad-hoc solution,
unfortunately, not correctly representing the `wortliste'.

> Does anyone know a script that can validate wortliste against this
> definition?

I don't know such a script.


    Werner


Mehr Informationen über die Mailingliste Trennmuster