Commit Graph

516 Commits

Author SHA1 Message Date
Kiryl
618d57767d Change presets.json (add attr_replacer) 2022-07-20 15:47:37 +03:00
Kiryl
ea4dd77155 Add attr replacer & svg -> img 2022-07-20 15:45:44 +03:00
Kiryl
4f7aa69ab3 Heading removal fix 2022-07-20 15:44:28 +03:00
Kiryl
20fa1bfa86 Clear font-family value of regex characters 2022-07-15 14:18:53 +03:00
Kiryl
16a8690738 small refactoring 2022-07-14 19:14:49 +03:00
Kiryl
a6a54abb0a Optimize docx2libre_html.py 2022-07-14 19:13:59 +03:00
Kiryl
b1ccd796c9 Set up local docx_converter 2022-07-14 19:13:34 +03:00
Kiryl
7b35d8a7c2 Optimize speed of image_processing.py 2022-07-14 19:12:22 +03:00
Kiryl
ca229dc6b7 Rewrite _insert_tags cause of mutable tag 2022-07-14 19:11:33 +03:00
Kiryl
8624a0a776 ' -> " in import css file 2022-07-14 19:10:23 +03:00
Kiryl
55372561cd Change processing of Section|Part Chapters 2022-07-14 19:09:33 +03:00
Kiryl
e1f06ba884 Add concrete book_id for imgs on Local 2022-07-14 12:39:48 +03:00
Kiryl
a5f7a9b36c add presets to git 2022-07-12 11:08:45 +03:00
Kiryl
5036445c05 rewrite process internal links 2022-07-08 18:37:17 +03:00
Kiryl
7d5c1bfdf2 comment duplicate_styles_check cause of transform 2022-07-08 18:36:09 +03:00
Kiryl
1926377a34 rewrite css_processor.py 2022-07-08 18:35:34 +03:00
Kiryl
c4752a19db add processing of JSON presets 2022-07-07 19:32:24 +03:00
Kiryl
687c09417a css processing formatting 2022-07-07 19:31:16 +03:00
Kiryl
114ac78eb0 refactor with PEP8 2022-06-28 16:39:50 +03:00
Kiryl
f01f6ad778 Remove font=family processing 2022-06-28 16:38:21 +03:00
Kiryl
eab4f0130a Update livecarta_config.py with processing changes 2022-06-27 19:16:17 +03:00
Kiryl
9b4ecfd63c Add function - insert certain tags in parent tags 2022-06-27 19:13:39 +03:00
Kiryl
8e4d4de5bc Add ability to unwrap tags that are in certain tags 2022-06-27 19:12:39 +03:00
Kiryl
01c2c8b120 Add ability to replace tags based on parents/children 2022-06-27 19:12:02 +03:00
Kiryl
f690412f5c Create preset for wrapping tags with tables 2022-06-24 17:12:21 +03:00
Kiryl
d91f6aba4a Create preset for wrapping tags with tables 2022-06-24 17:12:00 +03:00
Kiryl
9f067bb93d Make structure of docx c as epub s 2022-06-24 17:10:43 +03:00
Kiryl
66e03c98e3 Add style to <code> tags without 2022-06-23 18:48:50 +03:00
Kiryl
ffa6e90ad5 Take class removing to a function 2022-06-23 18:27:23 +03:00
Kiryl
7e380ef431 Optimize heading cleaning 2022-06-23 17:44:48 +03:00
Kiryl
536c1d23e4 Сut preparing title function 2022-06-23 17:43:51 +03:00
Kiryl
1eb59a66ac Add processing of indents in %,em,pt 2022-06-23 13:02:23 +03:00
Kiryl
9422182b03 Fix error with Navigable String doesn't have name 2022-06-23 12:59:37 +03:00
Kiryl
3899e7f848 Remove unuseful function class 2022-06-22 19:05:13 +03:00
Kiryl
2e0d812783 Footer -> Span 2022-06-22 19:04:24 +03:00
Kiryl
94b5cb569c Add control on the same level of chapter marks 2022-06-22 18:22:20 +03:00
Kiryl
43e16ed8d2 Convert div to table (width, border, bgcolor in attr) 2022-06-22 18:20:57 +03:00
Kiryl
0f53caaffa Replace functions working to the 1 html processing 2022-06-22 18:20:21 +03:00
Kiryl
de1246d890 Improve remove headings content 2022-06-22 18:18:58 +03:00
Kiryl
bc4055bdaf Remove processing css in lowercase 2022-06-21 18:14:26 +03:00
Kiryl
4b74faef05 Not found group problem fixed 2022-06-21 17:10:32 +03:00
Kiryl
131fa2642e Fix % processing in styles 2022-06-21 17:07:26 +03:00
Kiryl
32f5a5eb15 Comments fix 2022-06-21 16:51:23 +03:00
Kiryl
5a237c3974 Fix headings cleaning problem 2022-06-21 16:17:05 +03:00
Kiryl
dcec9bad2e Fix style problem with span 2022-06-21 16:16:42 +03:00
Kiryl
c62192d028 Updates to presets 2022-06-21 11:47:26 +03:00
Kiryl
73513e63b5 Update style_config with pre code 2022-06-16 13:18:58 +03:00
Kiryl
9190d45754 Optimize "change_attrs_with_corresponding_tags" function 2022-06-16 13:18:33 +03:00
Kiryl
d252988cba Add TypeError Exception 2022-06-16 13:17:05 +03:00
Kiryl
8c090dc286 font-family change with 1st upper character 2022-06-16 13:16:21 +03:00