mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Make Japanese documentation more robust.
The locally defined Ruby (furigana) inset now works also with non-TeX fonts.
This commit is contained in:
parent
6a4199ed23
commit
46119b3564
@ -87,8 +87,9 @@ export/export/latex/unicodesymbols/031-thai_th_(euc-|gbk|jis|utf8-cjk).*
|
|||||||
#
|
#
|
||||||
# The textclass-loaded jsclasses/okumacro.sty needs format `pLaTeX2e'
|
# The textclass-loaded jsclasses/okumacro.sty needs format `pLaTeX2e'
|
||||||
# (okumacro provides \ruby support).
|
# (okumacro provides \ruby support).
|
||||||
export/doc/ja/(Additional|Customization|EmbeddedObjects|Intro|LaTeXConfig|Math|Shortcuts|Tutorial|UserGuide).*_systemF
|
export/doc/ja/(Additional|LaTeXConfig|Math|UserGuide).*_systemF
|
||||||
export/doc/ja/Formula-numbering_pdf4_systemF
|
export/doc/ja/(Formula-numbering|Customization|EmbeddedObjects|Intro)_pdf4_systemF
|
||||||
|
export/doc/ja/Tutorial_(dvi3|pdf5)_systemF
|
||||||
# Test for command \pdfsave fails:
|
# Test for command \pdfsave fails:
|
||||||
# ! Package xypdf Error: pdfTeX version 1.40.0 or higher is needed for the xypdf
|
# ! Package xypdf Error: pdfTeX version 1.40.0 or higher is needed for the xypdf
|
||||||
export/examples/ja/Graphics_and_Insets/XY-Pic.*_systemF
|
export/examples/ja/Graphics_and_Insets/XY-Pic.*_systemF
|
||||||
@ -345,15 +346,6 @@ Sublabel: externalissues
|
|||||||
#
|
#
|
||||||
# e.g. a bug or missing feature in ps2pdf
|
# e.g. a bug or missing feature in ps2pdf
|
||||||
|
|
||||||
# Japanese (platex)
|
|
||||||
# dvips requires special font setup for kanji, otherwise
|
|
||||||
# * the Postscript file has wrong and missing characters
|
|
||||||
# (without error or warning)
|
|
||||||
# * as a consequence, ps2pdf fails for some documents on TL18 and TL19:
|
|
||||||
#
|
|
||||||
# The following may also fail for other reasons with TL19
|
|
||||||
#export/doc/ja/(Additional|Customization|EmbeddedObjects|Math|UserGuide)_pdf
|
|
||||||
|
|
||||||
# ps2pdf gives the following and exits with error:
|
# ps2pdf gives the following and exits with error:
|
||||||
# Error: /invalidfileaccess in --file--
|
# Error: /invalidfileaccess in --file--
|
||||||
# ps2pdf succeeds if the -dNOSAFER flag is used. For discussion, see:
|
# ps2pdf succeeds if the -dNOSAFER flag is used. For discussion, see:
|
||||||
|
@ -84,9 +84,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -74,9 +74,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
ResetsFont true
|
ResetsFont true
|
||||||
End
|
End
|
||||||
|
@ -197,9 +197,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
\let\c@equation\c@org@eq
|
\let\c@equation\c@org@eq
|
||||||
\let\theequation\org@theeq}
|
\let\theequation\org@theeq}
|
||||||
\end_preamble
|
\end_preamble
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\language japanese
|
\language japanese
|
||||||
\language_package default
|
\language_package default
|
||||||
|
@ -48,9 +48,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -168,9 +168,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
\origin /systemlyxdir/doc/ja/
|
\origin /systemlyxdir/doc/ja/
|
||||||
\textclass bxjsarticle
|
\textclass bxjsarticle
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\begin_local_layout
|
\begin_local_layout
|
||||||
InsetLayout Flex:Ruby
|
InsetLayout Flex:Ruby
|
||||||
@ -28,9 +28,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#LyX 2.3 created this file. For more info see http://www.lyx.org/
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||||
\lyxformat 544
|
\lyxformat 544
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties false
|
\save_transient_properties false
|
||||||
\origin /systemlyxdir/doc/ja/
|
\origin /systemlyxdir/doc/ja/
|
||||||
\textclass bxjsbook
|
\textclass bxjsbook
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\begin_local_layout
|
\begin_local_layout
|
||||||
InsetLayout Flex:Ruby
|
InsetLayout Flex:Ruby
|
||||||
@ -28,9 +28,15 @@ EndFont
|
|||||||
Mandatory 1
|
Mandatory 1
|
||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\ifdefined\kanjiskip
|
||||||
{\usepackage{okumacro}}
|
\IfFileExists{okumacro.sty}%
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
{\usepackage{okumacro}}%
|
||||||
|
{\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
|
||||||
|
\else \ifdefined\luatexversion
|
||||||
|
\usepackage{luatexja-ruby}
|
||||||
|
\else \ifdefined\XeTeXversion
|
||||||
|
\usepackage{ruby}%
|
||||||
|
\fi\fi\fi
|
||||||
EndPreamble
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
@ -40,7 +46,7 @@ End
|
|||||||
\fontencoding global
|
\fontencoding global
|
||||||
\font_roman "lmodern" "IPAexMincho"
|
\font_roman "lmodern" "IPAexMincho"
|
||||||
\font_sans "default" "IPAexGothic"
|
\font_sans "default" "IPAexGothic"
|
||||||
\font_typewriter "default" "default"
|
\font_typewriter "default" "IPAGothic"
|
||||||
\font_math "auto" "auto"
|
\font_math "auto" "auto"
|
||||||
\font_default_family default
|
\font_default_family default
|
||||||
\use_non_tex_fonts false
|
\use_non_tex_fonts false
|
||||||
@ -62,7 +68,7 @@ End
|
|||||||
\pdf_author "LyX Team, Japanese translation: Koji Yokata"
|
\pdf_author "LyX Team, Japanese translation: Koji Yokata"
|
||||||
\pdf_subject "LyX-documentation Tutorial"
|
\pdf_subject "LyX-documentation Tutorial"
|
||||||
\pdf_keywords "LyX, documentation"
|
\pdf_keywords "LyX, documentation"
|
||||||
\pdf_bookmarks false
|
\pdf_bookmarks true
|
||||||
\pdf_bookmarksnumbered true
|
\pdf_bookmarksnumbered true
|
||||||
\pdf_bookmarksopen true
|
\pdf_bookmarksopen true
|
||||||
\pdf_bookmarksopenlevel 2
|
\pdf_bookmarksopenlevel 2
|
||||||
|
@ -77,8 +77,15 @@ Mandatory 1
|
|||||||
EndArgument
|
EndArgument
|
||||||
Preamble
|
Preamble
|
||||||
\IfFileExists{okumacro.sty}
|
\IfFileExists{okumacro.sty}
|
||||||
{\usepackage{okumacro}}
|
\ifdefined\kanjiskip
|
||||||
{\newcommand{\ruby}[2]{#2}}
|
\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
|
EndPreamble
|
||||||
End
|
End
|
||||||
\end_local_layout
|
\end_local_layout
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
\renewenvironment{lyxgreyedout}
|
\renewenvironment{lyxgreyedout}
|
||||||
{\textcolor{blue}\bgroup}{\egroup}
|
{\textcolor{blue}\bgroup}{\egroup}
|
||||||
\end_preamble
|
\end_preamble
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\begin_modules
|
\begin_modules
|
||||||
braille
|
braille
|
||||||
\end_modules
|
\end_modules
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||||
\lyxformat 572
|
\lyxformat 573
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
@ -31,7 +31,7 @@
|
|||||||
%\setmonojfont{WenQuanYi Micro Hei Mono}
|
%\setmonojfont{WenQuanYi Micro Hei Mono}
|
||||||
\fi
|
\fi
|
||||||
\end_preamble
|
\end_preamble
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\begin_modules
|
\begin_modules
|
||||||
logicalmkup
|
logicalmkup
|
||||||
\end_modules
|
\end_modules
|
||||||
@ -63,6 +63,15 @@ logicalmkup
|
|||||||
\paperfontsize default
|
\paperfontsize default
|
||||||
\spacing single
|
\spacing single
|
||||||
\use_hyperref false
|
\use_hyperref false
|
||||||
|
\pdf_bookmarks false
|
||||||
|
\pdf_bookmarksnumbered true
|
||||||
|
\pdf_bookmarksopen false
|
||||||
|
\pdf_bookmarksopenlevel 1
|
||||||
|
\pdf_breaklinks false
|
||||||
|
\pdf_pdfborder true
|
||||||
|
\pdf_colorlinks false
|
||||||
|
\pdf_backref false
|
||||||
|
\pdf_pdfusetitle true
|
||||||
\papersize default
|
\papersize default
|
||||||
\use_geometry false
|
\use_geometry false
|
||||||
\use_package amsmath 1
|
\use_package amsmath 1
|
||||||
@ -135,7 +144,17 @@ For multi-lingual documents with parts in European languages, you can use
|
|||||||
\begin_layout Itemize
|
\begin_layout Itemize
|
||||||
|
|
||||||
\lang english
|
\lang english
|
||||||
Set a standard document class (document classes starting with
|
Use one of the Japanese
|
||||||
|
\begin_inset CommandInset href
|
||||||
|
LatexCommand href
|
||||||
|
name "BXjscls"
|
||||||
|
target "https://www.ctan.org/pkg/bxjscls"
|
||||||
|
literal "false"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
classes or a standard document class.
|
||||||
|
The other document classes starting with
|
||||||
\begin_inset Quotes bld
|
\begin_inset Quotes bld
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -143,7 +162,7 @@ Japanese
|
|||||||
\begin_inset Quotes brd
|
\begin_inset Quotes brd
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
use pLaTeX).
|
require pLaTeX.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Itemize
|
\begin_layout Itemize
|
||||||
@ -161,7 +180,7 @@ Japanese (CJK)
|
|||||||
\begin_inset Quotes bld
|
\begin_inset Quotes bld
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
Unicode (CJK) (utf8)
|
Unicode (utf8)
|
||||||
\begin_inset Quotes brd
|
\begin_inset Quotes brd
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
@ -291,5 +310,18 @@ Russisch:
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_deeper
|
\end_deeper
|
||||||
|
\begin_layout Enumerate
|
||||||
|
|
||||||
|
\lang english
|
||||||
|
Japanese characters (
|
||||||
|
\lang japanese-cjk
|
||||||
|
介, し
|
||||||
|
\family sans
|
||||||
|
, 門
|
||||||
|
\family default
|
||||||
|
\lang english
|
||||||
|
) may also be used in text parts set to other languages.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\end_body
|
\end_body
|
||||||
\end_document
|
\end_document
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
#LyX 2.4 created this file. For more info see https://www.lyx.org/
|
||||||
\lyxformat 572
|
\lyxformat 573
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
\origin /systemlyxdir/examples/ja/
|
\origin /systemlyxdir/examples/ja/
|
||||||
\textclass bxjsarticle
|
\textclass bxjsarticle
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\language japanese
|
\language japanese
|
||||||
\language_package auto
|
\language_package auto
|
||||||
@ -103,7 +103,7 @@ Japanese … (BXJS Class)
|
|||||||
\begin_inset Quotes erd
|
\begin_inset Quotes erd
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
or non-Japaneses standard classes).
|
or non-Japanese standard classes).
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection*
|
\begin_layout Subsection*
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
\save_transient_properties true
|
\save_transient_properties true
|
||||||
\origin /systemlyxdir/examples/ja/
|
\origin /systemlyxdir/examples/ja/
|
||||||
\textclass bxjsarticle
|
\textclass bxjsarticle
|
||||||
\use_default_options false
|
\use_default_options true
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\language japanese
|
\language japanese
|
||||||
\language_package auto
|
\language_package auto
|
||||||
|
@ -102,9 +102,9 @@ void PDFOptions::writeLaTeX(OutputParams & runparams, otexstream & os,
|
|||||||
opt += runparams.hyperref_driver + ",";
|
opt += runparams.hyperref_driver + ",";
|
||||||
|
|
||||||
// Since LyX uses unicode, also set the PDF strings to unicode strings
|
// Since LyX uses unicode, also set the PDF strings to unicode strings
|
||||||
// with the hyperref option "unicode".
|
// with the hyperref option "unicode". (With Xe/LuaTeX and pTeX,
|
||||||
// (With Xe/LuaTeX and pTeX, unicode=true is the default
|
// unicode=true is the default, with Japanese (platex), the option
|
||||||
// and the option leads to errors with some Japanese document classes)
|
// leads to errors (even if the input encoding is UTF-8).)
|
||||||
if (!runparams.isFullUnicode() && !runparams.use_japanese)
|
if (!runparams.isFullUnicode() && !runparams.use_japanese)
|
||||||
opt += "unicode=true,";
|
opt += "unicode=true,";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user