ctest update: Set non-TeX fonts in documents, update comments and tags.

This commit is contained in:
Günter Milde 2019-02-13 10:34:18 +01:00
parent 709dab4beb
commit 1879fbedfb
20 changed files with 79 additions and 93 deletions

View File

@ -230,12 +230,13 @@ export/.*/he/.*pdf4_texF
export/doc/ru/(Intro|Tutorial)_(dvi3|pdf[45])_texF
export/examples/ru/(example_lyxified|splash)_(dvi3|pdf[45])_texF
# Babel-Spanish uses UTF-8 for auto-strings if it detects Xe/LuaTeX.
# This leads to wrong output (see unreliableTests) and fails in some cases
# unless the inputencoding is set to utf-8, too.
# Babel-Spanish uses UTF-8 for auto-strings if it detects Xe/LuaTeX.
# This leads to wrong output and fails in some cases with LyX's "language
# default" ("latin9").
# ! Undefined control sequence.
# <argument> ...art {link}{\Hy@tocdestname }{\nonumberline Í
# ndice alfabético}\hyper...
# See also unreliableTests.
export/doc/es/EmbeddedObjects_(dvi3|pdf5)_texF
# Gives the following error:

View File

@ -83,24 +83,34 @@ Sublabel: wrong_output
# For details see Troubleshooting and the Appendix in examples/seminar.lyx.
export/examples/(|fr/)seminar_(dvi|pdf).*
# Babel-Spanish uses UTF-8 encoded "unicode" strings if it detects LuaTeX
# (with TeXLive 2016 also for XeTeX).
# With LuaTeX and 8-bit TeX-fonts, e.g., the toc heading becomes
# ÃŊndice instead of Índice.
# The problem is generic to all Spanish documents but only manifests itself
# if Babel strings with non-ASCII chars are deployed.
# In some cases, export fails unless the inputencoding is set to utf-8, too
# (see invertedTests, some more tests fail with TeXLive versions < 18).
# Set inputenc to utf8? (Changing the default in lib/languages
# requires more tests for utf8 first.)
# Babel-Spanish uses UTF-8 encoded strings if it detects Xe/LuaTeX.
# With "language default" (=="latin9"), Babel strings come out wrong
# when compiling with Xe/LuaTeX and TeX-fonts.
# - The problem is generic to all Spanish documents but only manifests itself
# if Babel strings with non-ASCII chars are actually used
# (the ToC heading, e.g., becomes "ÃŊndice" instead of "Índice").
# - In some cases, export fails
# (see invertedTests, some more tests fail with TeXLive versions < 18).
# Should we set inputenc to utf8 in the documents to work around the problem?
# (Changing the default in lib/languages requires more tests for utf8 first.)
export/examples/es/(ejemplo_con_lyx|tufte_book)_(pdf5|dvi3)_texF
export/doc/es/.*_(pdf5|dvi3)_texF
# LyX issues
# **********
#6197: „amssymb” with Polish babel: name clash \lll ("<<<" vs. "ł")
# Wrong output with pdflatex
# missing character with XeTeX/LuaTeX and Babel (-> invertedTests)
export/export/latex/6197-polish-amssymb_(dvi|pdf).?
#9681 Run-together words if language is set to Greek
# if inputenc is 8-bit "language default".
# See https://www.lyx.org/trac/ticket/9681#comment:6
# TODO: add separate bug for:
# Definition of "\LyX" needs "\textlatin" in Greek (printed as "ΛΨΞ").
export/.*/el/.*(_texF|(dvi|pdf.?))
# Non-ASCII char in verbatim environment is dropped (with a warning when
# doing this interactively) with ASCII (and hence also with XeTeX).
export/doc/(|de/|es/|fr/)EmbeddedObjects_pdf4_texF

View File

@ -7,7 +7,7 @@
# 2a.) searches for relative references to files and
# replaces them with absolute ones
# 2b.) Changes default fonts to use non-tex-fonts
# 2c.) Changes the non-tex fonts setting if it is "default" (see below).
# 2c.) Changes the non-tex fonts setting if it is "default".
#
# Syntax: perl useSystemFonts.pl sourceFile destFile format
# Each param represents a path to a file
@ -86,34 +86,9 @@ if ($source =~ /\/([a-z][a-z](_[A-Z][A-Z])?)[\/_]/) {
my $inputEncoding = undef;
if ($fontT eq "systemF") {
if ($lang =~ /^(ru|uk|sk|el)$/) {
$font{roman} = "DejaVu Serif";
$font{sans} = "DejaVu Sans";
$font{typewriter} = "DejaVu Sans Mono";
}
elsif ($lang =~ /^(he)$/) {
$font{roman} = "FreeSans";
$font{sans} = "FreeSans";
$font{typewriter} = "FreeSans";
}
elsif ($lang eq "fa") {
$font{roman} = "FreeFarsi";
$font{sans} = "FreeFarsi";
$font{typewriter} = "FreeFarsi Monospace";
}
# elsif ($lang eq "ko" ) {
# $font{roman} = "NanumGothic"; # NanumMyeongjo, NanumGothic Eco, NanumGothicCoding
# $font{sans} = "NanumGothic";
# $font{typewriter} = "NanumGothic";
# }
elsif ($lang eq "ar" ) {
# available in 'fonts-sil-scheherazade' package
$font{roman} = "Scheherazade";
$font{sans} = "Scheherazade";
$font{typewriter} = "Scheherazade";
}
else {
# default system fonts
if ($font{roman} eq "default") {
# Change non-tex fonts setting if it is "default".
# TODO: set in document (if required).
$font{roman} = "FreeSerif";
$font{sans} = "FreeSans";
$font{typewriter} = "FreeMono";

View File

@ -44,9 +44,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -54,9 +54,9 @@ logicalmkup
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -31,9 +31,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -14,9 +14,9 @@ logicalmkup
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -31,9 +31,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "palatino" "default"
\font_sans "helvet" "default"
\font_typewriter "courier" "default"
\font_roman "palatino" "TeX Gyre Pagella"
\font_sans "helvet" "TeX Gyre Heros"
\font_typewriter "courier" "TeX Gyre Cursor"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -30,9 +30,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "palatino" "default"
\font_sans "helvet" "default"
\font_typewriter "courier" "default"
\font_roman "palatino" "TeX Gyre Pagella"
\font_sans "helvet" "TeX Gyre Heros"
\font_typewriter "courier" "TeX Gyre Cursor"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -31,9 +31,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding OT1
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding utf8
\fontencoding auto
\font_roman "lmodern" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "lmodern" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -14,9 +14,9 @@
\language_package default
\inputencoding auto
\fontencoding OT1
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "FreeSerif"
\font_sans "default" "FreeSans"
\font_typewriter "default" "FreeMono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "default" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "palatino" "default"
\font_sans "helvet" "default"
\font_typewriter "courier" "default"
\font_roman "palatino" "TeX Gyre Pagella"
\font_sans "helvet" "TeX Gyre Heros"
\font_typewriter "courier" "TeX Gyre Cursor"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false

View File

@ -11,9 +11,9 @@
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "courier" "default"
\font_roman "default" "DejaVu Serif"
\font_sans "default" "DejaVu Sans"
\font_typewriter "courier" "DejaVu Sans Mono"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false