%%
%% frkim.sty: part of pmhanguljamo v1.0
%%
%% Fukui Rei's Korean Romanization Method.
%%
%% Nova de Hi, 2022/11/29
%%
\ProvidesExplPackage
	{pmhanguljamo-frkim}
	{2024/06/10}
	{v0.7}
	{Korean ROMAJI Input Method: Fukui Rei's HangulTeX}

\RequirePackage{l3keys2e}

\keys_define:nn { frkim }
{
	zeroisx	.bool_set:N = \opt_zeroisx_bool,
	frcccmds .bool_set:N = \opt_frcccmds_bool,
%	tonemarks	.bool_set:N = \opt_tonemarks_bool,
	hangulfont .tl_set:N = \frkhangulfont,
	hangulfontfeature	.tl_set:N = \frkhangulfontfeature,
}

\keys_set:nn { frkim }
{
	zeroisx = false,
	frcccmds = false,
%	tonemarks = false,
	hangulfont = {NotoSerifKR-Regular.otf},
	hangulfontfeature = {Ligatures=TeX,Renderer=OpenType,Script=Hangul},
}

\ProcessKeysOptions { frkim } 

\bool_new:N \opt_luatexko_loaded
\@ifpackageloaded{luatexko}{
	\bool_set_true:N \opt_luatexko_loaded
}{
	\bool_set_false:N \opt_luatexko_loaded
}

%\NewDocumentCommand \frkhangulfont {} {
%	Noto~Serif~KR
%}
%
%\NewDocumentCommand \frkhangulfontfeature {} {
%	Script=Hangul, Renderer=OpenType, Ligatures=TeX
%}

\input{pmhanguljamo-frkim.code.tex}

\endinput
