Quantcast
Channel: SIL Language Software Community - Latest topics
Viewing all articles
Browse latest Browse all 649

How to get the last word

$
0
0

I would need to know the word before the cursor, in order to choose the right action to perform. So, for example, if the word is “leg” or “reg”, the suffix “eg” must be added to the word, otherwise if the suffix “eg” is already in the word, it must be changed to “et”. Something like this:

if(word = 'leg') > outs(word) 'eg'
if(word = 'reg') > outs(word) 'eg'
'eg' > 'et'

I know that variables used in if statements cannot be output. So is there another solution? Is it possible to use DLLs? I read the DLL documentation, but I didn’t understand much. Is there any example somewhere?

Thanks

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 649

Trending Articles