8d2a918abb706cb6bd2b3377b0b38fed1a5e540b
[lhc/web/www.git] / www / ecrire / charsets / iso-8859-6.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2017 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13 /**
14 * Déclaration des correspondances entre charsets iso-8859-6 (arabic) et unicode
15 *
16 * @link http://czyborra.com/charsets/iso8859.html#ISO-8859-6
17 *
18 * @package SPIP\Core\Charsets
19 **/
20
21 if (!defined('_ECRIRE_INC_VERSION')) {
22 return;
23 }
24
25 load_charset('iso-8859-1');
26
27 $trans = $GLOBALS['CHARSET']['iso-8859-1'];
28
29 $mod = array(
30 0xA0 => 0x00A0,
31 0xA4 => 0x00A4,
32 0xAC => 0x060C,
33 0xAD => 0x00AD,
34 0xBB => 0x061B,
35 0xBF => 0x061F,
36 0xC1 => 0x0621,
37 0xC2 => 0x0622,
38 0xC3 => 0x0623,
39 0xC4 => 0x0624,
40 0xC5 => 0x0625,
41 0xC6 => 0x0626,
42 0xC7 => 0x0627,
43 0xC8 => 0x0628,
44 0xC9 => 0x0629,
45 0xCA => 0x062A,
46 0xCB => 0x062B,
47 0xCC => 0x062C,
48 0xCD => 0x062D,
49 0xCE => 0x062E,
50 0xCF => 0x062F,
51 0xD0 => 0x0630,
52 0xD1 => 0x0631,
53 0xD2 => 0x0632,
54 0xD3 => 0x0633,
55 0xD4 => 0x0634,
56 0xD5 => 0x0635,
57 0xD6 => 0x0636,
58 0xD7 => 0x0637,
59 0xD8 => 0x0638,
60 0xD9 => 0x0639,
61 0xDA => 0x063A,
62 0xE0 => 0x0640,
63 0xE1 => 0x0641,
64 0xE2 => 0x0642,
65 0xE3 => 0x0643,
66 0xE4 => 0x0644,
67 0xE5 => 0x0645,
68 0xE6 => 0x0646,
69 0xE7 => 0x0647,
70 0xE8 => 0x0648,
71 0xE9 => 0x0649,
72 0xEA => 0x064A,
73 0xEB => 0x064B,
74 0xEC => 0x064C,
75 0xED => 0x064D,
76 0xEE => 0x064E,
77 0xEF => 0x064F,
78 0xF0 => 0x0650,
79 0xF1 => 0x0651,
80 0xF2 => 0x0652
81 );
82
83 foreach ($mod as $num => $val) {
84 $trans[$num] = $val;
85 }
86
87 $GLOBALS['CHARSET']['iso-8859-6'] = $trans;