Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to format Dragon's dictation words using the spoken form #387

Open
drmfinlay opened this issue Apr 3, 2024 · 2 comments
Open

Comments

@drmfinlay
Copy link
Member

Dragon provides us with written and spoken forms for words. It would be nice if the spoken form of dictated words could be used sometimes. A good use case is where one wishes to type words like "period", which Dragon and Dragonfly both normally output as a dot (".").

An optional in_spoken_form parameter could be added to the appropriate formatting methods and documented.

There is actually a Dragon built-in rule for this — the dgnwords rule. Unfortunately, this rule stopped working properly some while ago, as did the dgnletters rule.

@drmfinlay
Copy link
Member Author

drmfinlay commented Apr 9, 2024

Actually, the special built-in rules I mentioned above do mostly work. They just need a bit of patching. I'll add special element classes under dragonfly.engines.backend_natlink for using them. These already exist in the examples folder, but are not importable.

I'll add a special element class for dgndictation, too, for completeness' sake.

drmfinlay added a commit that referenced this issue Apr 22, 2024
Re: #387.

This allows formatting Dragon's dictation words using the spoken
form instead.
drmfinlay added a commit that referenced this issue Apr 25, 2024
Re: #387.

This allows formatting Dragon's dictation words using the spoken
form instead.

I've also mentioned this in the documentation of the Dictation
element.
@drmfinlay
Copy link
Member Author

I think the new spoken_form parameter is good enough. I won't add the new element classes.

drmfinlay added a commit that referenced this issue Jun 4, 2024
Re: #387.

This parameter is now on the base class `format()' method and has
the correct name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant