GameSentenceMiner 2.14.12__py3-none-any.whl → 2.14.14__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.
@@ -476,7 +476,6 @@ def add_ss_hotkey(ss_hotkey="ctrl+shift+g"):
476
476
  img = run.apply_ocr_config_to_image(img, ocr_config, is_secondary=True)
477
477
  do_second_ocr("", datetime.now(), img, TextFiltering(lang=get_ocr_language()), ignore_furigana_filter=True, ignore_previous_result=True)
478
478
 
479
- secret_ss_hotkey = "F14"
480
479
  filtering = TextFiltering(lang=get_ocr_language())
481
480
  cropper = ScreenCropper()
482
481
  def capture():
@@ -492,32 +491,25 @@ def add_ss_hotkey(ss_hotkey="ctrl+shift+g"):
492
491
  do_second_ocr("", datetime.now(), img_bytes, filtering, ignore_furigana_filter=True, ignore_previous_result=True)
493
492
  hotkey_reg = None
494
493
  secondary_hotkey_reg = None
495
- secret_hotkey_reg = None
496
494
  try:
497
495
  hotkey_reg = keyboard.add_hotkey(ss_hotkey, capture)
498
496
  if not manual:
499
497
  secondary_hotkey_reg = keyboard.add_hotkey(get_ocr_manual_ocr_hotkey().lower(), ocr_secondary_rectangles)
500
- if "f13" in ss_hotkey.lower():
501
- secret_hotkey_reg = keyboard.add_hotkey(secret_ss_hotkey, capture_main_monitor)
502
498
  print(f"Press {ss_hotkey} to take a screenshot.")
503
499
  except Exception as e:
504
500
  if hotkey_reg:
505
501
  keyboard.remove_hotkey(hotkey_reg)
506
502
  if secondary_hotkey_reg:
507
503
  keyboard.remove_hotkey(secondary_hotkey_reg)
508
- if secret_hotkey_reg:
509
- keyboard.remove_hotkey(secret_hotkey_reg)
510
504
  logger.error(f"Error setting up screenshot hotkey with keyboard, Attempting Backup: {e}")
511
505
  logger.debug(e)
512
506
  pynput_hotkey = ss_hotkey.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
513
- secret_ss_hotkey = secret_hotkey_reg.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
514
- secondary_ss_hotkey = secondary_hotkey_reg.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
507
+ secondary_ss_hotkey = get_ocr_manual_ocr_hotkey().lower().replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
515
508
  try:
516
509
  from pynput import keyboard as pynput_keyboard
517
510
  listener = pynput_keyboard.GlobalHotKeys({
518
511
  pynput_hotkey: capture,
519
512
  secondary_ss_hotkey: ocr_secondary_rectangles,
520
- secret_ss_hotkey: capture_main_monitor
521
513
  })
522
514
  listener.start()
523
515
  print(f"Press {pynput_hotkey} to take a screenshot.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.14.12
3
+ Version: 2.14.14
4
4
  Summary: A tool for mining sentences from games. Update: Overlay?
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -22,7 +22,7 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
22
22
  GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=QyBarjb6Wjt-oyor1sIT9hG-KrGdi6wODLyCrHXun6E,6008
23
23
  GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
24
24
  GameSentenceMiner/ocr/owocr_area_selector.py,sha256=Rm1_nuZotJhfOfoJ_3mesh9udtOBjYqKhnAvSief6fo,29181
25
- GameSentenceMiner/ocr/owocr_helper.py,sha256=2Nc67PiEUANemfN07ktNYRyMY7bG2FAl6xuj7n0Z_8k,28938
25
+ GameSentenceMiner/ocr/owocr_helper.py,sha256=vquG3O1-2LdAuSt9yQ5hFzCv2E5rDnfqw7eaY33zsYM,28502
26
26
  GameSentenceMiner/ocr/ss_picker.py,sha256=0IhxUdaKruFpZyBL-8SpxWg7bPrlGpy3lhTcMMZ5rwo,5224
27
27
  GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
28
28
  GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
@@ -71,9 +71,9 @@ GameSentenceMiner/web/templates/index.html,sha256=VrhrkQKcOAPuoWRcilFLDXjvNf6WTO
71
71
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
72
72
  GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
73
73
  GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- gamesentenceminer-2.14.12.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
- gamesentenceminer-2.14.12.dist-info/METADATA,sha256=hnLNvjASNYxu9EBuyqAjcf_Z63_4JMhcT8Y8QXjtPKo,7303
76
- gamesentenceminer-2.14.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
- gamesentenceminer-2.14.12.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
- gamesentenceminer-2.14.12.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
- gamesentenceminer-2.14.12.dist-info/RECORD,,
74
+ gamesentenceminer-2.14.14.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
75
+ gamesentenceminer-2.14.14.dist-info/METADATA,sha256=QEv9R9eld2nBjawnFBZO_Ayg9pAsIhqkKm5vnbb1ttQ,7303
76
+ gamesentenceminer-2.14.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
77
+ gamesentenceminer-2.14.14.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
78
+ gamesentenceminer-2.14.14.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
79
+ gamesentenceminer-2.14.14.dist-info/RECORD,,