本文へ移動

Hikidashi引き出し

和暦と漢数字の相互変換、活用した語の辞書形、漢字への読みの割り当て、貼り付けた文からの単語の抽出、文の難しさ。日本語のテキストを扱う小さな道具を集めた引き出しです。

「引き出し」という名前は、道具が一つずつしまってあり、必要なときに取り出して使える、という意味です。 名前について(英語)

目次

リファレンス

/element

import { … } from "@johnmorrisdotca/hikidashi/element";

最小化と gzip 圧縮をしたサイズは 5.4 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
defineEra関数Defines an era-year tag once, optionally under a host's name.
defineFurigana関数Defines a furigana tag once, optionally under a host's name.
defineNumerals関数Defines a numeral tag once, optionally under a host's name.
HIKIDASHI_EMBED_OPTION_KEYS定数Host options checked by the builder's coverage contract.
HikidashiElementOptions型Host callbacks for a text-tool element.
HikidashiEraクラスDisplays a Japanese era year from a date, a western year or an era year.
HikidashiFuriganaクラスDisplays a word with its reading shared over its kanji as native ruby markup.
HikidashiNumeralsクラスWrites, reads aloud or parses a Japanese numeral using the package's number tools.
HikidashiResult型The structured result of a text-tool element, or null when its input cannot be read.

ソースを見るGitHub で編集@johnmorrisdotca/hikidashi 1.1.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。