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

Support lookahead translations #8

Open
sammdot opened this issue Apr 21, 2021 · 0 comments
Open

Support lookahead translations #8

sammdot opened this issue Apr 21, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sammdot
Copy link
Owner

sammdot commented Apr 21, 2021

Regular expression lookahead translations are now supported in Plover 4.0.0-dev8, allowing translations to change depending on the following text. Add a new control word \cxplvrlap (LookAhead Pattern) to specify the lookahead pattern, and then \cxplvrlam (LookAhead Match) for the text that will be used as the translation when the lookahead matches.

Plover syntax:

{=(?i)t/true/false}
{:if_next_matches:(?i)t/true/false}

Proposed RTF syntax:

false{\*\cxplvrlap (?i)t}{\*\cxplvrlam true}

This would allow steno engines that do not support lookaheads to automatically default to the false (i.e. lookahead does not match) translation.

@sammdot sammdot added the enhancement New feature or request label Apr 21, 2021
@sammdot sammdot self-assigned this Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant