项目作者: Geremia

项目描述 :
Convert ASCII to rich text Unicode.
高级语言: C
项目地址: git://github.com/Geremia/RichTextUnicode.git
创建时间: 2021-02-06T23:03:12Z
项目社区:https://github.com/Geremia/RichTextUnicode

开源协议:Creative Commons Zero v1.0 Universal

下载


RichTextUnicode

Convert ASCII to rich text Unicode.

Based on the JavaScript YayText

Useful for making text 𝗯𝗼𝗹𝗱, 𝘪𝘵𝘢𝘭𝘪𝘤, 𝙗𝙤𝙡𝙙-𝙞𝙩𝙖𝙡𝙞𝙘, 𝓼𝓬𝓻𝓲𝓹𝓽, 𝚏𝚒𝚡𝚎𝚍-𝚠𝚒𝚍𝚝𝚑, 𝖋𝖗𝖆𝖐𝖙𝖚𝖗, full-width, 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

𝗧𝗲𝘅𝘁 𝗜 𝘄𝗮𝗻𝘁 𝗯𝗼𝗹𝗱

  1. [Action_0]
  2. Automatic=true
  3. Description=Unicode rich text
  4. Number of commands=8
  5. Regexp=^_[^_]+_$
  6. [Action_0/Command_0]
  7. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 1
  8. Description=bold
  9. Enabled=true
  10. Icon=
  11. Output=1
  12. [Action_0/Command_1]
  13. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 3
  14. Description=italic
  15. Enabled=true
  16. Icon=
  17. Output=1
  18. [Action_0/Command_2]
  19. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 5
  20. Description=bold italic
  21. Enabled=true
  22. Icon=
  23. Output=1
  24. [Action_0/Command_3]
  25. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 7
  26. Description=bold script
  27. Enabled=true
  28. Icon=
  29. Output=1
  30. [Action_0/Command_4]
  31. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 9
  32. Description=fixed width
  33. Enabled=true
  34. Icon=
  35. Output=1
  36. [Action_0/Command_5]
  37. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 11
  38. Description=bold fraktur
  39. Enabled=true
  40. Icon=
  41. Output=1
  42. [Action_0/Command_6]
  43. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 12
  44. Description=full width
  45. Enabled=true
  46. Icon=
  47. Output=1
  48. [Action_0/Command_7]
  49. Commandline[$e]=echo "%s" | sed -e 's/^_//' -e 's/_$$//' | ~/RichTextUnicode 15
  50. Description=block
  51. Enabled=true
  52. Icon=
  53. Output=1