From 306f5ed2ffe44718c52b228f3e503e2c6c5e0a24 Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Tue, 4 Jun 2024 10:07:47 +0200 Subject: [PATCH] [sh] remove accent marks (#58) --- 4-make-yomitan.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/4-make-yomitan.js b/4-make-yomitan.js index 029eebe..47d11de 100644 --- a/4-make-yomitan.js +++ b/4-make-yomitan.js @@ -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: