Anchor-annotator 0.8.0__py3-none-any.whl → 0.8.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Anchor_annotator
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: Anchor annotator is a program for inspecting corpora for the Montreal Forced Aligner and correcting transcriptions and pronunciations.
5
5
  Home-page: https://github.com/MontrealCorpusTools/Anchor-annotator
6
6
  Author: Montreal Corpus Tools
@@ -1,22 +1,22 @@
1
1
  anchor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  anchor/__main__.py,sha256=5ufG8lcx2x1am-04xI991AG7saJd24dxPw5JzjmB878,45
3
- anchor/_version.py,sha256=vspFLRfYI6gAAN7kyihey2lhPos0jxqKaNDWFlKPlmU,411
3
+ anchor/_version.py,sha256=Z8fNqmfsoA07nbVEewR90wZCgaN6eyDwPwgtgc2KIak,411
4
4
  anchor/command_line.py,sha256=EucG805HyWk_zkMO9RXv9Yj0I0JVdDLZb1_DX2_ISjM,503
5
5
  anchor/db.py,sha256=LlZzAy4bjmJIu0v4ev5Qjg_Fh2n9sMsKI2nAY1pwd0A,5057
6
6
  anchor/main.py,sha256=3CN6wlIzdWjGxsYRSIIuqB2jQZPUdLX9PlQSRMSQ5aI,134355
7
7
  anchor/models.py,sha256=0-CRXwRlLnFNelj0pbhfVTLTXAxfj1eJvJ8qEQAGrn4,98864
8
8
  anchor/plot.py,sha256=KCSXgyAT5v2BpsX6MvPJuaq5aphTzfYvZ69jLzvcM0k,117879
9
9
  anchor/resources_rc.py,sha256=5eFkwVBdDzfc6rkcC-HSzy8EYDmxiMXnYucgAoGVGsA,3599114
10
- anchor/settings.py,sha256=H8RBeB-MhjE7adrwUcxOTZv2pPkMfgaIwCdxb8f012Q,52396
10
+ anchor/settings.py,sha256=tQkbNdOTRQbRboWkdkkriLmQcGlBTNKYB_GYrNKhqmI,53029
11
11
  anchor/ui_corpus_manager.py,sha256=e3ybOd4UdYarrLBATxI8vIFnioa4R_BHrbsEz5mJ5eA,8564
12
12
  anchor/ui_error_dialog.py,sha256=HKbjGT_jtdb9jfn9THQMbl1fmcdWyjYDazM4hCwZ5Yo,3931
13
- anchor/ui_main_window.py,sha256=qPHaJWMd4k6nVIelcBRqNcATBuMbkv4j2kOpggG4DoY,40191
13
+ anchor/ui_main_window.py,sha256=E1j35ICX4Q56_KlhETk3325CrjP5oCAubxrWTKRx9ks,40198
14
14
  anchor/ui_preferences.py,sha256=_1U67al_FoTjVizcK1He4JKBEqfmh3KxUo0UEB7kt5Q,43822
15
15
  anchor/undo.py,sha256=fDy8PA2Rckd9_dsa_lM_ohvQJS-l-VdQwB_P0i-Kvbw,33098
16
- anchor/widgets.py,sha256=6opesi2nGs4_hv8NWdha3e2kUW9hlRAzbo-6gcMdMG0,159347
16
+ anchor/widgets.py,sha256=ELjMfbwmNIQBeDFvuCuhFGn5POO1CjtOR5dk8z_CZU4,159479
17
17
  anchor/workers.py,sha256=T81tr2wgQh5oLOXZteGfccgvSwXJrJbk3SSmTLHdnmA,191386
18
- Anchor_annotator-0.8.0.dist-info/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
19
- Anchor_annotator-0.8.0.dist-info/METADATA,sha256=FWSJbc9J1GcvsZF9hTHTnRTtLH_Alv5rbTwmXtPr3Gg,1500
20
- Anchor_annotator-0.8.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
21
- Anchor_annotator-0.8.0.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
22
- Anchor_annotator-0.8.0.dist-info/RECORD,,
18
+ Anchor_annotator-0.8.1.dist-info/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
19
+ Anchor_annotator-0.8.1.dist-info/METADATA,sha256=O5jmY1taeKkWSgdj-FTIpAcGfR8W6Xk4DPSzoB-oPvU,1500
20
+ Anchor_annotator-0.8.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
21
+ Anchor_annotator-0.8.1.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
22
+ Anchor_annotator-0.8.1.dist-info/RECORD,,
anchor/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.8.0'
16
- __version_tuple__ = version_tuple = (0, 8, 0)
15
+ __version__ = version = '0.8.1'
16
+ __version_tuple__ = version_tuple = (0, 8, 1)
anchor/settings.py CHANGED
@@ -181,8 +181,8 @@ class AnchorSettings(QtCore.QSettings):
181
181
  AnchorSettings.ZOOM_IN_KEYBIND: "Ctrl+I",
182
182
  AnchorSettings.ZOOM_OUT_KEYBIND: "Ctrl+O",
183
183
  AnchorSettings.ZOOM_TO_SELECTION_KEYBIND: "Ctrl+N",
184
- AnchorSettings.PAN_LEFT_KEYBIND: "LeftArrow",
185
- AnchorSettings.PAN_RIGHT_KEYBIND: "RightArrow",
184
+ AnchorSettings.PAN_LEFT_KEYBIND: "Left",
185
+ AnchorSettings.PAN_RIGHT_KEYBIND: "Right",
186
186
  AnchorSettings.UNDO_KEYBIND: "Ctrl+Z",
187
187
  AnchorSettings.REDO_KEYBIND: "Ctrl+Shift+Z",
188
188
  AnchorSettings.RESULTS_PER_PAGE: 100,
@@ -251,6 +251,27 @@ class AnchorSettings(QtCore.QSettings):
251
251
  "Transcribed phones": AnchorSettings.TIER_TRANSCRIBED_PHONES_VISIBLE,
252
252
  }
253
253
 
254
+ @property
255
+ def all_keybinds(self):
256
+ return {
257
+ QtGui.QKeySequence(self.value(x))
258
+ for x in [
259
+ self.DELETE_KEYBIND,
260
+ self.MERGE_KEYBIND,
261
+ self.PAN_LEFT_KEYBIND,
262
+ self.PAN_RIGHT_KEYBIND,
263
+ self.PLAY_KEYBIND,
264
+ self.REDO_KEYBIND,
265
+ self.UNDO_KEYBIND,
266
+ self.SAVE_KEYBIND,
267
+ self.SEARCH_KEYBIND,
268
+ self.SPLIT_KEYBIND,
269
+ self.ZOOM_IN_KEYBIND,
270
+ self.ZOOM_OUT_KEYBIND,
271
+ self.ZOOM_TO_SELECTION_KEYBIND,
272
+ ]
273
+ }
274
+
254
275
  @property
255
276
  def right_to_left(self) -> bool:
256
277
  return self.value(AnchorSettings.TIME_DIRECTION) == AnchorSettings.RTL
anchor/ui_main_window.py CHANGED
@@ -8,7 +8,6 @@
8
8
  ## WARNING! All changes made in this file will be lost when recompiling UI file!
9
9
  ################################################################################
10
10
 
11
- import resources_rc
12
11
  from PySide6.QtCore import (
13
12
  QCoreApplication,
14
13
  QDate,
@@ -55,6 +54,7 @@ from PySide6.QtWidgets import (
55
54
  QWidget,
56
55
  )
57
56
 
57
+ import anchor.resources_rc
58
58
  from anchor.widgets import (
59
59
  AcousticModelWidget,
60
60
  AlignmentWidget,
anchor/widgets.py CHANGED
@@ -377,6 +377,8 @@ class BaseTableView(QtWidgets.QTableView):
377
377
  current = self.selectionModel().currentIndex()
378
378
  text = self.selectionModel().model().data(current, QtCore.Qt.ItemDataRole.DisplayRole)
379
379
  clipboard.setText(str(text))
380
+ elif QtGui.QKeySequence(event.keyCombination()) not in self.settings.all_keybinds:
381
+ super().keyPressEvent(event)
380
382
 
381
383
  def setModel(self, model: QtCore.QAbstractItemModel) -> None:
382
384
  super().setModel(model)