Skip to the content

Hikidashi引き出し

Era dates (和暦) and kanji numerals both ways, the dictionary forms of a conjugated word, a reading shared out over its kanji, words pulled from pasted text, and how hard a sentence is to read.

Hikidashi (引き出し) is a drawer: each tool is pulled out when it is wanted. About the name

Contents

Reference

/element

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

5.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineErafunctionDefines an era-year tag once, optionally under a host's name.
defineFuriganafunctionDefines a furigana tag once, optionally under a host's name.
defineNumeralsfunctionDefines a numeral tag once, optionally under a host's name.
HIKIDASHI_EMBED_OPTION_KEYSconstantHost options checked by the builder's coverage contract.
HikidashiElementOptionstypeHost callbacks for a text-tool element.
HikidashiEraclassDisplays a Japanese era year from a date, a western year or an era year.
HikidashiFuriganaclassDisplays a word with its reading shared over its kanji as native ruby markup.
HikidashiNumeralsclassWrites, reads aloud or parses a Japanese numeral using the package's number tools.
HikidashiResulttypeThe structured result of a text-tool element, or null when its input cannot be read.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hikidashi 1.1.0.