plover-last-translation

Macro plugins for Plover to repeat output.


Keywords
plover, plover_plugin, plugin
Licenses
GPL-3.0/GPL-3.0+
Install
pip install plover-last-translation==0.0.2

Documentation

Plover Last Translation

Macro plugins for Plover to repeat output.

Installation

Download the latest version of Plover for your operating system from the releases page. Only versions 4.0.0.dev6 and higher are supported.

  1. Open Plover
  2. Navigate to the Plugin Manager tool
  3. Select the "plover-last-translation" plugin entry in the list
  4. Click install
  5. Restart Plover

The same method can be used for updating and uninstalling the plugin.

Usage

In order to use these plugins you just need to create dictionary entries of the form:

{
    "example_stroke": "=macro_name:macro_arg1,macro_arg2,..."
}

The available macros are:

  • repeat_last_translation
    • Arguments
      1. Number of previous translations to output. Default is 1.
  • repeat_last_word
    • Arguments
      1. Number of previous words to output. Default is 1.
  • repeat_last_fragment
    • Arguments
      1. Number of previous fragments to output. Default is 1.
  • repeat_last_character
    • Arguments
      1. Number of previous characters to output. Default is 1.

Some quick examples of the various acceptable forms:

{
    "1_translation_stroke": "=repeat_last_translation",
    "1_translation_stroke": "=repeat_last_translation:",
    "2_translations_stroke": "=repeat_last_translation:2",
    "5_fragments_stroke": "=repeat_last_fragment:5,"
}

For the difference between a word and a fragment, see the RetroFormatter documentation.