Hi,
This light-weight skin perfectly suits my needs... except that it cannot properly display Chinese characters stored inside a UTF-8-coded text file.
How can I get around with this? Please help.
Thanks!
It is currently March 27th, 2023, 10:00 am
Read a text file into a meter?
-
- Posts: 1
- Joined: April 19th, 2012, 2:55 am
-
- Developer
- Posts: 22564
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Read a text file into a meter?
I have updated the .rmskin in the first of my posts in this thread:
http://rainmeter.net/forum/viewtopic.php?p=43296#p43296
The old version used some deprecated functions in Lua, that while they would work with everything formatted in ANSI, are not supported when Unicode is used in Lua.
Attention should be paid to how the various files are encoded. The .lua is Unicode / UTF-16 Little Endian, and the external text file it reads (Test.txt) is encoded as UTF-8.
Why this is so is explained here: http://rainmeter.net/forum/viewtopic.php?p=91224#p91224
http://rainmeter.net/forum/viewtopic.php?p=43296#p43296
The old version used some deprecated functions in Lua, that while they would work with everything formatted in ANSI, are not supported when Unicode is used in Lua.
Attention should be paid to how the various files are encoded. The .lua is Unicode / UTF-16 Little Endian, and the external text file it reads (Test.txt) is encoded as UTF-8.
Why this is so is explained here: http://rainmeter.net/forum/viewtopic.php?p=91224#p91224
-
- Developer
- Posts: 22564
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Read a text file into a meter?
Made a couple of other minor tweaks. Get the latest 2.0 version at:
http://rainmeter.net/forum/viewtopic.php?p=43296#p43296
http://rainmeter.net/forum/viewtopic.php?p=43296#p43296
-
- Posts: 3
- Joined: June 7th, 2017, 4:34 pm
Re: Read a text file into a meter?
Hi, was wondering how to make the output text be able to go lower then halfway down the monitor if you only have 1 line of text, also to center text, because im making it read an updating file that tells me what song is playing on youtube and i want it centered in this music circle.
Last edited by mnjk78lgm on June 7th, 2017, 4:40 pm, edited 1 time in total.
-
- Developer
- Posts: 22564
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Read a text file into a meter?
I don't understand the question.mnjk78lgm wrote:Hi, was wondering how to make the output text be able to go lower then halfway down the monitor if you only have 1 line of text
-
- Posts: 3
- Joined: June 7th, 2017, 4:34 pm
Re: Read a text file into a meter?
when i drag the text on my monitor the text doesn't go below a specific pointjsmorley wrote:I don't understand the question.
-
- Developer
- Posts: 22564
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Read a text file into a meter?
Sorry, still don't understand the question.
-
- Posts: 3
- Joined: June 7th, 2017, 4:34 pm
Re: Read a text file into a meter?
never mind, i had to change H=500 to H=100 to be able to move the text lower.jsmorley wrote:Sorry, still don't understand the question.
sorry I couldn't really describe it better then how i did, but i did fix the problem so its fine
-
- Developer
- Posts: 22564
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Read a text file into a meter?
Good deal...
-
- Posts: 16
- Joined: October 30th, 2020, 6:25 pm
Re: Read a text file into a meter?
Hello and thank you for the great tool.
I've used it to create myself a log file reader but when the lines exceed the room available in the window, they can no longer be seen.
Is there a way to make the screen show the bottom of the log, rather than the top please?
Many thanks
I've used it to create myself a log file reader but when the lines exceed the room available in the window, they can no longer be seen.
Is there a way to make the screen show the bottom of the log, rather than the top please?
Many thanks