-export/.*/ja/.*_(pdf[245]|dvi3).*
-
-# These files are not expected to compile, they use math-macros
-# defined in master 'autotests/mathmacros/masterOfSpace.lyx'
+# Exceptions:
+# The "!" means: "Protect these tests from being matched by future patterns in this file".
+# Export by plain- and pdflatex engines works with language "japanese-cjk", e.g.
+!export/examples/ja/Multilingual_Typesetting_.*CJK.*(dvi|pdf[23]?)
+!export/examples/ja/Multilingual_Typesetting_.*CJK.*systemF
+# the rest:
+export/.*/ja/.*_(pdf2|texF)
+
+# Japanese knitr.lyx and sweave.lyx support only XeLaTeX with system fonts
+# because they use the "bxjsarticle" class and non-TeX fonts
+!export/examples/ja/Modules/Rnw.*knitr.*_(lyx.*|xhtml|pdf4_systemF)
+export/examples/ja/Modules/Rnw.*knitr.*
+!export/examples/ja/Modules/Sweave.*_(lyx.*|xhtml|pdf4_systemF)
+export/examples/ja/Modules/Sweave.*
+
+
+# CJK fails (sometimes) with Xe/LuaTeX and 8-bit fonts:
+#####
+export/examples/ja/Multilingual_Typesetting_.*CJK.(dvi3|pdf5)_texF
+export/.*/zh_CN/.*(dvi3|pdf[45])_texF
+export/export/latex/CJK/zh_CN-toc_*.(dvi3|pdf[45])_texF
+
+
+# export of minted documents to 2.2.x is not guaranteed to work (and currently
+# fails for our two minted example files), as explained here:
+# https://www.mail-archive.com/search?l=mid&q=20190113085555.GA7928%40GIOVE
+export/examples/Insets/Minted.*lyx22
+
+# Subdocuments that are not expected to work as stand-alone documents:
+##############