weechat_plugins. Not submitting to weechat as the director seems anally fixated and has created shitty scripting support.
Use a simple in-line markup language to decorate IRC posts with color/formatting/unicode characters. Autocompletion of the marukup language is also supported to make it easier to use.
To install this script copy it to ~/.weechat/python/autoload/ Use the weechat /load or /reload commands to activate the script, or simply restart your instance of weechat.
The script supports markup in user posts of the form [markup]. See the script itself for a full list of supported markup, but the following is a simple example that makes posted text bold.
[bold]hello
The text would then appear as follows when posted:
hello
Also note that the markup [bold]
can be introduced via autocompletion. Merely typing [bo
+tab will autocomplete to [bold]
.
Markup tags accumulate. so using [bold]
followed by [red]
will result in bold, red text. Accumulated markup can be cleared by using the [normal]
tag.
Supported colors are:
- white
- black
- darkblue
- green
- red
- brown
- purple
- olive
- yellow
- lightgreen
- teal
- cyan
- blue
- magenta
- darkgray
- gray
Typical markup is of the form [color]
but both foreground and background colors may be specified in the same markup in the form [foreground background]
. In other words, to use red foreground and white background, use the [red white]
markup.
The following styles can be used. Note that not all might be supported on your client.
- bold
- normal
- underline
- italic
- strikethrough
- reverse
The [normal]
tag will clear all previous markkup on the same line. [reverse]
reverses the current foreground and background colors.
To make it easier to include common unicode characters in posts, the following markup is supported. Each tag is replaced with its associated character when posted.
- note : '♫'
- copyright' : '©'
- trademark' : '™'
- section' : '§'
- yen' : '¥'
- pound' : '£'
- registered' : '®'
- quarter' : '¼'
- half' : '½'
- threequarters' : '¾'
- times' : '×'
- divided' : '÷'
- cross' : '†'
- doubleexclaimation' : '‼'
- starofdavid' : '✡'
- heart' : '❤'
- arrow' : '➔'
- sun' : '☀'
- umbrella' : '☂'
- radioactive' : '☢'
- euro' : '€'
- telephone' : '☎'
- flag' : '⚑'
- cut' : '✂'
This script also supports 'greentext' posts via initial '>' operator. The operator remains after color introduced.