Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Browser table

kumimojiSayfunction

A line from a table of strings with its braces filled in: kumimojiSay(strings.left, { n: 12, time: "1:05" }). A brace with no value is left as it is.

Import it

import { kumimojiSay } from "@johnmorrisdotca/kumimoji/ui";

Also exported from: @johnmorrisdotca/kumimoji

Definition

function kumimojiSay(line: string, values?: Readonly<Record<string, string | number>>): string

Parameters

NameTypeDescription
linestring

Text containing named replacement braces.

values (optional)Readonly<Record<string, string | number>>

Replacement text or numbers keyed by brace name.

Returns

string

A line from a table of strings with its braces filled in: kumimojiSay(strings.left, { n: 12, time: "1:05" }). A brace with no value is left as it is.

Examples

import { kumimojiSay } from "@johnmorrisdotca/kumimoji/ui";

console.log(kumimojiSay("Tile {n}",{n:3}));
Tile 3

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.