Formats numbers in the specified format.
Project description
Plover Number Format
Transforms a previous number in the specified manner. Currently, three actions are supported:
number_format_insert
Formats the previous number in a similar way that Case CATalyst does. Read their guidelines here:
https://www.stenograph.com/content/files/documents/casecatalyst4%20manual.pdf (page 397)
Example:
"A*PL": "{:number_format_insert:nN:NN} a.m."
"T*F": "{:number_format_insert:X (XXn) NNN-NNNN}"
"S*F": "{:number_format_insert:NNN-NN-NNNN}"
248/A*PL
2:48
1259/A*PL
12:59
1234567890/T*F
(123) 456-7890
3333333/T*F
333-3333
987654321/S*F
987-65-4321
number_format_roman
Transforms the previous number into a Roman numeral. There are two arguments:
The first argument specifies the method of conversion. 0: standard; 1: additive.
The second argument specifies the letter case. 0: upper; 1: lower.
Example:
"R*PB": "{:number_format_roman:0:0}"
"R*PBS": "{:number_format_roman:1:0}"
"SR*PB": "{:number_format_roman:0:1}"
2021/R*PB
MMXXI
19/R*PB
XIX
19/R*PBS
XVIIII
19/SR*PB
xix
retro_insert_currency
Inserts a currency symbol (or any symbol, really) in front of the previous number.
Unlike Plover's natively supported command, this command ignores any decimal points, comma separators and any letters or words following the number.
Example:
"TKHR*": "{:retro_insert_currency:10:$}"
"TKHR*BG": "{:retro_insert_currency:10:CAD }"
"P*PBD": "{:retro_insert_currency:10:£}"
1.9 million/TKHR*
$1.9 million
2,000,000.00/TKHR*BG
CAD 2,000,000.00
13B bill/P*PBD
£13B bill
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plover_number_format-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb831e55945a3da1a9349be9336c53032c5ac96d6b761fcee9b2e327e49ca662 |
|
MD5 | d1251b054b3f1046e8a14dc220e0670f |
|
BLAKE2b-256 | 5516d3bc4de435dde62e83a45247fefd45c85049c9384cdebbb31a2a8d1f47bd |
Hashes for plover_number_format-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a12f411a0b8277611a105b7dabc62fccc885259d78c32c416e543df85b7910 |
|
MD5 | 125d507813662e24a7af95677678a4f7 |
|
BLAKE2b-256 | 38fa988b6a842a68a5a87c9f14aff9ecb54fd52839123644c42908f67da974b3 |