bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Word hyphenation in LilyPond version 2.18.2.


From: Urs Liska
Subject: Re: Word hyphenation in LilyPond version 2.18.2.
Date: Wed, 28 Dec 2016 19:20:07 +0100
User-agent: K-9 Mail for Android


Am 28. Dezember 2016 19:04:51 MEZ, schrieb Werner LEMBERG <address@hidden>:
>
>> But I still think it should be possible to define some rules to apply
>> as a second pass to lyrics that have been hyphenated by Frescobaldi,
>> and I think this should be possible without false positives (although
>> being strict on this may leave out a few border cases that are *not*
>> hyphenated automatically.
>> 
>> 1) A leading vowel may be split from a syllable (trailing vowels are
>> never hyphenated)
>> 2) Diphtongs are note separated
>
>This rule is problematic.
>
>> 3) The remaining syllable must have at least two characters
>> 4) One of the remaining characters must be a vowel
>> 
>> Examples (always: original -> default hyphenation -> [ additional
>> hyphenation | comment ]):
>> 
>> oder -> oder -> o -- der
>> hallo -> hal -- lo -> "lo" is not hyphenated because of rule 3
>> lauwarm -> lau -- warm -> rule 2
>
>counterexamples, mainly `Lehn- und Fremdwörter':
>
>   Dialog -> Di-a-log
>   Bibliothek -> Bi-bli-o-thek
>   Geometrie -> Ge-o-me-trie

Well, here I'd say if it significantly reduces the number of syllables that 
have to be split manually then it's better to have than not. At least you 
didn't find false positives. 

>
>> ich -> ich -> rule 4
>> ist -> ist -> rule 4
>> Rebe -> Re -- be -> rule 3
>> Adele (name) -> Ade -- le -> A -- de -- le -> "de" and "le" not split
>> because of rule 3
>> Esche -> Esche -> E -- sche -> not Esch -- e because of rule 1 (same
>> with a -- de and not ad -- e)
>> Reise -> Rei -- se -> "Rei" is not split because of rule 2
>> 
>> This all goes for German, in other languages it may not fully work.
>> I know at least that in Italian and Latin there are combinations of
>> two vowels and trailing vowels that may be hyphenated (music may set
>> Ky -- ri -- e or e -- le -- i -- son (or e -- lei -- son)).
>> 
>> I'm not sure how to proceed, but I think that e.g. Frescobaldi could
>> produce the hyphenation according to the dictionaries like it does
>> already and then apply the additional rules to the results.  Should
>> not be too hard to implement, at least if there are no complex
>> issues with languages.  Probably the rules should be defined
>> independently and according to the language they are used/applied or
>> not.
>
>Frescobaldi could maintain a set of prefixes (`geo-', `dia-', etc.)
>that are known to contain a `separate vowel'.  Cf.
>
>http://repo.or.cz/wortliste.git/blob/HEAD:/skripte/python/trennstellenkategorisierung/wortteile/praefixe

Yes, or simply ignore this issue.

Urs

>
>
>    Werner

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]