From 613abdb7ca01f38e3a2e57f1aaebfa6b0889c3dc Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Tue, 25 Apr 2017 07:05:42 +0200 Subject: [PATCH] Added checking for a vowel R when adding a vowel onto an upcoming R. --- src/net/agspace/translate/Translator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/agspace/translate/Translator.java b/src/net/agspace/translate/Translator.java index 58f463b..7f9c2b5 100644 --- a/src/net/agspace/translate/Translator.java +++ b/src/net/agspace/translate/Translator.java @@ -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);