Extension

Developer
Supported

URL Title Chars

ExpressionEngine 1.x

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

compatibility

General

sina
sina

is this add-ons compatible with Persian our Arabic characters? if yes how?

Laisvunas
# 1
Developer
Laisvunas

Yes, it is.

You only need to edit language file. E.g. among the rules you would add while editing language file might be this:

'url_title_char_1676' => "d"// Arabic Letter Dahal 

To find decimal representations of letters visit Richard Ishida’s Unicode Code Converter.

sina
# 2
sina

it means I should make language files manually for Arabic characters ?
can you please give me more info about this?

Laisvunas
# 3
Developer
Laisvunas

Yes, that’s true.
- you should create language file because only you know how you need to map characters used in your language to latin characters.

Here is fragment of the file I created for Greek polytonic characters:

// Greek polytonic -> Betacode notation
'url_title_char_768'       =>    "",    // ?  Combining Grave Accent
'url_title_char_769'       =>    "",    // ?  Combining Acute Accent
'url_title_char_770'       =>    "",    // ? Combining Circumflex Accent
'url_title_char_772'       =>    "",    // ? Combining Macron
'url_title_char_774'       =>    "",    // ? Combining Breve 
'url_title_char_776'       =>    "",    // ? Combining Diaeresis
'url_title_char_787'       =>    "",    // ? Combining Comma Above
'url_title_char_788'       =>    "",    // ? Combining Reversed Comma Above
'url_title_char_834'       =>    "",    // ? Combining Greek Perispomeni
'url_title_char_835'       =>    "",    // ? Combining Greek Koronis
'url_title_char_836'       =>    "",    // ? Combining Greek Dialytika Tonos
'url_title_char_837'       =>    "",    // ? Combining Greek Ypogegrammeni    
'url_title_char_884'       =>    "",    // ? Greek Numeral Sign
'url_title_char_885'       =>    "",    // ? Greek Lower Numeral sign
'url_title_char_890'       =>    "",    // ? Greek Ypogegrammeni
'url_title_char_894'       =>    "",    // ? Greek Question Mark
'url_title_char_900'       =>    "",    // ? Greek Tonos
'url_title_char_901'       =>    "",    // ? Greek Dialytika Tonos
'url_title_char_902'       =>    "a",    // ? Greek Capital Letter Alpha With Tonos
'url_title_char_903'       =>    "",    // ? Greek Ano Teleia
'url_title_char_904'       =>    "e",    // ? Greek Capital Letter Epsilon With Tonos
'url_title_char_905'       =>    "h",    // ? Greek Capital Letter Eta With Tonos
'url_title_char_906'       =>    "i",    // ? Greek Capital Letter Iota With Tonos
'url_title_char_908'       =>    "o",    // ? Greek Capital Letter Omicron With Tonos
'url_title_char_910'       =>    "u",    // ? Greek Capital Letter Upsilon With Tonos
'url_title_char_911'       =>    "w",    // ? Greek Capital Letter Omega With Tonos
'url_title_char_912'       =>    "i",    // ? Greek Small Letter Iota With Dialytika and Tonos
'url_title_char_913'       =>    "a",    // ? Greek Capital Letter Alpha
'url_title_char_914'       =>    "b",    // ? Greek Capital Letter Beta
'url_title_char_915'       =>    "g",    // ? Greek Capital Letter Gamma
'url_title_char_916'       =>    "d",    // ? Greek Capital Letter Delta 

To create such file you need to know decimal representation of unicode characters. To find decimal representation go to http://rishida.net/tools/conversion/ . Then edit language file that comes with extension as in example above: Arabic Letter Dahal whose decimal representation is 1676 is being converted in url_titles to latin letter “d” by adding the line in language file

'url_title_char_1676' => "d"// Arabic Letter Dahal 
sina
# 4
sina

thanks for info,
I’m not web professional, sorry for my silly questions.

whats this U+0698 ? its Unicode U+hex notation ?
for example I convert ? in Arabic to decimal, uniview ( http://rishida.net/scripts/uniview/uniview.php )  gave me this code :
U+0698   ARABIC LETTER JEH
General category:  Lo - Letter, other
Canonical combining class:  0 - Spacing, split, enclosing, reordrant, & Tibetan subjoined
Bidirectional category:  AL - Right-to-left Arabic
Unicode 1.0 name:  ARABIC LETTER RA WITH THREE DOTS ABOVE
Decimal:  1688
Unicode version:  1.1

I think my files for Arabic be like this :

'url_title_char_622'       =>    "a",    // ? ARABIC LETTER MADDAH ON ALEF
'url_title_char_628'       =>    "b",    // ? ARABIC LETTER BAA
'url_title_char_633'       =>    "c",    // ? ARABIC LETTER SEEN ISOLATED FORM 

is it true?