<?php // -*- coding: utf-8 -*-

/** \file accentalpha_to_alpha.inc
 * (December 31, 2013)
 *
 * \brief Characters with accent, cedilla ... or ligature.
 *
 * Piece of alphanormalize_php.
 * https://bitbucket.org/OPiMedia/alphanormalize_php
 *
 * GPLv3 --- Copyright (C) 2013 Olivier Pirson
 * http://www.opimedia.be/
 */


/**
 * Associative table: character with accent, cedilla ... or ligature => alphabetic character corresponding.
 *
 * For example: <code>'é'</code> => <code>'e'</code>.
 */
$ACCENTALPHA_TO_ALPHA = array(
  
'À' => 'A',
  
'Á' => 'A',
  
'Â' => 'A',
  
'Ã' => 'A',
  
'Ä' => 'A',
  
'Å' => 'A',
  
'Æ' => 'AE',
  
'Ç' => 'C',
  
'È' => 'E',
  
'É' => 'E',
  
'Ê' => 'E',
  
'Ë' => 'E',
  
'Ì' => 'I',
  
'Í' => 'I',
  
'Î' => 'I',
  
'Ï' => 'I',
  
'Ñ' => 'N',
  
'Ò' => 'O',
  
'Ó' => 'O',
  
'Ô' => 'O',
  
'Õ' => 'O',
  
'Ö' => 'O',
  
'Ø' => 'O',
  
'Ù' => 'U',
  
'Ú' => 'U',
  
'Û' => 'U',
  
'Ü' => 'U',
  
'Ý' => 'Y',
  
'ß' => 'sz',
  
'à' => 'a',
  
'á' => 'a',
  
'â' => 'a',
  
'ã' => 'a',
  
'ä' => 'a',
  
'å' => 'a',
  
'æ' => 'ae',
  
'ç' => 'c',
  
'è' => 'e',
  
'é' => 'e',
  
'ê' => 'e',
  
'ë' => 'e',
  
'ì' => 'i',
  
'í' => 'i',
  
'î' => 'i',
  
'ï' => 'i',
  
'ñ' => 'n',
  
'ò' => 'o',
  
'ó' => 'o',
  
'ô' => 'o',
  
'õ' => 'o',
  
'ö' => 'o',
  
'ø' => 'o',
  
'ù' => 'u',
  
'ú' => 'u',
  
'û' => 'u',
  
'ü' => 'u',
  
'ý' => 'y',
  
'ÿ' => 'y',
  
'Œ' => 'OE',
  
'œ' => 'oe',
  
'Š' => 'S',
  
'š' => 's',
  
'Ÿ' => 'Y'
);


return 
true;

?>

<?php // -*- coding: utf-8 -*-

/** \file accentalpha_to_alpha.inc
 * (December 31, 2013)
 *
 * \brief Characters with accent, cedilla ... or ligature.
 *
 * Piece of alphanormalize_php.
 * https://bitbucket.org/OPiMedia/alphanormalize_php
 *
 * GPLv3 --- Copyright (C) 2013 Olivier Pirson
 * http://www.opimedia.be/
 */


/**
 * Associative table: character with accent, cedilla ... or ligature => alphabetic character corresponding.
 *
 * For example: <code>'é'</code> => <code>'e'</code>.
 */
$ACCENTALPHA_TO_ALPHA = array(
  'À' => 'A',
  'Á' => 'A',
  'Â' => 'A',
  'Ã' => 'A',
  'Ä' => 'A',
  'Å' => 'A',
  'Æ' => 'AE',
  'Ç' => 'C',
  'È' => 'E',
  'É' => 'E',
  'Ê' => 'E',
  'Ë' => 'E',
  'Ì' => 'I',
  'Í' => 'I',
  'Î' => 'I',
  'Ï' => 'I',
  'Ñ' => 'N',
  'Ò' => 'O',
  'Ó' => 'O',
  'Ô' => 'O',
  'Õ' => 'O',
  'Ö' => 'O',
  'Ø' => 'O',
  'Ù' => 'U',
  'Ú' => 'U',
  'Û' => 'U',
  'Ü' => 'U',
  'Ý' => 'Y',
  'ß' => 'sz',
  'à' => 'a',
  'á' => 'a',
  'â' => 'a',
  'ã' => 'a',
  'ä' => 'a',
  'å' => 'a',
  'æ' => 'ae',
  'ç' => 'c',
  'è' => 'e',
  'é' => 'e',
  'ê' => 'e',
  'ë' => 'e',
  'ì' => 'i',
  'í' => 'i',
  'î' => 'i',
  'ï' => 'i',
  'ñ' => 'n',
  'ò' => 'o',
  'ó' => 'o',
  'ô' => 'o',
  'õ' => 'o',
  'ö' => 'o',
  'ø' => 'o',
  'ù' => 'u',
  'ú' => 'u',
  'û' => 'u',
  'ü' => 'u',
  'ý' => 'y',
  'ÿ' => 'y',
  'Œ' => 'OE',
  'œ' => 'oe',
  'Š' => 'S',
  'š' => 's',
  'Ÿ' => 'Y'
);


return true;

?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

PHPstripDEBUG

« < > »

1498 b

'<?php':
1
stripped/alphanormalize_php/accentalpha_to_alpha.inc 879 b (≅59%)
source: utf_8   destination: utf_8   XHTML: utf_8
JavaScript is disabled!
© Olivier Pirson — DragonSoft DS — v.01.01.04 — June 19, 2020
This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the source for copying conditions.