Changelog for seonbi-0.3.4
Seonbi changelog
Version 0.3.4
To be released.
Version 0.3.3
Released on September 9, 2022.
- Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2022-09.
- Fixed a bug that Sino-Korean words are not phoneticized to Korean custom readings (習慣音) according to folk readings (俗音) and erroneous readings (訛音). Now such words are phoneticized to the most usual readings according to Standard Korean Language Dictionary. For example, 困難 is no more phoneticized to 곤난 but 곤란 instead. [#22]
Version 0.3.2
Released on August 11, 2022.
- HTTP API now allows any headers from cross-origin. (Previously, it allowed
only
Content-Type.) - HTTP API now respond with header
Vary: Originfor more accurate cache control.
Version 0.3.1
Released on November 27, 2021.
- Added prebuilt executable binaries for Apple Silicon (macos-arm64).
Version 0.3.0
Released on November 18, 2021.
-
Since this version, it requires GHC 8.8.* at least, and supports GHC 9.0.* at most.
-
Now supports several content types besides HTML/XHTML. The below list shows all supported content types: [#18]
text/html(previously non-XHTML mode)application/xhtml+xml(previously XHTML mode)text/plain(added)text/markdown(added)
The below Haskell APIs changed:
- Added
Text.Seonbi.ContentTypesmodule. - Added
contentTypefield forConfiguration m a. - Removed
xhtmlfield forConfiguration m ain favor of newcontentTypefield for the same type.
The below CLI options changed:
- Added
-t/--content-typeoption with the default valuetext/html. - Removed Removed
-x/--xhtmloption in favor of new-t/--content-typeoption. In order to use XHTML mode, give it-t application/xhtml+xmloption.
The below HTTP APIs changed:
- Added a mandatory field
"content"to requests. - Deprecated the
"sourceHtml"field of requests in favor of the new"content"field. - Added an optional field
"contentType"with the default value"text/html"to requests. - Deprecated the
"xhtml"field of requests in favor of the new"contentType"field. The legacy field will be gone in the next minor release. In order to use XHTML mode, configure"contentType"field with"application/xhtml+xml". - Added
"content"field to responses. - Deprecated the
"resultHtml"field of responses in favor of the new"content"field. The legacy field is not provided for non-HTML types, and will be gone in the next minor release. - Added
"contentType"field to responses. - Added
"warnings"field to responses.
-
Added
Text.Seonbi.Html.Langmodule. -
Some transformations inappropriate for non-Korean contents are no more applied to elements written in other languages than Korean. The below functions respect elements
langattributes: [#10]Text.Seonbi.Hanja.phoneticizeHanjaText.Seonbi.Punctuation.normalizeStops
-
Removed several functions from
Text.Seonbi.Triemodule:toListBylookupBysubmapmatchmatchesalterByadjustdeletemapByfilterMap
-
Text.Seonbi.Trie.Trietype is not an instance of the following typeclasses anymore:Generic a => Generic (Trie a)Binary a => Binary (Trie a)Generic1 Trietype Rep (Trie a)type Rep1 Trie
-
Added
Text.Seonbi.Html.Printer.printTextfunction. -
Added
Text.Seonbi.Html.Tag.headingLevelfunction. -
Added
Text.Seonbi.Html.Tag.headingTagfunction. -
Added
Text.Seonbi.Html.Tag.headingTag'function. -
Added
Text.Seonbi.Html.TagStack.lastfunction.
Version 0.2.3
Released on September 26, 2021.
- Fixed stops normalizer's bug where trailing spaces following stops had been trimmed after normalized.
- Fixed stops normalizer's buf where unnecessary trailing spaces following stops had been inserted after normalized. In particular, unnecessary spaces between stops and closing parentheses/brackets are no more inserted.
Version 0.2.2
Released on September 25, 2021.
- Fixed stops normalizer's bug where unnecessary trailing spaces following stops had been left even after normalized.
- Fixed stops normalizer's bug where commas followed by tag boundaries had been not normalized.
Version 0.2.1
Released on September 23, 2021.
- Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2021-09.
Version 0.2.0
Released on May 26, 2021.
-
Added stops (periods/commas/interpuncts) normalizer.
Haskell API-wise, the below types and functions were added:
Text.Seonbi.Punctuation.Stopsdata typeText.Seonbi.Punctuation.normalizeStopsfunctionText.Seonbi.Punctuation.horizontalStopsfunctionText.Seonbi.Punctuation.horizontalStopsWithSlashesfunctionText.Seonbi.Punctuation.verticalStopsfunctionText.Seonbi.Facade.StopOptiondata typestopfield inText.Seonbi.Facade.Configurationdata constructor
CLI-wise, the
-s/--stopoption was added.HTTP API-wise, the optional field
"stop"was added. -
Text.Seonbi.Punctuation.transformEllipsisbecame aware of Chinese stops (。。。) besides Western stops (...). -
Added options to use horizontal/vertical corner brackets for quotes.
Haskell API-wise, the below functions were added:
Text.Seonbi.Punctuation.verticalCornerBracketsfunctionText.Seonbi.Punctuation.horizontalCornerBracketsfunctionText.Seonbi.Punctuation.verticalCornerBracketsWithQfunctionText.Seonbi.Punctuation.horizontalCornerBracketsWithQfunctionVerticalCornerBracketsdata constructor forText.Seonbi.Facade.QuoteOptiontypeHorizontalCornerBracketsdata constructor forText.Seonbi.Facade.QuoteOptiontypeVerticalCornerBracketsWithQdata constructor forText.Seonbi.Facade.QuoteOptiontypeHorizontalCornerBracketsWithQdata constructor forText.Seonbi.Facade.QuoteOptiontype
CLI-wise, the
-q/--quoteoption became to have the below new styles:vertical-corner-bracketshorizontal-corner-brakcetsvertical-corner-brackets-with-qhorizontal-corner-brakcets-with-q
HTTP API-wise, the optional field
"quote"became to have the below new styles:VerticalCornerBracketsHorizontalCornerBracketsVerticalCornerBracketsWithQHorizontalCornerBracketsWithQ
-
The CLI option
-x/--xhtmlbecame usable with the-p/--presetoption at a time. -
Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2021-05.
Version 0.1.1
Released on October 7, 2019.
- Added the
embed-dictionaryflag to the Cabal package. - Fixed a bug that Standard Korean Language Dictionary had not been
included in executables if
flag(static)is turned on. [#1]
Version 0.1.0
Released on October 6, 2019.