Anchor-annotator 0.8.0__py3-none-any.whl → 0.8.2__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.
anchor/_version.py CHANGED
@@ -1,8 +1,13 @@
1
- # file generated by setuptools_scm
1
+ # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
3
6
  TYPE_CHECKING = False
4
7
  if TYPE_CHECKING:
5
- from typing import Tuple, Union
8
+ from typing import Tuple
9
+ from typing import Union
10
+
6
11
  VERSION_TUPLE = Tuple[Union[int, str], ...]
7
12
  else:
8
13
  VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
12
17
  __version_tuple__: VERSION_TUPLE
13
18
  version_tuple: VERSION_TUPLE
14
19
 
15
- __version__ = version = '0.8.0'
16
- __version_tuple__ = version_tuple = (0, 8, 0)
20
+ __version__ = version = '0.8.2'
21
+ __version_tuple__ = version_tuple = (0, 8, 2)
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)
@@ -677,7 +679,7 @@ class UtteranceListWidget(QtWidgets.QWidget): # pragma: no cover
677
679
 
678
680
  layout.addWidget(self.table_widget)
679
681
  self.pagination_toolbar = PaginationWidget()
680
- self.pagination_toolbar.pageRequested.connect(self.table_widget.scrollToTop())
682
+ self.pagination_toolbar.pageRequested.connect(self.table_widget.scrollToTop)
681
683
  layout.addWidget(self.pagination_toolbar)
682
684
  self.setLayout(layout)
683
685
  self.dictionary = None
@@ -2856,7 +2858,7 @@ class DiarizationWidget(QtWidgets.QWidget):
2856
2858
  self.current_page = 0
2857
2859
  self.num_pages = 0
2858
2860
  self.pagination_toolbar = PaginationWidget()
2859
- self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop())
2861
+ self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop)
2860
2862
  layout.addWidget(self.pagination_toolbar)
2861
2863
  self.setLayout(layout)
2862
2864
  self.table.referenceUtteranceSelected.connect(self.update_reference_utterance)
@@ -3047,7 +3049,7 @@ class OovWidget(QtWidgets.QWidget):
3047
3049
  dict_layout.addWidget(self.toolbar)
3048
3050
  dict_layout.addWidget(self.table)
3049
3051
  self.pagination_toolbar = PaginationWidget()
3050
- self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop())
3052
+ self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop)
3051
3053
  dict_layout.addWidget(self.pagination_toolbar)
3052
3054
 
3053
3055
  self.setLayout(dict_layout)
@@ -3107,7 +3109,7 @@ class DictionaryWidget(QtWidgets.QWidget):
3107
3109
  dict_layout.addWidget(self.toolbar)
3108
3110
  dict_layout.addWidget(self.table)
3109
3111
  self.pagination_toolbar = PaginationWidget()
3110
- self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop())
3112
+ self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop)
3111
3113
  dict_layout.addWidget(self.pagination_toolbar)
3112
3114
 
3113
3115
  self.setLayout(dict_layout)
@@ -3252,7 +3254,7 @@ class SpeakerWidget(QtWidgets.QWidget):
3252
3254
  self.current_page = 0
3253
3255
  self.num_pages = 0
3254
3256
  self.pagination_toolbar = PaginationWidget()
3255
- self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop())
3257
+ self.pagination_toolbar.pageRequested.connect(self.table.scrollToTop)
3256
3258
  speaker_layout.addWidget(self.pagination_toolbar)
3257
3259
  self.tool_bar_wrapper = QtWidgets.QVBoxLayout()
3258
3260
  self.tool_bar = QtWidgets.QToolBar()
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: Anchor_annotator
3
- Version: 0.8.0
3
+ Version: 0.8.2
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
@@ -24,6 +24,7 @@ License-File: LICENSE
24
24
  Requires-Dist: montreal-forced-aligner
25
25
  Requires-Dist: pyqtgraph
26
26
  Requires-Dist: pyside6
27
+ Dynamic: license-file
27
28
 
28
29
  # Anchor annotator
29
30
  Anchor annotator is a program for inspecting corpora for the [Montreal Forced Aligner](https://montreal-forced-aligner.readthedocs.io/en/latest/) and correcting transcriptions and pronunciations
@@ -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=4Kt_Ae0emj4wRVlpu-xPGvdBayNUDtQuMKqWoOpvoGY,511
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=Lci1Jq0Gan6zuvB4myrcPe-X9IZ3UXqLrZe3o_sgOIs,159469
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.2.dist-info/licenses/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
19
+ anchor_annotator-0.8.2.dist-info/METADATA,sha256=INOKDt1JL0O3IXZYclm01rg0YtZrZklLO19sDGFR2pQ,1522
20
+ anchor_annotator-0.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ anchor_annotator-0.8.2.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
22
+ anchor_annotator-0.8.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5