aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-22Define thogai-english-stenography-rules variable.Arun Isaac
* english-orthography.py: Define thogai-english-stenography-rules variable using defvar.
2022-06-22Use Plover source instead of the built Plover package.Arun Isaac
* english-orthography.py: Accept the path to the Plover source as argument and import english_stenotype from that path.
2022-06-20Implement comma and colon commands.Arun Isaac
* thogai.el (thogai-insert-translation): Implement comma and colon commands.
2022-06-20Scroll to end of paper tape buffer after insertion.Arun Isaac
* thogai.el (thogai-gemini-protocol-filter): Scroll all relevant windows to the end of paper tape buffer after insertion.
2022-06-20Always append to paper tape buffer.Arun Isaac
* thogai.el (thogai-gemini-protocol-filter): ALways append to paper tape buffer.
2022-06-20Implement stroke suggestions.Arun Isaac
* thogai.el (thogai-suggest): New function. (thogai-process-stroke): Use thogai-suggest.
2022-06-20Implement orthography aware suffixes.Arun Isaac
At build time, we import orthography rules from Plover source code. It is the easiest way to keep up with Plover. * english-orthography.py: New file. * thogai.el: Require thogai-english-orthography. (thogai-insert-orthography-aware-suffix): New function. (thogai-insert-translation): Use thogai-insert-orthography-aware-suffix.
2022-06-19Protect gemini protocol filter from interruption.Arun Isaac
* thogai.el (thogai-gemini-decode-stroke): Protect gemini protocol filter from interruption.
2022-06-19Hook undo stroke into Emacs' undo system.Arun Isaac
* thogai.el (thogai-process-stroke): Hook undo stroke into Emacs' undo system.
2022-06-19Implement formatting cancellation operator.Arun Isaac
* thogai.el (thogai-insert-translation): Implement formatting cancellation operator.
2022-06-19Introduce mode-specific maps.Arun Isaac
* thogai.el (thogai-mode-map, thogai-current-map): New functions. (thogai-lookup, thogai-reverse-lookup): Use thogai-mode-map.
2022-06-18Rename thogai-user-dictionary-alist to thogai-global-map.Arun Isaac
* thogai.el (thogai-user-dictionary-alist): Rename to thogai-global-map. (thogai-lookup, thogai-reverse-lookup): Update reference of thogai-user-dictionary-alist.
2022-06-18Implement translations that simulate keypresses.Arun Isaac
* thogai.el (thogai-insert-translation): Implement translations that simulate keypresses.
2022-06-18Implement reverse lookup of dictionary.Arun Isaac
* thogai.el (thogai-reverse-dictionary): New variable. (thogai-load-dictionaries): Initialize reverse dictionary. (thogai-filter-map, thogai-reverse-lookup): New functions.
2022-06-17Support mapping strokes to commands.Arun Isaac
* thogai.el (thogai-process-stroke): Support mapping strokes to commands.
2022-06-16Implement capitalization carry prefix.Arun Isaac
* thogai.el (thogai-insert-translation): Implement capitalization carry prefix.
2022-06-16Implement capitalization carry suffix.Arun Isaac
* thogai.el (thogai-insert-translation): Implement capitalization carry suffix.
2022-06-16Implement capitalization carry.Arun Isaac
* thogai.el (thogai-insert-translation): Implement capitalization carry.
2022-06-16Remove suffix check for the glue operator.Arun Isaac
The suffix is already guaranteed by the earlier regular expression match. * thogai.el (thogai-insert-translation): Remove suffix check for the glue operator.
2022-06-16Implement prefixes in terms of the attach operator.Arun Isaac
* thogai.el (thogai-insert-translation): Implement prefixes in terms of the attach operator.
2022-06-16Implement the glue operator in terms of the attach operator.Arun Isaac
* thogai.el (thogai-insert-translation): Implement glue operator in terms of the attach operator.
2022-06-16Implement period, question mark and exclamation mark.Arun Isaac
* thogai.el (thogai-insert-translation): Implement period, question mark and exclamation mark.
2022-06-16Implement infixes in terms of prefixes and the attach operator.Arun Isaac
* thogai.el (thogai-insert-translation): Implement infixes in terms of prefixes and the attach operator by calling thogai-insert-translation recursively.
2022-06-14Rename thogai-connect to thogai-gemini-connect.Arun Isaac
This opens up the command namespace to support other protocols in the future. * thogai.el (thogai-connect): Rename to thogai-gemini-connect. Mention the Gemini protocol in the docstring. (Commentary): Update invocation of thogai-connect. * README.org (Usage): Update invocation of thogai-connect.
2022-06-14Rename thogai-insert-stroke to thogai-process-stroke.Arun Isaac
We don't always "insert" a stroke. So, this is a better name. * thogai.el (thogai-insert-stroke): Rename to thogai-process-stroke. (thogai-inject-strokes, thogai-gemini-protocol-filter): Update invocations of thogai-insert-stroke.
2022-06-13Explain where to get Plover dictionaries.Arun Isaac
* thogai.el (thogai-dictionary-files): Expand docstring to explain where to get Plover dictionaries.
2022-06-13Delete space when reversing strokes.Arun Isaac
* thogai.el (thogai-reverse-strokes): Delete space if present. (thogai-insert-stroke): Depend on thogai-reverse-strokes to delete space.
2022-06-13Carry through non-first-part-p on command translations.Arun Isaac
* thogai.el (thogai-insert-translation): Rename argument subtranslation to non-first-part-p and carry it through when command translations are processed.
2022-06-13Implement infix translations.Arun Isaac
* thogai.el (thogai-insert-translation): Implement infix translations.
2022-06-13Insert space before glue translations.Arun Isaac
* thogai.el (thogai-insert-translation): Insert space before glue translations if it is the first part of the translation.
2022-06-13Insert space before prefix translations.Arun Isaac
* thogai.el (thogai-insert-translation): Insert space before prefix translations if it is the first part of the translation.
2022-06-13Reset attach and glue state when inserting literals.Arun Isaac
* thogai.el (thogai-insert-literal): Reset thogai-attach-next and thogai-glue. (thogai-insert-translation): Depend on thogai-insert-literal to reset thogai-attach-next and thogai-glue.
2022-06-13Respect capitalization in prefix strings.Arun Isaac
* thogai.el (thogai-insert-translation): Insert prefix strings using thogai-insert-literal.
2022-06-12When undoing, delete space only if there is a space.Arun Isaac
Attached and glued strokes don't emit spaces. So, we cannot mindlessly delete the last character without checking if it is a space. * thogai.el (thogai-insert-stroke): When undoing, delete space only if there actually is a space.
2022-06-12Respect capitalization in glue strings.Arun Isaac
* thogai.el (thogai-insert-translation): Insert glue strings using thogai-insert-literal.
2022-06-12Abstract out insertion of literal translations.Arun Isaac
* thogai.el (thogai-insert-translation): Abstract out literal translation insertion logic into ... (thogai-insert-literal): ... new function.
2022-06-12Implement glue operator.Arun Isaac
* thogai.el (thogai-glue): New variable. (thogai-insert-translation): Implement glue operator.
2022-06-12Abstract out insertion of space into a separate function.Arun Isaac
* thogai.el (thogai-insert-translation): Abstract out space insertion logic into ... (thogai-insert-space): ... new function.
2022-06-12README: Add README.Arun Isaac
* README.org: New file.
2022-06-12Initial commitArun Isaac