io4it 0.0.0.12.10__tar.gz → 0.0.0.13__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.
- io4it-0.0.0.13/PKG-INFO +21 -0
- io4it-0.0.0.13/io4it.egg-info/PKG-INFO +21 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/SOURCES.txt +0 -1
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/ocr_function/word_converter.py +8 -1
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/setup.py +1 -1
- io4it-0.0.0.12.10/License.txt +0 -6
- io4it-0.0.0.12.10/PKG-INFO +0 -9
- io4it-0.0.0.12.10/io4it.egg-info/PKG-INFO +0 -9
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/dependency_links.txt +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/entry_points.txt +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/namespace_packages.txt +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/requires.txt +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/top_level.txt +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/__init__.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWPathPropagator.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/category.svg +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/in_or_out.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/__init__.py +0 -0
- {io4it-0.0.0.12.10 → io4it-0.0.0.13}/setup.cfg +0 -0
io4it-0.0.0.13/PKG-INFO
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: io4it
|
|
3
|
+
Version: 0.0.0.13
|
|
4
|
+
Home-page:
|
|
5
|
+
Author:
|
|
6
|
+
Author-email:
|
|
7
|
+
Keywords: orange3 add-on
|
|
8
|
+
Requires-Dist: boto3
|
|
9
|
+
Requires-Dist: docling
|
|
10
|
+
Requires-Dist: docling-core
|
|
11
|
+
Requires-Dist: speechbrain
|
|
12
|
+
Requires-Dist: whisper
|
|
13
|
+
Requires-Dist: whisper-openai
|
|
14
|
+
Requires-Dist: pyannote.audio
|
|
15
|
+
Requires-Dist: pyannote.core
|
|
16
|
+
Requires-Dist: wave
|
|
17
|
+
Requires-Dist: scikit-learn
|
|
18
|
+
Provides-Extra: cuda
|
|
19
|
+
Requires-Dist: torch==2.6.0+cu126; extra == "cuda"
|
|
20
|
+
Requires-Dist: torchvision==0.17.2+cu126; extra == "cuda"
|
|
21
|
+
Requires-Dist: torchaudio==2.6.0+cu126; extra == "cuda"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: io4it
|
|
3
|
+
Version: 0.0.0.13
|
|
4
|
+
Home-page:
|
|
5
|
+
Author:
|
|
6
|
+
Author-email:
|
|
7
|
+
Keywords: orange3 add-on
|
|
8
|
+
Requires-Dist: boto3
|
|
9
|
+
Requires-Dist: docling
|
|
10
|
+
Requires-Dist: docling-core
|
|
11
|
+
Requires-Dist: speechbrain
|
|
12
|
+
Requires-Dist: whisper
|
|
13
|
+
Requires-Dist: whisper-openai
|
|
14
|
+
Requires-Dist: pyannote.audio
|
|
15
|
+
Requires-Dist: pyannote.core
|
|
16
|
+
Requires-Dist: wave
|
|
17
|
+
Requires-Dist: scikit-learn
|
|
18
|
+
Provides-Extra: cuda
|
|
19
|
+
Requires-Dist: torch==2.6.0+cu126; extra == "cuda"
|
|
20
|
+
Requires-Dist: torchvision==0.17.2+cu126; extra == "cuda"
|
|
21
|
+
Requires-Dist: torchaudio==2.6.0+cu126; extra == "cuda"
|
|
@@ -49,6 +49,7 @@ def convert_pdf_structure(input_dir: str, output_dir: str,ignore_exsting_out_put
|
|
|
49
49
|
return f"Error: The input directory '{input_dir}' does not exist or is not a directory. "
|
|
50
50
|
|
|
51
51
|
for pdf_file in input_path.rglob("*.pdf"): # Recursively search for .pdf and .PDF files
|
|
52
|
+
print("traitement de ",str(pdf_file))
|
|
52
53
|
relative_path = pdf_file.relative_to(input_path) # Get relative path from input root
|
|
53
54
|
new_file_path = output_path / relative_path.with_suffix(".docx") # Change extension to .docx
|
|
54
55
|
|
|
@@ -56,7 +57,7 @@ def convert_pdf_structure(input_dir: str, output_dir: str,ignore_exsting_out_put
|
|
|
56
57
|
|
|
57
58
|
if ignore_exsting_out_put:
|
|
58
59
|
if os.path.exists(enable_long_path(str(new_file_path))):
|
|
59
|
-
print("ignoring",
|
|
60
|
+
print("ignoring",enable_long_path(str(new_file_path)))
|
|
60
61
|
continue
|
|
61
62
|
|
|
62
63
|
|
|
@@ -185,6 +186,7 @@ def convert_pdf_to_a4(input_pdf, output_pdf):
|
|
|
185
186
|
try:
|
|
186
187
|
# Dimensions A4 en points
|
|
187
188
|
a4_width, a4_height = fitz.paper_size("a4")
|
|
189
|
+
a3_width, a3_height = fitz.paper_size("a3")
|
|
188
190
|
doc = fitz.open(input_pdf)
|
|
189
191
|
new_doc = fitz.open()
|
|
190
192
|
|
|
@@ -196,6 +198,11 @@ def convert_pdf_to_a4(input_pdf, output_pdf):
|
|
|
196
198
|
new_doc.insert_pdf(doc, from_page=page.number, to_page=page.number)
|
|
197
199
|
continue
|
|
198
200
|
|
|
201
|
+
# Si la page est déjà en A3 (tolérance de 1 point)
|
|
202
|
+
if abs(page_w - a3_width) < 1 and abs(page_h - a3_height) < 1:
|
|
203
|
+
new_doc.insert_pdf(doc, from_page=page.number, to_page=page.number)
|
|
204
|
+
continue
|
|
205
|
+
|
|
199
206
|
# Définition de la transformation selon l'orientation de la page
|
|
200
207
|
if page_w > page_h: # Paysage
|
|
201
208
|
# Après rotation, les dimensions seront inversées (largeur <-> hauteur)
|
io4it-0.0.0.12.10/License.txt
DELETED
io4it-0.0.0.12.10/PKG-INFO
DELETED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|