Skip to content

Commit bb6d88a

Browse files
author
Peyman Narimani
committed
Fixed conversion to Hindu Numbers
1 parent 7748d8f commit bb6d88a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Assets/RTLTMPro/Scripts/Runtime/GlyphFixer.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ public static class GlyphFixer
2020

2121
public static Dictionary<char, char> EnglishToHinduNumberMap = new Dictionary<char, char>()
2222
{
23-
[(char)EnglishNumbers.Zero] = (char)FarsiNumbers.Zero,
24-
[(char)EnglishNumbers.One] = (char)FarsiNumbers.One,
25-
[(char)EnglishNumbers.Two] = (char)FarsiNumbers.Two,
26-
[(char)EnglishNumbers.Three] = (char)FarsiNumbers.Three,
27-
[(char)EnglishNumbers.Four] = (char)FarsiNumbers.Four,
28-
[(char)EnglishNumbers.Five] = (char)FarsiNumbers.Five,
29-
[(char)EnglishNumbers.Six] = (char)FarsiNumbers.Six,
30-
[(char)EnglishNumbers.Seven] = (char)FarsiNumbers.Seven,
31-
[(char)EnglishNumbers.Eight] = (char)FarsiNumbers.Eight,
32-
[(char)EnglishNumbers.Nine] = (char)FarsiNumbers.Nine,
23+
[(char)EnglishNumbers.Zero] = (char)HinduNumbers.Zero,
24+
[(char)EnglishNumbers.One] = (char)HinduNumbers.One,
25+
[(char)EnglishNumbers.Two] = (char)HinduNumbers.Two,
26+
[(char)EnglishNumbers.Three] = (char)HinduNumbers.Three,
27+
[(char)EnglishNumbers.Four] = (char)HinduNumbers.Four,
28+
[(char)EnglishNumbers.Five] = (char)HinduNumbers.Five,
29+
[(char)EnglishNumbers.Six] = (char)HinduNumbers.Six,
30+
[(char)EnglishNumbers.Seven] = (char)HinduNumbers.Seven,
31+
[(char)EnglishNumbers.Eight] = (char)HinduNumbers.Eight,
32+
[(char)EnglishNumbers.Nine] = (char)HinduNumbers.Nine,
3333
};
3434

3535

0 commit comments

Comments
 (0)