|
|
@ -31,7 +31,7 @@ target file:
|
|
|
|
will be displayed if the script is successful.
|
|
|
|
will be displayed if the script is successful.
|
|
|
|
character encoding:
|
|
|
|
character encoding:
|
|
|
|
The text will likely be using system-default encoding, and as such
|
|
|
|
The text will likely be using system-default encoding, and as such
|
|
|
|
will likely NOT display special characters (eg:é,õ,ç) correctly. To
|
|
|
|
will likely NOT display special characters (eg:È,ı,Á) correctly. To
|
|
|
|
fix this, you need to modify the character set that you are reading
|
|
|
|
fix this, you need to modify the character set that you are reading
|
|
|
|
the document with. 'Notepad++' is a freely available program which
|
|
|
|
the document with. 'Notepad++' is a freely available program which
|
|
|
|
can do this using the following steps:
|
|
|
|
can do this using the following steps:
|
|
|
@ -99,22 +99,15 @@ local function format_for_forum(strin)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if flerb == 'textviewer' then
|
|
|
|
if flerb == 'textviewer' then
|
|
|
|
print(scrn)
|
|
|
|
local lines = scrn.src_text
|
|
|
|
printall(scrn)
|
|
|
|
|
|
|
|
local lines = scrn.formatted_text
|
|
|
|
|
|
|
|
local line = ""
|
|
|
|
local line = ""
|
|
|
|
|
|
|
|
|
|
|
|
if lines ~= nil then
|
|
|
|
if lines ~= nil then
|
|
|
|
local log = io.open('forumdwarves.txt', 'a')
|
|
|
|
local log = io.open('forumdwarves.txt', 'a')
|
|
|
|
log:write("[color=silver]")
|
|
|
|
log:write("[color=silver]")
|
|
|
|
for n,x in ipairs(lines) do
|
|
|
|
for n,x in ipairs(lines) do
|
|
|
|
print(x)
|
|
|
|
if x ~= nil and x.value ~= nil then
|
|
|
|
printall(x)
|
|
|
|
log:write(format_for_forum(x.value), ' ')
|
|
|
|
print(x.text)
|
|
|
|
|
|
|
|
printall(x.text)
|
|
|
|
|
|
|
|
if (x ~= nil) and (x.text ~= nil) then
|
|
|
|
|
|
|
|
log:write(format_for_forum(x.text), ' ')
|
|
|
|
|
|
|
|
--log:write(x[0],'\n')
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
log:write("[/color]\n")
|
|
|
|
log:write("[/color]\n")
|
|
|
|