#
#
#
-# USAGE: Bind a key to command /flip . Then write some text at input line
+# USAGE: Bind a key to command /flip . Then write some text at input line
# press your key to transform it to upside down.
#
# (this script requires WeeChat 0.3.0 or newer)
#
# History:
+# 2022-03-14, TauPan <taupan@gmail.com>
+# version 0.3.1: port to python3
# 2010-01-14, xt
# version 0.3: steal more chars from m4v
# 2010-01-06, xt <xt@bash.no>
SCRIPT_NAME = "upside_down"
SCRIPT_AUTHOR = "xt <xt@bash.no>"
-SCRIPT_VERSION = "0.3"
+SCRIPT_VERSION = "0.3.1"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "Replaces text you write with upside down text"
if w.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE,
SCRIPT_DESC, "", ""):
- for option, default_value in settings.iteritems():
+ for option, default_value in settings.items():
if not w.config_is_set_plugin(option):
w.config_set_plugin(option, default_value)
w.hook_command("flip",
if char in replacements:
char = replacements[char]
outstring += char
- outstring = outstring.encode('UTF-8')
w.buffer_set(w.current_buffer(), 'input', outstring)
return w.WEECHAT_RC_OK