P
Pablo Cardellino
Hi,
I'm writing my own proofreading tool, because some Portuguese orthographic
rules are going to change in January 1st 2k9, and it seems Microsoft will
not distribute a new dictionary for old versions of Word (just for 2007). So
I need to compare words (simple words and compound words - two or more
words with hyphens).
I'm having some difficulty for performing the string comparisons. For
example, a new rule for compounding words is that when the former word ends
with certain vowel and the latter one begins with a different vowel, we must
simply join them, without hyphen:
Until 2008 we have written "contra-ordem"; from 2009 on, we'll write
"contraordem"
But if the vowel is the same, the rule is right the opposite:
Until 2008: "contraataque"; from 2009 on: "contra-ataque"
I'm not achieving to model these type of strign comparision. How can I code
an expression for validating whether the vowels surrounding the Hyphen are
equal or not?
Thanks in advance,
Pablo Cardellino
I'm writing my own proofreading tool, because some Portuguese orthographic
rules are going to change in January 1st 2k9, and it seems Microsoft will
not distribute a new dictionary for old versions of Word (just for 2007). So
I need to compare words (simple words and compound words - two or more
words with hyphens).
I'm having some difficulty for performing the string comparisons. For
example, a new rule for compounding words is that when the former word ends
with certain vowel and the latter one begins with a different vowel, we must
simply join them, without hyphen:
Until 2008 we have written "contra-ordem"; from 2009 on, we'll write
"contraordem"
But if the vowel is the same, the rule is right the opposite:
Until 2008: "contraataque"; from 2009 on: "contra-ataque"
I'm not achieving to model these type of strign comparision. How can I code
an expression for validating whether the vowels surrounding the Hyphen are
equal or not?
Thanks in advance,
Pablo Cardellino