comic-ocr-reader 0.0.2__tar.gz → 0.0.3__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.
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/PKG-INFO +1 -1
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/pyproject.toml +1 -1
- comic_ocr_reader-0.0.2/src/comic_ocr_reader/main.py → comic_ocr_reader-0.0.3/src/comic_ocr_reader/__main__.py +34 -33
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.gitignore +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/comic-ocr.iml +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/inspectionProfiles/Project_Default.xml +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/misc.xml +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/vcs.xml +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/LICENSE.MD +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/LICENSE.md +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/README.md +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/readme.md +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/requirements.txt +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/__init__.py +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/filepaths.py +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/functions/__init__.py +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/html_utils/__init__.py +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/html_utils/html_template.html +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/img_utils/__init__.py +0 -0
- {comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/tests/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comic_ocr_reader
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: A Python package made for processing Japanese manga into a format usable with web-based on-screen dictionaries like Yomitan.
|
|
5
5
|
Project-URL: Homepage, https://github.com/HagantaRG/comic-ocr
|
|
6
6
|
Author-email: HRG <rhaganta@gmail.com>
|
|
@@ -67,37 +67,38 @@ def main(
|
|
|
67
67
|
f.flush()
|
|
68
68
|
return True
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if
|
|
94
|
-
|
|
70
|
+
if __name__ == "__main__":
|
|
71
|
+
while True:
|
|
72
|
+
try:
|
|
73
|
+
user_input: str = input(
|
|
74
|
+
f"Hello! Please type in \"help\" to see a list of commands. Otherwise, please type in a valid command.\n"
|
|
75
|
+
)
|
|
76
|
+
user_input = user_input.strip()
|
|
77
|
+
match user_input:
|
|
78
|
+
case "help":
|
|
79
|
+
print(
|
|
80
|
+
"""
|
|
81
|
+
The valid commands are:
|
|
82
|
+
- folder
|
|
83
|
+
Allows you to specify a folder containing the image files for the manga you want to process.
|
|
84
|
+
Also optionally allows you to give the manga a name. Otherwise the folder name will be used.
|
|
85
|
+
Supported file formats for images in folder: .jpg, .jpeg, .png, .bmp, .tiff
|
|
86
|
+
And of course,
|
|
87
|
+
- help
|
|
88
|
+
Which you are currently using.
|
|
89
|
+
"""
|
|
90
|
+
)
|
|
91
|
+
case "folder":
|
|
92
|
+
target_folder: str = input("Please input a target folder.\n")
|
|
93
|
+
if os.path.isdir(target_folder):
|
|
94
|
+
if main(target_folder):
|
|
95
|
+
print("Success! Please press Ctrl+C to exit.")
|
|
96
|
+
else:
|
|
97
|
+
print("Something went wrong.")
|
|
95
98
|
else:
|
|
96
|
-
print("
|
|
97
|
-
|
|
98
|
-
print("
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
print("\nGoodbye!")
|
|
103
|
-
exit(0)
|
|
99
|
+
print("Please input a valid folder.")
|
|
100
|
+
case _:
|
|
101
|
+
print("That was not a valid command.")
|
|
102
|
+
except KeyboardInterrupt:
|
|
103
|
+
print("\nGoodbye!")
|
|
104
|
+
exit(0)
|
|
File without changes
|
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/inspectionProfiles/Project_Default.xml
RENAMED
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/.idea/inspectionProfiles/profiles_settings.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/functions/__init__.py
RENAMED
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/html_utils/__init__.py
RENAMED
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/html_utils/html_template.html
RENAMED
|
File without changes
|
{comic_ocr_reader-0.0.2 → comic_ocr_reader-0.0.3}/src/comic_ocr_reader/img_utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|