mirror of
https://github.com/mt-mods/led_marquee.git
synced 2024-12-29 00:47:28 +01:00
local-ize functions
This commit is contained in:
parent
4d1d90cccc
commit
ce9666cc48
4
init.lua
4
init.lua
@ -29,7 +29,7 @@ end
|
||||
-- first char is non-break space, 0xA0
|
||||
local iso_chars=" ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
|
||||
|
||||
get_iso = function(c)
|
||||
local get_iso = function(c)
|
||||
local hb = string.byte(c,1) or 0
|
||||
local lb = string.byte(c,2) or 0
|
||||
local dec = lb+hb*256
|
||||
@ -38,7 +38,7 @@ get_iso = function(c)
|
||||
return char
|
||||
end
|
||||
|
||||
make_iso = function(s)
|
||||
local make_iso = function(s)
|
||||
local i = 1
|
||||
local s2 = ""
|
||||
while i <= string.len(s) do
|
||||
|
Loading…
Reference in New Issue
Block a user