ctests: dedicated tests for languages supported by polyglossia/babel

This commit is contained in:
Günter Milde 2019-05-08 12:07:20 +02:00
parent af9838fd32
commit df1f0d82a2
7 changed files with 1596 additions and 47 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,172 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 573
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\begin_preamble
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package auto
\inputencoding utf8
\fontencoding HE8,T1
\font_roman "libertine" "FreeSerif"
\font_sans "biolinum" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\font_cjk gbsn
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 0
\use_minted 0
\branch only-as-document-language
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch babel-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch non-TeX-fonts-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch polyglossia-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch CJK
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch debug
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-rus-belarus
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-es-gl
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-bg-mk
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-babel-non-TeX-fonts
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch standalone
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Languages supported by LyX.
\end_layout
\begin_layout Standard
\noindent
With language examples that work with Babel.
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "supported-languages.lyx"
literal "false"
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,188 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 573
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\begin_preamble
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package auto
\inputencoding auto-legacy
\fontencoding HE8,T1
\font_roman "libertine" "FreeSerif"
\font_sans "biolinum" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\font_cjk gbsn
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 0
\use_minted 0
\branch only-as-document-language
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch babel-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch non-TeX-fonts-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch polyglossia-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch CJK
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch debug
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-rus-belarus
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-es-gl
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-bg-mk
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-babel-non-TeX-fonts
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch standalone
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Languages supported by LyX.
\end_layout
\begin_layout Standard
\noindent
With language examples that work with
\emph on
Babel
\emph default
and input encoding
\begin_inset Quotes eld
\end_inset
auto-legacy
\begin_inset Quotes erd
\end_inset
, i.e.
each language uses its own default legacy input encoding.
\emph on
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "supported-languages.lyx"
literal "false"
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,168 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 573
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package auto
\inputencoding auto-legacy
\fontencoding HE8,T1
\font_roman "libertine" "FreeSerif"
\font_sans "biolinum" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\font_cjk gbsn
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 0
\use_minted 0
\branch only-as-document-language
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch babel-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch non-TeX-fonts-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch polyglossia-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch CJK
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch debug
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-rus-belarus
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-es-gl
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-bg-mk
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-babel-non-TeX-fonts
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch standalone
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Languages supported by LyX.
\end_layout
\begin_layout Standard
With language examples that work with Babel and non-TeX fonts.
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "supported-languages.lyx"
literal "false"
\end_inset
\end_layout
\end_body
\end_document

View File

@ -0,0 +1,209 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 573
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\begin_preamble
\newfontfamily\amharicfont[Script=Ethiopic]{Noto Sans Ethiopic}
\newfontfamily\thaanafont[Script=Thaana]{Noto Sans Thaana}
\newfontfamily\devanagarifont[Script=Devanagari]{Noto Serif Devanagari}
\newfontfamily\kannadafont[Script=Kannada]{Noto Serif Kannada}
\newfontfamily\khmerfont[Script=Khmer]{Noto Serif Khmer}
\newfontfamily\laofont[Script=Lao]{Noto Serif Lao}
% gloss-marathi.ldf has a spelling error: "script=Devaganari"
\newfontfamily\marathifont[Script=Devanagari]{Noto Serif Devanagari}
\newfontfamily\syriacfont[Script=Syriac]{FreeSans}
\newfontfamily\tamilfont[Script=Tamil]{Noto Serif Tamil}
\newfontfamily\telugufont[Script=Telugu]{Noto Serif Telugu}
\newfontfamily\tibetanfont[Script=Tibetan]{Noto Sans Tibetan}
% Font setup for Japanese (not supported by Polyglossia)
% with XeTeX, https://ctan.org/pkg/xecjk
\usepackage{ifxetex}
\ifxetex
\usepackage{xeCJK}
\setCJKmainfont{IPAexMincho}
\setCJKsansfont{IPAexGothic}
\fi
% with LuaTeX, https://www.ctan.org/pkg/luatexja
% see https://tex.stackexchange.com/questions/222980/how-to-use-chinese-with-lualatex
\usepackage{ifluatex}
\ifluatex
\usepackage{luatexja-fontspec}
% use Mainfont (DejaVu) for Greek and Cyrillic:
\ltjsetparameter{jacharrange={-2}}
%\usepackage[match]{luatexja-fontspec}
%\setmainjfont[Mapping=tex-text]{WenQuanYi Micro Hei}
%\setsansjfont[Mapping=tex-text]{WenQuanYi Micro Hei}
%\setmonojfont{WenQuanYi Micro Hei Mono}
\fi
\end_preamble
\use_default_options false
\maintain_unincluded_children false
\language english
\language_package auto
\inputencoding auto-legacy
\fontencoding HE8,T1
\font_roman "libertine" "FreeSerif"
\font_sans "biolinum" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts true
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\font_cjk gbsn
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 0
\use_minted 0
\branch only-as-document-language
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch babel-only
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch non-TeX-fonts-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch polyglossia-only
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch CJK
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch debug
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-rus-belarus
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-es-gl
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-bg-mk
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
\branch conflict-babel-non-TeX-fonts
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\branch standalone
\selected 0
\filename_suffix 0
\color #faf0e6
\end_branch
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Title
Languages supported by LyX.
\end_layout
\begin_layout Standard
With language examples that work with
\emph on
Polyglossia
\emph default
and non-TeX fonts.
\end_layout
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand input
filename "supported-languages.lyx"
literal "false"
\end_inset
\end_layout
\end_body
\end_document

View File

@ -179,6 +179,7 @@ export/export/latex/languages/supported-languages_babel_auto-legacy_.*_systemF
# don't test with TeX fonts: # don't test with TeX fonts:
export/export/latex/languages/supported-languages_babel_non-tex_.*(dvi|pdf.?|texF) export/export/latex/languages/supported-languages_babel_non-tex_.*(dvi|pdf.?|texF)
export/export/latex/languages/supported-languages_polyglossia_.*(dvi|pdf.?|texF)
# HTML # HTML
# don't check loading, lyx2lyx, or export to other LyX versions or DVI/PDF # don't check loading, lyx2lyx, or export to other LyX versions or DVI/PDF

View File

@ -271,6 +271,13 @@ export/examples/(|fr/)Graphics_and_Insets/XY-(Pic|Figure)_pdf5.*
# See discussion here: # See discussion here:
# https://www.mail-archive.com/search?l=mid&q=1478004223.2367.5.camel%40lyx.org # https://www.mail-archive.com/search?l=mid&q=1478004223.2367.5.camel%40lyx.org
export/doc/(sk|nb)/Intro_(dvi3|pdf5)_systemF export/doc/(sk|nb)/Intro_(dvi3|pdf5)_systemF
# some Polyglossia languages work only with XeTeX and fail with LuaTeX
# The font "NotoSansEthiopic" cannot be found.
# sanskrit: ! Undefined control sequence.
# l.53 \newXeTeXintercharclass
# RTL-languages: ! Undefined control sequence.
# \setLR ->\@RTLfalse \luatexpardir
export/export/latex/languages/supported-languages_polyglossia_(dvi3|pdf5)_systemF
# fontspec errors with `slides` class: # fontspec errors with `slides` class:
# LaTeX error: "kernel/command-already-defined" # LaTeX error: "kernel/command-already-defined"