1 #\DeclareLyXModule{Ruby (Furigana)}
2 #\DeclareCategory{Annotation & Revision}
4 #Defines an inset to typeset reading aids (ruby, furigana) to Chinese
5 #characters. Uses the "okumakro", "luatexja-ruby", or "ruby" package
6 #(depending on the TeX engine) or a fallback definition.
11 #Authors: Koji Yokota (original implementation as local layout),
12 # Günter Milde <milde@lyx.org> (module)
22 Decoration Conglomerate
25 \IfFileExists{okumacro.sty}{\usepackage{okumacro}}{}
26 \else \ifdefined\luatexversion
27 \usepackage{luatexja-ruby}
28 \else \ifdefined\XeTeXversion
31 \providecommand{\ruby}[2]{\shortstack{\tiny #2\\#1}}
34 LabelString "ruby text"
35 MenuString "Ruby Text|R"
36 Tooltip "Reading aid (ruby, furigana) for Chinese characters."
37 Decoration Conglomerate