Convert ASCII to rich text Unicode.
Based on the JavaScript YayText
Useful for making text ๐ฏ๐ผ๐น๐ฑ, ๐ช๐ต๐ข๐ญ๐ช๐ค, ๐๐ค๐ก๐-๐๐ฉ๐๐ก๐๐, ๐ผ๐ฌ๐ป๐ฒ๐น๐ฝ, ๐๐๐ก๐๐-๐ ๐๐๐๐, ๐๐๐๐๐๐๐, ๏ฝ๏ฝ๏ฝ๏ฝ-๏ฝ๏ฝ๏ฝ๏ฝ๏ฝ, and ๐ฑ๐ป๐พ๐ฒ๐บ on messaging programs like Signal.
Add these commands to ~/.config/plasmashellrc
to get clipboard action functionality.
Select text like this:
_Text I want bold_
and choose, e.g., "bold" from the pop-up menu, and hit ctrl-v to paste over and you'll get
๐ง๐ฒ๐ ๐ ๐ ๐๐ฎ๐ป๐ ๐ฏ๐ผ๐น๐ฑ
[Action_0]
Automatic=true
Description=Unicode rich text
Number of commands=8
Regexp=^_[^_]+_$
[Action_0/Command_0]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 1
Description=bold
Enabled=true
Icon=
Output=1
[Action_0/Command_1]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 3
Description=italic
Enabled=true
Icon=
Output=1
[Action_0/Command_2]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 5
Description=bold italic
Enabled=true
Icon=
Output=1
[Action_0/Command_3]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 7
Description=bold script
Enabled=true
Icon=
Output=1
[Action_0/Command_4]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 9
Description=fixed width
Enabled=true
Icon=
Output=1
[Action_0/Command_5]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 11
Description=bold fraktur
Enabled=true
Icon=
Output=1
[Action_0/Command_6]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 12
Description=full width
Enabled=true
Icon=
Output=1
[Action_0/Command_7]
Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 15
Description=block
Enabled=true
Icon=
Output=1