]> git.lyx.org Git - features.git/commitdiff
ctest update.
authorGünter Milde <milde@lyx.org>
Mon, 25 Feb 2019 00:17:20 +0000 (01:17 +0100)
committerGünter Milde <milde@lyx.org>
Mon, 25 Feb 2019 00:19:14 +0000 (01:19 +0100)
* set required non-TeX fonts in the documents
* update comments for inverted tests
* update some tags

development/autotests/ignoreLatexErrorsTests
development/autotests/invertedTests
development/autotests/unreliableTests
development/autotests/useSystemFonts.pl
lib/examples/de/linguistics.lyx
lib/examples/es/linguistics.lyx
lib/examples/fa/splash.lyx
lib/examples/fr/linguistics.lyx
lib/examples/ja/linguistics.lyx
lib/examples/linguistics.lyx

index 470723b9eee3ce65bfc7e7f95cb9aa52e8817d1a..6cb1947e4157dffad1a45840b1714cfd74f67bf8 100644 (file)
@@ -1,9 +1,11 @@
 Sublabel: missing_glyphs
-export/doc/UserGuide_(dvi3|pdf4|pdf5)_systemF
-export/doc/(de|es|fr)/UserGuide_(dvi3|pdf4|pdf5)_systemF
-export/doc/uk/Intro_pdf4_texF
-export/examples/uk/splash_pdf4_texF
+# CJK-quotes examples (missing in most Latin-script fonts)
+export/doc/(|de/|es/|fr/)UserGuide_(dvi3|pdf4|pdf5)_systemF
+
+# Greek characters in external file (Child Document>Program Listing)
+# (works with non-tex-fonts).
 export/examples/minted-filelisting_pdf4_texF
+
 # started failing after a TL 2016 update
 # for discussion on whether a bug should be reported or LyX output should be changed, see:
 # https://www.mail-archive.com/search?l=mid&q=20170225203955.nas2qopy4l4ukyqq%40steph
@@ -15,7 +17,7 @@ export/export/latex/languagenesting2_pdf5_systemF
 # glyph (for a different purpose) that is being used here. Clearly the
 # problem should be fixed somewhere else.
 export/export/latex/arabic_simple_pdf4_systemF
-export/doc/ar/Intro_pdf4_systemF
-
-# Kornel Benko: Missing ␣
+# works here (Debian/stretch):
+#export/doc/ar/Intro_pdf4_systemF
+# Kornel Benko: Missing ␣ (but see also invertedTests)
 export/doc/ar/UserGuide_pdf4_systemF
index e6f29cb0a32dd742284660fc51c60b8255c90697..b5ffe0d0c9d329100cf96f0c7ea2d442eaf5d134 100644 (file)
@@ -120,11 +120,6 @@ export/export/latex/arabic_simple_pdf4_texF
 # See note about "Missing ␣" in file "ignoreLatexErrorsTests".
 export/doc/ar/UserGuide_lyx(22|23)
 
-# Polyglossia + LuaTeX does not support Farsi yet. See:
-#     https://github.com/reutenauer/polyglossia/commit/ccb0e9e2c6411170ad779b05ff5076f1193cc323
-# It also fails with tex-fonts and Xe/LuaTeX and with XeTeX+polygossia. Why?
-export/examples/fa/splash_.*(texF|systemF)
-
 # nonstandard tests failing for unknown reason:
 export/examples/aa_sample_(dvi3|pdf[45])_.*
 export/templates/obsolete/ACM-siggraph_pdf5_(texF|systemF)
@@ -166,6 +161,19 @@ export/doc/es/Customization_pdf4_texF
 export/examples/es/linguistics_pdf4_texF
 export/export/latex/bug9871-slovak-ascii-preambleencoding_pdf2
 
+#8035 work around a Polyglossia bug: 
+# An error is reported if the document font does not announce support for a 
+# script (Cyrillic, Greek, ...) which Polyglossia thinks is required to
+# typeset the document language. This is not required with LyX's check for 
+# missing characters and results in many false positives:
+# a) with fonts including the required characters but
+#    not the tag tested by Polyglossia,
+# b) if the document language is "Serbian (Latin Script)",
+#    the Cyrillic script is not required yet Polyglossia tests for support.
+# The document "sr/Braille.lyx" is an example of case b).
+# (For some reason, the false positive error is not thrown with PDF (luatex).)
+export/examples/sr/Braille_(dvi3|pdf4)_systemF
+
 #10355 xmllint detects failures
 export/doc/attic/eu_UserGuide_xhtml
 export/doc/(es|ja)/UserGuide_xhtml
@@ -210,7 +218,6 @@ Sublabel: texissues
 export/doc/(|de/|es/|fr/)UserGuide_pdf4_texF
 
 # Hebrew docs do not currently work with LuaTeX (will be fixed in TeXLive-16)
-# TODO: set working system fonts in the lyx sources
 export/.*/he/.*(dvi3|pdf5).*
 
 # ... nor with XeTeX and 8-bit TeX fonts (due to missing ASCII replacements)
@@ -272,6 +279,21 @@ export/templates/es_beamer-conference-ornate-20min_pdf4_texF
 # Arabic only works with XeTeX + system fonts (pdf4_systemF)
 export/examples/ar/splash_(dvi.*|pdf|pdf[^4].*)
 export/examples/ar/splash_pdf4_texF
+# Language nesting problem "! Extra \else"
+# and missing glyph "no ␣ in font Scheherazade":
+export/doc/ar/UserGuide_pdf4_systemF
+
+# Farsi
+# Fails with Polyglossia + LuaTeX (undefined command)
+# https://github.com/reutenauer/polyglossia/commit/ccb0e9e2c6411170ad779b05ff5076f1193cc323
+export/examples/fa/splash_(dvi3|pdf5)_systemF
+# Missing characters (em space and "English" quotes) with XeTeX + system fonts.
+export/examples/fa/splash_pdf4_systemF
+# Fails with ASCII inputenc (required by XeTeX + TeX fonts) due to missing
+# LICR substitutions in unicodesymbols.
+export/examples/fa/splash_pdf4_texF
+# "invalid utf-8 sequence" with Babel-Farsi, LuaTeX, and TeX fonts.
+export/examples/fa/splash_(dvi3|pdf5)_texF
 
 # CJKutf8 does not work with XeTeX and LuaTeX (and 8-bit fonts)
 export/examples/ja/multilingual_.*_texF
index 5a56f5f561e6b9572ca25055fda22f779b66ec25..d188f391dcf5310259a3d96106fae56f8afca293 100644 (file)
@@ -46,6 +46,11 @@ Sublabel: erratic
 # Manual export fails the first time but works the second time. (Why?)
 export/doc/es/(Customization|Intro)_pdf4_texF
 
+# Missing Cyrillic LICR commands (on first run after changing from tex-fonts)
+# (leftover *.aux file?)
+export/doc/uk/Intro_pdf4_texF
+
+
 
 Sublabel: varying_versions
 ##########################
index aeee3dafe913f65aaa2e0a8baecb1fd84accb1a6..3ab42ab7a116b2e415dc46723e63fdb323efd752 100644 (file)
@@ -86,31 +86,7 @@ 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";
+  if ($lang =~ /^(ar|ca|cs|da|de|el|es|eu|fa|fr|gl|he|hu|id|it|ko|nb|nl|pl|pt|ro|ru|se|sk|sl|sr|sv|uk)$/) {
   }
   else {
     # default system fonts
index 9e5fda17a22f7517238a202d96dfb6d2824cc62c..1af6aa7b0e224176a487a90729ebad05d2bf188f 100644 (file)
@@ -42,8 +42,8 @@ linguistics
 \inputencoding auto
 \fontencoding global
 \font_roman "lmodern" "FreeSerif"
-\font_sans "default" "FreeSerif"
-\font_typewriter "default" "default"
+\font_sans "default" "FreeSans"
+\font_typewriter "default" "FreeMono"
 \font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
index 2172cf826b29c2bf81e48da3d06e5196e59ba368..8ed3794b09b775e289cb646b98854897bee84806 100644 (file)
@@ -43,9 +43,9 @@ linguistics
 \language_package default
 \inputencoding auto
 \fontencoding global
-\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
index 44d268037630dec41203212f9c4ac85bd45e5a61..2c7fd9ed89963a900ce7bbd63f3662ea628ec8ee 100644 (file)
@@ -11,9 +11,9 @@
 \language_package default
 \inputencoding utf8
 \fontencoding auto
-\font_roman "lmodern" "FreeSerif"
-\font_sans "default" "FreeSans"
-\font_typewriter "default" "FreeMono"
+\font_roman "lmodern" "FreeFarsi"
+\font_sans "default" "FreeFarsi"
+\font_typewriter "default" "FreeFarsi Monospace"
 \font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
index 866a317836a5d9533f5feaf67f067005bf621f83..67c00422b30a6597b50cc5d31e23504d54d1324e 100644 (file)
@@ -41,8 +41,8 @@ linguistics
 \inputencoding auto
 \fontencoding global
 \font_roman "lmodern" "FreeSerif"
-\font_sans "lmss" "FreeSans"
-\font_typewriter "lmtt" "FreeMono"
+\font_sans "default" "FreeSans"
+\font_typewriter "default" "FreeMono"
 \font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
index 5bb4b5abc8077a149d51b568dfe8f5d407636cba..5c9a9653c747a5d58aeeb6eb17ff79f9d61904e8 100644 (file)
@@ -19,9 +19,9 @@ linguistics
 \language_package default
 \inputencoding auto
 \fontencoding global
-\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
index 2e5f9efb438a6d5dd43a6260f789aced8211e1cb..1cb37dd58b973780f62f979dcaf8153270a580da 100644 (file)
@@ -42,7 +42,7 @@ linguistics
 \fontencoding global
 \font_roman "lmodern" "FreeSerif"
 \font_sans "default" "FreeSans"
-\font_typewriter "default" "default"
+\font_typewriter "default" "FreeMono"
 \font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false