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.
Files changed (36) hide show
  1. io4it-0.0.0.13/PKG-INFO +21 -0
  2. io4it-0.0.0.13/io4it.egg-info/PKG-INFO +21 -0
  3. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/SOURCES.txt +0 -1
  4. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/ocr_function/word_converter.py +8 -1
  5. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/setup.py +1 -1
  6. io4it-0.0.0.12.10/License.txt +0 -6
  7. io4it-0.0.0.12.10/PKG-INFO +0 -9
  8. io4it-0.0.0.12.10/io4it.egg-info/PKG-INFO +0 -9
  9. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/dependency_links.txt +0 -0
  10. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/entry_points.txt +0 -0
  11. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/namespace_packages.txt +0 -0
  12. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/requires.txt +0 -0
  13. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/io4it.egg-info/top_level.txt +0 -0
  14. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/__init__.py +0 -0
  15. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
  16. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
  17. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWPathPropagator.py +0 -0
  18. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +0 -0
  19. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
  20. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
  21. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
  22. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
  23. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
  24. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui +0 -0
  25. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
  26. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
  27. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/category.svg +0 -0
  28. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
  29. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/in_or_out.png +0 -0
  30. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
  31. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
  32. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
  33. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
  34. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
  35. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/orangecontrib/__init__.py +0 -0
  36. {io4it-0.0.0.12.10 → io4it-0.0.0.13}/setup.cfg +0 -0
@@ -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"
@@ -1,4 +1,3 @@
1
- License.txt
2
1
  setup.cfg
3
2
  setup.py
4
3
  io4it.egg-info/PKG-INFO
@@ -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",pdf_file)
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)
@@ -36,7 +36,7 @@ class CustomInstall(install):
36
36
 
37
37
  # Configuration
38
38
  NAME = "io4it"
39
- VERSION = "0.0.0.12.10"
39
+ VERSION = "0.0.0.13"
40
40
 
41
41
  INSTALL_REQUIRES = [
42
42
  "boto3",
@@ -1,6 +0,0 @@
1
- THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY WHATSOEVER.
2
-
3
- If you use or redistribute this software, you are permitted to do so
4
- under the terms of GNU [GPL-3.0]+ license.
5
-
6
- [GPL-3.0]: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: io4it
3
- Version: 0.0.0.12.10
4
- Home-page:
5
- Author:
6
- Author-email:
7
- Keywords: orange3 add-on
8
- Provides-Extra: cuda
9
- License-File: License.txt
@@ -1,9 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: io4it
3
- Version: 0.0.0.12.10
4
- Home-page:
5
- Author:
6
- Author-email:
7
- Keywords: orange3 add-on
8
- Provides-Extra: cuda
9
- License-File: License.txt
File without changes