txt2ebook 0.1.91__py3-none-any.whl → 0.1.93__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.
txt2ebook/__init__.py CHANGED
@@ -22,7 +22,7 @@ import sys
22
22
 
23
23
  logger = logging.getLogger(__name__)
24
24
 
25
- __version__ = "0.1.91"
25
+ __version__ = "0.1.93"
26
26
 
27
27
 
28
28
  def setup_logger(config: argparse.Namespace) -> None:
txt2ebook/txt2ebook.py CHANGED
@@ -96,6 +96,7 @@ def build_parser(
96
96
  args = args or []
97
97
 
98
98
  parser = argparse.ArgumentParser(
99
+ prog="txt2ebook",
99
100
  add_help=False,
100
101
  description=__doc__,
101
102
  formatter_class=lambda prog: argparse.RawTextHelpFormatter(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: txt2ebook
3
- Version: 0.1.91
3
+ Version: 0.1.93
4
4
  Summary: CLI tool to convert txt file to ebook format
5
5
  Home-page: https://github.com/kianmeng/txt2ebook
6
6
  License: AGPL-3.0-or-later
@@ -72,16 +72,13 @@ Showing help message of command-line options:
72
72
  txt2ebook --help
73
73
  ```
74
74
 
75
- ```console
75
+ <!--help !-->
76
76
 
77
- usage: txt2ebook [-of OUTPUT_FOLDER] [-p] [-f {epub,gmi,md,pdf,tex,txt,typ}]
78
- [-ik INDEX_KEYWORD] [-t TITLE] [-l LANGUAGE] [-a AUTHOR]
79
- [-tr TRANSLATOR] [-c IMAGE_FILENAME] [-w WIDTH]
80
- [-ff FILENAME_FORMAT] [-ps SEPARATOR] [-pz PAGE_SIZE]
81
- [-rd REGEX] [-rvc REGEX] [-rv REGEX] [-rc REGEX] [-rt REGEX]
82
- [-ra REGEX] [-rl REGEX] [-rr REGEX REGEX]
83
- [-et {clean,condense,noindent}] [-vp] [-tp] [-sp] [-ss]
84
- [-toc] [-hn] [-fw] [-rw] [-ow] [-op] [-q] [-v] [-y] [-d]
77
+ ```console
78
+ usage: txt2ebook [-of OUTPUT_FOLDER] [-p] [-f {epub,gmi,md,pdf,tex,txt,typ}] [-ik INDEX_KEYWORD] [-t TITLE] [-l LANGUAGE] [-a AUTHOR]
79
+ [-tr TRANSLATOR] [-c IMAGE_FILENAME] [-w WIDTH] [-ff FILENAME_FORMAT] [-ps SEPARATOR] [-pz PAGE_SIZE] [-rd REGEX]
80
+ [-rvc REGEX] [-rv REGEX] [-rc REGEX] [-rt REGEX] [-ra REGEX] [-rl REGEX] [-rr REGEX REGEX]
81
+ [-et {clean,condense,noindent}] [-vp] [-tp] [-sp] [-ss] [-toc] [-hn] [-fw] [-rw] [-ow] [-op] [-q] [-v] [-y] [-d]
85
82
  [--env] [-h] [-V]
86
83
  TXT_FILENAME [EBOOK_FILENAME]
87
84
 
@@ -188,6 +185,8 @@ optional arguments:
188
185
  convert ASCII character from halfwidth to fullwidth
189
186
  ```
190
187
 
188
+ <!--help !-->
189
+
191
190
  Convert a txt file into epub:
192
191
 
193
192
  ```console
@@ -1,4 +1,4 @@
1
- txt2ebook/__init__.py,sha256=0KDL88RyHUXAk4bMWcrE_K_YKft9urtCkeKaU4OvNwk,2061
1
+ txt2ebook/__init__.py,sha256=Tn-blfpSL7SNrXBh29NIMZ58Xy9A-_ZpVHjcrAgCLzs,2061
2
2
  txt2ebook/__main__.py,sha256=gMLvgpqc_BL4cBqNe0vqErRF5dlJPAbvqu1zndcAHYI,850
3
3
  txt2ebook/exceptions.py,sha256=b2HDsXdqweLJbvSJEGt48nxvGkZq20SfYezSjwp77JU,842
4
4
  txt2ebook/formats/__init__.py,sha256=WhiRWGvbUjc8QZfhAIkKCg6GL8vNNlEF73meZSzYhDA,2463
@@ -33,10 +33,10 @@ txt2ebook/models/chapter.py,sha256=buECAklNQgM3tDehzyVO9YfA_F0iXyLq2PaMZGV_Zaw,1
33
33
  txt2ebook/models/volume.py,sha256=HyT4XO9yZ8d0PgZVfMMyAYUDFv58RrUmsSFNNmU-sHY,1592
34
34
  txt2ebook/parser.py,sha256=DbivznOgBOzlY5btTdB09D6yNGk5QXsE-gD2zc6lJyc,12188
35
35
  txt2ebook/tokenizer.py,sha256=Bm56thLiYSmRDuFiAaOH-NibzhYZQvnLo_u21KaV4Oo,9406
36
- txt2ebook/txt2ebook.py,sha256=O9YG6k5vDSRFpawc2iVRmi7uNxP89GrSR68D1mGepHc,13419
36
+ txt2ebook/txt2ebook.py,sha256=Sh9Ny0UARhrBbjv8Glcn45-3JqOUZn8bxh_sNP0eUp8,13445
37
37
  txt2ebook/zh_utils.py,sha256=EgKVbwqYGaTGswQUGcOCeSfRelzwkAb9WWY9TrsX1x4,4882
38
- txt2ebook-0.1.91.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
39
- txt2ebook-0.1.91.dist-info/METADATA,sha256=-sUudVhG76L9aGgXg1rYf8ADj7IoqcZEUa8UxpLodMo,7639
40
- txt2ebook-0.1.91.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
- txt2ebook-0.1.91.dist-info/entry_points.txt,sha256=IQHyIIhd0MHjSSRVC1a6tMeIoLus8D06KHL_cumvEbg,83
42
- txt2ebook-0.1.91.dist-info/RECORD,,
38
+ txt2ebook-0.1.93.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
39
+ txt2ebook-0.1.93.dist-info/METADATA,sha256=dUHF57D6GhDE5J_HU8SfBZwsM6shVc7taFJ2kd30m2k,7600
40
+ txt2ebook-0.1.93.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
41
+ txt2ebook-0.1.93.dist-info/entry_points.txt,sha256=IQHyIIhd0MHjSSRVC1a6tMeIoLus8D06KHL_cumvEbg,83
42
+ txt2ebook-0.1.93.dist-info/RECORD,,