lyx_mirror/lib/scripts
José Matos b1860e301a Attempt to fix #11457
In python 3 the colors need to be strings and not bytes:

This was the equivalent of

>> print("%s" % b"1")
"b'1'"

since the colors were bytes the call to dvipng was something like

dvipng -Ttight -depth -height -D 115 -fg "b'rgb 0.937255 0.941176 0.945098'" -bg "b'rgb 0.137255 0.149020 0.160784'"  "lyxpreviewxBJEqm.dvi"

Note the "b'rgb after both -fg and -bg that wrecked havoc and thus dvipng failed. That was the difference between python2 and python3 calls.

(cherry picked from commit 8dd31803b1)
2019-10-30 19:27:50 -04:00
..
bash_completion Small clean-up to debug support 2015-07-08 11:03:42 +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: Add a script to modify preferences prior to export testing 2016-12-03 11:32:19 +01:00
convert_pdf.py Add low-res pdf export as suggested by James 2015-02-11 22:24:04 +01:00
convertDefault.py Fix command line output of convertDefault.py for ImageMagick 2018-07-13 17:26:34 +02: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 11:24:28 +01:00
fig2pdftex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 11:24:28 +01:00
fig2pstex.py Update scripts to support simultaneously python 2 and 3 2018-04-28 11:24:28 +01:00
fig_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 11:24:28 +01:00
gnuplot2pdf.py Enable graphics generation from external gnuplot scripts. 2017-05-04 00:44:00 +02: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 11:24:28 +01:00
layout2layout.py Implement auto-nesting. 2018-01-01 12:30:34 +01:00
legacy_lyxpreview2ppm.py Load color before polyglossia also in preview snippets 2017-07-11 10:03:03 +02:00
listerrors Update scripts to support simultaneously python 2 and 3 2018-04-28 11:24:28 +01: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 Attempt to fix #11457 2019-10-30 19:27:50 -04:00
lyxpreview_tools.py python3: fix the preview framework to work with both python 2 and 3 (part 4) 2017-05-12 10:01:48 +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 New LFUN tabular-feature: update prefs2prefs.py 2016-01-27 18:20:53 +01:00
prefs2prefs_prefs.py Collapsable -> Collapsible (part 5) 2017-11-02 16:51:23 +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 Assure print function compatibility in python 2.x 2017-11-24 11:58:27 +01:00
svg2pstex.py Assure print function compatibility in python 2.x 2017-11-24 11:58:27 +01:00
tex_copy.py Update scripts to support simultaneously python 2 and 3 2018-04-28 11:24:28 +01:00
TeXFiles.py Let TeXFiles.py handle symbolic links. 2019-06-27 23:53:03 +02:00