From 7e87ee737a3ea3740cc152bc6847134478e03e92 Mon Sep 17 00:00:00 2001 From: Jon Thysell Date: Sun, 23 Jun 2024 10:18:56 -0700 Subject: [PATCH] Fix use of okina in english contractions and possessives --- CHANGELOG.md | 2 ++ src/HawDict/Input/MamakaKaiaoInputDict.cs | 4 +++- src/HawDict/Input/PlaceNamesInputDict.cs | 4 +++- src/HawDict/Input/PukuiElbertInputDict.cs | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3776509..ac73076 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## next ## +* Updated MamakaKaiao parsing +* Updated PlaceNames parsing * Updated PukuiElbert parsing ## v0.16.0 ## diff --git a/src/HawDict/Input/MamakaKaiaoInputDict.cs b/src/HawDict/Input/MamakaKaiaoInputDict.cs index 4160634..2102624 100644 --- a/src/HawDict/Input/MamakaKaiaoInputDict.cs +++ b/src/HawDict/Input/MamakaKaiaoInputDict.cs @@ -135,7 +135,9 @@ protected override string CleanSourceHtml(string s) .Replace(".ʻ", ". ʻ").Replace(".ʻ", ". ʻ").Replace("ʻ ", "ʻ") .Replace(".", ". ").Replace(",", ", ") .Replace("˜.", "˜. ").Replace(".˜", ". ˜") - .Replace("....", "….").Replace("..", ".").Replace("..", "."); + .Replace("....", "….").Replace("..", ".").Replace("..", ".") + .Replace("ʻs", "'s").Replace("nʻt", "n't") + ; string[] split = s.Split('\n'); diff --git a/src/HawDict/Input/PlaceNamesInputDict.cs b/src/HawDict/Input/PlaceNamesInputDict.cs index 7bdf77f..f3d9f04 100644 --- a/src/HawDict/Input/PlaceNamesInputDict.cs +++ b/src/HawDict/Input/PlaceNamesInputDict.cs @@ -40,7 +40,9 @@ protected override string CleanSourceHtml(string s) .Replace("Honolu.u.", "Honolulu.") .Replace("lawanui\n", "lawanui") .Replace("mythical.bird", "mythical bird") - .Replace("", ";"); + .Replace("", ";") + .Replace("ʻs", "'s").Replace("nʻt", "n't") + ; return s; } diff --git a/src/HawDict/Input/PukuiElbertInputDict.cs b/src/HawDict/Input/PukuiElbertInputDict.cs index 2a0feb1..a809bf1 100644 --- a/src/HawDict/Input/PukuiElbertInputDict.cs +++ b/src/HawDict/Input/PukuiElbertInputDict.cs @@ -69,6 +69,7 @@ protected override string CleanSourceHtml(string s) .Replace("Iʻll ", "I'll ") .Replace("sunlight. (PPN ʻlaʻaa.)", "sunlight. (PPN laʻaa.)") .Replace("hoʻo.liʻoʻliʻo", "hoʻo.liʻo.liʻo") + .Replace("ʻs", "'s").Replace("nʻt", "n't") // Missing definition number fixes .Replace("

n. Name of a large valley on", "

1. n. Name of a large valley on") ;