lyx_mirror/lib
José Matos 58734edff6 Make the lyx2lyx code compatible between python2 and python3.
FWIW this code is important for very old versions of lyx, older than 1.1.5 (released 19 years ago - 2000/06/06).

Funny fact of the day, byte strings do not behave as regular strings in python3 when taking and index.
To get a sub-string we need to pass a range, a integer index will not work as it happens in a regular string:

$ ipython3
...
In [30]: line
Out[30]: b'#This file was created by <mike> Tue Jan 25 10:36:51 2000'

In [31]: line[0]
Out[31]: 35

In [32]: line[0:1]
Out[32]: b'#'

The range notations works for both byte and regular strings in python 3, and it also works in python 2.
Thus the change is simple and effective. In any case I should confess that I was quite surprised by this. :-)
2019-06-05 14:06:09 +01:00
..
attic Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
bind Tab binding: outline-in before depth-increment 2019-05-16 13:58:24 -04:00
citeengines Enable optional \cite* arguments in biblatex-natbib 2019-05-07 14:48:39 +02:00
commands
doc ctests Arabic: mark non-Arabic text parts as English, fix inversion pattern. 2019-06-03 16:58:10 +02:00
examples Use a somewhat more realistic trigloss example 2019-06-04 14:01:06 +02:00
fonts Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
images Fix for #11476: Icons have spurious squares 2019-04-04 16:54:23 +02:00
kbd Fix #7348. Patch by Liviu. 2011-04-02 11:00:19 +00:00
layouts Rework linguistic gloss support 2019-06-04 11:01:19 +02:00
lyx2lyx Make the lyx2lyx code compatible between python2 and python3. 2019-06-05 14:06:09 +01:00
scripts Remove code that is redudant. 2019-06-04 18:26:13 +01:00
tabletemplates Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
templates Use utf8 as inputenc for documentation, examples, and templates. 2019-05-08 21:29:01 +02:00
tex Help Joost to fix bug #7317 2011-02-21 19:56:43 +00:00
ui Fix grammar 2019-05-31 18:29:30 +02:00
xtemplates Add resize facility to inkscape template. 2017-11-04 10:38:37 +01:00
.gitignore ctest update. 2019-03-29 11:55:20 +01:00
appdata.xml Fix license string according to http://spdx.org/licenses/. 2014-06-17 09:50:28 -07:00
autocorrect Math autocorret: cycle through dots 2019-06-03 16:55:55 +02:00
build-listerrors
chkconfig.ltx Extend handling of Noto fonts 2019-04-07 11:05:42 +02:00
configure.py Fix configure.py to work with python3 again (it continues to work with python2(.7)) 2019-05-16 09:27:12 +01:00
CREDITS Add Isaac Oscar to credits 2019-06-03 10:53:49 +02:00
encodings Fix remainder of #11115. 2019-06-05 11:18:36 +02:00
generate_contributions.py Add Isaac Oscar to credits 2019-06-03 10:53:49 +02:00
languages Support more languages (file format change). 2019-06-03 16:58:10 +02:00
latexfonts Amend e55ed79d: Extend handling of Noto fonts 2019-04-08 11:44:53 +02:00
layouttranslations * layouttranslation bg update 2019-04-26 12:25:36 +02:00
layouttranslations.review Translation reviewed by Veso. 2019-04-26 12:26:18 +02:00
lyx.desktop.in Use suffixed name for desktop entry. 2017-10-20 12:17:55 +02:00
Makefile.am Register new module. 2019-05-16 21:21:53 +02:00
RELEASE-NOTES Add remark about edit menu to release notes. 2019-05-28 16:47:11 -04:00
symbols wasy10 font: fix glyphs codepoints 9,10,12,13. 2018-03-26 21:54:46 +02:00
syntax.default syntax.default: some additions. 2018-03-09 15:17:23 +01:00
unicodesymbols unicodesymbols: force cp858 for DOUBLE LOW LINE 2019-05-16 13:53:18 -04:00