#
hs.utf8
Functions providing basic support for UTF-8 encodings
Prior to upgrading Hammerspoon's Lua interpreter to 5.3, UTF8 support was provided by including the then beta version of Lua 5.3's utf8 library as a Hammerspoon module. This is no longer necessary, but to maintain compatibility, the Lua utf8 library can still be accessed through hs.utf8. The documentation for the utf8 library can be found at http://www.lua.org/manual/5.3/ or from the Hammerspoon console via the help command: help.lua.utf8. This affects the following functions and variables:
- hs.utf8.char - help available via
help.lua.utf8.char - hs.utf8.charPattern - help available via
help.lua.utf8.charpattern - hs.utf8.codepoint - help available via
help.lua.utf8.codepoint - hs.utf8.codes - help available via
help.lua.utf8.codes - hs.utf8.len - help available via
help.lua.utf8.len - hs.utf8.offset - help available via
help.lua.utf8.offset
Additional functions that are specific to Hammerspoon which provide expanded support for UTF8 are documented here.
#
API Overview
Variables - Configurable values
registeredKeys
Functions - API calls offered directly by the extension
asciiOnly codepointToUTF8 fixUTF8 hexDump registerCodepoint registeredLabels