kanaTileCode関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The code of a base kana's tile, or of a wild given that kana.
インポート
import { kanaTileCode } from "@johnmorrisdotca/kumimoji";
定義
function kanaTileCode(kana: string, wild?: boolean): string | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
kana | string | The hiragana reading to map to a base tile. |
wild (省略可) | boolean | Whether to encode the assigned face as a wild tile. |
戻り値
string | null
The internal tile code, or null when the kana has no supported base tile.
例
import { kanaTileCode } from "@johnmorrisdotca/kumimoji";
console.log(kanaTileCode("は"));出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。