blob: 995f483048305e5eac8a2f5e58752043b1455ee1 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
darwineld8bef8a2014-02-11 20:13:22 +01002defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05003
Derek Jonesdaf9c012010-03-05 10:29:30 -06004/*
5| -------------------------------------------------------------------
6| Foreign Characters
7| -------------------------------------------------------------------
8| This file contains an array of foreign characters for transliteration
9| conversion used by the Text helper
10|
11*/
Eric Barnes5e044802011-01-11 16:10:26 -050012$foreign_characters = array(
13 '/ä|æ|ǽ/' => 'ae',
14 '/ö|œ/' => 'oe',
15 '/ü/' => 'ue',
16 '/Ä/' => 'Ae',
17 '/Ü/' => 'Ue',
18 '/Ö/' => 'Oe',
Andrey30563ff2012-11-01 01:49:39 +040019 '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
20 '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
21 '/Б/' => 'B',
22 '/б/' => 'b',
Eric Barnes5e044802011-01-11 16:10:26 -050023 '/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
24 '/ç|ć|ĉ|ċ|č/' => 'c',
Andrey30563ff2012-11-01 01:49:39 +040025 '/Д/' => 'D',
26 '/д/' => 'd',
George Petsagourakis25ead352012-04-24 20:07:58 +030027 '/Ð|Ď|Đ|Δ/' => 'Dj',
28 '/ð|ď|đ|δ/' => 'dj',
Sergey Noskovcf524a62013-08-25 13:52:48 +030029 '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
30 '/è|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skovcf524a62013-08-25 13:52:48 +030071 '/ß/' => 'ss',
Eric Barnes5e044802011-01-11 16:10:26 -050072 '/IJ/' => 'IJ',
73 '/ij/' => 'ij',
74 '/Œ/' => 'OE',
George Petsagourakis25ead352012-04-24 20:07:58 +030075 '/ƒ/' => 'f',
76 '/ξ/' => 'ks',
77 '/π/' => 'p',
78 '/β/' => 'v',
79 '/μ/' => 'm',
80 '/ψ/' => 'ps',
Sergey Noskovcf524a62013-08-25 13:52:48 +030081 '/Ё/' => 'Yo',
82 '/ё/' => 'yo',
83 '/Є/' => 'Ye',
84 '/є/' => 'ye',
85 '/Ї/' => 'Yi',
86 '/Ж/' => 'Zh',
87 '/ж/' => 'zh',
88 '/Х/' => 'Kh',
89 '/х/' => 'kh',
90 '/Ц/' => 'Ts',
91 '/ц/' => 'ts',
92 '/Ч/' => 'Ch',
93 '/ч/' => 'ch',
94 '/Ш/' => 'Sh',
95 '/ш/' => 'sh',
96 '/Щ/' => 'Shch',
97 '/щ/' => 'shch',
98 '/Ъ|ъ|Ь|ь/' => '',
99 '/Ю/' => 'Yu',
100 '/ю/' => 'yu',
101 '/Я/' => 'Ya',
102 '/я/' => 'ya'
Eric Barnes5e044802011-01-11 16:10:26 -0500103);