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 · Reading alignment

hiraganaToKatakanafunction

Hiragana written as katakana: ひらがな to ヒラガナ. Anything that is not a hiragana letter is left as it is.

Import it

import { hiraganaToKatakana } from "@johnmorrisdotca/hikidashi/align";

Also exported from: @johnmorrisdotca/hikidashi

Definition

function hiraganaToKatakana(value: string): string

Parameters

NameTypeDescription
valuestring

Any text.

Returns

string

The same text with every hiragana letter (ぁ to ゖ) written as its katakana.

Examples

import { hiraganaToKatakana } from "@johnmorrisdotca/hikidashi/align";

console.log(hiraganaToKatakana("ひらがな"), hiraganaToKatakana("すし 2つ"));
ヒラガナ スシ 2ツ

What it prints (run when this page was built)

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