Register to post in forums, or Log in to your existing account

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion

Joined: 13 Mar 2005
Posts: 125
Location: Bucharest

PostPosted: Wed Oct 01, 2014 12:57 pm   

Substitute for Umlauts but with exceptions
I try to replace the German two-letter groups with Umlauts:
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"="ü"):

#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?
Reply with quote

Joined: 04 Aug 2002
Posts: 4413
Location: Pensacola, FL, USA

PostPosted: 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: Shalimar#3679
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

Jump to:  
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

© 2009 Zugg Software. Hosted by