Releases: dahlia/seonbi
Seonbi 0.5.0
Released on January 31, 2025.
-
Stops normalizer now normalizes question marks and exclamation marks too. The below functions were added. [#34]
Haskell API-wise, the below record fields were added to the
Text.Seonbi.Punctuation.Stopsdata type:questionMarkfieldexclamationMarkfield
-
Added prebuilt executable binaries for Linux ARM64 (linux-arm64).
-
The official Docker images are now multi-platform (linux/amd64 and linux/arm64). [#35]
-
Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2025-01.
Seonbi 0.4.0
Released on September 8, 2024.
-
Introduced GitHub action
dahlia/seonbi/setupto install Seonbi during GitHub Actions workflow. -
Since this version, it supports GHC 9.4.* at most.
-
The
iconvflag became ignored on Windows, because the flag had never worked on Windows. -
Previously,
ContentTypetype (and-t/--content-typein CLI and"contentType"field in HTTP API) was a mere case-insensitive string. Now, it is loosely structured so that it can contain parameters. You can treat it as a media type (MIME type).For example,
text/markdownandtext/markdown; variant=Originalboth use the same parser and formatter under the hood.Text.Seonbi.ContentTypes.ContentTypetype became an alias ofNetwork.HTTP.Media.MediaTypetype (wasCI Text).- The type of
Text.Seonbi.ContentTypes.contentTypeFromTextfunction becameText -> Maybe ContentType(wasText -> ContentType). Text.Seonbi.ContentTypes.transformWithContentTypefunction became able to handle media types with parameters, and now it falls back more-specific media types to less-specific media types if there is no exactly matched one.
-
For
text/htmlandapplication/xhtml+xmlformats, some obsolete HTML tags are no more ignored, but now recognized as valid HTML tags. Here are the list of added tags:<center><font><nobr><strike><xmp>
Haskell API-wise, the following constructors were added to the
Text.Seonbi.Html.Tag.HtmlTagtype:CenterFontNoBRStrikeXMP
-
Deno module became possible to use an already deployed Seonbi API server instead of spawning a local API server. The
new Seonbi()constructor now takes{ apiUrl: string }besides existing configuration forms. -
Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2024-09.
Seonbi 0.3.6
Released on February 16, 2023.
-
The
iconvflag became ignored on Windows, because the flag had never worked on Windows. -
Fixed a bug that
seonbi.exe --helphad suddenly terminated with the below error message on Windows: [#30]<stdout>: commitBuffer: invalid argument (invalid character)
Seonbi 0.3.5
Released on February 13, 2023.
- Official builds for Windows now contain required dynamic libraries (*.dll) besides executables (seonbi.exe & seonbi-api.exe). [#2]
- Fixed a bug where Sino-Korean words that were not listed in the dictionary sometimes had been inaccurately phoneticized so that Initial Sound Law (頭音法則) had been applied to non-initial hanja of a word too. [#20]
- Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2023-02.
Seonbi 0.3.4
Released on January 18, 2023.
- Updated the Standard Korean Language Dictionary data (data/ko-kr-stdict.tsv) to the revision 2022-12.
Seonbi 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]
Seonbi 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 responds with header
Vary: Originfor more accurate cache control.
Seonbi 0.3.1
Released on November 27, 2021.
- Added prebuilt executable binaries for Apple Silicon (macos-arm64).
Seonbi 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.
Seonbi 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.