I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.
But rainmeter only support loading external library in lua script and it is impossible to use the module.
How to solve it?
It is currently October 14th, 2024, 9:44 pm
How to install a module?
-
- Posts: 5
- Joined: January 2nd, 2024, 11:55 am
-
- Posts: 44
- Joined: January 25th, 2023, 2:56 am
Re: How to install a module?
May I know why exactly you need to use that?zIa1yBX5 wrote: ↑May 31st, 2024, 1:24 am I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.
-
- Rainmeter Sage
- Posts: 8465
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to install a module?
I suspect that the reason is related to Lua's issues with some file encodings:
https://forum.rainmeter.net/viewtopic.php?t=35292#p176632
Might be wrong though, as I don't know what the OP is actually aiming for.
-
- Rainmeter Sage
- Posts: 16658
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How to install a module?
Unfortunately I'm not entirely sure, but I think you can't install or use it into Rainmeter. Once again, I'm not sure, a dev would definitely be needed here, but this is my guess at least.zIa1yBX5 wrote: ↑May 31st, 2024, 1:24 am I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.
But rainmeter only support loading external library in lua script and it is impossible to use the module.
How to solve it?
-
- Posts: 150
- Joined: August 16th, 2013, 12:47 pm
Re: How to install a module?
When I've used a (standalone) Lua module I just replaced the following syntax:zIa1yBX5 wrote: ↑May 31st, 2024, 1:24 am I find a good module "https://github.com/starwing/luautf8" and I need to install it through the luarock.
But rainmeter only support loading external library in lua script and it is impossible to use the module.
How to solve it?
Code: Select all
someModule = require "someModule"
Code: Select all
someModule = dofile(SKIN:GetVariable('@')..'someDir\\someFile.lua')
-
- Posts: 150
- Joined: August 16th, 2013, 12:47 pm
Re: How to install a module?
Edit: as for UTF-8 string manipulation Faradey from the forums also made some similar functions (albeit fewer) for it here.
(Thought I clicked edit but apparently quoted myself initially)
(Thought I clicked edit but apparently quoted myself initially)