From 1b4ff55603f7d19d493ef3a9d204c654694b06ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hora=C8=9Biu=20Mlendea?= Date: Thu, 20 Jun 2024 16:03:45 +0300 Subject: [PATCH] normalisation: Fixed normalisation of --- MoreCulturalNamesBuilder/Service/NameNormaliser.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MoreCulturalNamesBuilder/Service/NameNormaliser.cs b/MoreCulturalNamesBuilder/Service/NameNormaliser.cs index 247e49c..7f6b76b 100644 --- a/MoreCulturalNamesBuilder/Service/NameNormaliser.cs +++ b/MoreCulturalNamesBuilder/Service/NameNormaliser.cs @@ -729,6 +729,7 @@ private string ApplyCommonReplacements(string name) processedName = Regex.Replace(processedName, "([ɬƚ])", "ł"); processedName = Regex.Replace(processedName, "([ṁ]|m̄|m̐|m̃)", "m"); processedName = Regex.Replace(processedName, "(nj)", "nj"); + processedName = Regex.Replace(processedName, "(ⁿ)", "n"); // Superscript n - nasal sound processedName = Regex.Replace(processedName, "([нṉ]|n‌)", "n"); processedName = Regex.Replace(processedName, "(ṉ)", "ņ"); processedName = Regex.Replace(processedName, "[ƞ]", "ŋ"); @@ -885,7 +886,7 @@ private string ApplyCommonReplacements(string name) processedName = Regex.Replace(processedName, "[ʾʻʼʽʹ′]", "´"); processedName = Regex.Replace(processedName, "[ʿ]", "`"); processedName = Regex.Replace(processedName, "[ꞌʿʲь]", "'"); - processedName = Regex.Replace(processedName, "[ʺ″ⁿ]", "\""); + processedName = Regex.Replace(processedName, "[ʺ″]", "\""); processedName = Regex.Replace(processedName, "[‌‍]", ""); processedName = Regex.Replace(processedName, "[–—]", "-"); processedName = Regex.Replace(processedName, "[‎·]", "");