Arabic Script (العربية أنظمة كتابة)

Coding examples of rendering natural languages' strings.

sh-4.2$ perl -C -e 'print "Perl in Urdu: \x{0644}\x{FEAE}\x{FB58}\n"'
Perl in Urdu: پرل
sh-4.2$ tclsh
% set Tcl "\u0644\u0627\uFEF0\uFEB3\uFEF0\uFE97"
تی‌سی‌ال
% puts "Tcl in Farsi: $Tcl"
Tcl in Farsi: تی‌سی‌ال
% exit

sh-4.2$  

Currently Arabic script renders in 9term, but neither in the Acme nor Sam editors;
write code and/or program to edit Right-to-Left aligned files on Plan 9.

(Running 9front from a flash stick.)

term% echo $font
/lib/font/bit/vga/unicode.font
term% python
Python 2.5.1 (r251:54863, Feb 29 2016, 00:02:07) [C] on plan9
Type "help", "copyright", "credits" or "license" for more information.
>>> python = u'\uFEE5\uFEEE\uFE9C\uFEF3\uFE8E\uFE91'
print 'Python in Arabic: ', python.encode('utf-8')
Python in Arabic: بايثون
>>> exit()
term%

The Unicode Standard is missing these for Sorani (Central Kurdish), but it has been
said that the use of Presentation Forms of Arabic letters is to be discouraged.

ARABIC LETTER REH WITH SMALL V FINAL FORM
ARABIC LETTER REH WITH SMALL V BELOW FINAL FORM

ARABIC LETTER LAM WITH SMALL V INITIAL FORM
ARABIC LETTER LAM WITH SMALL V MEDIAL FORM
ARABIC LETTER LAM WITH SMALL V FINAL FORM

ARABIC LETTER LAM WITH ALEF WITH SMALL V ABOVE ISOLATED FORM
ARABIC LETTER LAM WITH ALEF WITH SMALL V ABOVE FINAL FORM

ARABIC LETTER YEH WITH SMALL V INITIAL FORM
ARABIC LETTER YEH WITH SMALL V MEDIAL FORM
ARABIC LETTER YEH WITH SMALL V FINAL FORM


No comments:

Post a Comment