txt2ebook 0.1.163__py3-none-any.whl → 0.1.164__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/subcommands/tex.py +12 -4
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/METADATA +1 -1
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/RECORD +7 -7
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/WHEEL +0 -0
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/entry_points.txt +0 -0
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/licenses/LICENSE.md +0 -0
- {txt2ebook-0.1.163.dist-info → txt2ebook-0.1.164.dist-info}/top_level.txt +0 -0
txt2ebook/subcommands/tex.py
CHANGED
|
@@ -40,6 +40,14 @@ def build_subparser(subparsers) -> None:
|
|
|
40
40
|
metavar="TXT_FILENAMES",
|
|
41
41
|
)
|
|
42
42
|
|
|
43
|
+
tex_parser.add_argument(
|
|
44
|
+
"output_file",
|
|
45
|
+
nargs="?",
|
|
46
|
+
default=None,
|
|
47
|
+
help="converted ebook filename (default: 'TXT_FILENAME.tex')",
|
|
48
|
+
metavar="EBOOK_FILENAME",
|
|
49
|
+
)
|
|
50
|
+
|
|
43
51
|
tex_parser.add_argument(
|
|
44
52
|
"-ik",
|
|
45
53
|
"--index-keyword",
|
|
@@ -115,12 +123,12 @@ def run(args: argparse.Namespace) -> None:
|
|
|
115
123
|
"""
|
|
116
124
|
input_sources = []
|
|
117
125
|
|
|
118
|
-
if
|
|
119
|
-
# piped input, use stdin as the single input source
|
|
120
|
-
input_sources.append(sys.stdin)
|
|
121
|
-
elif args.input_file:
|
|
126
|
+
if args.input_file:
|
|
122
127
|
# multiple file(s)
|
|
123
128
|
input_sources.extend(args.input_file)
|
|
129
|
+
elif not sys.stdin.isatty():
|
|
130
|
+
# piped input, use stdin as the single input source
|
|
131
|
+
input_sources.append(sys.stdin)
|
|
124
132
|
else:
|
|
125
133
|
logger.error("No input files provided.")
|
|
126
134
|
raise InputError("No input files provided.")
|
|
@@ -33,11 +33,11 @@ txt2ebook/subcommands/massage.py,sha256=THdHEsnm10v6d4yNgkTM8TQXF2jbVjK7OZ89Dhk3
|
|
|
33
33
|
txt2ebook/subcommands/md.py,sha256=MvGwzOtYA8c96jw3leDnXspY2s6WRY2BZNTZkvcFtUY,4709
|
|
34
34
|
txt2ebook/subcommands/parse.py,sha256=Qwca1Nha5vrkfnsXoo9qbHL7SWAXFkfaVfkFcgDFs6E,3103
|
|
35
35
|
txt2ebook/subcommands/pdf.py,sha256=lg4da1XhDOywuxB5fjvtf9JmmJGbpCQdUarY5IFS3V4,4360
|
|
36
|
-
txt2ebook/subcommands/tex.py,sha256=
|
|
36
|
+
txt2ebook/subcommands/tex.py,sha256=BwAzszJgncSsL0O9-ILEbOJQufO0UVGHw7KETLyWeBo,4701
|
|
37
37
|
txt2ebook/subcommands/typ.py,sha256=jKcL52vTw7_9FxlrtdGrD5JDHPvz5Q6x0jWISVWyTVw,4948
|
|
38
|
-
txt2ebook-0.1.
|
|
39
|
-
txt2ebook-0.1.
|
|
40
|
-
txt2ebook-0.1.
|
|
41
|
-
txt2ebook-0.1.
|
|
42
|
-
txt2ebook-0.1.
|
|
43
|
-
txt2ebook-0.1.
|
|
38
|
+
txt2ebook-0.1.164.dist-info/licenses/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
|
|
39
|
+
txt2ebook-0.1.164.dist-info/METADATA,sha256=W2Pf-Lghw5HmZhhayEd0NLztsZ1RiS9QJ-2sxRkXCVQ,5297
|
|
40
|
+
txt2ebook-0.1.164.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
txt2ebook-0.1.164.dist-info/entry_points.txt,sha256=3jm5vpUsDRgoM6S3CQVMMiP7tJQqfq1vfV0sh_KaK9s,74
|
|
42
|
+
txt2ebook-0.1.164.dist-info/top_level.txt,sha256=pesdk4CJRlfhUXVD9vH3Dd_F8ATlLQoqlUsUnU8SJMw,10
|
|
43
|
+
txt2ebook-0.1.164.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|