Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 months ago
JSON representation
Converts the last X translations to a specified format consisting of raw steno and/or a translation
- Host: GitHub
- URL: https://github.com/josiah-tan/plover-retro-untranslator
- Owner: Josiah-tan
- License: gpl-3.0
- Created: 2023-02-02T11:30:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T12:51:11.000Z (9 months ago)
- Last Synced: 2024-09-30T02:34:16.216Z (4 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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