Hi,
I want to auto-replace the full shape space with half shape space while typing, I tried
the AutoReplaceTrigger like this:I must type two full half space, and the first one will be replaced, the second one will not(it is the trigger char). Can I replace it immediately while typing?
Thanks a lot.
[Modified at 11/05/2010 02:10 AM]
I want to auto-replace the full shape space with half shape space while typing, I tried
the AutoReplaceTrigger like this:
AutoReplaceTrigger arTrigger = new AutoReplaceTrigger("FullSpace", new CharClass(' ')); //Full shape space, but this one will be the trigger
arTrigger.ValidLexicalStates.Add(this.DefaultLexicalState);
this.Triggers.Add(arTrigger);
this.AutoReplace.Add(new AutoReplaceEntry(" ", " ")); //First argument is full shape space, and the second one is half shape.
Thanks a lot.
[Modified at 11/05/2010 02:10 AM]