lyx_mirror/lib/scripts
Enrico Forestieri bd6d09fc98 Fix Python 3 issues when generating preview snippets
The log file generated by latex can contain strings encoded in
whatever supported encoding. Instead of guessing the encoding,
it is better to open it in binary mode and then performing the
necessary comparisons as "bytes". In order to do this, the
strings are encoded in utf8, so that, for example, b"pythön" is
encoded as "pyth\xc3\xb6n" (7 bytes). Of course, this means that
we can only successfully perform comparisons with ascii strings.
However, this is what we actually do, as we only search for
ascii strings in the log file.
2020-03-14 17:19:08 +01:00
..
bash_completion Small clean-up to debug support 2015-07-08 11:03:42 +02:00
checkKeys.pl.in Cmate tests: Amend aca3031 2018-06-09 09:48:41 +02:00
clean_dvi.py Remove the shebang line from our python scripts, per Jose's suggestion. 2014-01-28 12:52:16 -05:00
CMakeLists.txt Cmake tests: Added check to inspect created pdf in test "AMS-import" 2018-06-09 09:15:21 +02:00
convert_pdf.py Add low-res pdf export as suggested by James 2015-02-11 22:24:04 +01:00
convertDefault.py Remove code that is redudant. 2019-06-04 18:26:13 +01:00
csv2lyx.py csv2lyx: use universal newlines when reading CSVs 2014-02-16 00:07:43 -05:00
ext_copy.py scripts/ext_copy.py: add option to copy directly to the document directory 2017-08-08 15:23:03 +01:00
fen2ascii.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig2pdftex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig2pstex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
fig_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
gnuplot2pdf.py Remove no longer needed module import. 2020-03-05 00:24:08 +01:00
html2latexwrapper.py Remove the shebang line from our python scripts, per Jose's suggestion. 2014-01-28 12:52:16 -05:00
include_bib.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
layout2layout.py Add Requires to float definition. 2019-08-12 12:18:28 +02:00
legacy_lyxpreview2ppm.py Fix Python 3 issues when generating preview snippets 2020-03-14 17:19:08 +01:00
listerrors Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
lyx_batch.pl.in Add a testcase for buffer-write-as 2019-05-27 10:21:15 +02:00
lyxknitr.R Handle encoding correctly with knitr>=1.0 (#8504) 2013-01-21 09:53:26 +01:00
lyxpak.py lyxpak.py: Python 3 compatibility 2017-04-15 00:05:40 +02:00
lyxpreview2bitmap.py Make verbose switch consistent. 2019-06-03 07:31:05 +01:00
lyxpreview_tools.py Fix Python 3 issues when generating preview snippets 2020-03-14 17:19:08 +01:00
lyxstangle.R Add possibility to export the R code from a sweave-enabled document 2011-08-23 10:33:42 +00:00
lyxsweave.R Fix #8019 (from yihui) 2012-02-02 22:30:38 +00:00
prefs2prefs_lfuns.py So long, date-insert! 2018-08-20 09:25:22 +02:00
prefs2prefs_prefs.py Add pref to keep ct markup on copy/paste 2020-01-13 15:20:48 +01:00
prefs2prefs.py prefs2prefs.py: whitespace changes 2017-05-12 15:29:29 +01:00
prefTest.pl.in Cmake export tests: Modularisation of prefTest.pl 2017-06-18 12:13:57 +02:00
prefTest.pm Cmake export tests: Missed second parameter for writeConverters() 2017-06-21 00:09:50 +02:00
svg2pdftex.py Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
svg2pstex.py Replace /usr/bin/env python -> /usr/bin/python3 2018-08-29 17:26:21 +01:00
tex_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 10:51:35 +01:00
TeXFiles.py Fix bug #11750. 2020-02-24 19:07:31 -05:00