GameSentenceMiner 2.7.0__py3-none-any.whl → 2.7.1__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.
@@ -201,6 +201,7 @@ class ConfigApp:
201
201
  show_screenshot_buttons=self.show_screenshot_button.get(),
202
202
  multi_line_line_break=self.multi_line_line_break.get(),
203
203
  multi_line_sentence_storage_field=self.multi_line_sentence_storage_field.get(),
204
+ ocr_sends_to_clipboard=self.ocr_sends_to_clipboard.get(),
204
205
  ),
205
206
  ai=Ai(
206
207
  enabled=self.ai_enabled.get(),
@@ -970,6 +971,12 @@ class ConfigApp:
970
971
  self.multi_line_sentence_storage_field.grid(row=self.current_row, column=1)
971
972
  self.add_label_and_increment_row(advanced_frame, "Field in Anki for storing the multi-line sentence temporarily.", row=self.current_row, column=2)
972
973
 
974
+ ttk.Label(advanced_frame, text="OCR Sends to Clipboard:").grid(row=self.current_row, column=0, sticky='W')
975
+ self.ocr_sends_to_clipboard = tk.BooleanVar(value=self.settings.advanced.ocr_sends_to_clipboard)
976
+ ttk.Checkbutton(advanced_frame, variable=self.ocr_sends_to_clipboard).grid(row=self.current_row, column=1, sticky='W')
977
+ self.add_label_and_increment_row(advanced_frame, "Enable to send OCR results to clipboard.", row=self.current_row, column=2)
978
+
979
+
973
980
 
974
981
  @new_tab
975
982
  def create_ai_tab(self):
@@ -177,6 +177,7 @@ class Advanced:
177
177
  show_screenshot_buttons: bool = False
178
178
  multi_line_line_break: str = '<br>'
179
179
  multi_line_sentence_storage_field: str = ''
180
+ ocr_sends_to_clipboard: bool = True
180
181
 
181
182
  @dataclass_json
182
183
  @dataclass
@@ -184,6 +184,9 @@ def text_callback(text, rectangle):
184
184
  engine=ocr2)
185
185
  if ":gsm_prefix:" in text:
186
186
  text = text.split(":gsm_prefix:")[1]
187
+ if get_config().advanced.ocr_sends_to_clipboard:
188
+ import pyperclip
189
+ pyperclip.copy(text)
187
190
  websocket_server_thread.send_text(text, line_time)
188
191
  except json.JSONDecodeError:
189
192
  print("Invalid JSON received.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.7.0
3
+ Version: 2.7.1
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
@@ -117,6 +117,12 @@ setting it up.
117
117
 
118
118
  If you run into issues ask in my [Discord](https://discord.gg/yP8Qse6bb8), or make an issue here.
119
119
 
120
+ ## Acknowledgements
121
+
122
+ - [OwOCR](https://github.com/AuroraWright/owocr) for their amazing implementation of OCR that I was able to integrate into GSM.
123
+ - [chaiNNer](https://github.com/chaiNNer-org/chaiNNer) for the idea of installing python in an electron app.
124
+ - [OBS](https://obsproject.com/) and [FFMPEG](https://ffmpeg.org/), without these two, GSM would not be a thing.
125
+
120
126
  ## Donations
121
127
 
122
128
  If you've benefited from this or any of my other projects, please consider supporting my work
@@ -1,7 +1,7 @@
1
1
  GameSentenceMiner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  GameSentenceMiner/anki.py,sha256=9E9GRR2zylW3Gp4PNlwYS_Nn-mhojZkjFqfYlTazte8,14068
3
- GameSentenceMiner/config_gui.py,sha256=AifBgNaeWcBhuFoQz8QJ4srM1Ck8KjHmnOmI-aRcFHg,66965
4
- GameSentenceMiner/configuration.py,sha256=a1-McjdgQN_EemhDRFZBeGGoviAWyrhejXjXYGl-MFg,20365
3
+ GameSentenceMiner/config_gui.py,sha256=-1PanqdtTKiwItxeyt0piXrWo7lGMWwrC4iSo4NiPz4,67521
4
+ GameSentenceMiner/configuration.py,sha256=TIL8yCr-FOScCA4OJt-BAtjEb50wtqFFrpmN-UlaQh4,20405
5
5
  GameSentenceMiner/ffmpeg.py,sha256=iUj-1uLLJla6jjGDKuc1FbcXjMogYpoDhrQqCbQFcWA,13359
6
6
  GameSentenceMiner/gametext.py,sha256=brybSe7hRy13JAUwuSs6WqOPFH6to0detbIPVhnkinA,9062
7
7
  GameSentenceMiner/gsm.py,sha256=fcczDPDcC0vDLAPZtIY64mU3Di3RZjR40tuLIiwB5lE,24827
@@ -22,7 +22,7 @@ GameSentenceMiner/downloader/download_tools.py,sha256=mI1u_FGBmBqDIpCH3jOv8DOoZ3
22
22
  GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  GameSentenceMiner/ocr/ocrconfig.py,sha256=hTROOZ3On2HngXKxwQFZvnr5AxlmlMV0mPxv-F3NbMg,6476
24
24
  GameSentenceMiner/ocr/owocr_area_selector.py,sha256=6MQPCSAhuyOSEDEgc-w6jVdsELjxstzI2Zhz0JBkG8g,11703
25
- GameSentenceMiner/ocr/owocr_helper.py,sha256=Rlv_jIyCNSP1-Im-8e49nQYx3bVXsxl7Qp4KaNGMYfk,11577
25
+ GameSentenceMiner/ocr/owocr_helper.py,sha256=_ah94hyLIyvHzAbPskkwwBL-abIE-CppOGgm5pjQlPw,11708
26
26
  GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
27
27
  GameSentenceMiner/owocr/owocr/__main__.py,sha256=nkaZGTCZsPDKcej2O0S1SHkyzHJEboTUBc9izyGPvqw,92
28
28
  GameSentenceMiner/owocr/owocr/config.py,sha256=738QCJHEWpFhMh966plOcXYWwcshSiRsxjjIwldeTtI,7461
@@ -34,9 +34,9 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
34
34
  GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1YqgE9Oc,1681
35
35
  GameSentenceMiner/vad/vosk_helper.py,sha256=125X8C9NxFPlWWpoNsbOnEqKx8RCjXN109zNx_QXhyg,6070
36
36
  GameSentenceMiner/vad/whisper_helper.py,sha256=JJ-iltCh813XdjyEw0Wn5DaErf6PDqfH0Efu1Md8cIY,3543
37
- gamesentenceminer-2.7.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
38
- gamesentenceminer-2.7.0.dist-info/METADATA,sha256=ZCHouoQWG1EnISuEo3_KLs_aKoQl45sxjXuUo_JLBzA,5467
39
- gamesentenceminer-2.7.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
40
- gamesentenceminer-2.7.0.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
41
- gamesentenceminer-2.7.0.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
42
- gamesentenceminer-2.7.0.dist-info/RECORD,,
37
+ gamesentenceminer-2.7.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
38
+ gamesentenceminer-2.7.1.dist-info/METADATA,sha256=nTXm-64PukVY01SRteJ2ygsZmyuL4881dEvMnkMaP3Y,5839
39
+ gamesentenceminer-2.7.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
40
+ gamesentenceminer-2.7.1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
41
+ gamesentenceminer-2.7.1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
42
+ gamesentenceminer-2.7.1.dist-info/RECORD,,