Skip to content

Commit

Permalink
Add common Lang
Browse files Browse the repository at this point in the history
  • Loading branch information
sadikoff committed Feb 11, 2019
1 parent 08eeb88 commit beda6b9
Showing 1 changed file with 201 additions and 0 deletions.
201 changes: 201 additions & 0 deletions src/Mapping/Lang/Common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<?php

namespace Koff\Transliterator\Mapping\Lang;

use Koff\Transliterator\Mapping\MappingInterface;

/**
* @author Vladimir Sadicov <[email protected]>
*/
class Common implements MappingInterface
{
public function getCharMapping(): array
{
return [
'Ä' => 'Ae',
'ä' => 'ae',
'Æ' => 'Ae',
'æ' => 'ae',
'À' => 'A',
'à' => 'a',
'Á' => 'A',
'á' => 'a',
'Â' => 'A',
'â' => 'a',
'Ã' => 'A',
'ã' => 'a',
'Å' => 'A',
'å' => 'a',
'ª' => 'a',
'' => 'a',
'ā' => 'a',
'Ć' => 'C',
'ć' => 'c',
'Ç' => 'C',
'ç' => 'c',
'Ð' => 'D',
'đ' => 'd',
'È' => 'E',
'è' => 'e',
'É' => 'E',
'é' => 'e',
'Ê' => 'E',
'ê' => 'e',
'Ë' => 'E',
'ë' => 'e',
'' => 'e',
'ƒ' => 'f',
'ğ' => 'g',
'Ğ' => 'G',
'Ì' => 'I',
'ì' => 'i',
'Í' => 'I',
'í' => 'i',
'Î' => 'I',
'î' => 'i',
'Ï' => 'Ii',
'ï' => 'ii',
'ī' => 'i',
'ı' => 'i',
'I' => 'I',
'Ñ' => 'N',
'ñ' => 'n',
'' => 'n',
'Ò' => 'O',
'ò' => 'o',
'Ó' => 'O',
'ó' => 'o',
'Ô' => 'O',
'ô' => 'o',
'Õ' => 'O',
'õ' => 'o',
'Ø' => 'O',
'ø' => 'o',
'' => 'o',
'Ö' => 'Oe',
'ö' => 'oe',
'Œ' => 'Oe',
'œ' => 'oe',
'ß' => 'ss',
'Š' => 'S',
'š' => 's',
'ş' => 's',
'Ş' => 'S',
'Ù' => 'U',
'ù' => 'u',
'Ú' => 'U',
'ú' => 'u',
'Û' => 'U',
'û' => 'u',
'Ü' => 'Ue',
'ü' => 'ue',
'Ý' => 'Y',
'ý' => 'y',
'ÿ' => 'y',
'Ž' => 'Z',
'ž' => 'z',
'' => '0',
'¹' => '1',
'²' => '2',
'³' => '3',
'' => '4',
'' => '5',
'' => '6',
'' => '7',
'' => '8',
'' => '9' ,
'' => '0',
'' => '1',
'' => '2',
'' => '3',
'' => '4',
'' => '5',
'' => '6',
'' => '7',
'' => '8',
'' => '9',
'±' => '-',
'×' => 'x',
'' => '-',
'' => '=',
'' => '=',
'' => '-',
'' => '-',
'' => '-',
'' => '-',
'' => '-',
'' => '.',
'' => '..',
'' => '...',
'' => '.',
' ' => '-',
' ' => '-',
'А' => 'A',
'Б' => 'B',
'В' => 'V',
'Г' => 'G',
'Д' => 'D',
'Е' => 'E',
'Ё' => 'YO',
'Ж' => 'ZH',
'З' => 'Z',
'И' => 'I',
'Й' => 'Y',
'К' => 'K',
'Л' => 'L',
'М' => 'M',
'Н' => 'N',
'О' => 'O',
'П' => 'P',
'Р' => 'R',
'С' => 'S',
'Т' => 'T',
'У' => 'U',
'Ф' => 'F',
'Х' => 'H',
'Ц' => 'TS',
'Ч' => 'CH',
'Ш' => 'SH',
'Щ' => 'SCH',
'Ъ' => '',
'Ы' => 'Y',
'Ь' => '',
'Э' => 'E',
'Ю' => 'YU',
'Я' => 'YA',
'а' => 'a',
'б' => 'b',
'в' => 'v',
'г' => 'g',
'д' => 'd',
'е' => 'e',
'ё' => 'yo',
'ж' => 'zh',
'з' => 'z',
'и' => 'i',
'й' => 'y',
'к' => 'k',
'л' => 'l',
'м' => 'm',
'н' => 'n',
'о' => 'o',
'п' => 'p',
'р' => 'r',
'с' => 's',
'т' => 't',
'у' => 'u',
'ф' => 'f',
'х' => 'h',
'ц' => 'ts',
'ч' => 'ch',
'ш' => 'sh',
'щ' => 'sch',
'ъ' => '',
'ы' => 'y',
'ь' => '',
'э' => 'e',
'ю' => 'yu',
'я' => 'ya'
];
}
}

0 comments on commit beda6b9

Please sign in to comment.