txt2ebook 0.1.86__tar.gz → 0.1.90__tar.gz

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.
Files changed (41) hide show
  1. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/PKG-INFO +2 -2
  2. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/pyproject.toml +16 -16
  3. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/__init__.py +1 -1
  4. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/tex.py +2 -2
  5. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/LICENSE.md +0 -0
  6. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/README.md +0 -0
  7. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/__main__.py +0 -0
  8. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/exceptions.py +0 -0
  9. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/__init__.py +0 -0
  10. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/base.py +0 -0
  11. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/epub.py +0 -0
  12. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/gmi.py +0 -0
  13. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/md.py +0 -0
  14. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/pdf.py +0 -0
  15. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/templates/__init__.py +0 -0
  16. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/templates/epub/__init__.py +0 -0
  17. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/templates/epub/clean.css +0 -0
  18. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/templates/epub/condense.css +0 -0
  19. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/templates/epub/noindent.css +0 -0
  20. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/txt.py +0 -0
  21. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/formats/typ.py +0 -0
  22. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/helpers/__init__.py +0 -0
  23. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/languages/__init__.py +0 -0
  24. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/languages/en.py +0 -0
  25. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/languages/zh_cn.py +0 -0
  26. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/languages/zh_tw.py +0 -0
  27. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/en/LC_MESSAGES/txt2ebook.mo +0 -0
  28. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/en/LC_MESSAGES/txt2ebook.po +0 -0
  29. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/txt2ebook.pot +0 -0
  30. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/zh-cn/LC_MESSAGES/txt2ebook.mo +0 -0
  31. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/zh-cn/LC_MESSAGES/txt2ebook.po +0 -0
  32. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/zh-tw/LC_MESSAGES/txt2ebook.mo +0 -0
  33. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/locales/zh-tw/LC_MESSAGES/txt2ebook.po +0 -0
  34. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/models/__init__.py +0 -0
  35. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/models/book.py +0 -0
  36. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/models/chapter.py +0 -0
  37. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/models/volume.py +0 -0
  38. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/parser.py +0 -0
  39. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/tokenizer.py +0 -0
  40. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/txt2ebook.py +0 -0
  41. {txt2ebook-0.1.86 → txt2ebook-0.1.90}/src/txt2ebook/zh_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: txt2ebook
3
- Version: 0.1.86
3
+ Version: 0.1.90
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
@@ -19,8 +19,8 @@ Classifier: Programming Language :: Python :: 3.8
19
19
  Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Programming Language :: Python :: 3 :: Only
23
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3 :: Only
24
24
  Classifier: Topic :: Text Processing
25
25
  Classifier: Topic :: Text Processing :: Filters
26
26
  Classifier: Topic :: Text Processing :: General
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "txt2ebook"
3
- version = "0.1.86"
3
+ version = "0.1.90"
4
4
  description = "CLI tool to convert txt file to ebook format"
5
5
  authors = ["Kian-Meng Ang <kianmeng@cpan.org>"]
6
6
  license = "AGPL-3.0-or-later"
@@ -42,21 +42,6 @@ typst = "^0.10.0"
42
42
  importlib-resources = "^6.1.1"
43
43
  pylatex = "^1.4.2"
44
44
 
45
- [tool.poetry.dev-dependencies]
46
- bandit = "^1.7.1"
47
- mypy = "^0.910"
48
- pep8-naming = "^0.12.1"
49
- pre-commit = "^2.20.0"
50
- pylint = "^2.11.1"
51
- pytest = "^7.0"
52
- pytest-cov = "^3.0.0"
53
- pytest-randomly = "^3.12.0"
54
- pytest-xdist = "^3.2.1"
55
- tox = "^3.25.0"
56
- tox-poetry = "^0.4.1"
57
- tox-pyenv = "^1.1.0"
58
- vulture = "^2.3"
59
-
60
45
  [tool.poetry.scripts]
61
46
  txt2ebook = 'txt2ebook.txt2ebook:main'
62
47
  tte = 'txt2ebook.txt2ebook:main'
@@ -65,6 +50,21 @@ tte = 'txt2ebook.txt2ebook:main'
65
50
  babel = "^2.12.1"
66
51
  scripttest = "^1.3"
67
52
  flake8-simplify = "^0.21.0"
53
+ nox = "^2024.4.15"
54
+ nox-poetry = "^1.0.3"
55
+ tox-poetry = "^0.5.0"
56
+ tox-pyenv = "^1.1.0"
57
+ tox = "~3.25.0"
58
+ vulture = "^2.11"
59
+ mypy = "^1.10.0"
60
+ bandit = "~1.7.1"
61
+ pep8-naming = "^0.13.3"
62
+ pylint = "^3.2.0"
63
+ pytest = "^8.2.0"
64
+ pytest-cov = "^5.0.0"
65
+ pytest-randomly = "^3.15.0"
66
+ pytest-xdist = "^3.6.1"
67
+ pre-commit = "~2.20"
68
68
 
69
69
  [build-system]
70
70
  build-backend = "poetry.core.masonry.api"
@@ -22,7 +22,7 @@ import sys
22
22
 
23
23
  logger = logging.getLogger(__name__)
24
24
 
25
- __version__ = "0.1.86"
25
+ __version__ = "0.1.90"
26
26
 
27
27
 
28
28
  def setup_logger(config: argparse.Namespace) -> None:
@@ -130,10 +130,10 @@ class TexWriter(BaseWriter):
130
130
  def _process_paragraph(self, paragraph) -> str:
131
131
  par = paragraph.strip()
132
132
  for keyword in self.config.index_keyword:
133
- par = par.replace(keyword, rf"\index{{{keyword}}}")
133
+ par = par.replace(keyword, rf"\index{{{keyword}}}\underline{{{keyword}}}")
134
134
 
135
135
  for keyword in self.book.index:
136
- par = par.replace(keyword, rf"\index{{{keyword}}}")
136
+ par = par.replace(keyword, rf"\index{{{keyword}}}\underline{{{keyword}}}")
137
137
 
138
138
  return par
139
139
 
File without changes
File without changes