Skip to content

Commit

Permalink
Migrate prose modifiers to talon list (talonhub#1654)
Browse files Browse the repository at this point in the history
closes talonhub#1651

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Andreas Arvidsson <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent 25cf36a commit a0be06d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions core/text/prose_modifiers.talon-list
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
list: user.prose_modifiers
-
# Maps spoken forms to DictationFormat method names (see DictationFormat in text_and_dictation.py).
cap: cap
no cap: no_cap
# no caps variant for Dragon
no caps: no_cap
no space: no_space
8 changes: 0 additions & 8 deletions core/text/text_and_dictation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@
speech.engine: dragon
"""

# Maps spoken forms to DictationFormat method names (see DictationFormat below).
ctx.lists["user.prose_modifiers"] = {
"cap": "cap",
"no cap": "no_cap",
"no caps": "no_cap", # "no caps" variant for Dragon
"no space": "no_space",
}

ctx.lists["user.hours_twelve"] = get_spoken_form_under_one_hundred(
1,
12,
Expand Down

0 comments on commit a0be06d

Please sign in to comment.