|
bothkill Apprentice
Joined: 13 Mar 2005 Posts: 125 Location: Bucharest
|
Posted: Wed Oct 01, 2014 12:57 pm
Substitute for Umlauts but with exceptions |
I try to replace the German two-letter groups with Umlauts:
Code: |
ae = ä
oe = ö
ue = ü
sz = ß |
There are 2 requirements:
1. I need exceptions, since not all those two-letter groups are Umlauts
2. Add an extra space to the word, for each replacement (in order to keep the original text alignment, especially when frames are drawn around the text).
I use the following trigger (for "ue"="ü"):
Pattern:
Code:
Code: |
#SW (%1=euer) {} ;exception
(%1=auen) {} ;exception (more exceptions will be added as I encounter them)
{#SU %2ü%3%4_} |
But it doesn't run for the second occurrence in the same word, although I have ticked the option 'Repeat within line'.
And it doesn't add the extra space (in this case: the underscore) when the Umlaut is at the end of the word.
Clearly, I do something wrong. What is it and is there a fix to it?
Is this approach the best one or is there a better one? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Tue Oct 07, 2014 2:05 pm |
did you check repeat within line in the trigger options?
Also, try wrapping your replacement value.
#SUB {replacement value} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|