![]() |
#11 |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
Maybe I'm missing something, but aren't you going to need to handle those cases either way? Gettext still makes the easy cases easy...
Oh well, it was just a suggestion. |
![]() |
![]() |
![]() |
#12 | |
Angband Devteam member
|
Quote:
I guess it's a big enough issue that it needs a steer from Takkaria on his views / intentions etc. Personally I don't see any point redoing text functions for one reason (say, supporting different screen sizes) without also accommodating translation. But it's a lot of work. |
|
![]() |
![]() |
![]() |
#13 | |
NPPAngband Maintainer
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
![]() |
Quote:
Are there any systems supported by Angband that can't handle unicode? If Takkaria opts against unicode and does want the extended character patch, it would probably take me about 15 minutes to add it. I will be happy to take that on if a ticket is added. The hard part when we made the patch was we had to create our own fonts, since Angband was still under the old moria license. Now that it is open source/GPL, I am sure there are many other size fonts we can add. |
|
![]() |
![]() |
![]() |
#14 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,480
Donated: $60
![]() ![]() |
I'm inclined to favour the "include xchars as a quick fix, but aim to move to UTF-8 asap" approach, but I agree we need takkaria's approval on the first bit of that. From my personal point of view, I would like to add xchars to the AngbandBase code (as I'm planning to incorporate that into FA, and I don't want to remove xchars from FA); however I want AngbandBase to remain aligned with V. So I'm going to do unconnected stuff (or possibly nothing
![]() As to unicode handling - I'm guessing pretty much everything can deal with it, but only guessing.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#15 |
Rookie
Join Date: Jul 2010
Posts: 14
![]() |
Wow, a lot of information for a newie as me!
First: what is FA? Second: my native language is Spanish, ASCII symbols besides, I just need these eight special symbols: á, é, í, ó, ú, ñ, ¡, ¿ Is necesary to use UTF-8 for handling it? or there are other way? Third: what object I can start to see in the source code for modify the encoding o Ascci symbols to add this 8 symbols? |
![]() |
![]() |
![]() |
#16 |
Prophet
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
![]() |
Without going crazy with the source code, you could just create a custom font with a font editor. I'm sure you could find 8 characters that are never used and change them into the ones you need. Probably not the best solution, but certainly doable.
__________________
www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012. My banding life on Buzzkill's ladder. |
![]() |
![]() |
![]() |
#17 | |||
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,480
Donated: $60
![]() ![]() |
Some of us here don't always stick to the topic...
Quote:
Quote:
Quote:
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|||
![]() |
![]() |
![]() |
#18 |
Knight
|
As long as the game never refers to years... if you remove the tilde from the ñ in año, you get abominations like "I have twenty-six anuses" instead of "I am twenty-six years old"!
![]()
__________________
You read the scroll labeled NOBIMUS UPSCOTI... You are surrounded by a stasis field! The tengu tries to teleport, but fails! |
![]() |
![]() |
![]() |
#19 | |
NPPAngband Maintainer
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
![]() |
Quote:
The patch has been long lost, but the code can be found in FAAngband, Sangband and NPPAngband and I am sure a couple others. Just GREP the source for the following: xchar, latin1, my_toupper, my_tolower... and you will find everything you need. THere are about 5-6 functions that need to be added and called in a couple select parts of the source code. This patch is a workaround. You can't type an accented character directly in a file and have it procesed. Instead you have to put in a special code, like ['e] and it types out é for systems that can handle it, and e for those older systems that can only use ASCII. By the way, if anyone does have a copy of the extended character patch that we made, I would greatly appreciate a copy. Leon Marrick had it on his server, but that is down. I lost my copy when an older computer I stored it on had a meltdown. |
|
![]() |
![]() |
![]() |
#20 |
Rookie
Join Date: Jul 2010
Posts: 14
![]() |
Well, i have two options:
Translate FA, I make a couple of tests and it works!, y can put tildes (á) in the text game (for example birth.c), but not in the welcome screen (news.txt), but at least it's a breakthrough. Or someone help me to include xchar into Angband, and here i ask: nppangband remember these functions? regards! |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Morgothian programming language | zaimoni | Idle chatter | 2 | April 22, 2009 09:26 |
Angband and language | tigpup | Idle chatter | 1 | February 1, 2009 12:53 |
C Language | momo125 | Vanilla | 11 | February 27, 2008 08:30 |