Browse Source

optimizing some rules

master
shadyar 7 years ago
parent
commit
b1f18ad784
No account linked to committer's email address
1 changed files with 27 additions and 7 deletions
  1. 27
    7
      dictsource/fa_rules

+ 27
- 7
dictsource/fa_rules View File

// * Farsi Language fa (or Parsi or Persian) fa_rules Version 3.132
// * This file writen by Shadyar Khodayari 04-22-2016
// * Farsi Language fa (or Parsi or Persian) fa_rules Version 3.135
// * This file writen by Shadyar Khodayari 04-05-2018
//********* //*********
// * This program is free software; you can redistribute it and/or modify * // * This program is free software; you can redistribute it and/or modify *
// * it under the terms of the GNU General Public License as published by * // * it under the terms of the GNU General Public License as published by *
// all Farsi characters without short vowels // all Farsi characters without short vowels
.L09 ض ص ث ق ف غ ع ه خ ح ج چ ش س ی ب ل ا ت ن م ک گ ۀ آ ظ ط ز ر ذ د ئ و ة ي ژ پ ؤ إ أ ء ؟ ّ .L09 ض ص ث ق ف غ ع ه خ ح ج چ ش س ی ب ل ا ت ن م ک گ ۀ آ ظ ط ز ر ذ د ئ و ة ي ژ پ ؤ إ أ ء ؟ ّ


// Special Characters 1
.L10 ا

// Special Character 2
.L11 ش


// (ZWNJ) U+200c character (half space) is recognized as Hyphen and this simbole "-" has been definded for this character in the rules. // (ZWNJ) U+200c character (half space) is recognized as Hyphen and this simbole "-" has been definded for this character in the rules.


اٍ en اٍ en
اٌ on اٌ on
ا (ٓ A ا (ٓ A
// Exceptional Rules
_رL10ید) ا (L11_ A
_ر) ا (یدL10L11_ A


// Prefixes ا // Prefixes ا
_) ال (L09L09L09P2@ al _) ال (L09L09L09P2@ al
L09L04) اٌ (_NSm2 an L09L04) اٌ (_NSm2 an
L09L04) اٍ (_NSm2 an L09L04) اٍ (_NSm2 an
L09L09L04) ان (_Sm2 An L09L09L04) ان (_Sm2 An
یاب) ان (_Sm2 An
//l09l09l04) انی (_NSm3 Ani //l09l09l04) انی (_NSm3 Ani
// Plural possessive pronouns for ان eg. "مردانت" // Plural possessive pronouns for ان eg. "مردانت"
l09l09l04) انم (_NSm3 Anam l09l09l04) انم (_NSm3 Anam
_L03L09L03) د (L03L09L09_ da _L03L09L03) د (L03L09L09_ da
// Analyzing 5th Consonant of 9 Consonants (left to right) // Analyzing 5th Consonant of 9 Consonants (left to right)
L09L09L09L09) د (L03L09L09L09_ da L09L09L09L09) د (L03L09L09L09_ da
// Exceptional Rules
_رL10ی) د (L10L11_ j


// Prefixes د // Prefixes د
_) دو (L04L09L09$noprefixP2@ do _) دو (L04L09L09$noprefixP2@ do
_L03L09L03) ر (L03L09L09_ Ra _L03L09L03) ر (L03L09L09_ Ra
// Analyzing 5th Consonant of 9 Consonants (left to right) // Analyzing 5th Consonant of 9 Consonants (left to right)
L09L09L09L09) ر (L03L09L09L09_ Ra L09L09L09L09) ر (L03L09L09L09_ Ra
// Exceptional Rules
_) ر (L10یدL10L11_ S


// Prefixes ر // Prefixes ر
_) رضا (L04L09L09P3@ RezA _) رضا (L04L09L09P3@ RezA
// suffixes ر // suffixes ر
//L09L09L09) ران (_Sm3 RAn //L09L09L09) ران (_Sm3 RAn
//L09L09L09) رانی (_Sm4 RAni //L09L09L09) رانی (_Sm4 RAni
L09L09L09) رانها (_Sm5 RAnha
L09L09L09) رانها (_Sm5 RAnhA
L09L09L09) رانهای (_Sm6 RAnhAje L09L09L09) رانهای (_Sm6 RAnhAje
L09L09L09) رانهایی (_Sm7 RAnhAi: L09L09L09) رانهایی (_Sm7 RAnhAi:
L09L09L09) رانان (_Sm5 RAnAn L09L09L09) رانان (_Sm5 RAnAn
_L03L09L03) ش (L03L09L09_ Sa _L03L09L03) ش (L03L09L09_ Sa
// Analyzing 5th Consonant of 9 Consonants (left to right) // Analyzing 5th Consonant of 9 Consonants (left to right)
L09L09L09L09) ش (L03L09L09L09_ Sa L09L09L09L09) ش (L03L09L09L09_ Sa
// Exceptional Rules
_رL10یدL10) ش (_ R


// Prefixes ش // Prefixes ش
_) شاد (L04L09L09P3@ S'Ad _) شاد (L04L09L09P3@ S'Ad
// ع as first letter in bondary of the words // ع as first letter in bondary of the words
_) ع (L03 a: _) ع (L03 a:
_) ع (ا _) ع (ا
_) ع (و a
_) ع (وL01 a
_) ع (وL03
_) ع (و_ a
_) ع (ی e _) ع (ی e
// ع in end of the words // ع in end of the words
L09) ع (_ '? L09) ع (_ '?
L09L09L03) گی (_Sm2 egi L09L09L03) گی (_Sm2 egi
L09L01ی) گی (_Sm2 egi L09L01ی) گی (_Sm2 egi
L09L01و) گی (_Sm2 egi L09L01و) گی (_Sm2 egi

// Possessive pronouns for گی eg. "زندگیتان" // Possessive pronouns for گی eg. "زندگیتان"
L09L09L03) گیم (_NSm3 egijam L09L09L03) گیم (_NSm3 egijam
L09L09L03) گییم (_NSm4 egijam L09L09L03) گییم (_NSm4 egijam
L09L09L09L09) م (L03L09L09L09_ ma L09L09L09L09) م (L03L09L09L09_ ma


// Prefixes م // Prefixes م
_) م (L03L04L03_$noprefixP1@ ma
_) می (L03L09+$noprefixP2@ mi _) می (L03L09+$noprefixP2@ mi
_) می (آL09L09$noprefixP2@ mi _) می (آL09L09$noprefixP2@ mi
_) می (وL09L09$noprefixP2@ mi _) می (وL09L09$noprefixP2@ mi
L09L09) نقی (_Sm3 naq1i L09L09) نقی (_Sm3 naq1i
// Subjective pronouns // Subjective pronouns
L09L09L03) ند (_NSm2 and L09L09L03) ند (_NSm2 and
L09L03ی) ند (_NSm2 nad
L09L09) نوشت (_Sm4 neveSt L09L09) نوشت (_Sm4 neveSt
L09L09) نشین (_Sm4 neSin L09L09) نشین (_Sm4 neSin
L09L09) نکردن (_Sm5 nakaRdan L09L09) نکردن (_Sm5 nakaRdan


.group یی .group یی
یی i: یی i:
// Exceptional Rules
_رL10) ی (دL10L11_ d


// Prefixes یی // Prefixes یی
إ (ِ إ (ِ





// rules for Farsi written by English characters (Pinglish) // rules for Farsi written by English characters (Pinglish)
// Sometimes, Farsi speakers write Farsi words using English characters, particularly in Chat and SMS (texte messages).), called Pinglish // Sometimes, Farsi speakers write Farsi words using English characters, particularly in Chat and SMS (texte messages).), called Pinglish




// Others mathematics characters // Others mathematics characters
.group .group
D_) : (_DD_ // omit colon in time, eg: 2:30
. (D noq1te:
. (D noq1te:
± m'osbat||jA:||m'anfi ± m'osbat||jA:||m'anfi
>= boz'oRgtaR||jA:||m,osAvi >= boz'oRgtaR||jA:||m,osAvi
<= kutS'ektaR||jA:||m,osAvi <= kutS'ektaR||jA:||m,osAvi

Loading…
Cancel
Save