1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-10 05:34:12 +01:00
Commit Graph

138 Commits

Author SHA1 Message Date
877ea68d42 Moved xml_entity_to_unicode partial to utils.entities module. 2021-01-03 19:00:17 +01:00
839cc3c79a Moved entity_to_unicode function to utils.entities module. 2021-01-03 18:52:13 +01:00
3152c52839 Move force_uniceode to utils package 2020-11-11 19:31:15 +01:00
35c34c3b45 Fixed issue with html5-parser.
During development, turns out, that some incompatibility has been
introduced with lxml and html5-parser binary versions on pypy, with
library which is installed on my system. In case, where incompatibility
occurs, there was no error message, no exception thrown, just as a
result of parsing, lame lxml object has been returned, and performing
method like find() on it causes returning None instead of expected
Element object.

Following information about installation of the html5-library[1], I was
forced to change how ebook-converter is installed. Now, we have to build
and compile lxml on the target system, which is forced by introduced
requirements.txt file. Perhaps, I'll reconsider removing html5-parser in
the future.

[1] https://html5-parser.readthedocs.io/en/latest/#unix
2020-11-11 15:51:07 +01:00
22fed6f4d3 Removed facade on os.walk. 2020-10-13 21:27:32 +02:00
b44926a6eb Move fit_image to img utils module. 2020-10-13 21:00:01 +02:00
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
847e133878 Initialize mime in cli module 2020-09-30 20:46:01 +02:00
e213b7a64b Moving human_readable formatting function out of __init__.
There is a module, where this function is used - formatter_functions. It
is at the same time the only place where it is used. No need to clutter
__init__.py with it.
2020-09-30 20:24:22 +02:00
a5880b2445 Moving dependent function my_unichar into entity_to_unicode function 2020-09-30 20:23:20 +02:00
97ddcd7be1 Don't cross import symbols from __init__ 2020-09-30 19:15:56 +02:00
ee232b76d6 Remove leftovers from gettext translations 2020-09-30 19:02:22 +02:00
db55fd4df7 Removed unused setup_cli_handlers function 2020-09-30 18:59:02 +02:00
c10367751d Stop processing custom tweaks. Removing with the dependences. 2020-09-06 18:39:27 +02:00
5dae7a6f2d Stop populating installation_uuid in configuration. 2020-09-06 18:38:44 +02:00
2690964642 Removed unused DevicePrefs from config module. 2020-09-06 18:36:19 +02:00
e232256420 Changed location of scanned fonts.
In Calibre, there was decided to keep the fonts information inside the
configuration directory. While scanned fonts information is actually a
cache, I would keep it there. This commit is making that happen.

Also removed XMLConfig in favor of JSONConfig class, since XMLConfig is
not used at all.
2020-09-06 18:32:10 +02:00
61d59cb84a Removed unused class and function in config module. 2020-09-06 18:30:21 +02:00
2c787fd5bf Fix some flake8 findings on config module. 2020-09-06 18:29:33 +02:00
11275651a2 Fix flake8 issues in ui module. 2020-09-06 18:26:57 +02:00
6fdcc029bb Cut off cross importing things.
There was (and perhaps it exists in other modules, need to check) a bad
habit of importing objects out of module A into B just to be able of
import those object from module B. In this case there was import from
module config_base into module config. This commit fix this.
2020-09-06 18:23:21 +02:00
de22960d26 Change location of ebook-converter rc files 2020-09-06 18:18:32 +02:00
befceafd56 Merge pull request #3 from keshavbhatt/snapcraft
added snapcraft recipe
2020-08-17 10:05:11 +02:00
keshavbhatt
674807ca79 Fix YAML syntax error issue in snap description filed. 2020-07-26 20:14:49 +05:30
keshavbhatt
9db8592753 added snapcraft recipe 2020-07-25 17:39:04 +05:30
fa3d6d58a3 Removed unused code, stright up iso8601 parser 2020-07-19 20:00:31 +02:00
e0ea04c658 Removed unused monotonic module 2020-07-19 10:25:30 +02:00
fbeb2fbf18 Removed unused startuo module 2020-07-19 10:24:40 +02:00
e2b9246cdf Removed unneeded stuff 2020-07-18 19:49:15 +02:00
bc790238cc Removed old py2 code from constants 2020-07-18 19:40:24 +02:00
0abbb43afe Removed unused code mainly from old constants file. 2020-07-18 19:37:35 +02:00
f5f83f9c68 Removed platform dependend code, cleanup 2020-07-18 18:08:57 +02:00
f1837397a1 Removed osx code 2020-07-18 18:02:59 +02:00
45b6bb5b2c Cleanup, cleanup 2020-07-17 18:59:45 +02:00
5ac8451668 Removed unsed code 2020-07-17 17:57:41 +02:00
4216fef20e Removed prints and extract function from init module 2020-07-13 21:38:06 +02:00
025878dfe5 Cleanup init module 2020-07-13 20:44:09 +02:00
16c568eab9 Removed useless function assign to variable 2020-07-13 20:33:41 +02:00
a618f929a8 Removed unused url_slash_cleaner 2020-07-13 20:31:40 +02:00
3e5e68d886 Removed unused confirm_config_name function 2020-07-13 20:21:56 +02:00
6a7dc474ac Removed unicode path function 2020-07-13 20:21:26 +02:00
c82c4e456c Removed urlunquote 2020-07-11 16:24:16 +02:00
5fb02998a1 Removed polyglot unquote from lrf html module 2020-07-08 21:08:49 +02:00
732becf349 Removed unused imports and functions from poliglote urllib 2020-07-07 21:57:44 +02:00
40e2cbab98 Added dependency for fb2ml, fixed oeb.base references in fb2 format 2020-07-05 19:47:04 +02:00
5ea3a5156d Removed unsued functions 2020-07-05 19:41:45 +02:00
c25c14024f Removed useless cmp function from icu and polyglot 2020-07-05 17:43:42 +02:00
df26a45a2e Removed forgotten error_message function 2020-07-05 17:43:02 +02:00
c25d63fd05 Removed safe_chr function 2020-07-05 17:42:01 +02:00
37ac7730e4 Removing some more unused functions 2020-07-05 17:16:52 +02:00