Hello,
I started a pure Lua module to support operation on UTF-8 data.
See lua-utf8
First goal was reached :
- be able to get the good length
- be able to get substring
- automatic convertion
Regards,
TsT
Search found 161 matches
- Fri Nov 09, 2012 12:09 am
- Forum: Support and Development
- Topic: utf8 support in pure lua
- Replies: 3
- Views: 7569
- Mon Sep 12, 2011 4:45 pm
- Forum: General
- Topic: LÖVE as a module for standalone Lua?
- Replies: 3
- Views: 1830
- Fri May 27, 2011 9:58 am
- Forum: Support and Development
- Topic: Filesystem Hack: Set Identity to Whatever You Want
- Replies: 35
- Views: 11166
Re: Filesystem Hack: Set Identity to Whatever You Want
Or use io.popen() instead of os.execute() local f = io.popen("pwd") -- runs command local l = f:read("*a") -- read output of command print(l) f:close() function execute(cmd) local f = io.popen(cmd) local str = f:read("*a") return str end function str2tbl(str, sep) sep =...
- Fri May 27, 2011 9:44 am
- Forum: Support and Development
- Topic: Command line parameters
- Replies: 9
- Views: 9153
Re: Command line parameters
the arg indice are also : -1 is the command like called (relative or absolute name) 0 the first argument, usualy the .lua file (or the .love file for love) The command : echo "for k,v in pairs(arg) do print(k,v) end" | /usr/bin/lua - a b "c d" Result : 1 a 2 b 3 c d -1 /usr/bin/l...
- Mon May 23, 2011 8:40 am
- Forum: General
- Topic: Short article on AI
- Replies: 7
- Views: 4037
- Sat May 21, 2011 12:33 am
- Forum: Support and Development
- Topic: LCE : Love Callbacks Enforcer
- Replies: 0
- Views: 2387
LCE : Love Callbacks Enforcer
Introduction Have you already read post like "do not call draw functions inside love.update" ? I already read it ! I think lot of beginners do this kind of mistakes. Do you think "I'm not a beginner, I don't do this kind of things". Are you really sure ? What are you call in lov...
- Sun May 15, 2011 6:32 pm
- Forum: Support and Development
- Topic: Weird FPS problems with NVidia cards
- Replies: 8
- Views: 3003
Re: Weird FPS problems with NVidia cards
Also got the problem (2 FPS) under linux with nVidia NV34M [GeForce FX Go5200 64M]
EDIT: typo fix
EDIT: typo fix
- Wed May 11, 2011 5:03 pm
- Forum: Support and Development
- Topic: lovejail : a safe environment
- Replies: 8
- Views: 6508
Lua and security is so simple !
Hello, The love Thread is running in global environment. Hard or impossible to catch calls to apply the jail. I decide to fully change my way to do. Just a small summary of my story : - I had discover the " setfenv " function and thought "I can build a new environment and apply it to ...
- Thu May 05, 2011 4:27 pm
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20557
Re: Eternity
Another idea, for high speed, the stars should be rendered as line (not point) but maybe hard to implement...
- Thu May 05, 2011 8:30 am
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20557
Re: Eternity
Great !