Skip to content

Commit

Permalink
Fixed PukuiElbert source parsing of page breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell committed Jun 14, 2021
1 parent f9d1ccd commit befde4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# HawDict ChangeLog #

## next ##

* Fixed PukuiElbert source parsing of page breaks

## v0.11 ##

* Fixed PlaceNames source parsing
Expand Down
4 changes: 2 additions & 2 deletions src/HawDict/Input/PukuiElbertInputDict.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public PukuiElbertInputDict(TranslationType translationType, LogLine logLine) :
protected override string CleanSourceHtml(string s)
{
return s
.Replace("</td></tr></table><p>&nbsp;</p>\n<table style=\"margin-left:auto;margin-right:auto;width:700px;\"><tr><td>", "")
.Replace("</td></tr></table><p>&nbsp;</p>\n<p>&nbsp;</p>\n<table style=\"margin-left:auto;margin-right:auto;width:700px;\"><tr><td>", "")
.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>", "")
.Replace("&4 ", "Redup. ").Replace("&;n", "n.").Replace("&(PCP; ", "(PCP ").Replace("(Mele ", "(Mele. ")
.Replace("<span lang=\"HAW\">N&#257;n&#257;</span> 3", "<span>N&#257;n&#257;.</span> 3").Replace("N&#257;n&#257; 2", "N&#257;n&#257;. 2").Replace("N&#257;n&#257; 1", "N&#257;n&#257;. 1")
.Replace("..", ".").Replace(".</span>.", ".</span>").Replace(".</em>.", ".</em>")
Expand Down

0 comments on commit befde4f

Please sign in to comment.