Skip to content

Commit

Permalink
Fix use of okina in english contractions and possessives
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell committed Jun 23, 2024
1 parent 5ed38de commit 7e87ee7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## next ##

* Updated MamakaKaiao parsing
* Updated PlaceNames parsing
* Updated PukuiElbert parsing

## v0.16.0 ##
Expand Down
4 changes: 3 additions & 1 deletion src/HawDict/Input/MamakaKaiaoInputDict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ protected override string CleanSourceHtml(string s)
.Replace(".&#699;", ". &#699;").Replace(".</i>&#699;", ".</i> &#699;").Replace("&#699; ", "&#699;")
.Replace(".<i>", ". <i>").Replace(",<i>", ", <i>")
.Replace("&tilde;.", "&tilde;. ").Replace(".&tilde;", ". &tilde;")
.Replace("....", "&hellip;.").Replace("..", ".").Replace(".</i>.", ".</i>");
.Replace("....", "&hellip;.").Replace("..", ".").Replace(".</i>.", ".</i>")
.Replace("&#699;s", "'s").Replace("n&#699;t", "n't")
;

string[] split = s.Split('\n');

Expand Down
4 changes: 3 additions & 1 deletion src/HawDict/Input/PlaceNamesInputDict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ protected override string CleanSourceHtml(string s)
.Replace("Honolu.u.", "Honolulu.")
.Replace("lawanui</span>\n", "lawanui</span>")
.Replace("mythical.bird", "mythical bird")
.Replace("<?>", ";");
.Replace("<?>", ";")
.Replace("&#699;s", "'s").Replace("n&#699;t", "n't")
;

return s;
}
Expand Down
1 change: 1 addition & 0 deletions src/HawDict/Input/PukuiElbertInputDict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ protected override string CleanSourceHtml(string s)
.Replace("<span lang=\"ENG\">I&#699;ll ", "<span lang=\"ENG\">I'll ")
.Replace("sunlight. (PPN <span lang=\"HAW\">&#699;la&#699;aa</span>.)", "sunlight. (PPN <span lang=\"HAW\">la&#699;aa</span>.)")
.Replace("<span lang=\"HAW\">ho&#699;o.li&#699;o&#699;li&#699;o</span>", "<span lang=\"HAW\">ho&#699;o.li&#699;o.li&#699;o</span>")
.Replace("&#699;s", "'s").Replace("n&#699;t", "n't")
// Missing definition number fixes
.Replace("<p><span>n.</span> Name of a large valley on", "<p>1. <span>n.</span> Name of a large valley on")
;
Expand Down

0 comments on commit 7e87ee7

Please sign in to comment.