Skip to content

Commit

Permalink
[sh] remove accent marks
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jun 3, 2024
1 parent 432d988 commit 74ba743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 4-make-yomitan.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ function normalizeOrthography(term) {
case 'sga':
case 'grc':
return term.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
case 'sh':
return term.normalize('NFD').replace(/[aeiourAEIOUR][\u0300-\u036f]/g, (match) => match[0]);
case 'ru':
return term.replace(/́/g, '');
default:
Expand Down

0 comments on commit 74ba743

Please sign in to comment.