Skip to content

Commit

Permalink
Fixed conversion to Hindu Numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyman Narimani committed Feb 16, 2021
1 parent 7748d8f commit bb6d88a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Assets/RTLTMPro/Scripts/Runtime/GlyphFixer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ public static class GlyphFixer

public static Dictionary<char, char> EnglishToHinduNumberMap = new Dictionary<char, char>()
{
[(char)EnglishNumbers.Zero] = (char)FarsiNumbers.Zero,
[(char)EnglishNumbers.One] = (char)FarsiNumbers.One,
[(char)EnglishNumbers.Two] = (char)FarsiNumbers.Two,
[(char)EnglishNumbers.Three] = (char)FarsiNumbers.Three,
[(char)EnglishNumbers.Four] = (char)FarsiNumbers.Four,
[(char)EnglishNumbers.Five] = (char)FarsiNumbers.Five,
[(char)EnglishNumbers.Six] = (char)FarsiNumbers.Six,
[(char)EnglishNumbers.Seven] = (char)FarsiNumbers.Seven,
[(char)EnglishNumbers.Eight] = (char)FarsiNumbers.Eight,
[(char)EnglishNumbers.Nine] = (char)FarsiNumbers.Nine,
[(char)EnglishNumbers.Zero] = (char)HinduNumbers.Zero,
[(char)EnglishNumbers.One] = (char)HinduNumbers.One,
[(char)EnglishNumbers.Two] = (char)HinduNumbers.Two,
[(char)EnglishNumbers.Three] = (char)HinduNumbers.Three,
[(char)EnglishNumbers.Four] = (char)HinduNumbers.Four,
[(char)EnglishNumbers.Five] = (char)HinduNumbers.Five,
[(char)EnglishNumbers.Six] = (char)HinduNumbers.Six,
[(char)EnglishNumbers.Seven] = (char)HinduNumbers.Seven,
[(char)EnglishNumbers.Eight] = (char)HinduNumbers.Eight,
[(char)EnglishNumbers.Nine] = (char)HinduNumbers.Nine,
};


Expand Down

0 comments on commit bb6d88a

Please sign in to comment.