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)
16 # okumacro.sty: https://ctan.org/pkg/jsclasses
17 # luatexja-ruby.sty: https://ctan.org/pkg/luatexja
18 # ruby.sty: https://www.ctan.org/pkg/cjk
19 # extended ruby support package (currently not used):
20 # https://ctan.org/pkg/pxrubrica
22 # https://www.w3.org/International/articles/ruby/markup.en.html
36 Decoration Conglomerate
39 \IfFileExists{okumacro.sty}{\usepackage{okumacro}}{}
40 \else \ifdefined\luatexversion
41 \usepackage{luatexja-ruby}
42 \else \ifdefined\XeTeXversion
45 \providecommand{\ruby}[2]{\shortstack{\tiny #2\\#1}}
47 # Fixme: Currently the ruby text is ignored in HTML
49 LabelString "ruby text"
50 MenuString "Ruby Text|R"
51 Tooltip "Reading aid (ruby, furigana) for Chinese characters."
52 Decoration Conglomerate