diff options
Diffstat (limited to 'ext/js/language/language-descriptors.js')
-rw-r--r-- | ext/js/language/language-descriptors.js | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index 3a78aff5..07ca31ac 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -25,7 +25,7 @@ import { alphanumericWidthVariants, collapseEmphaticSequences, convertHalfWidthCharacters, - convertHiraganaToKatakana + convertHiraganaToKatakana, } from './ja/japanese-text-preprocessors.js'; import {japaneseTransforms} from './ja/japanese-transforms.js'; import {isStringPartiallyJapanese} from './ja/japanese.js'; @@ -39,7 +39,7 @@ import {capitalizeFirstLetter, decapitalize, removeAlphabeticDiacritics} from '. const capitalizationPreprocessors = { decapitalize, - capitalizeFirstLetter + capitalizeFirstLetter, }; /** @type {import('language-descriptors').LanguageDescriptorAny[]} */ @@ -49,8 +49,8 @@ const languageDescriptors = [ name: 'Arabic', exampleText: 'قَرَأَ', textPreprocessors: { - removeArabicScriptDiacritics - } + removeArabicScriptDiacritics, + }, }, { iso: 'de', @@ -58,49 +58,49 @@ const languageDescriptors = [ exampleText: 'gelesen', textPreprocessors: { ...capitalizationPreprocessors, - eszettPreprocessor + eszettPreprocessor, }, - languageTransforms: germanTransforms + languageTransforms: germanTransforms, }, { iso: 'el', name: 'Greek', exampleText: 'διαβάζω', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'en', name: 'English', exampleText: 'read', textPreprocessors: capitalizationPreprocessors, - languageTransforms: englishTransforms + languageTransforms: englishTransforms, }, { iso: 'es', name: 'Spanish', exampleText: 'acabar de', textPreprocessors: capitalizationPreprocessors, - languageTransforms: spanishTransforms + languageTransforms: spanishTransforms, }, { iso: 'fa', name: 'Persian', exampleText: 'خواندن', textPreprocessors: { - removeArabicScriptDiacritics - } + removeArabicScriptDiacritics, + }, }, { iso: 'fi', name: 'Finnish', exampleText: 'lukea', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'fr', name: 'French', exampleText: 'lire', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'grc', @@ -108,26 +108,26 @@ const languageDescriptors = [ exampleText: 'γράφω', textPreprocessors: { ...capitalizationPreprocessors, - removeAlphabeticDiacritics - } + removeAlphabeticDiacritics, + }, }, { iso: 'hu', name: 'Hungarian', exampleText: 'olvasni', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'id', name: 'Indonesian', exampleText: 'membaca', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'it', name: 'Italian', exampleText: 'leggere', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'la', @@ -135,14 +135,14 @@ const languageDescriptors = [ exampleText: 'legere', textPreprocessors: { ...capitalizationPreprocessors, - removeAlphabeticDiacritics + removeAlphabeticDiacritics, }, - languageTransforms: latinTransforms + languageTransforms: latinTransforms, }, { iso: 'lo', name: 'Lao', - exampleText: 'ອ່ານ' + exampleText: 'ອ່ານ', }, { iso: 'ja', @@ -154,50 +154,50 @@ const languageDescriptors = [ alphabeticToHiragana, alphanumericWidthVariants, convertHiraganaToKatakana, - collapseEmphaticSequences + collapseEmphaticSequences, }, - languageTransforms: japaneseTransforms + languageTransforms: japaneseTransforms, }, { iso: 'km', name: 'Khmer', - exampleText: 'អាន' + exampleText: 'អាន', }, { iso: 'ko', name: 'Korean', exampleText: '읽어', textPreprocessors: { - disassembleHangul + disassembleHangul, }, textPostprocessors: { - reassembleHangul + reassembleHangul, }, - languageTransforms: koreanTransforms + languageTransforms: koreanTransforms, }, { iso: 'nl', name: 'Dutch', exampleText: 'lezen', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'pl', name: 'Polish', exampleText: 'czytacie', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'pt', name: 'Portuguese', exampleText: 'ler', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'ro', name: 'Romanian', exampleText: 'citit', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'ru', @@ -206,8 +206,8 @@ const languageDescriptors = [ textPreprocessors: { ...capitalizationPreprocessors, yoToE, - removeRussianDiacritics - } + removeRussianDiacritics, + }, }, { iso: 'sga', @@ -215,56 +215,56 @@ const languageDescriptors = [ exampleText: 'légaid', textPreprocessors: { ...capitalizationPreprocessors, - removeAlphabeticDiacritics + removeAlphabeticDiacritics, }, - languageTransforms: oldIrishTransforms + languageTransforms: oldIrishTransforms, }, { iso: 'sh', name: 'Serbo-Croatian', exampleText: 'čitaše', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'sq', name: 'Albanian', exampleText: 'ndihmojme', textPreprocessors: capitalizationPreprocessors, - languageTransforms: albanianTransforms + languageTransforms: albanianTransforms, }, { iso: 'sv', name: 'Swedish', exampleText: 'läsa', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'th', name: 'Thai', - exampleText: 'อ่าน' + exampleText: 'อ่าน', }, { iso: 'tr', name: 'Turkish', exampleText: 'okuyor', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'vi', name: 'Vietnamese', exampleText: 'đọc', - textPreprocessors: capitalizationPreprocessors + textPreprocessors: capitalizationPreprocessors, }, { iso: 'yue', name: 'Cantonese', - exampleText: '讀' + exampleText: '讀', }, { iso: 'zh', name: 'Chinese', - exampleText: '读' - } + exampleText: '读', + }, ]; /** @type {Map<string, import('language-descriptors').LanguageDescriptorAny>} */ |