Added checking for a vowel R when adding a vowel onto an upcoming R.

This commit is contained in:
Andrew Lalis 2017-04-25 07:05:42 +02:00
parent f9a414a462
commit 613abdb7ca
1 changed files with 3 additions and 0 deletions

View File

@ -414,6 +414,9 @@ public class Translator {
} else if (alternateChars.containsKey(nextChar)){
//Not a compound, so now check for alternates.
tengwarCharToBeAdded = alternateChars.get(nextChar);
} else if (nextChar == 'r' && isVowel(secondNextChar)){
//Special case if there is an r next, with a vowel after it.
tengwarCharToBeAdded = R_ALT;
} else {
//Finally, add a literal consonant.
tengwarCharToBeAdded = consonantChars.get(nextChar);