Search found 126 matches

by Linds
Tue Apr 07, 2009 11:51 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Eek! Spoke too soon :( This is what it looks like on a PPC Mac (Intel Macs work great): http://www.allacrost.org/staff/user/jetryl/example.png I'm still waiting to see if it works on Windows properly. What the heck!? My only assumption could be the unicode creators thought it would be somehow poign...
by Linds
Wed Mar 18, 2009 9:41 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Ok, its done. Let me know how this goes for you gorz.
by Linds
Wed Mar 18, 2009 9:41 am
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed revision #1492. ============================================================ Files Modified M src/utils.cpp Primary Changes > Detect the presence of the UTF-16 Byte Order Mark before skipping it. Notes > This should provide greater compatibility with varying iconv() implementations. =====...
by Linds
Tue Mar 17, 2009 12:56 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

The filename it should be looking for should have either "dat" or "." in the beginning (can't remember which, although it's probably "."). Somehow the first character of I imagine any string converted from UTF8 to UTF16 is getting cut off. Damnit it looks like the Mac ...
by Linds
Fri Mar 06, 2009 10:10 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Well in the off chance this is an endianness issue I've checked in code to use the correct endianness in the conversion. Its possible because of the existence of the Byte Order Mark there is a default conversion to little endian. Let me know how that goes for you. As for the other error, it seems li...
by Linds
Fri Mar 06, 2009 10:02 am
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed revision #1491. ============================================================ Files Modified M src/utils.cpp Primary Changes > Set endianness of UTF conversion explicitly. Notes > This may fix iconv on PPC and other big endian architectures. ================================================...
by Linds
Thu Mar 05, 2009 2:52 pm
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed revision #1490. ============================================================ Files Modified M src/utils.cpp M src/utils.h Primary Changes > Use more widely available iconv format names for our translation. > Add UTF16 to UTF8 conversion function for debugging. Notes > This may fix iconv o...
by Linds
Thu Mar 05, 2009 2:49 pm
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Ok I did a quick check on the format names of my Mac's iconv and it seems we were using names available on linux that weren't available on OS X. I've commited revision 1490 which changes our names to those available on both platforms. These are ⋅  iconv (GNU libc) 2.7 (linux) ⋅  ...
by Linds
Tue Feb 24, 2009 10:05 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Ok I basically need to know from people if the current trunk works as far as translation goes. I've been able to add 'runic' unicode characters to the French translation thats currently set up and have them display perfectly in dialogue from lua. This is of course in addition to the more standard Fr...
by Linds
Tue Dec 16, 2008 9:48 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Let's stick with UTF-16. As for clearing the glyph cache... let's see, well, when a string is passed to the text renderer it goes via the Translate() function. If a string in English is rendered, then the user switches languages, the same string translated to the new language should not be present ...
by Linds
Tue Dec 16, 2008 6:53 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

I would prefer we deal with this sooner (i.e. now, since we're already working on it) rather than later. I would like the code/game to be fully Unicode-functional when we make the next release so we don't have to come back and look at it again. Ok understood. Well we need to make a decision about h...
by Linds
Sun Dec 14, 2008 11:07 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Ok I've checked in that bad boy. But, there are a few issues for us to deal with in the long run. First and foremost, prophile's point can not go unheeded. UTF16 is a variable byte format and our code currently doesn't take that into account. Anything that uses CalculateTextWidth() will be correct a...
by Linds
Sun Dec 14, 2008 10:24 am
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed reversion #1472. ============================================================ Files Modified M src/utils.cpp M src/utils.h Primary Changes ⋅ Added an iconv based UTF8->UTF16 conversion method. ⋅ Edit MakeUnicodeString to utilise this new method. =======================...
by Linds
Fri Dec 12, 2008 9:46 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Linds' code example converted wchar_t characters to uint16, and then displayed that uint16 string through the video engine correctly. Which can only mean the conversion from the char* returned by gettext to our ustring class isn't working correctly. Yeah MakeUnicodeString() doesn't actually do prop...
by Linds
Wed Dec 10, 2008 12:53 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Sounds to me like Translate should be the following:

Code: Select all

hoa_utils::ustring Translate(const char *text)
{
  return hoa_utils::ustring(static_cast<uint16*>(gettext(text)));
}
by Linds
Tue Dec 09, 2008 11:38 am
Forum: Programming
Topic: Getting gettext & translation into Allacrost
Replies: 115
Views: 32705

Re: Getting gettext & translation into Allacrost

Thanks Linds :) Linds told me that converting the rendering code to support UTF-8 would be a pain in the butt, since UTF-8 is a variable-byte encoding scheme. Gettext can be configured to use UTF-16 easily enough. Our ustring class essentially implements UTF-16 as well. What I'm still perplexed abo...
by Linds
Mon Dec 08, 2008 12:42 pm
Forum: Programming
Topic: Programmer Roll Call
Replies: 209
Views: 36341

Re: Programmer Roll Call

Ok I've been investigating the square blocks issue at gorzuate's request and have found the following: This works (added to the bottom of boot.cpp for quick results): VideoManager->Text()->Draw("Copyright (C) 2004 - 2008 The Allacrost Project"); VideoManager->MoveRelative(0.0f, 20.0f); con...
by Linds
Wed Nov 12, 2008 12:13 pm
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed reversion #1458
============================================================
Files Modified
M src/engine/video/textbox.cpp

Primary Changes
  • Fix typos from previous commit.
by Linds
Wed Nov 12, 2008 12:12 pm
Forum: Programming
Topic: Subversion Commit Log
Replies: 637
Views: 179820

Re: Subversion Commit Log

Committed reversion #1457 ============================================================ Files Modified M src/engine/video/textbox.cpp M src/engine/video/textbox.h M src/engine/video/video.cpp M src/engine/video/video.h Primary Changes ⋅ Added ability to enable outline drawing on all TextBo...
by Linds
Fri Oct 24, 2008 8:59 am
Forum: Programming
Topic: Programmer Roll Call
Replies: 209
Views: 36341

Re: Programmer Roll Call

Got the textbox support underway now, but wondering about this on the API level: Did you want to enable this on an item by item basis or just turn it all on/off at once with a global switch?

PS - Not sure if anyones seen this yet, but luabind 0.7.1 was released, with lua 5.1 support.

Go to advanced search