Skip to content

Geremia/RichTextUnicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

RichTextUnicode

Convert ASCII to rich text Unicode.

Based on the JavaScript YayText

Useful for making text ๐—ฏ๐—ผ๐—น๐—ฑ, ๐˜ช๐˜ต๐˜ข๐˜ญ๐˜ช๐˜ค, ๐™—๐™ค๐™ก๐™™-๐™ž๐™ฉ๐™–๐™ก๐™ž๐™˜, ๐“ผ๐“ฌ๐“ป๐“ฒ๐“น๐“ฝ, ๐š๐š’๐šก๐šŽ๐š-๐š ๐š’๐š๐š๐š‘, ๐–‹๐–—๐–†๐–๐–™๐–š๐–—, ๏ฝ†๏ฝ•๏ฝŒ๏ฝŒ-๏ฝ—๏ฝ‰๏ฝ„๏ฝ”๏ฝˆ, and ๐Ÿ„ฑ๐Ÿ„ป๐Ÿ„พ๐Ÿ„ฒ๐Ÿ„บ on messaging programs like Signal.

Plasma KDE clipboard (klipper) actions

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

About

Convert ASCII to rich text Unicode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages