\origin unavailable
\textclass report
\begin_preamble
-
+% Chinese localization
+\@ifpackageloaded{fontspec}%
+{\usepackage{ctex}}% ctex with non-TeX fonts
+{%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
+}
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language_package default
\inputencoding utf8-cjk
\fontencoding auto
-\font_roman "lmodern" "WenQuanYi Micro Hei"
-\font_sans "default" "WenQuanYi Micro Hei"
-\font_typewriter "default" "WenQuanYi Micro Hei Mono"
+\font_roman "lmodern" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
-\use_non_tex_fonts false
+\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\use_microtype false
\use_dash_ligatures false
\graphics default
-\default_output_format pdf2
+\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
with the CJK package.
\end_layout
-\begin_layout Standard
+\begin_layout Itemize
+\noindent
The
\emph on
Table of Contents
\begin_inset Quotes erd
\end_inset
- in the PDF.
+ with PDF (pdflatex).
+ This is fixed with
+\begin_inset Quotes eld
+\end_inset
+
+non-TeX fonts
+\begin_inset Quotes erd
+\end_inset
+
+ by use of the
+\begin_inset Quotes eld
+\end_inset
+
+ctex
+\begin_inset Quotes erd
+\end_inset
+
+ package (see preamble).
\end_layout
-\begin_layout Standard
+\begin_layout Itemize
+The prefix
+\emph on
+Chapter
+\emph default
+ in the chapter heading is not translated — not even with
+\begin_inset Quotes eld
+\end_inset
+
+ctex
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Itemize
+\noindent
Without a
\backslash
clearpage before closing the
environment, Chinese characters in a section title lead to errors like
\end_layout
+\begin_deeper
\begin_layout LyX-Code
+\noindent
! Package inputenc Error: Unicode char 中 (U+4E2D)
\end_layout
\begin_layout LyX-Code
+\noindent
(inputenc) not set up for use with LaTeX.
\end_layout
\begin_layout Standard
+\paragraph_spacing single
+\noindent
(cf.
- https://www.lyx.org/trac/ticket/5386).
+ Test document for part
+\begin_inset space ~
+\end_inset
+
+2 of
+\begin_inset CommandInset href
+LatexCommand href
+name "#5386"
+target "https://www.lyx.org/trac/ticket/5386"
+literal "false"
+
+\end_inset
+
+).
\end_layout
+\end_deeper
\begin_layout Section
Section in English
\end_layout
\end_layout
\begin_layout Section
-Secition in Chinese 中文名
+Section in Chinese 中文名
\end_layout
\begin_layout Standard
export/examples/ja/multilingual_lyx.*
# No localization of auto-strings with Chinese language under 8-bit TeX
-# (ctex font issue with texlive-lang-chinese (from Debian) under pdflatex):
+# (ctex font issue with texlive-lang-chinese (from Debian) under pdflatex)
+# and only partial localization with non-tex-fonts:
export/export/latex/CJK/zh_CN-toc.*
export/doc/zh_CN/(Intro|Tutorial)_(dvi|pdf).?
$font{sans} = "FreeFarsi";
$font{typewriter} = "FreeFarsi Monospace";
}
- elsif ($lang eq "zh_CN") {
- $font{roman} = "WenQuanYi Micro Hei";
- $font{sans} = "WenQuanYi Micro Hei";
- $font{typewriter} = "WenQuanYi Micro Hei";
- }
elsif ($lang eq "ko" ) {
$font{roman} = "NanumGothic"; # NanumMyeongjo, NanumGothic Eco, NanumGothicCoding
$font{sans} = "NanumGothic";