language support update (tests and workaround for Thai).

This commit is contained in:
Günter Milde 2019-04-16 22:05:58 +02:00
parent 27ba6f282d
commit 29265ce702
5 changed files with 86 additions and 210 deletions

View File

@ -1,5 +1,5 @@
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 572
\lyxformat 573
\begin_document
\begin_header
\save_transient_properties true
@ -12,7 +12,7 @@
\maintain_unincluded_children false
\language english
\language_package auto
\inputencoding utf8
\inputencoding auto-legacy
\fontencoding HE8,T1
\font_roman "libertine" "FreeSerif"
\font_sans "biolinum" "FreeSans"
@ -74,7 +74,7 @@
\color #faf0e6
\end_branch
\branch babel-only
\selected 0
\selected 1
\filename_suffix 0
\color #faf0e6
\end_branch
@ -145,7 +145,7 @@ Languages supported by LyX.
\begin_layout Standard
\begin_inset Branch debug
inverted 0
status open
status collapsed
\begin_layout Standard
The language is
@ -291,11 +291,6 @@ Afrikaans
Babel afrikaans
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
Polyglossia n.a.
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
LangCode af_ZA
@ -527,6 +522,11 @@ Belarusian
Babel belarusian
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
LangCode be_BY
@ -678,36 +678,22 @@ LangCode bg_BG
\begin_layout Labeling
\labelwidthstring 00.00.0000
Provides textcyrillic
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Quote
\emph on
\begin_inset Branch conflict-bg-mk
inverted 0
status open
\begin_layout Standard
\emph on
\emph off
\lang bulgarian
Бъ̀лгарският езѝк
\emph default
е индоевропейски език от групата на южнославянските езици.
Бъ̀лгарският езѝк е индоевропейски език от групата на южнославянските езици.
Той е официалният език на Република България и един от 23-те официални
езика на Европейския съюз.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch debug
inverted 0
status collapsed
status open
\begin_layout Standard
The language is
@ -954,6 +940,28 @@ LyX (LyX support missing)
Polyglossia churchslavonic
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
LangCode cu
\end_layout
\begin_layout Quote
\begin_inset Branch polyglossia-only
inverted 0
status open
\begin_layout Standard
Црькъвьнословѣ́ньскъ ѩꙁꙑ́къ и црькъвьнословѣньскꙑ славєнскій ѧꙁꙑкъ · богоуслоужє
бьнъ ѩꙁꙑкъ ѥстъ · ижє мъногꙑ православьнꙑ црькъви словѣньскъ странъ польꙃоуѭтъ
⁙ Црькъвьнословѣньскъ ѩꙁꙑкъ словѣньска ѩꙁꙑка нꙑнєшьнъ фѡнитїчьскъ и грамматїчьс
къ иꙁводъ ѥстъ · сѫщии жє с І҄В вѣка ѥстъ
\end_layout
\end_inset
\end_layout
\begin_layout Subsection*
Coptic
\end_layout
@ -2928,17 +2936,29 @@ s lietuvių kalbos salos).
\end_layout
\begin_layout Standard
Bug/TODO: The font encoding must be manually re-set after Lithuanian text
parts.
Bug/TODO: after Lithuanian text parts, the font encoding is not re-set (
\backslash
f@encoding re-set to T1 but the error still says L7x).
A
\backslash
selectfont command is required to (re-)activate the
\begin_inset Quotes eld
\end_inset
outer
\begin_inset Quotes erd
\end_inset
font encoding
\end_layout
\begin_layout Standard
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
fontencoding{T1}
\backslash
selectfont
\end_layout
@ -2946,145 +2966,6 @@ selectfont
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch debug
inverted 0
status open
\begin_layout Standard
The language is
\begin_inset Quotes eld
\end_inset
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
languagename
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
, the input encoding
\begin_inset Quotes eld
\end_inset
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
inputencodingname
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
and the font encoding
\begin_inset Quotes eld
\end_inset
\begin_inset ERT
status open
\begin_layout Plain Layout
\backslash
makeatletter
\backslash
f@encoding
\backslash
makeatother
\end_layout
\end_inset
\begin_inset Quotes erd
\end_inset
.
\end_layout
\begin_layout Standard
\end_layout
\begin_layout Standard
A0   ¡ ¢ £ ¤ ¥ ¦ §
\begin_inset Note Note
status open
\begin_layout Plain Layout
¨
\end_layout
\end_inset
© ª « ¬ ®
\begin_inset Note Note
status open
\begin_layout Plain Layout
¯
\end_layout
\end_inset
\end_layout
\begin_layout Standard
B0 ° ± ² ³
\begin_inset Note Note
status open
\begin_layout Plain Layout
´
\end_layout
\end_inset
µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿
\end_layout
\begin_layout Standard
C0 À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
\end_layout
\begin_layout Standard
D0 Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß
\end_layout
\begin_layout Standard
E0 à á â ã ä å æ ç è é ê ë ì í î ï
\end_layout
\begin_layout Standard
F0 ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
\end_layout
\end_inset
\end_layout
\begin_layout Subsection*
@ -3167,12 +3048,12 @@ Babel macedonian
\begin_layout Labeling
\labelwidthstring 00.00.0000
LangCode mk_MK
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Labeling
\labelwidthstring 00.00.0000
Provides textcyrillic
LangCode mk_MK
\end_layout
\begin_layout Quote
@ -3180,11 +3061,6 @@ Provides textcyrillic
inverted 0
status open
\begin_layout Standard
\begin_inset Branch conflict-bg-mk
inverted 1
status open
\begin_layout Standard
\emph on
@ -3199,11 +3075,6 @@ status open
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Subsection*
@ -3302,7 +3173,7 @@ LangCode mn_MN
\begin_layout Labeling
\labelwidthstring 00.00.0000
Provides textcyrillic
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Standard
@ -3676,7 +3547,7 @@ LangCode ru_RU
\begin_layout Labeling
\labelwidthstring 00.00.0000
Provides textcyrillic
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Itemize
@ -4660,7 +4531,7 @@ LangCode uk_UA
\begin_layout Labeling
\labelwidthstring 00.00.0000
Provides textcyrillic
FontEncoding T2A (Cyrillic)
\end_layout
\begin_layout Quote

View File

@ -98,7 +98,8 @@ export/export/latex/unicodesymbols/031-thai_th_(euc-|gbk|jis|utf8-cjk).*
# Package clashes when Japanese documents are compiled with non-TeX fonts,
#
# the auto-loaded jsclasses/okumacro.sty needs format `pLaTeX2e'
# The textclass-loaded jsclasses/okumacro.sty needs format `pLaTeX2e'
# (okumacro provides \ruby support).
export/doc/ja/(Additional|Customization|EmbeddedObjects|Intro|LaTeXConfig|Math|Shortcuts|Tutorial|UserGuide).*_systemF
export/doc/ja/Formula-numbering_pdf4_systemF
# Test for command \pdfsave fails:

View File

@ -1,10 +1,10 @@
#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
\begin_document
\begin_header
\save_transient_properties true
\origin /systemlyxdir/examples/ja/Modules/
\textclass jsarticle
\textclass bxjsarticle
\begin_preamble
% color greyed-out notes blue
\renewenvironment{lyxgreyedout}
@ -182,7 +182,11 @@ This is an example sentence written in Braille.
\end_layout
\begin_layout Braille (default)
This is an example sentence written in Braille.
This is an example sentence
\end_layout
\begin_layout Braille (default)
written in Braille.
\end_layout
\begin_layout Standard
@ -568,7 +572,11 @@ braille{#1}}
\end_layout
\begin_layout Braille (default)
This is Braille.
This is
\end_layout
\begin_layout Braille (default)
Braille.
\end_layout
\begin_layout Standard

View File

@ -4,7 +4,7 @@
\begin_header
\save_transient_properties true
\origin /systemlyxdir/examples/ja/Modules/
\textclass scrartcl
\textclass bxjsarticle
\begin_preamble
% use this when you only need the document language captions in te list of figures/tables
%\PassOptionsToPackage{list=off}{bicaption}
@ -113,20 +113,7 @@ bicaption
\end_layout
\begin_layout Author
Uwe St
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
"
\end_layout
\end_inset
ohr
Uwe Stöhr
\end_layout
\begin_layout Standard

View File

@ -985,6 +985,7 @@ Language lithuanian
% restore \coyright definition corrupted by l7xenc.def
\DeclareRobustCommand{\copyright}{%
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
\addto\noextraslithuanian{\latintext}
EndPostBabelPreamble
DateFormats "yyyy 'm.' MMMM d 'd.'|yyyy 'm.' MMMM d 'd.'|yyyy-MM-dd"
LangCode lt_LT
@ -1355,7 +1356,8 @@ Language telugu
LangCode te_IN
End
# alternative support with CJK package and Babel name "thaicjk"
# There is an alternative support with CJK package and Babel name "thaicjk".
Language thai
GuiName "Thai"
BabelName thai
@ -1366,14 +1368,21 @@ Language thai
DateFormats "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
LangCode th_TH
PostBabelPreamble
% restore \coyright definition corrupted by lthenc.def
% Restore \coyright definition corrupted by lthenc.def
\DeclareRobustCommand{\copyright}{%
\ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
\DeclareTextSymbol{\textcopyright}{LTH}{8}
% Restore catcodes changed by thai.ldf (active characters required for inputenc)
\@tempcnta=161%
\@whilenum\@tempcnta<252\do{%
\catcode\@tempcnta=13
\advance\@tempcnta\@ne
}%
EndPostBabelPreamble
# Fixme: load font package?
# +1 support for font attributes in thai emphasizing etc.
# -1 forces ComputerModern as "non-thai" font
# TODO: set norasi as surrogate font for LTH (substitutefont.sty)
# PostBabelPreamble
# \usepackage{fonts-tlwg}
# EndPostBabelPreamble