Action introspection #1442
user202729
started this conversation in
Technical Discussion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Action
is one of the more poorly-understood part of the Plover source code/engine/documentation.There are documentations, but it (currently) doesn't clearly explain what global/local states are.
You can somewhat figure out yourself using (my) plover-debugging-console plugin.
(write some strokes)
Enter
x=list(engine.translator_state.translations)
(need to copy otherwise the list will change over time)
Look at the content of
x
: It's a list ofTranslation
objects, each contains aformatting
attribute which is the list of_Action
objects.See https://plover.readthedocs.io/en/latest/api/formatting.html#plover.formatting._Action / https://plover2.readthedocs.io/en/latest/api/formatting.html#plover.formatting._Action / docstrings in
plover/plover/formatting.py
Lines 571 to 696 in 4394ef1
Beta Was this translation helpful? Give feedback.
All reactions