On 2015-12-13, Kornel Benko wrote:
> Am Samstag, 12. Dezember 2015 um 22:52:13, schrieb Guenter Milde 
> <mi...@users.sf.net>

...

>> Before the recent changes (at 3a7ec39a790/lyxgit 2015-12-09) there were
>> just 4 instances of \default_output_format pdf2:
>>  (|es|de|fr|ja)/Math.lyx

> True, that was done _after_ investigating.

>> All of these are also handled by the *Tests categorization pattern files:

>> suspiciousTests:27:export/.*/es/(Math|UserGuide|ejemplo_con_lyx)_dvi3_systemF
>> suspiciousTests:42:export/doc/(es/|fr/)Math_dvi3_systemF
>> suspiciousTests:115:export/doc(|/de|/es|/fr)/Math.*systemF
>> suspiciousTests:116:export/doc/(|de/|es/|fr/)Math_(dvi3|pdf5)_texF 

>> ignoredTests:10:export/.*/ja/.*_(pdf[245]|dvi3).*


>> The full set of non-default settings in doc/* is:

>> /usr/local/src/lyx/lib/doc/es/Math.lyx:151:\default_output_format pdf2
>> /usr/local/src/lyx/lib/doc/Math.lyx:152:\default_output_format pdf2
>> /usr/local/src/lyx/lib/doc/fr/Math.lyx:156:\default_output_format pdf2
>> /usr/local/src/lyx/lib/doc/de/Math.lyx:164:\default_output_format pdf2
>> /usr/local/src/lyx/lib/doc/ja/Formula-numbering.lyx:63:\default_output_format
>>  pdf
>> /usr/local/src/lyx/lib/doc/ja/LaTeXConfig.lyx:24:\default_output_format pdf
>> /usr/local/src/lyx/lib/doc/ja/Shortcuts.lyx:51:\default_output_format pdf
>> /usr/local/src/lyx/lib/doc/ja/DummyDocument2.lyx:24:\default_output_format 
>> pdf
>> /usr/local/src/lyx/lib/doc/ja/Math.lyx:187:\default_output_format pdf2
>> /usr/local/src/lyx/lib/doc/ja/DummyDocument1.lyx:24:\default_output_format 
>> pdf
>> /usr/local/src/lyx/lib/doc/ja/MergedManuals.lyx:34:\default_output_format 
>> xhtml
>> /usr/local/src/lyx/lib/doc/MergedManuals.lyx:34:\default_output_format xhtml

> Don't know, how you get this list.

* Check out 3a7ec39a790/lyxgit (from 2015-12-09
* grep "default_output_format" lib/doc/ --include="*.lyx" -r
* filter "default default".

> I see there 99 entries (out of 107)
>       # cd lib/doc
>       # find . -name \*.lyx | xargs egrep default_output_format| egrep -vw 
> default|wc

Seems to be done with a current checkout. (After recent changes.)

>> (I did not test for examples and templates, though.)

...


>> Proposal (too late for 2.2.0 ?)

>> a) use the "default output format" setting for the recommended format

> OK, that will be then of no relevance for tests, if at the same time 
> "excluded output formats" is set.

>> b) add a new (expert) setting "excluded output formats"

>>    - as a key word for modules and layout files

> +1

>>    - possibly also to Document>Settings

> +1

>> c) consider excluding more output formats based on BufferParams, e.g.

>>    * pdf[245] and dvi3 if the language is Japanese

> Such things are difficult to handle. It suggest the same logic be
> implemented in tests and in BufferParams.

I was thinking of LyX behaviour. It seems this is already implemented.
Then, the test should not recreate the logic but test it: assert the
excluded formats fail with a sensible message.

>>    * XeTeX with TeX fonts unless the inputenc is ASCII

> We are setting it already in that case.

I only implemented the forced switch to ASCII because I did not manage to
exclude XeTeX with TeX fonts for inputenc != ASCII 
(the behaviour I prefer over the current way - overriding the user selection).

Günter

Reply via email to