• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# © 2016 and later: Unicode, Inc. and others.
2# License & terms of use: http://www.unicode.org/copyright.html
3# Generated using tools/cldr/cldr-to-icu/build-icu-data.xml
4#
5# File: fa_fa_FONIPA.txt
6# Generated from CLDR
7#
8
9[\u200c \u200d] → ;  # Strip off ZWJ and ZWNJ.
10::NFD;
11# Rewrite similarly-looking Arabic letters to Persian.
12ي → ی;
13ى → ی;
14ك → ک;
15ە → ه;
16::NULL;
17$VOWEL = [ \u064E \u0650  \u064F  \u0653 ا و ی];
18$BOUNDARY = [^[:L:][:M:][:N:]];
19$IPA_CONSONANT = [ m n p b t d k ɡ ʔ f v s z ʃ ʒ ʁ ɢ h χ {t\u0361ʃ} {d\u0361ʒ} l ɾ ];
20# Vowels
21ی\u0651 → jj;
22($VOWEL)\u0651 → \u0651 | $1;
23\u064Eی\u0652 → æj;
24\u0650ی\u0652 → ej;
25\u064Eو\u0652 → ov;
26\u0650ی → iː;
27\u064Eه → æ;
28[^ːeoæ] {ه} $BOUNDARY → e;
29[e] {ه} $BOUNDARY → ;
30ا\u064E → æ;
31ا\u064B $BOUNDARY → æn;
32\u064E → æ;
33یه → je;
34{ه\u0654} $BOUNDARY → jæ;
35ی\u0670 → ɒː;
36{ی} $VOWEL → j;
37ی → iː;
38$BOUNDARY {ای} → iː;
39ا\u0653 → ɒː;
40آ → ɒː;
41ا\u0650 → e;
42ا\u064F → o;
43او → uː;
44ا → ɒː; # Probably [^$BOUNDARY]
45\u0650 → e;
46ه\u0650 → e;
47{و} $VOWEL → v;
48$IPA_CONSONANT {و} → uː;
49\u064F{و} $IPA_CONSONANT → uː;
50$BOUNDARY {و} $BOUNDARY → va;
51و → ;
52\u064F → o;
53# Consonants
54پ → p;
55ب → b;
56[ت ط] → t;
57د → d;
58ک → k;
59گ → ɡ;
60[ع ء] → ʔ;
61چ → t\u0361ʃ;
62ج → d\u0361ʒ;
63ف → f;
64[س ص ث] → s;
65[ز ذ ض ظ] → z;
66ش → ʃ;
67ژ → ʒ;
68خ → χ;
69غ → ʁ;
70ق → ɢ;
71ح → h;
72م → m;
73ن → n;
74ه → h;
75ل → l;
76ر → ɾ;
77\u0652 → ;
78::NULL;
79# TODO: How to handle these?
80([$IPA_CONSONANT|$VOWEL]){\u0651} → $1;
81[ \u0651 \u0654 \u064B \u0670 ] → ;
82::NFC;
83
84