Skip to content

Commit

Permalink
Add Old English; Remove diacritics in sga, grc and ang (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
martholomew authored May 24, 2024
1 parent 46b420f commit 6668d7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 4-make-yomitan.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,9 @@ function normalizeOrthography(term) {

return term.replace(diacriticsRegex, '')
case 'la':
case 'ang':
case 'sga':
case 'grc':
return term.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
case 'ru':
return term.replace(/́/g, '');
Expand Down
3 changes: 2 additions & 1 deletion languages.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{"iso": "afb", "language": "Gulf Arabic", "flag": "🇦🇪"},
{"iso": "ang", "language": "Old English", "flag": "🗡️"},
{"iso": "ar", "language": "Arabic", "flag": "🇪🇬"},
{"iso": "de", "language": "German", "flag": "🇩🇪"},
{"iso": "el", "language": "Greek", "flag": "🇬🇷"},
Expand Down Expand Up @@ -27,4 +28,4 @@
{"iso": "tr", "language": "Turkish", "flag": "🇹🇷"},
{"iso": "vi", "language": "Vietnamese", "flag": "🇻🇳"},
{"iso": "zh", "language": "Chinese", "flag": "🇨🇳"}
]
]

0 comments on commit 6668d7d

Please sign in to comment.