]> git.lyx.org Git - features.git/commit
Update special arabic support to UCS4
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 24 Mar 2007 21:12:29 +0000 (21:12 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sat, 24 Mar 2007 21:12:29 +0000 (21:12 +0000)
commit6862d3f972ec56a7de041e4f5d3b66fcf08ef82c
tree2d1bc5af084e964d7895b08766d545cddaa10d90
parentc27dce2b1670cfc3c2ebfe86a8d63ee116b9372d
Update special arabic support to UCS4

* src/encoding.C
(arabic_table): Delete (this was used for fonts in iso8859-6 encoding)
(arabic_table2): Rename to arabic_table and update code points to UCS4.
The old code points in this table where a custom encoding:
Some ASCII positions and some unused positions of the iso8859-6
encoding where used to encode the shaped forms. Example:
The character hamza was encoded with 0x41. The iso8859-6 encoding in
lib/encodings contained ithe value 0xfe80 at position 0x41 before
the transition to unicode => Change the value 0x41 to 0xfe80 in the
table.
This old custom encoding was needed because the transformed characters
needed to be transported through 8bit characters.
(Encodings::is_arabic_special): Change code points from iso8859-6 to UCS4
(Encodings::isComposeChar_arabic): Ditto
(Encodings::is_arabic): Ditto
(Encodings::transformChar): Always use arabic_table

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17532 a592a061-630c-0410-9148-cb99ea01b6c8
src/encoding.C