Copy link to clipboard
Copied
Hallo!
Ich suche eine Möglichkeit, die Silben eines Textes unterschiedlich zu färben. Es geht um eine Publikation für Grundschulen, welche mit der Silbenschrift lernen. D.h. die erste Silbe eines Wortes ist jeweils blau, die zweite rot, die dritte wieder blau... Bei jedem Wort geht es aber erneut mit blau los.
Hat jemand eine Idee, wie ich diesen Prozess automatisieren kann?
Copy link to clipboard
Copied
Syllables do have patterns in text and also in sound. It's more about pronunciation than it is about how they are written.
For example, the word "cat" has one syllable, while the word "cater" has two syllables. The written form of "cater" indicates the presence of two syllables, but it is the spoken form that determines the syllable count and pattern.
German also has specific rules for syllable stress, which can affect the pronunciation of words. In general, stress falls on the first syllable of a German word, but there are some exceptions to this rule.
I'm sure the stresses are on different syllables here
Le-ben (life) vs. le-ben (to live)
I'm not familar enough with German to help any further.
Maybe there is a way to automate it - but seems very complex without an external source to draw from.
Maybe I'm wrong.