]> git.lyx.org Git - features.git/commitdiff
ctest update: Set non-TeX fonts in documents, update comments and tags.
authorGünter Milde <milde@lyx.org>
Wed, 13 Feb 2019 09:34:18 +0000 (10:34 +0100)
committerGünter Milde <milde@lyx.org>
Wed, 13 Feb 2019 09:34:18 +0000 (10:34 +0100)
20 files changed:
development/autotests/invertedTests
development/autotests/unreliableTests
development/autotests/useSystemFonts.pl
lib/doc/he/Intro.lyx
lib/doc/he/Tutorial.lyx
lib/doc/ru/Intro.lyx
lib/doc/ru/Tutorial.lyx
lib/doc/sk/Intro.lyx
lib/doc/sk/Tutorial.lyx
lib/doc/uk/Intro.lyx
lib/examples/el/splash.lyx
lib/examples/fa/splash.lyx
lib/examples/he/example_lyxified.lyx
lib/examples/he/example_raw.lyx
lib/examples/he/splash.lyx
lib/examples/ru/example_lyxified.lyx
lib/examples/ru/example_raw.lyx
lib/examples/ru/splash.lyx
lib/examples/sk/splash.lyx
lib/examples/uk/splash.lyx

index 9c5cb516a5388b97b3b0cd4843e0bcf93e5b2378..cc5ea0f7ef7e0d37286847b9ea1d32e6ff0cba59 100644 (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 Ã\8d
 #                                                   ndice alfabético}\hyper...
+#  See also unreliableTests.
 export/doc/es/EmbeddedObjects_(dvi3|pdf5)_texF
 
 # Gives the following error:
index dcaf77aaf6da3c0782e80bef66ddfbb54f1feed5..5a56f5f561e6b9572ca25055fda22f779b66ec25 100644 (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
index eca4508d2725a78d692788eb15ca63b8876f9d3c..e9bbd08a1b59d66f0eb1d842c7821257190f6527 100644 (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";
index a86698b17ed3e7f39dfaaf8536daae755e25c7d3..4728a47d4d4c564b65e99784f3890f77e5b05998 100644 (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
index 78901998d11d78ab0e59191c824c2b39a3f32b21..7102e733fc2d80812fb1b79b3b5f77958de5df80 100644 (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
index 2eec13406446cf059288bdc64db26561a26c90a8..e236bffc6ae4e1bde7cb964b5f71e45213697dbc 100644 (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
index 11ae48015d3e4e10f7e10fe05219f6f050c34b9a..65f499565a5bfee967d9a6aaeabe0c159bcc2da5 100644 (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
index 069413e63b049fef1f7aeee9e0745542240a0d7b..44d1059d653feb6d1eb9e05074ddaa95e1a06804 100644 (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
index 2c3c2b2c28591b85d5c2cc459f2747c7e80bfb96..646378f1ad35fb27b5c8114756f2c89773f605d9 100644 (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
index e4751dcd4418b055965a20605363934296f6ebaf..0f56ad186cb4f01aeb4a8e3cf63f0be86e28c003 100644 (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
index 525456178175ea64c313ab8a77ab2acc495d15b5..cb9674613f82fd17a946bec1f88a8f5411b28544 100644 (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
index d754657e893efd0d24bf37d027fb54ae55585499..44d268037630dec41203212f9c4ac85bd45e5a61 100644 (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
index 14cb7046d00a3f13778ff84fe85ac9daaea37079..d364fee4e8c9e753729fe25802b61309d2ecc9d9 100644 (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
index 86fb3b53eb2b27eea052b530c4f369d5c5afb430..fe3aec7761846b49e3409f7f469b50bac23a9b28 100644 (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
index 1df7e837a3abf85f2774981d905dc50df65be6c6..9633df7981c8bdb50e7ac0082d784c61d04b386f 100644 (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
index 766e8215fc1b54cd298343f9a6d68b8e4f3675b2..d8e9c21f5f447fc6972f7c3d0180188ff4ab6d77 100644 (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
index 9681132af57a62e44515a09dbde3442f3f024ada..8ee82616ca4bdc6339350c30cf6fc0818d4ab4e0 100644 (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
index 010ccc22cf07e0641a4ef0bd66b70aba12afa31d..a89f8bb108d35e0a4587303500615d263e712029 100644 (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
index 9ddc2704019b62c9dd0c7adb10167632a9a197dc..9a99c9a5dfbae54fe83f6bdb556e5165c33d97bc 100644 (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
index 51f075b74d225a3fb39e877732083984afee6cb2..a029999333fe17fbe0701aa2fe5118b1a2683f84 100644 (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