1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-20 21:21:35 +02:00
Commit Graph

104 Commits

Author SHA1 Message Date
gryf ce89f5c9d1 Use the real constants module.
This is progressing refactor of the calibre code to make it more
readable, and transform it to something more coherent.

In this patch, there are changes regarding imports for some modules,
instead of polluting namespace of each module with some other modules
symbols, which often were imported from other modules. Yuck.
2020-05-29 17:04:53 +02:00
gryf ee4801228f Added real constants module 2020-05-29 16:49:26 +02:00
gryf 2c78d6e3a6 Renamed constants, to make room for real constants module 2020-05-26 19:52:18 +02:00
gryf 399456d9ad Added LRF input format support. 2020-05-24 12:43:33 +02:00
gryf 17c52a14a4 Some misc cleanups 2020-05-24 12:10:13 +02:00
gryf 0fc6e3b081 Clean up a couple of not used localize functions 2020-05-17 20:45:40 +02:00
gryf b4067b29c9 Clean up titlecase module 2020-05-17 20:43:16 +02:00
gryf 2d26e8916d Clean up pdb_input module 2020-05-17 20:40:46 +02:00
gryf 178b9fd4d7 Removed palmdoc C implementation in favor of pure Python. 2020-05-17 20:38:53 +02:00
gryf da010d7841 Get rid of icu string functions in favor of native ones. 2020-05-03 20:19:11 +02:00
gryf 212cb56d42 Removed gettext related functions 2020-05-03 19:04:07 +02:00
gryf 35445cb736 More cleanup 2020-05-03 15:37:23 +02:00
gryf 1a79146bf7 Removed some more code 2020-05-03 09:55:22 +02:00
gryf 8f1eb9c88c Removed another wrapper on stdlib 2020-04-23 20:25:52 +02:00
gryf ea99f5223c Removing not needed excpetion class ConversionUserFeedBack 2020-04-23 20:11:10 +02:00
gryf 16d169d0d6 Removed another unicode/string nonsense 2020-04-23 20:07:19 +02:00
gryf de4f8a444b Removed check for python version 2020-04-21 21:06:48 +02:00
gryf 3234e4de27 Removed iteritems and itervalues, which are redundant 2020-04-21 18:20:08 +02:00
gryf 9e076e0af4 Removed superfluous lopen builtin 2020-04-20 21:12:22 +02:00
gryf 3ca3f08054 Removing polyglot getcwd and getenv 2020-04-20 20:34:17 +02:00
gryf c867f0321b Removing couple of "buildins" polyglot types 2020-04-20 20:22:50 +02:00
gryf eac0b98d6f Removed polyglot codepoint_to_chr 2020-04-20 19:29:05 +02:00
gryf 128705f258 Removed polyglots unicode_type usage 2020-04-20 19:25:28 +02:00
gryf ef7e2b10be Removing is_py3 method and duplicated by urllib. 2020-04-19 21:22:24 +02:00
gryf b66cbd2c1e Removed overwritten builtins from mosto of the files.
Just started the process of cleaning up the code base.
2020-04-19 19:06:09 +02:00
gryf 571da747b3 Fix license formatting 2020-04-19 17:50:19 +02:00
gryf 48fedea799 Removing unneeded from __future__ import statements.
Since we are on Python 3.6 and up, we don't need those anymore.
2020-04-19 17:39:02 +02:00
gryf 41b687ee27 Added txt output format 2020-04-19 15:18:03 +02:00
gryf d2159ed60c Added htmlz and pdf formats.
Added HTML reader/writer and PDF reader.
2020-04-19 15:16:48 +02:00
gryf ebeca30bda Enable htmlz output format 2020-04-19 15:16:48 +02:00
gryf d3369d55bc Enable docx write support 2020-04-19 15:16:48 +02:00
gryf a4533957f7 Enable mobi write support. 2020-04-19 15:16:48 +02:00
gryf 32b86ab224 Added support for epub output format. 2020-04-19 15:16:48 +02:00
gryf fa3cf5c178 Added FB2 format. 2020-04-19 15:16:48 +02:00
gryf 860044904d Workaround for missing mobi images. 2020-04-19 15:16:48 +02:00
gryf ea19d47ad1 Cleanup get_image_path usage. 2020-04-19 15:16:48 +02:00
gryf 5aa0b1a0eb Cleanup get_path usage in favor of pkg_resources. 2020-04-19 15:16:48 +02:00
gryf 0bf43ec6e8 Removed translations module 2020-04-19 15:16:48 +02:00
gryf 453d77ce98 Remove not needed paths from sys module. 2020-04-19 15:16:48 +02:00
gryf bd9cb86c1c Replace Calibre path resolve system for some of the modules.
In Calibre there is a module, which registers two functions in global
scope, one for filepath and one for images path. It relies on additional
three variables, registered during application startup. I found it
overcomplicated, and couple of the resource paths has been calculated
using pkg_resource module.
2020-04-19 15:16:48 +02:00
gryf f488bc386e Fix missed calibre import 2020-04-19 15:16:48 +02:00
gryf 5bb235772d Fix issue with crash on LibreOffice format.
During tests, there was issue regarding ODF2XHTML.xhtml() method, which
assumes, that all lines are stored as strings. Although, in case of
single items, like footnotes, there is a chance, that numbers are stored
as ints. In this patch we assure, that all lines has to be strings. This
bug also affects current version of Calibre (as of cf5baaf449 commit).
2020-04-19 15:16:48 +02:00
gryf 5be4996b7b Fix issue with nonhashable TextStyle objects in LRF format. 2020-04-19 15:16:48 +02:00
gryf 18d3cc1510 Added data files required by converter. 2020-04-19 15:16:48 +02:00
gryf 01e617f206 Added missing txt metadata module 2020-04-19 15:16:48 +02:00
gryf 0f9792df36 Convert calibre modules to ebook_converter.
Here is the first batch of modules, which are needed for converting
several formats to LRF. Some of the logic has been change, more cleanups
will follow.
2020-04-19 15:16:48 +02:00
gryf 69d2e536c5 Added txt related modules 2020-04-19 15:16:39 +02:00
gryf 0f628900f3 Added pdf related modules 2020-04-19 13:40:09 +02:00
gryf 5ff0f058d3 Added hmtlz module 2020-04-14 19:01:19 +02:00
gryf 98b2dd8d4f Added docx writer related modules 2020-04-13 16:33:15 +02:00