Skip to content

Commit

Permalink
PukuiElbert fix misplaced ʻokina
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell committed Jun 27, 2024
1 parent 55e838e commit 8ba5ff6
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/HawDict/Input/PukuiElbertInputDict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public PukuiElbertInputDict(TranslationType translationType, LogLine logLine) :

protected override string CleanSourceHtml(string s)
{
// Remove header comments
s = Regex.Replace(s, "<p>In causative/simulative forms beginning with.*\n", "");
return s
.Replace("</td></tr></table><p>&nbsp;</p>\n<table style=\"word-break:break-word;margin-left:auto;margin-right:auto;width:700px;\"><tr><td>", "")
.Replace("</td></tr></table><p>&nbsp;</p>\n<p>&nbsp;</p>\n<table style=\"word-break:break-word;margin-left:auto;margin-right:auto;width:700px;\"><tr><td>", "")
Expand Down Expand Up @@ -90,6 +92,60 @@ protected override string CleanSourceHtml(string s)
.Replace("<span lang=\"HAW\">&#699;&#699;a&#699;ole", "<span lang=\"HAW\">&#699;a&#699;ole")
.Replace("<span lang=\"HAW\">k&#243;lomoku</span>", "<span lang=\"HAW\">kolomoku</span>")
.Replace("(Spanish, <span lang=\"SPA\">espa&ntilde;nol</span>.)", "(Spanish, <span lang=\"SPA\">espa&ntilde;ol</span>.)")
.Replace("<span lang=\"HAW\">ku&#699;hike&#699;e</span>", "<span lang=\"HAW\">kuhike&#699;e</span>")
.Replace(">&#699;Wai-pi&#699;o</span> is drowsy", ">Wai-pi&#699;o</span> is drowsy")
.Replace(">&#699;Elim&#699;a keneka</span>", ">&#699;Elima keneka</span>")
.Replace(">l&#257;&#699;au &#699;pili</span>", ">l&#257;&#699;au pili</span>")
.Replace(">&#699;hio</span>", ">hio</span>")
.Replace("(splitting);<span lang=\"HAW\">", "(splitting); <span lang=\"HAW\">")
.Replace("<span lang=\"HAW\">h&#699;olimalima</span>", "<span lang=\"HAW\">ho&#699;olimalima</span>")
.Replace("hors d&#699;oeuvre", "hors d'oeuvre")
.Replace(">laho &#699;p&#333;ka&#699;oka&#699;o</span>", ">laho p&#333;ka&#699;oka&#699;o</span>")
.Replace(">&#699;wai lohia</span>", ">wai lohia</span>")
.Replace("jack-o&#699;-lantern", "jack-o'-lantern")
.Replace(">ko&#699;oko&#699;o&#699;</span>", ">ko&#699;oko&#699;o</span>")
.Replace(">&#699;hali&#699;a</span>", ">hali&#699;a</span>")
.Replace(">k&#257;&#699;i&#699;_</span>", ">k&#257;&#699;i&#699;&#299;</span>")
.Replace(">k&#699;u</span> (of sweet potato)", ">ki&#699;u</span> (of sweet potato)")
.Replace(">&#699;Auted&#699;e</span>", ">&#699;Auhe&#699;e</span>")
.Replace(">&#699;k&#363;kini</span>", ">k&#363;kini</span>")
.Replace(">koloau; ho&#699;helei</span>", ">koloau; ho&#699;ohelei</span>")
.Replace(">k&#299;&#699;o&#699;ki;", ">k&#299;&#699;oki;")
.Replace(">h&#275;&#699;i&#699;_</span>", ">h&#275;&#699;i&#299;</span>")
.Replace(">Noho pokakak&#699;a</span>", ">Noho pokaka&#699;a</span>")
.Replace(">&#699;&#257;&#699;kena k&#257;.lepa ka&#699;a.hele </span>", ">&#699;&#257;.kena k&#257;.lepa ka&#699;a.hele </span>")
.Replace(">ha&#699;a&#699;wina ho&#699;o.hano.hano </span>", ">ha&#699;a.wina ho&#699;o.hano.hano </span>")
.Replace(">hao ho&#699;.pa&#699;a lima </span>", ">hao ho&#699;o.pa&#699;a lima </span>")
.Replace(">h&#333;.&#699;ali,&#699;ali </span>", ">h&#333;.&#699;ali.&#699;ali </span>")
.Replace(">Ni&#699;hau</span>", ">Ni&#699;ihau</span>")
.Replace(">&#699;iu,&#699;iu </span>", ">&#699;iu.&#699;iu </span>")
.Replace(">&#699;iwa,&#699;iwa </span>", ">&#699;iwa.&#699;iwa </span>")
.Replace("kahi pu&#699;u&#699; pele</span>", "kahi pu&#699;u pele</span>")
.Replace(">h&#699;o.kakale</span>", ">ho&#699;o.kakale</span>")
.Replace(">ho&#699;Fo.kana.ha&#699;u</span>", ">ho&#699;o.kana.ha&#699;u</span>")
.Replace(">kukua,&#699;au </span>", ">kukua.&#699;au </span>")
.Replace(">p&#363;a&#699;_ pipi</span>", ">p&#363;&#699;&#257; pipi</span>")
.Replace(">&#699;Ulu-pala-kua, &#699;Maui</span>", ">&#699;Ulu-pala-kua, Maui</span>")
.Replace(">&#699;Ka lau luhea", ">Ka lau luhea")
.Replace(">ho&#699;.m&#257;.h&#363;</span>", ">ho&#699;o.m&#257;.h&#363;</span>")
.Replace(">ma._&#699;&#299;.&#699;&#299; </span>", ">m&#257;.&#699;&#299;.&#699;&#299; </span>")
.Replace(">&#699;i&#699;wi haole</span>", ">&#699;i&#699;iwi haole</span>")
.Replace(">&#699;ho&#699;o.m&#257;.&#699;ona</span>", ">ho&#699;o.m&#257;.&#699;ona</span>")
.Replace(">Pu&#699;u&#699; ka nuku</span>", ">Pu&#699;u ka nuku</span>")
.Replace(">&#699;oama,&#699;owama </span>", ">&#699;oama, &#699;owama </span>")
.Replace(">k&#257;&#699;hili</span>", ">k&#257;hili</span>")
.Replace(">&#699;&#333;,&#699;&#363;-holo-wai </span>", ">&#699;&#333;.&#699;&#363;-holo-wai </span>")
.Replace("PPN <span lang=\"HAW\">pa&#699;a&#699;</span>", "PPN <span lang=\"HAW\">pa&#699;a</span>")
.Replace(">p&#257;,&#699;ihi.&#699;ihi </span>", ">p&#257;.&#699;ihi.&#699;ihi </span>")
.Replace(">pa&#699;u&#699;pa&#699;u </span>", ">pa&#699;u.pa&#699;u </span>")
.Replace(">p&#257;&#699;.wehe p&#363;.p&#363; </span>", ">p&#257;.wehe p&#363;.p&#363; </span>")
.Replace(">b&#699;rith</span>", ">b'rith</span>")
.Replace(">nani Wai&#699;-ale&#699;ale</span>", ">nani Wai-&#699;ale&#699;ale</span>")
.Replace(">Ua &#699;po&#699;ip&#363;", ">Ua po&#699;ip&#363;")
.Replace(">P&#333;lena p&#699;aa", ">P&#333;lena pa&#699;a")
.Replace(">pua&#699;ki&#699;o</span>", ">pu&#699;a ki&#699;o</span>")
.Replace(">pu&#699;u&#699;.pu&#699;u l&#257;.&#699;au </span>", ">pu&#699;u.pu&#699;u l&#257;.&#699;au </span>")
.Replace(">u&#275; (uw&#275;)&#699;ala.l&#257; </span>", ">u&#275; (uw&#275;) &#699;ala.l&#257; </span>")
// 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 8ba5ff6

Please sign in to comment.