Skip to content

rostag/locus-poetica

Repository files navigation

PoetryGen

What is this

Different text generation toys. Mostly mechanical and random.

Demo

rostag.github.io/locus-poetica

Deployment

npm run deploy-pages

Make fun not war

Support Ukraine: KOLO

𝚖𝚘𝚗𝚘𝚝𝚎𝚡𝚝 module

A small utility for converting text to a unicode variant.

Flag Short Description Example
monospace m Monospace text (default) 𝙼𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎 𝚝𝚎𝚡𝚝!
script c Script 𝒻𝒶𝓃𝒸𝓎 𝓈𝒸𝓇𝒾𝓅𝓉
fraktur f Fraktur 𝔖𝔭𝔩𝔢𝔫𝔡𝔦𝔡 𝔣𝔯𝔞𝔨𝔱𝔲𝔯
double d Double-struck (1) 𝔻𝕠𝕦𝕓𝕝𝕖-𝕤𝕥𝕣𝕦𝕔𝕜
sans s Sans-serif 𝖲𝖺𝗇𝗌. 𝖲𝖾𝗋𝗂𝖿𝗌.
greek g Greek (2) 𝛂𝛔𝛅𝛇𝛈𝛉𝛋𝛌
bold b Bold (modifier) 𝐛𝓸𝖑𝛅 𝘁𝗲𝘅𝘁
italic i Italic (modifier) (3) 𝑖𝘵𝛼𝑙𝘪𝑐
underline u Underline (modifier) 𝚞̲𝚗̲𝚍̲𝚎̲𝚛̲𝚕̲𝚒̲𝚗̲𝚎̲𝚍̲
strike k Strike-through (modifier) 𝚜̶𝚝̶𝚛̶𝚞̶𝚌̶𝚔̶ ̶𝚋̶𝚢̶ ̶𝚕̶𝚒̶𝚐̶𝚑̶𝚝̶𝚗̶𝚒̶𝚗̶𝚐̶

1): Not all characters exist in the regular (i.e. non-bold/italic) version of this set

2): The output characters might not be the respective greek character of the input character. There is also no regular (i.e. non-bold/italic) version of this set

3): For the h character in this set, the planck constant U+210E is used instead of U+1D455, as that character does not exist in unicode. It might look a bit off with some fonts.

The bold flag can be combined with script, fraktur, sans, and greek and the italic flag can be combined with sans and greek, but both can also be used without another flag, in which case they will have the serif type.

Usage

Command-line example showing how to use it

Presuming you have node installed, run the file directly with ./monotext.js or run it with node: node monotext.js.

You can also create a symlink (ln -s path/to/monotext.js destination/path) in /usr/local/bin or whatever is in your PATH and then run it directly anywhere with the filename you specified for it's destination.