| View previous topic :: View next topic |
| Author |
Message |
sjk1
Joined: 08 Sep 2005 Posts: 2
|
Posted: Thu Sep 08, 2005 11:00 pm Post subject: japanese character support? |
|
|
hi! i'm developing (well, trying to :-)) a kanji quiz game - it displays the kanji character, and you have to select the proper translation or reading for the kanji.
is there a way to "print" a japanese character? i read the lua doc./wiki pages, and it is rather confusing - at least i didnt get it (quote: "you would need to either manually encode them to UTF-8, or insert individual octets in the correct big-endian/little-endian order (for UTF-16 or UTF-32)" - how do i do this?).
eg, i have the unicode 6771. i'd like to see, printed in the screen, the japanese character that represents "east". |
|
| Back to top |
|
 |
liquid8d
Joined: 30 Jun 2005 Posts: 66
|
Posted: Sat Sep 10, 2005 3:08 am Post subject: |
|
|
Since it is so easy to use a tile system with images in lua, I would just suggest using a premade image with the necessary characters. Should be easy enough? :)
LiQuiD8d |
|
| Back to top |
|
 |
nevyn
Joined: 31 Jul 2005 Posts: 136 Location: Sweden
|
Posted: Sat Sep 10, 2005 4:25 am Post subject: |
|
|
| I saw some PSP homebrew app that used real TTF fonts. If someone finds that code, either that person could integrate it into luaplayer him/herself or maybe me or Shine could do it. With that, any character supported by the TTF should be supported by luaplayer. This is a Very Nice Thing ;) (I'm a big Unicode fan) |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Sat Sep 10, 2005 4:29 am Post subject: |
|
|
would save some space from images (could be replaced by simple text)
would be great :D |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sat Sep 10, 2005 7:24 am Post subject: |
|
|
| nevyn wrote: | | I saw some PSP homebrew app that used real TTF fonts. If someone finds that code, either that person could integrate it into luaplayer him/herself or maybe me or Shine could do it. |
This could be done with the freetype lib, which is in SVN. |
|
| Back to top |
|
 |
LuaNoob
Joined: 21 Sep 2005 Posts: 4
|
Posted: Wed Sep 21, 2005 12:26 pm Post subject: |
|
|
Hi! this is my first post.
About:
| Quote: | | is there a way to "print" a japanese character? i read the lua doc./wiki pages, and it is rather confusing - at least i didnt get it (quote: "you would need to either manually encode them to UTF-8, or insert individual octets in the correct big-endian/little-endian order (for UTF-16 or UTF-32)" - how do i do this?). |
I tested encoding a text file in unicode, utf-8 , unicode big endian, and in all cases I couldn't see the japanese text, I mixed roman letters and japanese characters and only got the roman ones in some cases and in others just garbage.
Any ideas how to achieve this in LUA?
I also got the same idea about the japanese game...
Thanks for any ideas.
By the way, I found this : http://lua-gd.luaforge.net/ for Lua, but dunno how can I put it to work in a PSP, or maybe it is not possible? |
|
| Back to top |
|
 |
LuMo
Joined: 21 Aug 2005 Posts: 410 Location: Austria
|
Posted: Wed Sep 21, 2005 6:28 pm Post subject: |
|
|
gd is nice... as i tested it in PHP (load ttf write with ttf :D) _________________ "Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com |
|
| Back to top |
|
 |
|