txt2ebook 0.1.147__py3-none-any.whl → 0.1.148__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
- #: src/txt2ebook/formats/base.py:137
1
+ #: src/txt2ebook/formats/base.py:139
2
2
  msgid "title:"
3
3
  msgstr "Title:"
4
4
 
5
- #: src/txt2ebook/formats/base.py:138
5
+ #: src/txt2ebook/formats/base.py:140
6
6
  msgid "author:"
7
7
  msgstr "Author:"
8
8
 
9
- #: src/txt2ebook/formats/base.py:139
9
+ #: src/txt2ebook/formats/base.py:141
10
10
  msgid "translator:"
11
11
  msgstr "Translator:"
12
12
 
13
- #: src/txt2ebook/formats/base.py:140
13
+ #: src/txt2ebook/formats/base.py:142
14
14
  msgid "tag:"
15
15
  msgstr "Tag:"
16
16
 
17
- #: src/txt2ebook/formats/base.py:146 src/txt2ebook/formats/gmi.py:62
17
+ #: src/txt2ebook/formats/base.py:153 src/txt2ebook/formats/gmi.py:62
18
18
  #: src/txt2ebook/formats/md.py:61 src/txt2ebook/formats/pdf.py:130
19
19
  #: src/txt2ebook/formats/txt.py:71
20
20
  msgid "toc"
21
21
  msgstr "Table of Content"
22
22
 
23
- #: src/txt2ebook/formats/epub.py:141
23
+ #: src/txt2ebook/formats/epub.py:147
24
24
  msgid "cover"
25
25
  msgstr "Cover"
26
26
 
@@ -1,26 +1,26 @@
1
- #: src/txt2ebook/formats/base.py:137
1
+ #: src/txt2ebook/formats/base.py:139
2
2
  msgid "title:"
3
3
  msgstr ""
4
4
 
5
- #: src/txt2ebook/formats/base.py:138
5
+ #: src/txt2ebook/formats/base.py:140
6
6
  msgid "author:"
7
7
  msgstr ""
8
8
 
9
- #: src/txt2ebook/formats/base.py:139
9
+ #: src/txt2ebook/formats/base.py:141
10
10
  msgid "translator:"
11
11
  msgstr ""
12
12
 
13
- #: src/txt2ebook/formats/base.py:140
13
+ #: src/txt2ebook/formats/base.py:142
14
14
  msgid "tag:"
15
15
  msgstr ""
16
16
 
17
- #: src/txt2ebook/formats/base.py:146 src/txt2ebook/formats/gmi.py:62
17
+ #: src/txt2ebook/formats/base.py:153 src/txt2ebook/formats/gmi.py:62
18
18
  #: src/txt2ebook/formats/md.py:61 src/txt2ebook/formats/pdf.py:130
19
19
  #: src/txt2ebook/formats/txt.py:71
20
20
  msgid "toc"
21
21
  msgstr ""
22
22
 
23
- #: src/txt2ebook/formats/epub.py:141
23
+ #: src/txt2ebook/formats/epub.py:147
24
24
  msgid "cover"
25
25
  msgstr ""
26
26
 
@@ -1,26 +1,26 @@
1
- #: src/txt2ebook/formats/base.py:137
1
+ #: src/txt2ebook/formats/base.py:139
2
2
  msgid "title:"
3
3
  msgstr "书名:"
4
4
 
5
- #: src/txt2ebook/formats/base.py:138
5
+ #: src/txt2ebook/formats/base.py:140
6
6
  msgid "author:"
7
7
  msgstr "作者:"
8
8
 
9
- #: src/txt2ebook/formats/base.py:139
9
+ #: src/txt2ebook/formats/base.py:141
10
10
  msgid "translator:"
11
11
  msgstr "翻译:"
12
12
 
13
- #: src/txt2ebook/formats/base.py:140
13
+ #: src/txt2ebook/formats/base.py:142
14
14
  msgid "tag:"
15
15
  msgstr "票签:"
16
16
 
17
- #: src/txt2ebook/formats/base.py:146 src/txt2ebook/formats/gmi.py:62
17
+ #: src/txt2ebook/formats/base.py:153 src/txt2ebook/formats/gmi.py:62
18
18
  #: src/txt2ebook/formats/md.py:61 src/txt2ebook/formats/pdf.py:130
19
19
  #: src/txt2ebook/formats/txt.py:71
20
20
  msgid "toc"
21
21
  msgstr "目录"
22
22
 
23
- #: src/txt2ebook/formats/epub.py:141
23
+ #: src/txt2ebook/formats/epub.py:147
24
24
  msgid "cover"
25
25
  msgstr "封面"
26
26
 
@@ -1,26 +1,26 @@
1
- #: src/txt2ebook/formats/base.py:137
1
+ #: src/txt2ebook/formats/base.py:139
2
2
  msgid "title:"
3
3
  msgstr "书名:"
4
4
 
5
- #: src/txt2ebook/formats/base.py:138
5
+ #: src/txt2ebook/formats/base.py:140
6
6
  msgid "author:"
7
7
  msgstr "作者:"
8
8
 
9
- #: src/txt2ebook/formats/base.py:139
9
+ #: src/txt2ebook/formats/base.py:141
10
10
  msgid "translator:"
11
11
  msgstr "翻译:"
12
12
 
13
- #: src/txt2ebook/formats/base.py:140
13
+ #: src/txt2ebook/formats/base.py:142
14
14
  msgid "tag:"
15
15
  msgstr "标签:"
16
16
 
17
- #: src/txt2ebook/formats/base.py:146 src/txt2ebook/formats/gmi.py:62
17
+ #: src/txt2ebook/formats/base.py:153 src/txt2ebook/formats/gmi.py:62
18
18
  #: src/txt2ebook/formats/md.py:61 src/txt2ebook/formats/pdf.py:130
19
19
  #: src/txt2ebook/formats/txt.py:71
20
20
  msgid "toc"
21
21
  msgstr "目录"
22
22
 
23
- #: src/txt2ebook/formats/epub.py:141
23
+ #: src/txt2ebook/formats/epub.py:147
24
24
  msgid "cover"
25
25
  msgstr "封面"
26
26
 
@@ -25,11 +25,8 @@ import cjkwrap
25
25
  import regex as re
26
26
  from bs4 import UnicodeDammit
27
27
 
28
- from txt2ebook import detect_and_expect_language
29
28
  from txt2ebook.exceptions import EmptyFileError
30
- from txt2ebook.formats.txt import TxtWriter
31
29
  from txt2ebook.models.book import Book
32
- from txt2ebook.parser import Parser
33
30
  from txt2ebook.zh_utils import zh_halfwidth_to_fullwidth, zh_words_to_numbers
34
31
 
35
32
  logger = logging.getLogger(__name__)
@@ -1,13 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txt2ebook
3
- Version: 0.1.147
3
+ Version: 0.1.148
4
4
  Summary: CLI tool to convert txt file to ebook format
5
- Project-URL: Homepage, https://github.com/kianmeng/txt2ebook
6
- Project-URL: Repository, https://github.com/kianmeng/txt2ebook
7
- Author-email: Kian-Meng Ang <kianmeng@cpan.org>
8
- License-Expression: AGPL-3.0-or-later
9
- License-File: LICENSE.md
10
5
  Keywords: cjk,ebook,epub,gmi,latex,md,pdf,txt,typst
6
+ Author-email: Kian-Meng Ang <kianmeng@cpan.org>
7
+ Requires-Python: ~=3.9
8
+ Description-Content-Type: text/markdown
11
9
  Classifier: Development Status :: 4 - Beta
12
10
  Classifier: Environment :: Console
13
11
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
@@ -25,21 +23,22 @@ Classifier: Topic :: Text Processing :: Filters
25
23
  Classifier: Topic :: Text Processing :: General
26
24
  Classifier: Topic :: Text Processing :: Markup :: HTML
27
25
  Classifier: Topic :: Text Processing :: Markup :: Markdown
28
- Requires-Python: ~=3.9
29
- Requires-Dist: bs4<0.0.2,>=0.0.1
30
- Requires-Dist: cjkwrap~=2.2
31
- Requires-Dist: ebooklib<0.18,>=0.17.1
32
- Requires-Dist: importlib-resources<7,>=6.1.1
33
- Requires-Dist: jieba<0.43,>=0.42.1
34
- Requires-Dist: langdetect<2,>=1.0.9
35
- Requires-Dist: lxml<6,>=5.2.2
36
- Requires-Dist: pylatex<2,>=1.4.2
26
+ License-File: LICENSE.md
27
+ Requires-Dist: CJKwrap~=2.2
28
+ Requires-Dist: EbookLib>=0.17.1,<0.18
29
+ Requires-Dist: bs4>=0.0.1,<0.0.2
30
+ Requires-Dist: importlib-resources>=6.1.1,<7
31
+ Requires-Dist: jieba>=0.42.1,<0.43
32
+ Requires-Dist: langdetect>=1.0.9,<2
33
+ Requires-Dist: lxml>=5.2.2,<6
34
+ Requires-Dist: pylatex>=1.4.2,<2
37
35
  Requires-Dist: pypandoc~=1.11
38
- Requires-Dist: regex<2022,>=2021.11.10
39
- Requires-Dist: reportlab<5,>=4.0.0
40
- Requires-Dist: typing-extensions<5,>=4.5.0
36
+ Requires-Dist: regex>=2021.11.10,<2022
37
+ Requires-Dist: reportlab>=4.0.0,<5
38
+ Requires-Dist: typing-extensions>=4.5.0,<5
41
39
  Requires-Dist: typst>=0.13.0
42
- Description-Content-Type: text/markdown
40
+ Project-URL: Homepage, https://github.com/kianmeng/txt2ebook
41
+ Project-URL: Repository, https://github.com/kianmeng/txt2ebook
43
42
 
44
43
  # txt2ebook
45
44
 
@@ -151,3 +150,4 @@ The fish logo used in the documentation generated by Sphinx is a public domain
151
150
  drawing of Troschel's parrotfish (Chlorurus troschelii Var. A.) from
152
151
  <https://commons.wikimedia.org/entity/M18506436>.
153
152
  18506436>.
153
+
@@ -24,13 +24,13 @@ txt2ebook/languages/__init__.py,sha256=1AfDn-D0q-dvODGP-9KxPHY_Wtk-ifZdN1FutZMT9
24
24
  txt2ebook/languages/en.py,sha256=8qsmbKB69M3SD9nBnSX8rP8hAL_RFkhB-zyH93INgaQ,999
25
25
  txt2ebook/languages/zh_cn.py,sha256=lcbgPFO4Uaog8sKHKF5fQtvRwkKiQ3v5wMvYNEvNk9k,1943
26
26
  txt2ebook/languages/zh_tw.py,sha256=_fdXOOSLK0nTMuBe1Om2qjb4zr2PVd6N4xi2rrYkNTI,1515
27
- txt2ebook/locales/txt2ebook.pot,sha256=mAbxkYqivFTrRmmo412Um3ZcvIS_yGiG7zxE3MCRavU,641
27
+ txt2ebook/locales/txt2ebook.pot,sha256=VoXU9LrDzZApUVCCcKZC5Fu5QLx1fwd1lYEkbIdCEgc,641
28
28
  txt2ebook/locales/en/LC_MESSAGES/txt2ebook.mo,sha256=Ym6soeijV3zsv9FUPWlJnu18-CNb5tcOTN5JsMOfV9c,672
29
- txt2ebook/locales/en/LC_MESSAGES/txt2ebook.po,sha256=ElBRjAM7rgGxoBfjs9nZrlhWwXP24wkI8FmeSZIhAdM,698
29
+ txt2ebook/locales/en/LC_MESSAGES/txt2ebook.po,sha256=ENsZFITaqEdOYE3xkPX5wDR1HMs1JqB7uyrHaAdPiE0,698
30
30
  txt2ebook/locales/zh-cn/LC_MESSAGES/txt2ebook.mo,sha256=rRGW7HByDVZV8WpQkhyIFOWYNTQc4NnStrn0eGJX8Wc,675
31
- txt2ebook/locales/zh-cn/LC_MESSAGES/txt2ebook.po,sha256=1CDj15DzFqpcUMYnZGsRlHiXZCS-MvoH09l43kc787o,698
31
+ txt2ebook/locales/zh-cn/LC_MESSAGES/txt2ebook.po,sha256=i_B-urg-eik0myXxIBSV8_ohPu3xsPNWHJP-fcATotg,698
32
32
  txt2ebook/locales/zh-tw/LC_MESSAGES/txt2ebook.mo,sha256=1GIuOcO_bISiFcfhFez-A7mSi11Mo-x3PBobBENgMEc,675
33
- txt2ebook/locales/zh-tw/LC_MESSAGES/txt2ebook.po,sha256=QSB2qrYJJUnY1S80uQi4wNchOLxsAtkYAKwR1JUw23I,698
33
+ txt2ebook/locales/zh-tw/LC_MESSAGES/txt2ebook.po,sha256=sNyEKCHin78wmSwUARfAypsl9mXfJJaWD1a8E1ixKjs,698
34
34
  txt2ebook/models/__init__.py,sha256=Z3zClWLj08Q8HgaWV1RRgIKatEhIUfYBAVWm-j4m05w,930
35
35
  txt2ebook/models/book.py,sha256=P-SQabvrRgWoafrk0tw6zjD-3hq_r8_jGvgTORUS-DM,2730
36
36
  txt2ebook/models/chapter.py,sha256=6YvUDHzR6amGMZgkQl_xHWrYZUmlfpF7mnDLilG2BpA,1686
@@ -39,14 +39,14 @@ txt2ebook/subcommands/__init__.py,sha256=ldhzvsrMsR8lZmhZef77JFz0jValpV3pytFfwJS
39
39
  txt2ebook/subcommands/env.py,sha256=gEzra4b6guy7pRZUTCWX1_eiR7JmrtR1Z-J-vxljvMY,1549
40
40
  txt2ebook/subcommands/epub.py,sha256=_obM1_fvVBPHOBXBOCYK8nyJadBX3_gOn9kaXA5HipA,3570
41
41
  txt2ebook/subcommands/gmi.py,sha256=ANnPg-RFsylTo44fUzFOSHN1fC3Ce82gBzrv-sBv5fU,3318
42
- txt2ebook/subcommands/massage.py,sha256=DS1jFEYylLf7z-r8tNDU_2aRETBlgj2xtQT8k1mvAv8,12819
42
+ txt2ebook/subcommands/massage.py,sha256=xaDLI6NMz_InaeNf3M-Uk8qmjU6h5jnAg39tQiwt-P4,12690
43
43
  txt2ebook/subcommands/md.py,sha256=PmIqrqrnzLywvN4qTkle0V9N3FTIJGRWpC0Xbk76B5o,3329
44
44
  txt2ebook/subcommands/parse.py,sha256=tdWqssFsg70GSgz4S2YoaERydt3zQ5Sq1rLtkvB-WQU,2902
45
45
  txt2ebook/subcommands/pdf.py,sha256=1JQtpugzAIaho6G3CK1rGYk74hotAexXZxPH9PHpRps,2980
46
46
  txt2ebook/subcommands/tex.py,sha256=ToYdFXnFLwsXxTsZzCRsURo7TCeOIFJtp5sFJDt0R-E,3131
47
47
  txt2ebook/subcommands/typ.py,sha256=qXpHMmtu_1nAMs264oKUSolWAUBjZpTziTSBcTe2JgA,3681
48
- txt2ebook-0.1.147.dist-info/METADATA,sha256=InAyTbRMSvYqH_AA0-h9hO6OWyIXnoIeFJ07jZwwD4c,4737
49
- txt2ebook-0.1.147.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
50
- txt2ebook-0.1.147.dist-info/entry_points.txt,sha256=3jm5vpUsDRgoM6S3CQVMMiP7tJQqfq1vfV0sh_KaK9s,74
51
- txt2ebook-0.1.147.dist-info/licenses/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
52
- txt2ebook-0.1.147.dist-info/RECORD,,
48
+ txt2ebook-0.1.148.dist-info/entry_points.txt,sha256=AFikuCV6fqf8_GHwsvWuo9jTGNrCkWY1TJWk5GfMWSk,71
49
+ txt2ebook-0.1.148.dist-info/licenses/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
50
+ txt2ebook-0.1.148.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
51
+ txt2ebook-0.1.148.dist-info/METADATA,sha256=vbkRSAOGi4qtE4RyoUd_DOWF7i2zwOhznoZNdjzpv4k,4700
52
+ txt2ebook-0.1.148.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: flit 3.12.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ tte=txt2ebook.cli:main
3
+ txt2ebook=txt2ebook.cli:main
4
+
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- tte = txt2ebook.cli:main
3
- txt2ebook = txt2ebook.cli:main