<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% Kana Parser for LuaTeX
% Author: Adam Zahumensky, FIT CVUT

% initializer macro, use it before using any other macros in this package
\def\parserInit{ \directlua{ dofile('kanaparser.lua') } }

% supply a whitespace-separated list of syllables whose kana characters you'd like to toggle
% list of supported alternatives ([] denotes default choice):
% du : [ăĽ], ăŠă
% ja : [ăă], ă˘ă
% ji : [ă], ă˘
% jo : [ăă], ă˘ă
% ju : [ăă], ă˘ă
% we : [ăă], ă
% wo : [ă], ăă
\def\toggleChars#1{\directlua{ toggleChars("\luatexluaescapestring{#1}") }}

% convert all kana to latin
\long\def\toLatin#1{\directlua{ toLatin("\luatexluaescapestring{#1}") }}

% convert latin and katakana to hiragana
\long\def\toHiragana#1{\directlua{ toHiragana("\luatexluaescapestring{#1}") }}

% convert latin and hiragana to katakana
\long\def\toKatakana#1{\directlua{ toKatakana("\luatexluaescapestring{#1}") }}</pre></body></html>