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

29 Commits

Author SHA1 Message Date
gryf b2f161670a Cleaned up __init__.py for main module 2021-01-05 19:48:45 +01:00
gryf 8be21d878d Moved xml_replace_entities to utils.entities. 2021-01-03 19:37:03 +01:00
gryf dc4352fd4c Moved replace_entities to utils.entities. 2021-01-03 19:35:07 +01:00
gryf 3152c52839 Move force_uniceode to utils package 2020-11-11 19:31:15 +01:00
gryf 22fed6f4d3 Removed facade on os.walk. 2020-10-13 21:27:32 +02:00
gryf 250d0eeea7 Move specific sanitize_file_name out of init module.
sanitize_file_name function has been moved to utility module filenames,
where it logically belongs.
2020-10-13 19:29:27 +02:00
gryf 97ddcd7be1 Don't cross import symbols from __init__ 2020-09-30 19:15:56 +02:00
gryf c82c4e456c Removed urlunquote 2020-07-11 16:24:16 +02:00
gryf 1a09e3db84 Removed Windows bits. 2020-06-17 19:28:07 +02:00
gryf 1465e4267f Sorted out mime initialization.
Every mime related function in main __init__.py has a flag check for the
check if initialization has already done. This is nonsense, since it
should be done implicitly early on the converter is starting.

This commit straight the things out, and initialization is done in cli
module.

Also, function guess_type was removed, since it's just a proxy for
mimetypes.guess_type function.
2020-06-14 15:41:18 +02:00
gryf a69884d724 Fixing leftovers from first concept of constants 2020-06-07 11:59:00 +02:00
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 2c78d6e3a6 Renamed constants, to make room for real constants module 2020-05-26 19:52:18 +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 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 c867f0321b Removing couple of "buildins" polyglot types 2020-04-20 20:22:50 +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 32b86ab224 Added support for epub output format. 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 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 79cad46732 Added epub write support 2020-04-13 12:46:37 +02:00
gryf d97ea9b0bc Initial import 2020-04-11 19:27:06 +02:00