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
clean_dvi.py
CMakeLists.txt
convert_pdf.py
convertDefault.py Fix command line output of convertDefault.py for ImageMagick 2018-07-13 17:26:34 +02:00
csv2lyx.py
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
html2latexwrapper.py
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
lyxpak.py
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
lyxsweave.R
prefs2prefs_lfuns.py
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