tr.sor 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ^0 sıfır
  2. 1 bir
  3. 2 iki
  4. 3 üç
  5. 4 dört
  6. 5 beş
  7. 6 altı
  8. 7 yedi
  9. 8 sekiz
  10. 9 dokuz
  11. 1(\d) on[ $1]
  12. 2(\d) yirmi[ $1]
  13. 3(\d) otuz[ $1]
  14. 4(\d) kırk[ $1]
  15. 5(\d) elli[ $1]
  16. 6(\d) altmış[ $1]
  17. 7(\d) yetmiş[ $1]
  18. 8(\d) seksen[ $1]
  19. 9(\d) doksan[ $1]
  20. (1)(\d\d) yüz[ $2] # yüz ..
  21. ([2-9])(\d\d) $1 yüz[ $2] # üç yüz ...
  22. (1)(\d\d\d) bin[ $2] # bin
  23. (\d{1,2})([1-9]\d\d) $1 bin[ $2] # on bin iki yüz
  24. (\d{1,3})(\d{3}) $1 bin[ $2] # yüz bin iki yüz
  25. (\d{1,3})(\d{6}) $1 milyon[ $2]
  26. (\d{1,3})(\d{9}) $1 milyar[ $2]
  27. (\d{1,3})(\d{12}) $1 trilyon[ $2]
  28. (\d{1,3})(\d{15}) $1 katrilyon[ $2]
  29. (\d{1,3})(\d{18}) $1 kentilyon[ $2]
  30. (\d{1,3})(\d{21}) $1 sekstilyon[ $2]
  31. (\d{1,3})(\d{24}) $1 septilyon[ $2]
  32. # negative number
  33. [-−](\d+) negatif |$1
  34. # decimals
  35. ([-−]?\d+)[.,] $1| virgül
  36. "([-−]?\d+[.,]0*)(\d+)" $1 |$2
  37. ([-−]?\d+[.,]\d*)(\d) $1| |$2
  38. # currency
  39. # unit/subunit singular/plural
  40. us:([^,]*),([^,]*),([^,]*),([^,]*) \1
  41. up:([^,]*),([^,]*),([^,]*),([^,]*) \2
  42. ss:([^,]*),([^,]*),([^,]*),([^,]*) \3
  43. sp:([^,]*),([^,]*),([^,]*),([^,]*) \4
  44. AUD:(\D+) $(\1: Avustralya doları, Avustralya doları, sent, sent)
  45. BGN:(\D+) $(\1: Bulgar levası, Bulgar levası, stotinka, stotinki)
  46. BWP:(\D+) $(\1: Botswana pulası, Botswana pulası, thebe, thebe)
  47. CAD:(\D+) $(\1: Kanada doları, Canadian dollars, sent, sent)
  48. CHF:(\D+) $(\1: İsviçre frangı, İsviçre frangı, santim, santim)
  49. CNY:(\D+) $(\1: Çin yuanı, Çin yuanı, fen, fen)
  50. CZK:(\D+) $(\1: Çek korunası, Çek korunası, heller, heller)
  51. EEK:(\D+) $(\1: Estonya kronu, Estonya kronu, sent, sent)
  52. EUR:(\D+) $(\1: euro, euro, sent, sent)
  53. GBP:(\D+) $(\1: sterlin, sterlin, peni, peni)
  54. GHS:(\D+) $(\1: Gana sedisi, Gana sedisi, peseva, peseva)
  55. GMD:(\D+) $(\1: Gambiya dalası, Gambiya dalası, butut, butut)
  56. HKD:(\D+) $(\1: Hong Kong doları, Hong Kong doları, sent, sent)
  57. HRK:(\D+) $(\1: Hırvatistan kunası, Hırvatistan kunası, lipa, lipa)
  58. HUF:(\D+) $(\1: Macar forinti, Macar forinti, filler, filler)
  59. INR:(\D+) $(\1: Hindistan rupisi, Hindistan rupisi, paise, paise)
  60. JMD:(\D+) $(\1: Jamaika doları, Jamaika doları, sent, sent)
  61. JPY:(\D+) $(\1: Japon yeni, Japon yeni, sen, sen)
  62. KES:(\D+) $(\1: Kenya şilini, Kenya şilini, sent, sent)
  63. LRD:(\D+) $(\1: Liberya doları, Liberya doları, sent, sent)
  64. LSL:(\D+) $(\1: Lesotho loti, maloti, sente, lisente)
  65. LTL:(\D+) $(\1: Litvanya litası, Litvanya litası, centas, centai)
  66. LVL:(\D+) $(\1: Letonya latı, Letonya latı, santims, santimi)
  67. MGA:(\D+) $(\1: ariary, ariaries, iraimbilanja, iraimbilanja)
  68. MUR:(\D+) $(\1: Mauritius rupisi, Mauritius rupisi, sent, sent)
  69. MXN:(\D+) $(\1: Meksika pezosu, Meksika pezosu, sentavo, sentavo)
  70. MWK:(\D+) $(\1: Malawian kwacha, Malawian kwacha, tambala, tambala)
  71. NAD:(\D+) $(\1: Namibya doları, Namibya doları, sent, sent)
  72. NGN:(\D+) $(\1: Nijerya nairası, Nijerya nairası, kobo, kobo)
  73. NZD:(\D+) $(\1: Yeni Zelanda doları, Yeni Zelanda doları, sent, sent)
  74. PGK:(\D+) $(\1: Papua Yeni Gine kinası, Papua Yeni Gine kinası, toea, toea)
  75. PHP:(\D+) $(\1: Filipinler pezosu, Filipinler pezosu, sentavo, sentavo)
  76. PKR:(\D+) $(\1: Pakistan rupisi, Pakistan rupisi, paisa, paisa)
  77. PLN:(\D+) $(\1: Polonya zlotisi, Polonya zlotisi, grosz, groszy)
  78. RON:(\D+) $(\1: Romen leyi, Romen leyi, ban, ban)
  79. RSD:(\D+) $(\1: Sırbistan dinarı, Sırbistan dinarı, para, para)
  80. RUB:(\D+) $(\1: Rus rublesi, Rus rublesi, kopek, kopek)
  81. RWF:(\D+) $(\1: Ruanda frangı, Ruanda frangı, santim, santim)
  82. SDG:(\D+) $(\1: Sudan poundu, Sudan poundu, piastre, piastres)
  83. SGD:(\D+) $(\1: Singapur doları, Singapur doları, sent, sent)
  84. SLL:(\D+) $(\1: Sierra Leone leonu, Sierra Leone leonu, sent, sent)
  85. SZL:(\D+) $(\1: lilangeni, emalangeni, cent, cents)
  86. THB:(\D+) $(\1: Tayland bahtı, Tayland bahtı, satang, satang)
  87. TRY:(\D+) $(\1: Türk lirası, Türk lirası, kuruş, kuruş)
  88. TTD:(\D+) $(\1: Trinidad ve Tobago doları, Trinidad ve Tobago doları, sent, sent)
  89. TZS:(\D+) $(\1: Tanzanya şilini, Tanzanya şilini, sent, sent)
  90. UAH:(\D+) $(\1: Ukrayna hryvnyası, Ukrayna hryvnyası, kopiyka, kopiyka)
  91. UGX:(\D+) $(\1: Uganda şilini, Uganda şilini, sent, sent)
  92. USD:(\D+) $(\1: ABD doları, ABD doları, sent, sent)
  93. X[AO]F:(\D+) $(\1: CFA franc, CFA francs, centime, centimes)
  94. ZAR:(\D+) $(\1: Güney Afrika randı, Güney Afrika randı, sent, sent)
  95. ZMK:(\D+) $(\1: Zambiya kıvaçası, Zambiya Kıvaçası, ngwee, ngwee)
  96. ZWD:(\D+) $(\1: Zimbabve doları, Zimbabve doları, sent, sent)
  97. "(JPY [-−]?\d+)[.,](\d\d)0" $1
  98. "(JPY [-−]?\d+[.,]\d\d)(\d)" $1 $2 rin
  99. # removing spaces from number names before currencies
  100. "space:([^ ]+) +([^ ].*)" \1$(space:\2)
  101. space:(.*) \1
  102. "([A-Z]{3}) ([-−]?1)([.,]00?)?" $2$(\1:us)
  103. "([A-Z]{3}) ([-−]?\d+)([.,]00?)?" $(space:|$2)$(\1:up)
  104. "(CNY [-−]?\d+)[.,](\d)0?" $1 $2 jiao
  105. "(CNY [-−]?\d+[.,]\d)(\d)" $1 $2 fen
  106. "((MGA|MRO) [-−]?\d+)[.,]0" $1
  107. "((MGA|MRO) [-−]?\d+)[.,]2" $1 |$(1)$(\2:ss)
  108. "((MGA|MRO) [-−]?\d+)[.,]4" $1 |$(2)$(\2:sp)
  109. "((MGA|MRO) [-−]?\d+)[.,]6" $1 |$(3)$(\2:sp)
  110. "((MGA|MRO) [-−]?\d+)[.,]8" $1 |$(4)$(\2:sp)
  111. "(([A-Z]{3}) [-−]?\d+)[.,](01)" $1 |$(1)$(\2:ss)
  112. "(([A-Z]{3}) [-−]?\d+)[.,](\d)" $1 |$(\30)$(\2:sp)
  113. "(([A-Z]{3}) [-−]?\d+)[.,](\d\d)" $1 $(space:|$3)$(\2:sp)
  114. == ordinal ==
  115. (\d+) $(ordinal $1)
  116. (.*ü[çz]) \1üncü
  117. (.*dör)t \1düncü
  118. (.*)altı \1altıncı
  119. (.*(kırk|doksan|yar|ış)) \1ıncı
  120. (.*(uz|on)) \1uncu
  121. (.*)i \1inci
  122. (.*) \1inci
  123. == ordinal-number ==
  124. (\d+) \1.
  125. == help ==
  126. "" |$(1)|, |$(2)|, |$(3)|\n$(help ordinal)$(help ordinal-number)
  127. (.*) \1: |$(\1 1)|, |$(\1 2)|, |$(\1 3)|\n