55 Commits

Author SHA1 Message Date
Kovid Goyal
0b386c3cc7
ODT Input: Fix a regression that broke conversion of ODT files with footnotes. Fixes #1898441 [Problem converting from .odt to .epub](https://bugs.launchpad.net/calibre/+bug/1898441) 2020-10-04 18:26:51 +05:30
Kovid Goyal
9ff27782de
Remove useless __future__ imports
Not needed on python3
2020-08-22 18:47:55 +05:30
Kovid Goyal
29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30
YOKOTA Hiroshi
0c88f7507d Replace ODF thumbnail icon
Icon image comes from LibreOffice.
Replace license tag to GPL-3.
2020-05-15 08:36:00 +09:00
Kovid Goyal
9d14bebafb
Fix str() and unicode_literals in odf package 2019-05-20 17:17:33 +05:30
Kovid Goyal
43c0b1216e
Fixes found by check 2019-05-20 16:56:45 +05:30
Kovid Goyal
8366df8637
Run code quality checks on the odf package 2019-05-20 16:52:16 +05:30
Kovid Goyal
609892eb81
Run autopep8 on odf2xhtml 2019-05-20 16:14:07 +05:30
Kovid Goyal
ed1571af6e
py3: remove has_key from odf2xhtml 2019-05-20 16:12:42 +05:30
Kovid Goyal
2d34c8a9ed
Fix regression 3.41.0 that broke ODT input 2019-04-19 16:24:04 +05:30
Kovid Goyal
b9a3e1952e
py3: misc fixes to make all module import 2019-04-04 15:15:51 +05:30
Kovid Goyal
9b3e525610
py3: Get rid of the last cStringIO 2019-04-01 18:42:25 +05:30
Kovid Goyal
0fcad5f21f
Fix various uses of iteritems missed by dict_fixes 2019-03-25 15:29:08 +05:30
Eli Schwartz
373f300ed7 Fix syntax error introduced while getting rid of basestring 2019-03-14 01:53:52 -04:00
Kovid Goyal
d1e30dfcac
Get rid of some xrange 2019-03-13 15:34:10 +05:30
Kovid Goyal
55151a3cdd
Get rid of basestring 2019-03-13 14:57:26 +05:30
Kovid Goyal
2d21a8efa2
Some more fixes for the unicode type
Now replaced in all dynamically loaded code. Recipes/metadata
sources/etc. In the case of recipes, since they get compiled by calibre
we simply make the unicode/unichr names available, no need for any
changes to the actual recipes themselves.
2019-03-13 12:04:47 +05:30
Flaviu Tamas
655ab21b0b
Fix from __future__ import order 2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
Command used:

futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe

And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
d48e15556f ODT Input: Add support for continued lists. Fixes #1620581 [Numeration lost](https://bugs.launchpad.net/calibre/+bug/1620581) 2016-09-07 14:43:29 +05:30
Kovid Goyal
7a18787eda ODT Input: Fix fallback PNG images generated by LibreOffice 4.x for SVG images not being ignored 2016-01-27 10:08:03 +05:30
Kovid Goyal
708ee5521a ODT Input: Fix custom styles with a dot in their name not being inherited. Fixes #1478346 [Attributes lost for hierarchical custom styles when reading odt documents](https://bugs.launchpad.net/calibre/+bug/1478346) 2015-07-27 08:52:04 +05:30
Kovid Goyal
1d717ccaec ODT Input: Add support for numbered lists that do not start numbering at 1. Fixes #1475846 [ordered list numbering is off if starts at not-1](https://bugs.launchpad.net/calibre/+bug/1475846) 2015-07-20 11:17:11 +05:30
Doug Newgard
7427823be5 Change rest of the shebangs to use python2 2015-07-12 12:41:28 -05:00
Kovid Goyal
c981e4b50d pep8 2015-03-19 10:27:33 +05:30
Kovid Goyal
ca26df381a ODT Input: Add support for intra-document cross-references. Fixes #1429271 [When converting odt to epub, cross reference links are dropped](https://bugs.launchpad.net/calibre/+bug/1429271) 2015-03-19 10:13:47 +05:30
Kovid Goyal
7a4c3be138 ... 2015-02-19 12:38:05 +05:30
Kovid Goyal
7a3011ea80 ODT Input: Add backlinks for footnotes/endnotes and improve their formatting. Fixes #1421056 [Enhancement: return links for footnotes when converting from odt](https://bugs.launchpad.net/calibre/+bug/1421056) 2015-02-19 12:14:24 +05:30
Kovid Goyal
26c1fd0689 More fixes for broken ODT files generated by mk4ht 2013-10-19 10:22:12 +05:30
Kovid Goyal
874367cef0 ODT Input: Handle malformed ODT files with no mimetype declaration 2013-10-19 09:19:08 +05:30
Kovid Goyal
5ec9b392a7 Fix #1078713 (calibre-parallel.exe crashes when converting .odt file) 2012-11-23 11:07:15 +05:30
Kovid Goyal
1de62420dd ODT Input: More workarounds for LibreOffice 3.5's annoying habit of inserting pointless margin:100% directives everywhere. Fixes #1002702 (Large margins when converting LibreOffice odt to mobi) 2012-05-23 14:19:00 +05:30
Kovid Goyal
5fd415ea2d ... 2012-04-11 10:33:35 +05:30
Kovid Goyal
de43d6efd0 ... 2012-03-11 19:02:45 +05:30
Kovid Goyal
35ddd44a89 Fix #941134 (LibreOffice 3.5 odt to conversion mobi problem) 2012-03-11 19:02:12 +05:30
Kovid Goyal
1ad53ab31c Pull from upstream odfpy 2012-01-12 20:26:02 +05:30
Kovid Goyal
e2d051cfc0 ODT Input: Dont crash on empty links 2012-01-11 15:37:25 +05:30
Kovid Goyal
1198aaee3c ... 2011-11-10 18:58:55 +05:30
Kovid Goyal
17fb07e8aa ODT Input: Fix handling of span tags containing only whitespace. Fixes #887311 (Random dropping spaces in ODT text) 2011-11-10 18:04:42 +05:30
Kovid Goyal
1a38be575d ... 2011-05-11 17:35:27 -06:00
Kovid Goyal
231df586c0 ODT Input: Handle inline special styles defined on <text:span> tags. Fixes #780250 (Italic text not converting from ODT source) 2011-05-11 14:56:10 -06:00
Kovid Goyal
e15ee70a1d ODT Input: Speed up conversion of ODT files that define huge amounts of redundant style information. Fixes #777468 (Conversion from ODT to EPUB extremely slow) 2011-05-04 18:56:07 -06:00
Kovid Goyal
492d16e5c9 ODT Input: Fix handling of the <text:s> element. Fixes #749655 (Private bug) 2011-04-03 14:31:14 -06:00
Kovid Goyal
02562da2a9 ODT input: Update odfpy library to latest version, adds support for bookmarks 2011-02-24 10:43:22 -07:00
Kovid Goyal
019c17973e ODT Input: Do not force the background color to white. Fixes #9118 (White background color from OpenOffice to Mobi added) 2011-02-24 09:21:51 -07:00
Kovid Goyal
8311870e60 Fix #7506 (Hyperlinks get broken converting ODT to EPUB) 2010-11-11 18:09:09 -07:00
Kovid Goyal
cba003660e ODT Input: Fix handling of mixed ordered and un-ordered lists 2010-03-09 20:41:22 -07:00
Kovid Goyal
bd350e57ce Update bundled odfpy 2010-02-15 17:31:16 -07:00
Kovid Goyal
c67818e604 Update bundled odfpy library for conversion of ODT files to version 0.9.2 2009-11-15 20:54:41 -07:00
Kovid Goyal
062fb907e3 Update odfpy (used to conver OpenOffice documents) 2009-04-19 16:32:18 -07:00