Topic Two or more letter contexts stored in a string.
We have two new locations for Keyman technical support:
The Tavultesoft Forums are now read only.
| # Two or more letter contexts stored in a string.   2016-02-06 00:14:56.467 | 
|---|
br Julian Griffin OSL
  | Hi,
 
   I have created a  Store(vowels) with a string of single characters, ie ‘ aeiouAEIOU’, for a ‘ Any()’ statement. I then created a matching  Store(accents), ie ‘ áéíóúÁÉÍÓÚ’ for an ‘ Index() statement. I then created a rule to use all this:
 
 
	  | : | 
	 
	
	  Store(vowels)  'aeiouAEIOU'
 
Store(accents) 'áéíóúÁÉÍÓÚ'
 
Any(vowels) + "'" > Index](accents,1) | 
	 
 
This all works, and I think I understand it.
 
   So my question, can I create a rule that is fired from a list of two letter contexts.
 
eg  Store(doubles) ' arerirorur’; being  ar er ir or ur?
 
And a supplementary question; is it possible to pad an ' Any()' statement to match an ' Index()' statement? eg 
 
 
	  | : | 
	 
	
	  Store(doubles) "ar'er'ir'or'ur"
 
Store(accents) "ar-er-ir-or-ur"
 
Any(doubles) > Index(accents,1) | 
	 
 
Regards
 
Julian Griffin  | 
| # RE: Two or more letter contexts stored in a string.   2016-02-06 08:04:14.687 | 
|---|
Marc Durdin Tavultesoft Staff | No, at this time, multi-character matches are not supported.
 
You can do padding with formatting, e.g.
 
 
	  | : | 
	 
	
	  store(input)  'a' 'e' 'i' 'o' 'u'
 
store(output) 'A' 'E' 'I' 'O' 'U'
 
 | 
	 
 
 | 
| # RE: Two or more letter contexts stored in a string.   2016-02-06 10:39:41.553 | 
|---|
br Julian Griffin OSL
  | Thank you Marc, that is clear. I can stop exploring that possible solution.
 
 
   Knowing what cannot be done can be as important as knowing what can be done. Actually when I'm choosing software, I first look for its limitations.
 
 
Thank you once again.
 
Regards
 
Julian Griffin
 
  |