Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 19, 2010, 17:38   #11
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,372
AnonymousHero is on a distinguished road
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.
AnonymousHero is offline   Reply With Quote
Old July 19, 2010, 19:57   #12
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Nick View Post
Yeah, I have it in FA, too.

Takkaria wants to move to UTF-8 (which Wikipedia tells me is unicode...), but last I heard he didn't want to do the extended character stuff. I was planning to include the xchars in AngbandBase, but maybe I should look into UTF-8. The only issue is whether I finish it this lifetime.
Hmmm. I can't find any tickets about this issue, but I'm pretty sure I recall discussion on angband-dev about this. There's a vague and unformulated plan to re-do all the text generation functions - primarily for better formatting and paging, but major secondary reasons are small screen support for mobile devices, and translation.

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.
Magnate is offline   Reply With Quote
Old July 20, 2010, 01:17   #13
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by Nick View Post
Yeah, I have it in FA, too.

Takkaria wants to move to UTF-8 (which Wikipedia tells me is unicode...), but last I heard he didn't want to do the extended character stuff. I was planning to include the xchars in AngbandBase, but maybe I should look into UTF-8. The only issue is whether I finish it this lifetime.
That would be good. The extended character patchis a workaround to allows extended characters on the systems that could handle them, but made sure that systems that could only handle the standard ASCII set weren't left out. If we go to unicode they are completely unnecessary.

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.
nppangband is offline   Reply With Quote
Old July 20, 2010, 03:19   #14
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,058
Donated: $60
Nick will become famous soon enough
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 ) on AngbandBase until the situation clarifies.

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.
Nick is offline   Reply With Quote
Old July 20, 2010, 06:20   #15
hernaldo
Rookie
 
Join Date: Jul 2010
Posts: 14
hernaldo is on a distinguished road
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?
hernaldo is offline   Reply With Quote
Old July 20, 2010, 13:58   #16
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
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.
buzzkill is offline   Reply With Quote
Old July 20, 2010, 14:48   #17
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,058
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by hernaldo View Post
Wow, a lot of information for a newie as me!
Some of us here don't always stick to the topic...

Quote:
First: what is FA?
FAangband (short for First Age Angband is a variant, which I maintain.

Quote:
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?
The other (quicker, but less neat) way of handling it is the extended characters (xchars) which have been mentioned. They are used in some variants, but not in Angband itself.

Quote:
Third: what object I can start to see in the source code for modify the encoding o Ascci symbols to add this 8 symbols?
You will really need either xchar or UTF-8 support for this. I would recommend that you start by just using the unaccented characters (I'm not sure how badly that effects the meaning in Spanish), and then change over once there is some support for accented characters in Angband.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old July 20, 2010, 15:28   #18
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
As long as the game never refers to years... if you remove the tilde from the in ao, 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!
ekolis is offline   Reply With Quote
Old July 20, 2010, 16:27   #19
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by hernaldo View Post

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?
We are talking about an extended character patch that offers 256 characters instead of the standard ASCII that Angband currently uses. It has the 8 characters you are looking for.

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.
nppangband is offline   Reply With Quote
Old July 21, 2010, 05:34   #20
hernaldo
Rookie
 
Join Date: Jul 2010
Posts: 14
hernaldo is on a distinguished road
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!
hernaldo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 06:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.