GameSentenceMiner 2.7.13__py3-none-any.whl → 2.7.15__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.
@@ -283,7 +283,7 @@ class ScreenSelector:
283
283
  win_w = window_geom_to_save['width']
284
284
  win_h = window_geom_to_save['height']
285
285
  # Basic check for valid dimensions needed for percentage calculation
286
- if win_w > 0 and win_h > 0 and win_h > 0 and win_t > 0:
286
+ if win_w > 0 and win_h > 0 and win_h >= 0 and win_t >= 0:
287
287
  save_coord_system = COORD_SYSTEM_PERCENTAGE
288
288
  win_l = max(0, window_geom_to_save['left'])
289
289
  win_t = max(0, window_geom_to_save['top'])
@@ -306,7 +306,7 @@ class ScreenSelector:
306
306
  coords_to_save = []
307
307
 
308
308
  # --- Convert absolute pixels to the chosen system ---
309
- if save_coord_system == COORD_SYSTEM_PERCENTAGE and window_geom_to_save and 0 <= win_l < monitor_dict['left'] and 0 <= win_t < monitor_dict['top']:
309
+ if save_coord_system == COORD_SYSTEM_PERCENTAGE and window_geom_to_save and 0 <= win_l <= monitor_dict['width'] and 0 <= win_t <= monitor_dict['height']:
310
310
  # Calculate percentages (handle potential float precision issues if necessary)
311
311
  x_pct = (x_abs - win_l) / win_w
312
312
  y_pct = (y_abs - win_t) / win_h
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.7.13
3
+ Version: 2.7.15
4
4
  Summary: A tool for mining sentences from games. Update: Multi-Line Mining! Fixed!
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -34,6 +34,7 @@ Requires-Dist: numpy
34
34
  Requires-Dist: pystray
35
35
  Requires-Dist: pywin32; sys_platform == "win32"
36
36
  Requires-Dist: google-generativeai
37
+ Requires-Dist: pygetwindow; sys_platform == "win32"
37
38
  Dynamic: license-file
38
39
 
39
40
  # Game Sentence Miner
@@ -23,7 +23,7 @@ GameSentenceMiner/downloader/download_tools.py,sha256=mI1u_FGBmBqDIpCH3jOv8DOoZ3
23
23
  GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=zagsB4UD9mmZX_r6dFBCXZqdDa0XGk-RvIqbKoPB9lQ,1932
25
25
  GameSentenceMiner/ocr/ocrconfig.py,sha256=hTROOZ3On2HngXKxwQFZvnr5AxlmlMV0mPxv-F3NbMg,6476
26
- GameSentenceMiner/ocr/owocr_area_selector.py,sha256=bCgusYXe9ibCsf56PlU301aNfDA2PDKasi78ox0IGbk,46856
26
+ GameSentenceMiner/ocr/owocr_area_selector.py,sha256=b_Vo56etTxirqxOG3FYCrs0HQ_3iCLQNDU0h4RqUAY0,46864
27
27
  GameSentenceMiner/ocr/owocr_helper.py,sha256=Rd1wcVtJy0N6ySn1p7-08hLYA9iPkts12zGJESoEewI,15126
28
28
  GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
29
29
  GameSentenceMiner/owocr/owocr/__main__.py,sha256=r8MI6RAmbkTWqOJ59uvXoDS7CSw5jX5war9ULGWELrA,128
@@ -36,9 +36,9 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
36
36
  GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1YqgE9Oc,1681
37
37
  GameSentenceMiner/vad/vosk_helper.py,sha256=125X8C9NxFPlWWpoNsbOnEqKx8RCjXN109zNx_QXhyg,6070
38
38
  GameSentenceMiner/vad/whisper_helper.py,sha256=JJ-iltCh813XdjyEw0Wn5DaErf6PDqfH0Efu1Md8cIY,3543
39
- gamesentenceminer-2.7.13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
40
- gamesentenceminer-2.7.13.dist-info/METADATA,sha256=O0-SbnS2VsaCS9Erd-r0ufjQqly71axdeILxm4k61LE,5840
41
- gamesentenceminer-2.7.13.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
42
- gamesentenceminer-2.7.13.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
43
- gamesentenceminer-2.7.13.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
44
- gamesentenceminer-2.7.13.dist-info/RECORD,,
39
+ gamesentenceminer-2.7.15.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
40
+ gamesentenceminer-2.7.15.dist-info/METADATA,sha256=okIovNuhXHCL0qVhK11wB9HXbORapOtCL0iuhZnzM8I,5892
41
+ gamesentenceminer-2.7.15.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
42
+ gamesentenceminer-2.7.15.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
43
+ gamesentenceminer-2.7.15.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
44
+ gamesentenceminer-2.7.15.dist-info/RECORD,,