Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/josiah-tan/plover-retro-untranslator

Converts the last X translations to a specified format consisting of raw steno and/or a translation
https://github.com/josiah-tan/plover-retro-untranslator

Last synced: about 12 hours ago
JSON representation

Converts the last X translations to a specified format consisting of raw steno and/or a translation

Awesome Lists containing this project

README

        

# plover-retro-untranslator

- Converts the last X translations to a specified format consisting of any of the following:
- raw steno
- translation
- definition
- american translation
- british translation

([video](https://www.youtube.com/watch?v=pLYZl5_l0qg))

# Examples

put these into your dictionary:

```json
{
"RA*UD": "=retro_untranslator:`%r`",
"STRO*EBGD": "=retro_untranslator:`%r` → `%T`",
"TKAO*EFPBD": "=retro_untranslator:`%r` → `%D`",
"-P": "=retro_untranslator:%G",
"SPH-P": "=retro_untranslator:%A",
"PWR-P: "=retro_untranslator:%B",
}
```

example stroke ⇒ output:

```
KWRURPB/RA*UD ⇒ `KWRURPB`
KWRURPB/STRO*EBGD ⇒ `KWRURPB` → `yes, your Honor`
KWRURPB/TKAO*EFPBD ⇒ `KWRURPB` → `yes{,}your Honor`
```

# Configuration

(literally the same thing as tapey-tape)

| Code | Item | Example |
|:-----|:---------------------|:--------------------|
| `%r` | raw steno | `KWRURPB` |
| `%D` | definition | yes{,}your Honor |
| `%T` | translation | `Yes, your Honor` |
| `%A` | american translation | customize |
| `%B` | british translation | customise |
| `%G` | toggle translation | customise/customize |
| `%%` | an actual `%` | `%` |

# Prerequisites

- Download plover and find the executable
- see this [website](https://plover.readthedocs.io/en/latest/cli_reference.html) for finding the location of plover depending on which platform you are using (Linux, Windows, etc.)

# Installation

- Now run this command to install the library
``` bash
-s plover_plugins install plover-retro-untranslator
```

# Developers

- This section shows how you can have an editable version of this project
- Firstly, fork this repository (in GitHub), then clone it:

``` bash
git clone https://github.com/your_user_name/plover-retro-untranslator
```

- cd into this repo
- Then install for use!
- Note that "plover" is the executable that you downloaded to make Plover work in the first place
- See this [[https://plover.readthedocs.io/en/latest/cli_reference.html][website]] for the different locations depending on which platform you are using (Linux, Windows, etc)

``` bash
cd plover-retro-translator
plover -s plover_plugins install -e .
```

# Acknowledgments

- Sachac's [plover-retro-stroke](https://github.com/sachac/plover_retro_stroke) for motivating the creation of this plugin
- rabbitgrowth's [tapey-tape](https://github.com/rabbitgrowth/plover-tapey-tape) for motivating the format of this plugin