1<?xml version="1.0" encoding="UTF-8" ?> 2<!DOCTYPE supplementalData SYSTEM "../../common/dtd/ldmlSupplemental.dtd"> 3<!-- 4Copyright © 1991-2017 Unicode, Inc. 5CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/) 6For terms of use, see http://www.unicode.org/copyright.html 7--> 8<supplementalData> 9 <version number="$Revision: 13868 $"/> 10 <transforms> 11 <transform source="fa" target="fa_FONIPA" direction="forward" alias="fa-fonipa-t-fa"> 12 <tRule><![CDATA[ 13[\u200c \u200d] → ; # Strip off ZWJ and ZWNJ. 14::NFD; 15 16# Rewrite similarly-looking Arabic letters to Persian. 17ي → ی; 18ى → ی; 19ك → ک; 20ە → ه; 21::NULL; 22 23$VOWEL = [ َ ِ ُ ٓ ا و ی]; 24$BOUNDARY = [^[:L:][:M:][:N:]]; 25$IPA_CONSONANT = [ m n p b t d k ɡ ʔ f v s z ʃ ʒ ʁ ɢ h χ {t͡ʃ} {d͡ʒ} l ɾ ]; 26 27# Vowels 28یّ → jj; 29($VOWEL)ّ → ّ | $1; 30َیْ → æj; 31ِیْ → ej; 32 33َوْ → ov; 34ِی → iː; 35 36َه → æ; 37[^ːeoæ] {ه} $BOUNDARY → e; 38[e] {ه} $BOUNDARY → ; 39اَ → æ; 40اً $BOUNDARY → æn; 41َ → æ; 42یه → je; 43{هٔ} $BOUNDARY → jæ; 44یٰ → ɒː; 45{ی} $VOWEL → j; 46ی → iː; 47 48$BOUNDARY {ای} → iː; 49ا\u0653 → ɒː; 50آ → ɒː; 51اِ → e; 52اُ → o; 53او → uː; 54ا → ɒː; # Probably [^$BOUNDARY] 55ِ → e; 56هِ → e; 57 58{و} $VOWEL → v; 59$IPA_CONSONANT {و} → uː; 60ُ{و} $IPA_CONSONANT → uː; 61 62$BOUNDARY {و} $BOUNDARY → va; 63و → ; 64ُ → o; 65 66# Consonants 67پ → p; 68ب → b; 69[ت ط] → t; 70د → d; 71ک → k; 72گ → ɡ; 73[ع ء] → ʔ; 74چ → t͡ʃ; 75ج → d͡ʒ; 76ف → f; 77[س ص ث] → s; 78[ز ذ ض ظ] → z; 79ش → ʃ; 80ژ → ʒ; 81خ → χ; 82غ → ʁ; 83ق → ɢ; 84ح → h; 85م → m; 86ن → n; 87ه → h; 88ل → l; 89ر → ɾ; 90 91ْ → ; 92::NULL; 93 94# TODO: How to handle these? 95([$IPA_CONSONANT|$VOWEL]){ّ} → $1; 96 97[ ّ ٔ ً ٰ ] → ; 98 99::NFC; 100 101 ]]></tRule> 102 </transform> 103 </transforms> 104</supplementalData> 105