Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1106 lines (1103 sloc) 67.5 KB
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script>
'use strict';
(function () {
function init() {
var button = document.querySelector('button');
button.addEventListener('click', transcribe);
}
document.addEventListener('DOMContentLoaded', init);
}());
function transcribe (){
// Auslesen des Originaltextes
var source = document.getElementById("source").value;
// Initialisierung der Transkription
var transcription = source;
// Initialisierung der Transliteration
var transliteration = source;
// Auslesen der Sprache
var language = document.theForm.languageSelect.value;
// Ausführung je nach Sprache
switch (language) {
case "hy":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "hyS";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/([ԱԵԷԸԻՈՕաեէըիուօ])ս([աեէըիոօև])/g, "$1ss$2"); // ս zwischen zwei Vokalen = ss
var transcription = transcription.replace(/Ու/g, "U");
var transcription = transcription.replace(/ու/g, "u");
var transcription = transcription.replace(/(\s|$/g, "$1je"); // ե im Anlaut = je
var transcription = transcription.replace(/(\s|$/g, "$1wo"); // ո im Anlaut = wo
var transcription = transcription.replace(/(\s|$/g, "$1jew"); // և im Anlaut = jew
var transcription = transcription.replace(/([Իի]/g, "$1u"); // ւ nach ի = u
// Einzelbuchstaben
var transcription = transcription.replace(/Ա/g, "A");
var transcription = transcription.replace(/Բ/g, "B");
var transcription = transcription.replace(/Գ/g, "G");
var transcription = transcription.replace(/Դ/g, "D");
var transcription = transcription.replace(/Ե/g, "Je");
var transcription = transcription.replace(/Զ/g, "S");
var transcription = transcription.replace(/Է/g, "E");
var transcription = transcription.replace(/Ը/g, "E");
var transcription = transcription.replace(/Թ/g, "T");
var transcription = transcription.replace(/Ժ/g, "Sch");
var transcription = transcription.replace(/Ի/g, "I");
var transcription = transcription.replace(/Լ/g, "L");
var transcription = transcription.replace(/Խ/g, "Ch");
var transcription = transcription.replace(/Ծ/g, "Z");
var transcription = transcription.replace(/Կ/g, "K");
var transcription = transcription.replace(/Հ/g, "H");
var transcription = transcription.replace(/Ձ/g, "Ds");
var transcription = transcription.replace(/Ղ/g, "Gh");
var transcription = transcription.replace(/Ճ/g, "Tsch");
var transcription = transcription.replace(/Մ/g, "M");
var transcription = transcription.replace(/Յ/g, "J");
var transcription = transcription.replace(/Ն/g, "N");
var transcription = transcription.replace(/Շ/g, "Sch");
var transcription = transcription.replace(/Ո/g, "Wo");
var transcription = transcription.replace(/Չ/g, "Tsch");
var transcription = transcription.replace(/Պ/g, "P");
var transcription = transcription.replace(/Ջ/g, "Dsch");
var transcription = transcription.replace(/Ռ/g, "R");
var transcription = transcription.replace(/Ս/g, "S");
var transcription = transcription.replace(/Վ/g, "W");
var transcription = transcription.replace(/Տ/g, "T");
var transcription = transcription.replace(/Ր/g, "R");
var transcription = transcription.replace(/Ց/g, "Z");
var transcription = transcription.replace(/Ւ/g, "W");
var transcription = transcription.replace(/Փ/g, "P");
var transcription = transcription.replace(/Ք/g, "K");
var transcription = transcription.replace(/Օ/g, "O");
var transcription = transcription.replace(/Ֆ/g, "F");
var transcription = transcription.replace(/ա/g, "a");
var transcription = transcription.replace(/բ/g, "b");
var transcription = transcription.replace(/գ/g, "g");
var transcription = transcription.replace(/դ/g, "d");
var transcription = transcription.replace(/ե/g, "e");
var transcription = transcription.replace(/զ/g, "s");
var transcription = transcription.replace(/է/g, "e");
var transcription = transcription.replace(/ը/g, "e");
var transcription = transcription.replace(/թ/g, "t");
var transcription = transcription.replace(/ժ/g, "sch");
var transcription = transcription.replace(/ի/g, "i");
var transcription = transcription.replace(/լ/g, "l");
var transcription = transcription.replace(/խ/g, "ch");
var transcription = transcription.replace(/ծ/g, "z");
var transcription = transcription.replace(/կ/g, "k");
var transcription = transcription.replace(/հ/g, "h");
var transcription = transcription.replace(/ձ/g, "ds");
var transcription = transcription.replace(/ղ/g, "gh");
var transcription = transcription.replace(/ճ/g, "tsch");
var transcription = transcription.replace(/մ/g, "m");
var transcription = transcription.replace(/յ/g, "j");
var transcription = transcription.replace(/ն/g, "n");
var transcription = transcription.replace(/շ/g, "sch");
var transcription = transcription.replace(/ո/g, "o");
var transcription = transcription.replace(/չ/g, "tsch");
var transcription = transcription.replace(/պ/g, "p");
var transcription = transcription.replace(/ջ/g, "dsch");
var transcription = transcription.replace(/ռ/g, "r");
var transcription = transcription.replace(/ս/g, "s");
var transcription = transcription.replace(/վ/g, "w");
var transcription = transcription.replace(/տ/g, "t");
var transcription = transcription.replace(/ր/g, "r");
var transcription = transcription.replace(/ց/g, "z");
var transcription = transcription.replace(/ւ/g, "w");
var transcription = transcription.replace(/փ/g, "p");
var transcription = transcription.replace(/ք/g, "k");
var transcription = transcription.replace(/օ/g, "o");
var transcription = transcription.replace(/ֆ/g, "f");
var transcription = transcription.replace(/և/g, "ew");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "bg":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "bgS";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Regeln für Transkription
// Sonderfälle
var transcription = transcription.replace(/Алекс/g, "Alex"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Оксан/g, "Oxan"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Ксен/g, "Xen"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Макс/g, "Max"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Феликс/g, "Felix"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/([АЕИЙОУЪЯЁЮаеийоуъяёю])с([аеийоуъяёю])/g, "$1ss$2"); // с zwischen zwei von аеийоуъяёю = ss
var transcription = transcription.replace(/ь([аеиоуъ])/g, "j$1"); // ь vor Vokal = j
var transcription = transcription.replace(/([АЕИЙОУЪЯЁЮаеийоуъяёю])с([j])/g, "$1ss$2"); // с zwischen Vokal und ь+Vokal = ss
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "E");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Scht");
var transcription = transcription.replace(/Ъ/g, "A");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "scht");
var transcription = transcription.replace(/ъ/g, "a");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "ka":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "kaS";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/([აეიოუ])ს([აეიოუ])/g, "$1ss$2"); // ს zwischen zwei Vokalen = ss
// Einzelbuchstaben
var transcription = transcription.replace(/(\s|$)ა/g, " A");
var transcription = transcription.replace(/(\s|$)ბ/g, " B");
var transcription = transcription.replace(/(\s|$)გ/g, " G");
var transcription = transcription.replace(/(\s|$)დ/g, " D");
var transcription = transcription.replace(/(\s|$)ე/g, " E");
var transcription = transcription.replace(/(\s|$)ვ/g, " W");
var transcription = transcription.replace(/(\s|$)ზ/g, " S");
var transcription = transcription.replace(/(\s|$)თ/g, " T");
var transcription = transcription.replace(/(\s|$)ი/g, " I");
var transcription = transcription.replace(/(\s|$)კ/g, " K");
var transcription = transcription.replace(/(\s|$)ლ/g, " L");
var transcription = transcription.replace(/(\s|$)მ/g, " M");
var transcription = transcription.replace(/(\s|$)ნ/g, " N");
var transcription = transcription.replace(/(\s|$)ო/g, " O");
var transcription = transcription.replace(/(\s|$)პ/g, " P");
var transcription = transcription.replace(/(\s|$)ჟ/g, " Sch");
var transcription = transcription.replace(/(\s|$)რ/g, " R");
var transcription = transcription.replace(/(\s|$)ს/g, " S");
var transcription = transcription.replace(/(\s|$)ტ/g, " T");
var transcription = transcription.replace(/(\s|$)უ/g, " U");
var transcription = transcription.replace(/(\s|$)ფ/g, " P");
var transcription = transcription.replace(/(\s|$)ქ/g, " K");
var transcription = transcription.replace(/(\s|$)ღ/g, " Gh");
var transcription = transcription.replace(/(\s|$)ყ/g, " Q");
var transcription = transcription.replace(/(\s|$)შ/g, " Sch");
var transcription = transcription.replace(/(\s|$)ჩ/g, " Tsch");
var transcription = transcription.replace(/(\s|$)ც/g, " Z");
var transcription = transcription.replace(/(\s|$)ძ/g, " Ds");
var transcription = transcription.replace(/(\s|$)წ/g, " Z");
var transcription = transcription.replace(/(\s|$)ჭ/g, " Tsch");
var transcription = transcription.replace(/(\s|$)ხ/g, " Ch");
var transcription = transcription.replace(/(\s|$)ჯ/g, " Dsch");
var transcription = transcription.replace(/(\s|$)ჰ/g, " H");
var transcription = transcription.replace(//g, "a");
var transcription = transcription.replace(//g, "b");
var transcription = transcription.replace(//g, "g");
var transcription = transcription.replace(//g, "d");
var transcription = transcription.replace(//g, "e");
var transcription = transcription.replace(//g, "w");
var transcription = transcription.replace(//g, "s");
var transcription = transcription.replace(//g, "t");
var transcription = transcription.replace(//g, "i");
var transcription = transcription.replace(//g, "k");
var transcription = transcription.replace(//g, "l");
var transcription = transcription.replace(//g, "m");
var transcription = transcription.replace(//g, "n");
var transcription = transcription.replace(//g, "o");
var transcription = transcription.replace(//g, "p");
var transcription = transcription.replace(//g, "sch");
var transcription = transcription.replace(//g, "r");
var transcription = transcription.replace(//g, "s");
var transcription = transcription.replace(//g, "t");
var transcription = transcription.replace(//g, "u");
var transcription = transcription.replace(//g, "p");
var transcription = transcription.replace(//g, "k");
var transcription = transcription.replace(//g, "gh");
var transcription = transcription.replace(//g, "q");
var transcription = transcription.replace(//g, "sch");
var transcription = transcription.replace(//g, "tsch");
var transcription = transcription.replace(//g, "z");
var transcription = transcription.replace(//g, "ds");
var transcription = transcription.replace(//g, "z");
var transcription = transcription.replace(//g, "tsch");
var transcription = transcription.replace(//g, "ch");
var transcription = transcription.replace(//g, "dsch");
var transcription = transcription.replace(//g, "h");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "kk":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "kkS-Cyrl";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/Александр(\s|$)/g, "Alexander$1"); // Александр = Alexander
var transcription = transcription.replace(/Алекс/g, "Alex"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Оксан/g, "Oxan"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Ксен/g, "Xen"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Макс/g, "Max"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Феликс/g, "Felix"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/([АӘЕІИОӨУҰҮЫЭЯЁЮаәеіиоөуұүыэяёю]/g, "$1je"); // e nach Vokal = je
var transcription = transcription.replace(/ий(\s|$)/g, "i$1"); // й nach и am Wortende weg
var transcription = transcription.replace(/ий/g, "ij"); // й nach и im Wort = j
var transcription = transcription.replace(/([АӘЕІИЙОӨУҰҮЫЭЯЁЮаәеіийоөуұүыэяёю])с([аәеіийоөуұүыэяёю])/g, "$1ss$2"); // с zwischen zwei von аәеіийоөуұүыэяёю = ss
var transcription = transcription.replace(/([АӘЕІИЙОӨУҰҮЫЭЯЁЮаәеіийоөуұүыэяёю])й([аәеіиоөуұүыэ])/g, "$1j$2"); // й vor а,е,о,у = j
var transcription = transcription.replace(/([АӘЕІИОӨУҰҮЫЭЯЁЮаәеіиоөуұүыэяёю]/g, "$1i"); // й nach а,е,о,у = i
var transcription = transcription.replace(/([цчшщ]/g, "$1o"); // ë nach ц,ч,ш,щ = o
var transcription = transcription.replace(/ь([аәеіиоөуұүыэ])/g, "j$1"); // ь vor Vokal = j
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Ә/g, "Ä");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Ғ/g, "Gh");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/І/g, "I");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Қ/g, "Q");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/Ң/g, "Ng");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/Ө/g, "Ö");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ұ/g, "U");
var transcription = transcription.replace(/Ү/g, "Ü");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Һ/g, "H");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/ә/g, "ä");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/ғ/g, "gh");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/і/g, "i");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/қ/g, "q");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/ң/g, "ng");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/ө/g, "ö");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ұ/g, "u");
var transcription = transcription.replace(/ү/g, "ü");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/һ/g, "h");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ъ/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "ky":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "kyS-Cyrl";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/Александр(\s|$)/g, "Alexander$1"); // Александр = Alexander
var transcription = transcription.replace(/Алекс/g, "Alex"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Оксан/g, "Oxan"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Ксен/g, "Xen"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Макс/g, "Max"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Феликс/g, "Felix"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/([АЕИЙОӨУҮЫЭЯЁЮаеийоөуүыэяёю]/g, "$1je"); // e nach Vokal = je
var transcription = transcription.replace(/ий$/g, "i"); // й nach и am Wortende weg
var transcription = transcription.replace(/ий/g, "ij"); // й nach и im Wort = j
var transcription = transcription.replace(/й[аеиоөуүыэ]/g, "j$1"); // й vor а,е,о,у = j
var transcription = transcription.replace(/([аеиоөуүыэяёю]/g, "$1i"); // й nach а,е,о,у = i
var transcription = transcription.replace(/([цчшщ]/g, "$1o"); // ë nach ц,ч,ш,щ = o
var transcription = transcription.replace(/([АЕИЙОӨУҮЫЭЯЁЮаеийоөуүыэяёю])с([аеийоөуүыэяёю])/g, "$1ss$2"); // с zwischen zwei von аәеіийоөуұүыэяёю = ss
var transcription = transcription.replace(/ь([аеиоөуүыэ])/g, "j$1"); // ь vor Vokal = j
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Ж/g, "Dsch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/Ң/g, "Ng");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/Ө/g, "Ö");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ү/g, "Ü");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/ж/g, "dsch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/ң/g, "ng");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/ө/g, "ö");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ү/g, "ü");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ъ/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "mn":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "mnS-Cyrl";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Ж/g, "Dsch");
var transcription = transcription.replace(/З/g, "Ds");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "I");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/Ө/g, "Ö");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ү/g, "Ü");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Ts");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "je");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/ж/g, "dsch");
var transcription = transcription.replace(/з/g, "ds");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "i");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/ө/g, "ö");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ү/g, "ü");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "ts");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ъ/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/ь/g, "j");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "ru":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "ruS";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/Александр(\s|$)/g, "Alexander$1"); // Александр = Alexander
var transcription = transcription.replace(/Алекс/g, "Alex"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Аксин/g, "Axin"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Аксан/g, "Axan"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Оксан/g, "Oxan"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Ксен/g, "Xen"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Макс/g, "Max"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Секс/g, "Sex"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Феликс/g, "Felix"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Авксент/g, "Awxent"); // кс in Vor- und Vatersnamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/([АЕИЙОУЫЯЁЮЭаеийоуыэяёю]/g, "$1je"); // e nach Vokal = je
var transcription = transcription.replace(/([АЕИЙОУЫЯЁЮЭаеийоуыэяёю])с([аеийоуыэяёю])/g, "$1ss$2"); // с zwischen zwei von аеиоуыяёю = ss
var transcription = transcription.replace(/ий(\s|$)/g, "i$1"); // й nach и am Wortende weg
var transcription = transcription.replace(/ый(\s|$)/g, "y$1"); // й nach ы am Wortende weg
var transcription = transcription.replace(/ий/g, "ij"); // й nach и im Wort = j
var transcription = transcription.replace(/ый/g, "yj"); // й nach ы im Wort = j
var transcription = transcription.replace(/й([аеоу])/g, "j$1"); // й vor а,е,о,у = j
var transcription = transcription.replace(/([аеоу]/g, "$1i"); // й nach а,е,о,у = i
var transcription = transcription.replace(/([цчшщ]/g, "$1o"); // ë nach ц,ч,ш,щ = o
var transcription = transcription.replace(/ь([аеиоу])/g, "j$1"); // ь vor Vokal = j
var transcription = transcription.replace(/([АЕИЙОУЫЯЁЮЭаеийоуыэяёю])с([j])/g, "$1ss$2"); // с zwischen Vokal und ь+Vokal = ss
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ъ/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = transliteration.replace(/А/g, "A");
var transliteration = transliteration.replace(/Б/g, "B");
var transliteration = transliteration.replace(/В/g, "V");
var transliteration = transliteration.replace(/Г/g, "G");
var transliteration = transliteration.replace(/Д/g, "D");
var transliteration = transliteration.replace(/Е/g, "E");
var transliteration = transliteration.replace(/Ё/g, "Ë");
var transliteration = transliteration.replace(/Ж/g, "Ž");
var transliteration = transliteration.replace(/З/g, "Z");
var transliteration = transliteration.replace(/И/g, "I");
var transliteration = transliteration.replace(/Й/g, "J");
var transliteration = transliteration.replace(/К/g, "K");
var transliteration = transliteration.replace(/Л/g, "L");
var transliteration = transliteration.replace(/М/g, "M");
var transliteration = transliteration.replace(/Н/g, "N");
var transliteration = transliteration.replace(/О/g, "O");
var transliteration = transliteration.replace(/П/g, "P");
var transliteration = transliteration.replace(/Р/g, "R");
var transliteration = transliteration.replace(/С/g, "S");
var transliteration = transliteration.replace(/Т/g, "T");
var transliteration = transliteration.replace(/У/g, "U");
var transliteration = transliteration.replace(/Ф/g, "F");
var transliteration = transliteration.replace(/Х/g, "Ch");
var transliteration = transliteration.replace(/Ц/g, "C");
var transliteration = transliteration.replace(/Ч/g, "Č");
var transliteration = transliteration.replace(/Ш/g, "Š");
var transliteration = transliteration.replace(/Щ/g, "Šč");
var transliteration = transliteration.replace(/Ы/g, "Y");
var transliteration = transliteration.replace(/Э/g, "Ė");
var transliteration = transliteration.replace(/Ю/g, "Ju");
var transliteration = transliteration.replace(/Я/g, "Ja");
var transliteration = transliteration.replace(/а/g, "a");
var transliteration = transliteration.replace(/б/g, "b");
var transliteration = transliteration.replace(/в/g, "v");
var transliteration = transliteration.replace(/г/g, "g");
var transliteration = transliteration.replace(/д/g, "d");
var transliteration = transliteration.replace(/е/g, "e");
var transliteration = transliteration.replace(/ё/g, "ë");
var transliteration = transliteration.replace(/ж/g, "ž");
var transliteration = transliteration.replace(/з/g, "z");
var transliteration = transliteration.replace(/и/g, "i");
var transliteration = transliteration.replace(/й/g, "j");
var transliteration = transliteration.replace(/к/g, "k");
var transliteration = transliteration.replace(/л/g, "l");
var transliteration = transliteration.replace(/м/g, "m");
var transliteration = transliteration.replace(/н/g, "n");
var transliteration = transliteration.replace(/о/g, "o");
var transliteration = transliteration.replace(/п/g, "p");
var transliteration = transliteration.replace(/р/g, "r");
var transliteration = transliteration.replace(/с/g, "s");
var transliteration = transliteration.replace(/т/g, "t");
var transliteration = transliteration.replace(/у/g, "u");
var transliteration = transliteration.replace(/ф/g, "f");
var transliteration = transliteration.replace(/х/g, "ch");
var transliteration = transliteration.replace(/ц/g, "c");
var transliteration = transliteration.replace(/ч/g, "č");
var transliteration = transliteration.replace(/ш/g, "š");
var transliteration = transliteration.replace(/щ/g, "šč");
var transliteration = transliteration.replace(/ъ/g, "ʺ");
var transliteration = transliteration.replace(/ы/g, "y");
var transliteration = transliteration.replace(/ь/g, "'");
var transliteration = transliteration.replace(/э/g, "ė");
var transliteration = transliteration.replace(/ю/g, "ju");
var transliteration = transliteration.replace(/я/g, "ja");
break;
case "tg":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "tgS-Cyrl";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/Александр(\s|$)/g, "Alexander$1"); // Александр = Alexander
var transcription = transcription.replace(/Алекс+/g, "Alex"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Оксан+/g, "Oxan"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Ксен+/g, "Xen"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Макс+/g, "Max"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/Феликс+/g, "Felix"); // кс in Vornamen mit griechischen Wurzeln = x
var transcription = transcription.replace(/([АЕИЙОУӮЫЯЁЮЭаеийоуӯыэяёю]/g, "$1je"); // e nach Vokal = je
var transcription = transcription.replace(/ии/g, "iji"); // ии = iji
var transcription = transcription.replace(/ий$/g, "i"); // й nach и am Wortende weg
var transcription = transcription.replace(/ий/g, "ij"); // й nach и im Wort = j
var transcription = transcription.replace(/([аеийӣоуӯыэяёю]/g, "$1i"); // й nach а,е,о,у = i
var transcription = transcription.replace(/й[аеийӣоуӯыэяёю]/g, "ja"); // й vor а,е,о,у = j
var transcription = transcription.replace(/([цчшщ]/g, "$1o"); // ë nach ц,ч,ш,щ = o
var transcription = transcription.replace(/([АЕИЙӢОУӮЫЯЁЮЭаеийӣоуӯыэяёю])с([аеийӣоуӯыэяёю])/g, "$1ss$2"); // с zwischen zwei von аеийӣоуӯыэяёю = ss
var transcription = transcription.replace(/ь([аеийӣоуӯыэ])/g, "j$1"); // ь vor Vokal = j
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "G");
var transcription = transcription.replace(/Ғ/g, "Gh");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/И/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/Ӣ/g, "Ij");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Қ/g, "Q");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ӯ/g, "U");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ҳ/g, "H");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ҷ/g, "Dsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "g");
var transcription = transcription.replace(/ғ/g, "gh");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/и/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/ӣ/g, "ij");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/қ/g, "q");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ӯ/g, "u");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ҳ/g, "h");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ҷ/g, "dsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ъ/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
case "uk":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "ukS-Cyrl";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/([АЕІЇИЙОУЯЮЄаеіїийоуяює])с([аеіїийоуяює])/g, "$1ss$2"); // с zwischen zwei von аеіїийоуьяює = ss
var transcription = transcription.replace(/ь([аеіиоу])/g, "j$1"); // ь vor аеіиоу = j
var transcription = transcription.replace(/([АЕІЇИЙОУЯЮЄаеіїийоуяює])с([j])/g, "$1ss$2"); // с zwischen Vokal und ь+Vokal = ss
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "H");
var transcription = transcription.replace(/Ґ/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "E");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/І/g, "I");
var transcription = transcription.replace(/Ї/g, "Ji");
var transcription = transcription.replace(/И/g, "Y");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Щ/g, "Schtsch");
var transcription = transcription.replace(/Є/g, "Je");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "h");
var transcription = transcription.replace(/ґ/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/і/g, "i");
var transcription = transcription.replace(/ї/g, "ji");
var transcription = transcription.replace(/и/g, "y");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/щ/g, "schtsch");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/є/g, "je");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/я/g, "ja");
var transcription = transcription.replace(/'|/g, "");
// Regeln für die wissenschaftliche Transliteration
var transliteration = transliteration.replace(/А/g, "A");
var transliteration = transliteration.replace(/Б/g, "B");
var transliteration = transliteration.replace(/В/g, "V");
var transliteration = transliteration.replace(/Г/g, "H");
var transliteration = transliteration.replace(/Ґ/g, "G");
var transliteration = transliteration.replace(/Д/g, "D");
var transliteration = transliteration.replace(/Е/g, "E");
var transliteration = transliteration.replace(/Ж/g, "Ž");
var transliteration = transliteration.replace(/З/g, "Z");
var transliteration = transliteration.replace(/І/g, "I");
var transliteration = transliteration.replace(/Ї/g, "Ï");
var transliteration = transliteration.replace(/И/g, "Y");
var transliteration = transliteration.replace(/Й/g, "J");
var transliteration = transliteration.replace(/К/g, "K");
var transliteration = transliteration.replace(/Л/g, "L");
var transliteration = transliteration.replace(/М/g, "M");
var transliteration = transliteration.replace(/Н/g, "N");
var transliteration = transliteration.replace(/О/g, "O");
var transliteration = transliteration.replace(/П/g, "P");
var transliteration = transliteration.replace(/Р/g, "R");
var transliteration = transliteration.replace(/С/g, "S");
var transliteration = transliteration.replace(/Т/g, "T");
var transliteration = transliteration.replace(/У/g, "U");
var transliteration = transliteration.replace(/Ф/g, "F");
var transliteration = transliteration.replace(/Х/g, "Ch");
var transliteration = transliteration.replace(/Ц/g, "C");
var transliteration = transliteration.replace(/Ч/g, "Č");
var transliteration = transliteration.replace(/Ш/g, "Š");
var transliteration = transliteration.replace(/Щ/g, "Šč");
var transliteration = transliteration.replace(/Є/g, "Je");
var transliteration = transliteration.replace(/Ю/g, "Ju");
var transliteration = transliteration.replace(/Я/g, "Ja");
var transliteration = transliteration.replace(/а/g, "a");
var transliteration = transliteration.replace(/б/g, "b");
var transliteration = transliteration.replace(/в/g, "v");
var transliteration = transliteration.replace(/г/g, "h");
var transliteration = transliteration.replace(/ґ/g, "g");
var transliteration = transliteration.replace(/д/g, "d");
var transliteration = transliteration.replace(/е/g, "e");
var transliteration = transliteration.replace(/ж/g, "ž");
var transliteration = transliteration.replace(/з/g, "s");
var transliteration = transliteration.replace(/і/g, "i");
var transliteration = transliteration.replace(/ї/g, "ï");
var transliteration = transliteration.replace(/и/g, "y");
var transliteration = transliteration.replace(/й/g, "j");
var transliteration = transliteration.replace(/к/g, "k");
var transliteration = transliteration.replace(/л/g, "l");
var transliteration = transliteration.replace(/м/g, "m");
var transliteration = transliteration.replace(/н/g, "n");
var transliteration = transliteration.replace(/о/g, "o");
var transliteration = transliteration.replace(/п/g, "p");
var transliteration = transliteration.replace(/р/g, "r");
var transliteration = transliteration.replace(/с/g, "s");
var transliteration = transliteration.replace(/т/g, "t");
var transliteration = transliteration.replace(/у/g, "u");
var transliteration = transliteration.replace(/ф/g, "f");
var transliteration = transliteration.replace(/х/g, "ch");
var transliteration = transliteration.replace(/ц/g, "c");
var transliteration = transliteration.replace(/ч/g, "č");
var transliteration = transliteration.replace(/ш/g, "š");
var transliteration = transliteration.replace(/щ/g, "šč");
var transliteration = transliteration.replace(/ь/g, "ʹ");
var transliteration = transliteration.replace(/є/g, "je");
var transliteration = transliteration.replace(/ю/g, "ju");
var transliteration = transliteration.replace(/я/g, "ja");
var transliteration = transliteration.replace(/'|/g, "ʼ");
var transliteration = transliteration.replace(/ /g, " ");
break;
case "be":
// Setzen der Vorlage für die kyrillische Darstellung
var template = "beS";
// ab hier wird ganz doof Regel nach Regel abgearbeitet
// Sonderfälle
var transcription = transcription.replace(/([АЕІЙОУЎЫЭЯЁЮаеійоуўыэяёю])с([аеійоуўыэяёю])/g, "$1ss$2"); // с zwischen zwei von аеійоуўыэьяёю = ss
var transcription = transcription.replace(/([аеійоуўыэяёю'’]/g, "$1je"); // e nach Vokal = je
var transcription = transcription.replace(/ь([аеійоуўыэ])/g, "j$1"); // ь vor аеійоуўыэ = j
var transcription = transcription.replace(/([АЕІЙОУЎЫЭЯЁЮаеійоуўыэяёю])с([j])/g, "$1ss$2"); // с zwischen Vokal und ь+Vokal = ss
// Einzelbuchstaben
var transcription = transcription.replace(/А/g, "A");
var transcription = transcription.replace(/Б/g, "B");
var transcription = transcription.replace(/В/g, "W");
var transcription = transcription.replace(/Г/g, "H");
var transcription = transcription.replace(/Ґ/g, "G");
var transcription = transcription.replace(/Д/g, "D");
var transcription = transcription.replace(/Е/g, "Je");
var transcription = transcription.replace(/Ж/g, "Sch");
var transcription = transcription.replace(/З/g, "S");
var transcription = transcription.replace(/І/g, "I");
var transcription = transcription.replace(/Й/g, "J");
var transcription = transcription.replace(/К/g, "K");
var transcription = transcription.replace(/Л/g, "L");
var transcription = transcription.replace(/М/g, "M");
var transcription = transcription.replace(/Н/g, "N");
var transcription = transcription.replace(/О/g, "O");
var transcription = transcription.replace(/П/g, "P");
var transcription = transcription.replace(/Р/g, "R");
var transcription = transcription.replace(/С/g, "S");
var transcription = transcription.replace(/Т/g, "T");
var transcription = transcription.replace(/У/g, "U");
var transcription = transcription.replace(/Ў/g, "U");
var transcription = transcription.replace(/Ф/g, "F");
var transcription = transcription.replace(/Х/g, "Ch");
var transcription = transcription.replace(/Ц/g, "Z");
var transcription = transcription.replace(/Ч/g, "Tsch");
var transcription = transcription.replace(/Ш/g, "Sch");
var transcription = transcription.replace(/Ы/g, "Y");
var transcription = transcription.replace(/Э/g, "E");
var transcription = transcription.replace(/Ю/g, "Ju");
var transcription = transcription.replace(/Ё/g, "Jo");
var transcription = transcription.replace(/Я/g, "Ja");
var transcription = transcription.replace(/а/g, "a");
var transcription = transcription.replace(/б/g, "b");
var transcription = transcription.replace(/в/g, "w");
var transcription = transcription.replace(/г/g, "h");
var transcription = transcription.replace(/ґ/g, "g");
var transcription = transcription.replace(/д/g, "d");
var transcription = transcription.replace(/е/g, "e");
var transcription = transcription.replace(/ж/g, "sch");
var transcription = transcription.replace(/з/g, "s");
var transcription = transcription.replace(/і/g, "i");
var transcription = transcription.replace(/й/g, "j");
var transcription = transcription.replace(/к/g, "k");
var transcription = transcription.replace(/л/g, "l");
var transcription = transcription.replace(/м/g, "m");
var transcription = transcription.replace(/н/g, "n");
var transcription = transcription.replace(/о/g, "o");
var transcription = transcription.replace(/п/g, "p");
var transcription = transcription.replace(/р/g, "r");
var transcription = transcription.replace(/с/g, "s");
var transcription = transcription.replace(/т/g, "t");
var transcription = transcription.replace(/у/g, "u");
var transcription = transcription.replace(/ў/g, "u");
var transcription = transcription.replace(/ф/g, "f");
var transcription = transcription.replace(/х/g, "ch");
var transcription = transcription.replace(/ц/g, "z");
var transcription = transcription.replace(/ч/g, "tsch");
var transcription = transcription.replace(/ш/g, "sch");
var transcription = transcription.replace(/ь/g, "");
var transcription = transcription.replace(/ы/g, "y");
var transcription = transcription.replace(/э/g, "e");
var transcription = transcription.replace(/ю/g, "ju");
var transcription = transcription.replace(/ё/g, "jo");
var transcription = transcription.replace(/я/g, "ja");
// Apostroph
var transcription = transcription.replace(/'/g, "");
var transcription = transcription.replace(//g, "");
// Regeln für die wissenschaftliche Transliteration
var transliteration = ""; // Zeile löschen, wenn Transliterationsregeln für diese Sprache eingetragen wurden
var transliteration = transliteration.replace(/ /g, " ");
break;
default:
break;
}
// Einfügen der Transkription in das entsprechende Feld
document.getElementById("transcription").value = transcription;
// Einfügen der Transliteration in das entsprechende Feld
document.getElementById("transliteration").value = transliteration;
// Einfügen von Quelle, Transkription und Transliteration in Matrizes
const arrayOfSource = source.split("\n");
const arrayOfTranscription = transcription.split("\n");
const arrayOfTransliteration = transliteration.split("\n");
// Leeren des Feldes für die Wikipedia-Kopiervorlage
document.getElementById("copytemplate").value = "";
// Befüllen des Feldes für die Wikipedia-Kopiervorlage
for(var i = 0;i < arrayOfSource.length;i++){
document.getElementById("copytemplate").value = document.getElementById("copytemplate").value + "'''" + arrayOfTranscription[i].trim() + "''' ({{" + template + "|" + arrayOfSource[i].trim() + "}}";
if (transliteration != "") {document.getElementById("copytemplate").value = document.getElementById("copytemplate").value + ", wiss. [[Transliteration]] ''{{lang|" + language + "-Latn|" + arrayOfTransliteration[i].trim() + "}}''";}
if (arrayOfSource.length > 1 && i < arrayOfSource.length - 1) {document.getElementById("copytemplate").value = document.getElementById("copytemplate").value + "\n";}
}
}
</script>
<title>Wikyrill-o-mat - Transkriptionstool Kyrillisch, Armenisch, Georgisch - Deutsch</title>
</head>
<body>
<div class="container">
<!-- Hinweis anzeigen, wenn kein JavaScript angeschaltet ist --><noscript><div id="jstest" class="alert alert-danger" role="alert">Um den vollen Funktionsumfang dieser Webseite zu erfahren, benötigen Sie JavaScript. Hier finden Sie die <a href="https://www.enable-javascript.com/de/" target="_blank">Anleitung wie Sie JavaScript in Ihrem Browser einschalten</a>.</div></noscript><script language="javascript"><!--document.getElementById("jstest").style.display="none";--></script>
<h1 class="display-4">Wikyrill-o-mat</h1>
<p class="lead">Transkription <!--und Transliteration -->armenischer, bulgarischer, georgischer, kasachischer, kirgisischer, mongolischer, russischer, tadschikischer, ukrainischer und weißrussischer Namen in die deutsche Sprache.</p>
<p>Wählen Sie die Sprache aus, deren Regeln verwendet werden sollen, fügen Sie den kyrillischen Text in das Feld <em>Original</em> und klicken Sie auf den Button <em&rarr; L</em>.</p>
<form name="theForm">
<label class="lead">Sprache des Originals</label>
<select class="custom-select custom-select-lg mb-3" name="languageSelect">
<option value="hy">Armenisch</option>
<option value="bg">Bulgarisch</option>
<option value="ka">Georgisch</option>
<option value="kk">Kasachisch</option>
<option value="ky">Kirgisisch</option>
<option value="mn">Mongolisch</option>
<option value="ru" selected>Russisch</option>
<option value="tg">Tadschikisch</option>
<option value="uk">Ukrainisch</option>
<option value="be">Weißrussisch</option>
</select>
<div class="form-group">
<label for="source" class="lead">Original</label>
<textarea class="form-control" id="source" autofocus></textarea>
<p></p>
<button type="button" class="btn btn-primary btn-block" id="button"&rarr; L</button>
<p></p>
<label for="transcription" class="lead">Transkription</label>
<textarea class="form-control" id="transcription"></textarea>
<label for="transliteration" class="lead">wissenschaftliche Transliteration</label>
<textarea class="form-control" id="transliteration"></textarea>
<p></p>
<label for="copytemplate" class="lead">Wikipedia-Kopiervorlage</label>
<textarea class="form-control" id="copytemplate"></textarea>
</div>
</form>
<p>Dieses Tool verwendet die Transkriptionsregeln der deutschsprachigen Wikipedia für <a href="https://de.wikipedia.org/wiki/Wikipedia:Namenskonventionen/Kyrillisch">kyrillische</a>, <a href="https://de.wikipedia.org/wiki/Wikipedia:Namenskonventionen/Armenisch">armenische</a> und <a href="https://de.wikipedia.org/wiki/Wikipedia:Namenskonventionen/Georgisch">georgische</a> Namen. Fragen und Anmerkungen hinterlassen Sie bitte auf der <a href="https://de.wikipedia.org/wiki/Wikipedia_Diskussion:Wikyrill-o-mat">Diskussionsseite dieses Tools in der Wikipedia</a>.</p>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<a href="https://github.com/real68er/wikyrillomat"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/c6625ac1f3ee0a12250227cf83ce904423abf351/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_gray_6d6d6d.png"></a>
</body>
</html>