forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

japanese character support?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
sjk1



Joined: 08 Sep 2005
Posts: 2

PostPosted: Thu Sep 08, 2005 11:00 pm    Post subject: japanese character support? Reply with quote

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
View user's profile Send private message
liquid8d



Joined: 30 Jun 2005
Posts: 66

PostPosted: Sat Sep 10, 2005 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
nevyn



Joined: 31 Jul 2005
Posts: 136
Location: Sweden

PostPosted: Sat Sep 10, 2005 4:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Sat Sep 10, 2005 4:29 am    Post subject: Reply with quote

would save some space from images (could be replaced by simple text)
would be great :D
Back to top
View user's profile Send private message Visit poster's website
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Sep 10, 2005 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message
LuaNoob



Joined: 21 Sep 2005
Posts: 4

PostPosted: Wed Sep 21, 2005 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Wed Sep 21, 2005 6:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group