-----------------------
2019-04-16 Günter Milde <milde@lyx.org>
- * format incremented to 573: Rename legacy input encoding settings.
+ * Format incremented to 574: Ruby inset, fixes for Japanese.
+
+2019-04-16 Günter Milde <milde@lyx.org>
+ * Format incremented to 573: Rename legacy input encoding settings.
2019-04-07 Kornel Benko <kornel@lyx.org>
* format incremented to 572: Extended Noto fonts.
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
theorems-ams-extended
multicol
shapepar
+ruby
\end_modules
\maintain_unincluded_children false
\begin_local_layout
\newcommand*{\menuitem}[1]{{\sffamily #1}}
EndPreamble
End
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
\end_local_layout
\language japanese
\language_package default
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\papercolumns 1
\papersides 2
\paperpagestyle headings
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
status open
\begin_layout Plain Layout
-\noindent
\family typewriter
<lyx-docs@lists.lyx.org>
status collapsed
\begin_layout Plain Layout
-\noindent
\family typewriter
status collapsed
\begin_layout Plain Layout
-\noindent
shapepar
\end_layout
status collapsed
\begin_layout Plain Layout
-\noindent
shapepar
\end_layout
\begin_inset CommandInset include
LatexCommand input
filename "../SpecialParagraphShape.tex"
+literal "true"
\end_inset
status collapsed
\begin_layout Plain Layout
-\noindent
shapepar
\end_layout
#LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
\use_default_options false
\begin_modules
logicalmkup
+ruby
\end_modules
\maintain_unincluded_children false
\begin_local_layout
#\renewcommand{\code}[1]{{\sffamily #1}}
#EndPreamble
#End
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-ResetsFont true
-End
\end_local_layout
\language japanese
\language_package default
-\inputencoding utf8-platex
+\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\output_sync 0
\bibtex_command default
\index_command default
-\float_placement class
-\float_alignment class
\paperfontsize 12
\spacing single
\use_hyperref true
arg "version"
\end_inset
-では,最新書式は
-\begin_inset Info
-type "lyxinfo"
-arg "layoutformat"
-\end_inset
-
-です)
+では,最新書式は69です)
\end_layout
\begin_layout Standard
\end_layout
\begin_layout LyX-Code
-Format
-\begin_inset Info
-type "lyxinfo"
-arg "layoutformat"
-\end_inset
-
-
+Format 69
\begin_inset Newline newline
\end_inset
\end_inset
1.3.x以前のレイアウトファイルには,明示されたファイル形式がないため,書式1と解されます.\SpecialChar LyX
-現行版のファイル形式は,書式
-\begin_inset Info
-type "lyxinfo"
-arg "layoutformat"
-\end_inset
-
-です.しかし,\SpecialChar LyX
+現行版のファイル形式は,書式69です.しかし,\SpecialChar LyX
の各版は,旧版の\SpecialChar LyX
-で作成されたファイルを読むことができるように,旧版のレイアウトファイルも読むことができます.しかしながら,以前の書式に変換する方法
-はありません.
+で作成さ
+ã\82\8cã\81\9fã\83\95ã\82¡ã\82¤ã\83«ã\82\92èªã\82\80ã\81\93ã\81¨ã\81\8cã\81§ã\81\8dã\82\8bã\82\88ã\81\86ã\81«ï¼\8cæ\97§ç\89\88ã\81®ã\83¬ã\82¤ã\82¢ã\82¦ã\83\88ã\83\95ã\82¡ã\82¤ã\83«ã\82\82èªã\82\80ã\81\93ã\81¨ã\81\8cã\81§ã\81\8dã\81¾ã\81\99ï¼\8eã\81\97ã\81\8bã\81\97ã\81ªã\81\8cã\82\89ï¼\8c以å\89\8dã\81®æ\9b¸å¼\8fã\81«å¤\89æ\8f\9bã\81\99ã\82\8bæ\96¹æ³\95ã\81¯ã\81\82ã\82\8aã\81¾ã\81\9bã\82\93ï¼\8e
\end_layout
\begin_layout Subsection
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
initials
graphicboxes
varwidth
+ruby
\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package default
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\papercolumns 1
\papersides 2
\paperpagestyle default
+\tablestyle default
\bullet 1 1 34 -1
\bullet 2 2 35 -1
\bullet 3 2 7 -1
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\noindent
\begin_inset Float table
placement H
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\noindent
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement H
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float algorithm
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways true
status open
の従属フロートです.
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\noindent
\align center
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\noindent
\align center
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
placement !p
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement !p
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
を読み込みます.
\begin_inset Float figure
placement !h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
placement !h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset CommandInset include
LatexCommand include
filename "DummyDocument1.lyx"
+literal "true"
\end_inset
\begin_inset CommandInset include
LatexCommand input
filename "DummyDocument2.lyx"
+literal "true"
\end_inset
\begin_inset CommandInset include
LatexCommand verbatiminput
filename "DummyTextDocument.txt"
+literal "true"
\end_inset
\begin_inset CommandInset include
LatexCommand verbatiminput*
filename "DummyTextDocument.txt"
+literal "true"
\end_inset
LatexCommand lstinputlisting
filename "EmbeddedObjects.lyx"
lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
+literal "true"
\end_inset
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
\pagenumbering{arabic} }
\end_preamble
\use_default_options false
+\begin_modules
+ruby
+\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package auto
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\papercolumns 1
\papersides 2
\paperpagestyle default
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
\use_default_options true
\begin_modules
subequations
+ruby
\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package default
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\output_sync 0
\bibtex_command default
\index_command default
+\float_placement class
+\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref true
\papercolumns 1
\papersides 2
\paperpagestyle plain
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\align center
\begin_inset Float table
placement H
+alignment document
wide false
sideways false
status open
\lang ngerman
Das Spektrum wird fouriertransformiert.
- Die Fouriertransformation wird verwendet, um die
- überlagerten Signale (Netzwerk, Lösungsmittel) zu trennen.
+ Die Fouriertransformation wird verwendet, um die überlagerten Signale
+ (Netzwerk, Lösungsmittel) zu trennen.
Nachdem wir die Phasenverschiebung bestimmen konnten, interessiert uns
nun das Aussehen des Ausgangssignals.
Im Experiment haben wir es mit sehr vielen Teilchen zu tun, so das man
-rf-Puls beginnt sich die Magnetisierung zu entfokussieren, wodurch sich
das Signal zusätzlich abschwächt.
- Diese Abschwächung verläuft exponentiell in Abhängigkeit der so genannten
+ Diese Abschwächung verläuft exponentiell in Abhängigkeit der so genannten
+
\begin_inset Formula $T_{2}$
\end_inset
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
\origin /systemlyxdir/doc/ja/
\textclass bxjsarticle
\use_default_options true
+\begin_modules
+ruby
+\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package auto
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\output_sync 0
\bibtex_command default
\index_command default
+\float_placement class
+\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref false
\papercolumns 1
\papersides 1
\paperpagestyle empty
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
#LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 544
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
\origin /systemlyxdir/doc/ja/
\textclass bxjsbook
\use_default_options true
+\begin_modules
+ruby
+\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package auto
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "IPAGothic"
\papercolumns 1
\papersides 2
\paperpagestyle default
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties false
\begin_modules
customHeadersFooters
enumitem
+ruby
\end_modules
\maintain_unincluded_children false
-\begin_local_layout
-InsetLayout Flex:Ruby
-LyxType charstyle
-LatexType command
-LatexName ruby
-BgColor none
-LabelString "ルビ"
-Decoration Conglomerate
-Argument post:1
-LabelString "ルビ文"
-MenuString "ルビ文(S)|S"
-Decoration Conglomerate
-Font
-Size tiny
-EndFont
-LabelFont
-Size tiny
-EndFont
-Mandatory 1
-EndArgument
-Preamble
-\IfFileExists{okumacro.sty}
-\ifdefined\kanjiskip
- \IfFileExists{okumacro.sty}%
- {\usepackage{okumacro}}%
- {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
-\else \ifdefined\luatexversion
- \usepackage{luatexja-ruby}
-\else \ifdefined\XeTeXversion
- \usepackage{ruby}%
-\fi\fi\fi
-EndPreamble
-End
-\end_local_layout
\language japanese
\language_package auto
-\inputencoding utf8-platex
-\fontencoding global
+\inputencoding utf8
+\fontencoding auto
\font_roman "lmodern" "IPAexMincho"
\font_sans "default" "IPAexGothic"
\font_typewriter "default" "default"
\papercolumns 1
\papersides 2
\paperpagestyle default
+\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\begin_layout Standard
\begin_inset Float table
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
placement htbp
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status open
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_inset Float figure
+placement document
+alignment document
wide false
sideways false
status collapsed
\begin_layout Standard
\begin_inset Float table
placement htbp
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
+placement document
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float figure
placement h
+alignment document
wide false
sideways false
status open
\begin_layout Standard
\begin_inset Float table
placement t
+alignment document
wide false
sideways false
status open
#LyX 2.4 created this file. For more info see https://www.lyx.org/
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
\lang japanese-cjk
\begin_inset Flex Ruby
-status open
+status collapsed
\begin_layout Plain Layout
東 京
Custom Text Styles\SpecialChar menuseparator
Ruby
\family default
- for the base characters.
+ for the base character(s).
\end_layout
\begin_layout Itemize
#Authors: Koji Yokota (original implementation as local layout),
# Günter Milde <milde@lyx.org> (module)
+# References:
+# required packages
+# okumacro.sty: https://ctan.org/pkg/jsclasses
+# luatexja-ruby.sty: https://ctan.org/pkg/luatexja
+# ruby.sty: https://www.ctan.org/pkg/cjk
+# extended ruby support package (currently not used):
+# https://ctan.org/pkg/pxrubrica
+# W3W spec:
+# https://www.w3.org/International/articles/ruby/markup.en.html
+
Format 74
InsetLayout Flex:Ruby
LyxType charstyle
LatexType command
LatexName ruby
+ HTMLTag ruby
+ HTMLAttr ""
+ HTMLInnerTag rb
+ HTMLInnerAttr ""
BgColor none
LabelString "Ruby"
Decoration Conglomerate
\fi\fi\fi
\providecommand{\ruby}[2]{\shortstack{\tiny #2\\#1}}
EndPreamble
+ # Fixme: Currently the ruby text is ignored in HTML
Argument post:1
LabelString "ruby text"
MenuString "Ruby Text|R"
" The LyX module has all the rules related with different lyx file formats."
-from parser_tools import get_value, check_token, find_token, \
- find_tokens, find_end_of
+from parser_tools import (get_value, check_token, find_token, find_tokens,
+ find_end_of, find_complete_lines)
import os.path
import gzip
import locale
#Note that the module will be added at the END of the extant ones
def add_module(self, module):
+ " Append module to the modules list."
i = find_token(self.header, "\\begin_modules", 0)
if i == -1:
#No modules yet included
self.header.insert(j, module)
+ def del_module(self, module):
+ " Delete `module` from module list, return success."
+ modlist = self.get_module_list()
+ if module not in modlist:
+ return False
+ self.set_module_list([line for line in modlist if line != "ruby"])
+ return True
+
def get_module_list(self):
+ " Return list of modules."
i = find_token(self.header, "\\begin_modules", 0)
if (i == -1):
return []
def set_module_list(self, mlist):
- modbegin = find_token(self.header, "\\begin_modules", 0)
- newmodlist = ['\\begin_modules'] + mlist + ['\\end_modules']
- if (modbegin == -1):
+ i = find_token(self.header, "\\begin_modules", 0)
+ if (i == -1):
#No modules yet included
tclass = find_token(self.header, "\\textclass", 0)
if tclass == -1:
self.warning("Malformed LyX document: No \\textclass!!")
return
- modbegin = tclass + 1
- self.header[modbegin:modbegin] = newmodlist
- return
- modend = find_token(self.header, "\\end_modules", modbegin)
- if modend == -1:
- self.warning("(set_module_list)Malformed LyX document: No \\end_modules.")
- return
- newmodlist = ['\\begin_modules'] + mlist + ['\\end_modules']
- self.header[modbegin:modend + 1] = newmodlist
+ i = j = tclass + 1
+ else:
+ j = find_token(self.header, "\\end_modules", i)
+ if j == -1:
+ self.warning("(set_module_list) Malformed LyX document: No \\end_modules.")
+ return
+ j += 1
+ if mlist:
+ mlist = ['\\begin_modules'] + mlist + ['\\end_modules']
+ self.header[i:j] = mlist
def set_parameter(self, param, value):
return mode, steps
+ def append_local_layout(self, new_layout):
+ " Append `new_layout` to the local layouts."
+ # new_layout may be a string or a list of strings (lines)
+ try:
+ new_layout = new_layout.splitlines()
+ except AttributeError:
+ pass
+ i = find_token(self.header, "\\begin_local_layout", 0)
+ if i == -1:
+ k = find_token(self.header, "\\language", 0)
+ if k == -1:
+ # this should not happen
+ self.warning("Malformed LyX document! No \\language header found!")
+ return
+ self.header[k-1 : k-1] = ["\\begin_local_layout", "\\end_local_layout"]
+ i = k - 1
+
+ j = find_end_of(self.header, i, "\\begin_local_layout", "\\end_local_layout")
+ if j == -1:
+ # this should not happen
+ self.warning("Malformed LyX document: Can't find end of local layout!")
+ return
+
+ self.header[i+1 : i+1] = new_layout
+
+ def del_local_layout(self, old_layout):
+ " Delete `old_layout` from local layouts, return success."
+ i = find_complete_lines(self.header, old_layout)
+ if i == -1:
+ return False
+ j = i+len(old_layout)
+ if (self.header[i-1] == "\\begin_local_layout" and
+ self.header[j] == "\\end_local_layout"):
+ i -=1
+ j +=1
+ self.header[i:j] = []
+ return True
+
+ def del_from_header(self, lines):
+ " Delete `lines` from the document header, return success."
+ i = find_complete_lines(self.header, lines)
+ if i == -1:
+ return False
+ j = i + len(lines)
+ self.header[i:j] = []
+ return True
+
# Part of an unfinished attempt to make lyx2lyx gave a more
# structured view of the document.
# def get_toc(self, depth = 4):
from parser_tools import (del_token, del_value, del_complete_lines,
find_complete_lines, find_end_of, find_end_of_layout, find_end_of_inset,
- find_re, find_substring, find_token, find_token_backwards,
+ find_re, find_substring, find_token, find_token_backwards, find_across_lines,
get_containing_inset, get_containing_layout, get_bool_value, get_value,
get_quoted_value, is_in_inset, set_bool_value)
# find_tokens, find_token_exact, check_token, get_option_value
document.header[i:i] = lines
+beamer_article_styles = [
+ "### Inserted by lyx2lyx (more [scr]article styles) ###",
+ "Input article.layout",
+ "Input beamer.layout",
+ "Provides geometry 0",
+ "Provides hyperref 0",
+ "DefaultFont",
+ " Family Roman",
+ " Series Medium",
+ " Shape Up",
+ " Size Normal",
+ " Color None",
+ "EndFont",
+ "Preamble",
+ " \\usepackage{beamerarticle,pgf}",
+ " % this default might be overridden by plain title style",
+ " \\newcommand\makebeamertitle{\\frame{\\maketitle}}%",
+ " \\AtBeginDocument{",
+ " \\let\\origtableofcontents=\\tableofcontents",
+ " \\def\\tableofcontents{\\@ifnextchar[{\\origtableofcontents}{\\gobbletableofcontents}}",
+ " \\def\\gobbletableofcontents#1{\\origtableofcontents}",
+ " }",
+ "EndPreamble",
+ "### End of insertion by lyx2lyx (more [scr]article styles) ###"]
+
def revert_beamer_article_styles(document):
" Include (scr)article styles in beamer article "
if document.textclass not in beamer_articles:
return
- inclusion = "article.layout"
if document.textclass == "scrarticle-beamer":
- inclusion = "scrartcl.layout"
-
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- k = find_token(document.header, "\\language", 0)
- if k == -1:
- # this should not happen
- document.warning("Malformed LyX document! No \\language header found!")
- return
- document.header[k-1 : k-1] = ["\\begin_local_layout", "\\end_local_layout"]
- i = k - 1
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document: Can't find end of local layout!")
- return
-
- document.header[i+1 : i+1] = [
- "### Inserted by lyx2lyx (more [scr]article styles) ###",
- "Input " + inclusion,
- "Input beamer.layout",
- "Provides geometry 0",
- "Provides hyperref 0",
- "DefaultFont",
- " Family Roman",
- " Series Medium",
- " Shape Up",
- " Size Normal",
- " Color None",
- "EndFont",
- "Preamble",
- " \\usepackage{beamerarticle,pgf}",
- " % this default might be overridden by plain title style",
- " \\newcommand\makebeamertitle{\\frame{\\maketitle}}%",
- " \\AtBeginDocument{",
- " \\let\\origtableofcontents=\\tableofcontents",
- " \\def\\tableofcontents{\\@ifnextchar[{\\origtableofcontents}{\\gobbletableofcontents}}",
- " \\def\\gobbletableofcontents#1{\\origtableofcontents}",
- " }",
- "EndPreamble",
- "### End of insertion by lyx2lyx (more [scr]article styles) ###"
- ]
-
+ beamer_article_styles[1] = "Input scrartcl.layout"
+ document.append_local_layout(beamer_article_styles)
def convert_beamer_article_styles(document):
" Remove included (scr)article styles in beamer article "
if document.textclass not in beamer_articles:
return
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- return
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document: Can't find end of local layout!")
- return
-
- k = find_token(document.header, "### Inserted by lyx2lyx (more [scr]article styles) ###", i, j)
- if k != -1:
- l = find_token(document.header, "### End of insertion by lyx2lyx (more [scr]article styles) ###", i, j)
- if l == -1:
- # this should not happen
- document.warning("End of lyx2lyx local layout insertion not found!")
- return
-
- if k == i + 1 and l == j - 1:
- # that was all the local layout there was
- document.header[i : j + 1] = []
- else:
- document.header[k : l + 1] = []
+ if document.textclass == "scrarticle-beamer":
+ beamer_article_styles[1] = "Input scrartcl.layout"
+ document.del_local_layout(beamer_article_styles)
def revert_new_babel_languages(document):
i = l
+iopart_local_layout = ["### Inserted by lyx2lyx (stdlayouts) ###",
+ "Input stdlayouts.inc",
+ "### End of insertion by lyx2lyx (stdlayouts) ###"""]
+
def revert_iopart(document):
" Input new styles via local layout "
if document.textclass != "iopart":
return
-
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- k = find_token(document.header, "\\language", 0)
- if k == -1:
- # this should not happen
- document.warning("Malformed LyX document! No \\language header found!")
- return
- document.header[k-1 : k-1] = ["\\begin_local_layout", "\\end_local_layout"]
- i = k-1
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document! Can't find end of local layout!")
- return
-
- document.header[i+1 : i+1] = [
- "### Inserted by lyx2lyx (stdlayouts) ###",
- "Input stdlayouts.inc",
- "### End of insertion by lyx2lyx (stdlayouts) ###"
- ]
+ document.append_local_layout(iopart_local_layout)
def convert_iopart(document):
" Remove local layout we added, if it is there "
if document.textclass != "iopart":
return
-
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- return
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document! Can't find end of local layout!")
- return
-
- k = find_token(document.header, "### Inserted by lyx2lyx (stdlayouts) ###", i, j)
- if k != -1:
- l = find_token(document.header, "### End of insertion by lyx2lyx (stdlayouts) ###", i, j)
- if l == -1:
- # this should not happen
- document.warning("End of lyx2lyx local layout insertion not found!")
- return
- if k == i + 1 and l == j - 1:
- # that was all the local layout there was
- document.header[i : j + 1] = []
- else:
- document.header[k : l + 1] = []
+ document.del_local_layout(iopart_local_layout)
def convert_quotestyle(document):
# Emulate the old biblatex-workaround (pretend natbib in order to use the styles)
if biblatex:
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- k = find_token(document.header, "\\language", 0)
- if k == -1:
- # this should not happen
- document.warning("Malformed LyX document! No \\language header found!")
- return
- document.header[k-1 : k-1] = ["\\begin_local_layout", "\\end_local_layout"]
- i = k-1
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document! Can't find end of local layout!")
- return
-
- document.header[i+1 : i+1] = [
+ biblatex_emulation = [
"### Inserted by lyx2lyx (biblatex emulation) ###",
"Provides natbib 1",
"### End of insertion by lyx2lyx (biblatex emulation) ###"
]
+ document.append_local_layout(biblatex_emulation)
def revert_citekeyonly(document):
# Nothing to do for empty options
return
- i = find_token(document.header, "\\begin_local_layout", 0)
- if i == -1:
- k = find_token(document.header, "\\language", 0)
- if k == -1:
- # this should not happen
- document.warning("Malformed LyX document! No \\language header found!")
- return
- document.header[k-1 : k-1] = ["\\begin_local_layout", "\\end_local_layout"]
- i = k - 1
-
- j = find_end_of(document.header, i, "\\begin_local_layout", "\\end_local_layout")
- if j == -1:
- # this should not happen
- document.warning("Malformed LyX document! Can't find end of local layout!")
- return
-
- document.header[i+1 : i+1] = [
+ bibliography_package_options = [
"### Inserted by lyx2lyx (bibliography package options) ###",
"PackageOptions " + engine + " " + biblio_options,
"### End of insertion by lyx2lyx (bibliography package options) ###"
]
-
+ document.append_local_layout(bibliography_package_options)
def revert_qualicites(document):
" Revert qualified citation list commands to ERT "
}
types = ["date", "fixdate", "moddate" ]
- i = 0
- i = find_token(document.header, "\\language", 0)
- if i == -1:
- # this should not happen
+ lang = get_value(document.header, "\\language")
+ if lang == "":
document.warning("Malformed LyX document! No \\language header found!")
return
- lang = get_value(document.header, "\\language", i)
i = 0
while True:
# In Python 2, datetime module works with binary strings,
# our dateformat strings are utf8-encoded:
result = result.decode('utf-8')
- document.body[i : j+1] = result
+ document.body[i : j+1] = [result]
i = i + 1
def convert_hebrew_parentheses(document):
- """ Swap opening/closing parentheses in Hebrew text.
-
- Up to LyX 2.4, ")" was used as opening parenthesis and
- "(" as closing parenthesis for Hebrew in the LyX source.
+ """ Swap opening/closing parentheses in Hebrew text.
+
+ Up to LyX 2.4, "(" was used as closing parenthesis and
+ ")" as opening parenthesis for Hebrew in the LyX source.
"""
-
- print("convert hebrew parentheses")
+ # print("convert hebrew parentheses")
current_languages = [document.language]
for i, line in enumerate(document.body):
if line.startswith('\\lang '):
current_languages[-1] = line.lstrip('\\lang ')
elif line.startswith('\\begin_layout'):
current_languages.append(current_languages[-1])
- print (line, current_languages[-1])
+ # print (line, current_languages[-1])
elif line.startswith('\\end_layout'):
current_languages.pop()
elif current_languages[-1] == 'hebrew' and not line.startswith('\\'):
i = find_token(document.body, "\\begin_inset Flex Highlight", 0)
if i != -1:
add_to_preamble(document, ["\\usepackage{color}"])
-
+
revert_flex_inset(document.body, "Spaceletters", "\\so")
revert_flex_inset(document.body, "Strikethrough", "\\st")
revert_flex_inset(document.body, "Underline", "\\ul")
i += 1
+ruby_inset_def = [
+ r'### Inserted by lyx2lyx (ruby inset) ###',
+ r'InsetLayout Flex:Ruby',
+ r' LyxType charstyle',
+ r' LatexType command',
+ r' LatexName ruby',
+ r' HTMLTag ruby',
+ r' HTMLAttr ""',
+ r' HTMLInnerTag rb',
+ r' HTMLInnerAttr ""',
+ r' BgColor none',
+ r' LabelString "Ruby"',
+ r' Decoration Conglomerate',
+ r' Preamble',
+ r' \ifdefined\kanjiskip',
+ r' \IfFileExists{okumacro.sty}{\usepackage{okumacro}}{}',
+ r' \else \ifdefined\luatexversion',
+ r' \usepackage{luatexja-ruby}',
+ r' \else \ifdefined\XeTeXversion',
+ r' \usepackage{ruby}%',
+ r' \fi\fi\fi',
+ r' \providecommand{\ruby}[2]{\shortstack{\tiny #2\\#1}}',
+ r' EndPreamble',
+ r' Argument post:1',
+ r' LabelString "ruby text"',
+ r' MenuString "Ruby Text|R"',
+ r' Tooltip "Reading aid (ruby, furigana) for Chinese characters."',
+ r' Decoration Conglomerate',
+ r' Font',
+ r' Size tiny',
+ r' EndFont',
+ r' LabelFont',
+ r' Size tiny',
+ r' EndFont',
+ r' Mandatory 1',
+ r' EndArgument',
+ r'End',
+]
+
+def convert_ruby_module(document):
+ " Use ruby module instead of local module definition "
+ if document.del_local_layout(ruby_inset_def):
+ document.add_module("ruby")
+
+def revert_ruby_module(document):
+ " Replace ruby module with local module definition "
+ if document.del_module("ruby"):
+ document.append_local_layout(ruby_inset_def)
+
+
+def convert_utf8_japanese(document):
+ " Use generic utf8 with Japanese documents."
+ lang = get_value(document.header, "\\language")
+ if not lang.startswith("japanese"):
+ return
+ inputenc = get_value(document.header, "\\inputencoding")
+ if ((lang == "japanese" and inputenc == "utf8-platex")
+ or (lang == "japanese-cjk" and inputenc == "utf8-cjk")):
+ document.set_parameter("inputencoding", "utf8")
+
+def revert_utf8_japanese(document):
+ " Use Japanese utf8 variants with Japanese documents."
+ inputenc = get_value(document.header, "\\inputencoding")
+ if inputenc != "utf8":
+ return
+ lang = get_value(document.header, "\\language")
+ if lang == "japanese":
+ document.set_parameter("inputencoding", "utf8-platex")
+ if lang == "japanese-cjk":
+ document.set_parameter("inputencoding", "utf8-cjk")
+
+
##
# Conversion hub
#
[571, []],
[572, [convert_notoFonts]], # Added options thin, light, extralight for Noto
[573, [convert_inputencoding_namechange]],
+ [574, [convert_ruby_module, convert_utf8_japanese]],
]
-revert = [[572, [revert_inputencoding_namechange]],
+revert = [[573, [revert_ruby_module, revert_utf8_japanese]],
+ [572, [revert_inputencoding_namechange]],
[571, [revert_notoFonts]],
[570, [revert_cmidruletrimming]],
[569, [revert_bibfileencodings]],
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
#LyX file created by tex2lyx 2.4
-\lyxformat 573
+\lyxformat 574
\begin_document
\begin_header
\save_transient_properties true
// Do not remove the comment below, so we get merge conflict in
// independent branches. Instead add your own.
-#define LYX_FORMAT_LYX 573 // gm: rename input encoding settings
-#define LYX_FORMAT_TEX2LYX 573
+#define LYX_FORMAT_LYX 574 // gm: Japanese fixes
+#define LYX_FORMAT_TEX2LYX 574
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
#ifndef _MSC_VER