Skip to content

Commit

Permalink
Address issue #112
Browse files Browse the repository at this point in the history
Changed my mind, let's go with the "perzero" and friends.
```۰ arPerzero  U+06F0
۱ arPerone   U+06F1
۲ arPertwo   U+06F2
۳ arPerthree U+06F3
۴ arPerfour  U+06F4
۵ arPerfive  U+06F5
۶ arPersix   U+06F6
۷ arPerseven U+06F7
۸ arPereight U+06F8
۹ arPernine  U+06F9```
  • Loading branch information
LettError committed Oct 7, 2024
1 parent 0bbb659 commit 284494b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions Lib/glyphNameFormatter/rangeProcessors/arabic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ def process(self):
# is not exclusive to Farsi.
# ۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹
extendedArabicIndic = {
0x06f0: 'zero' , #sefr',
0x06f1: 'one' , #yek',
0x06f2: 'two' , #do',
0x06f3: 'three' , #seh',
0x06f4: 'four' , #chahar',
0x06f5: 'five' , #panj',
0x06f6: 'six' , #shish',
0x06f7: 'seven' , #haft',
0x06f8: 'eight' , #hasht',
0x06f9: 'nine' , #noh',
0x06f0: 'perzero' , #sefr',
0x06f1: 'perone' , #yek',
0x06f2: 'pertwo' , #do',
0x06f3: 'perthree' , #seh',
0x06f4: 'perfour' , #chahar',
0x06f5: 'perfive' , #panj',
0x06f6: 'persix' , #shish',
0x06f7: 'perseven' , #haft',
0x06f8: 'pereight' , #hasht',
0x06f9: 'pernine' , #noh',
}

if self.uniNumber in extendedArabicIndic.keys():
self.edit("EXTENDED", "xt")
self.scriptPrefix()
# straight to uniNameProcessed, we want the "per" in front of the number
# and the self.edit() patterns aim to add things at the end.
self.uniNameProcessed = extendedArabicIndic[self.uniNumber]

self.edit("ARABIC COMMA", "comma")
self.edit("ARABIC NUMBER SIGN", "numbersign")
Expand Down

0 comments on commit 284494b

Please sign in to comment.