Re: Angband with an accent: displaying extended characters
- From: "Jeff Greene" <nppangband@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 15 Oct 2005 12:14:39 -0400
"Leon Marrick" <none@xxxxxxxxxxx> wrote in message news:3C64f.9996$MG.4021@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> Angband with an accent
>
> displaying extended characters
>
> people chip in; would you like to help make this happen?
Diego and I are interested, albeit my time is extremely limited and Diego can get busy as well. Diego works on a Linux system, so he can providign the research on that perspective. Still, I think I am speaking for him when I say we are interested. We have been doing some research that may be useful to you. Here is what we have.....
>
> This font has a series of special terrain icons in character
> positions 1-17, leaves positions 18-32 blank for variant terrain
> expansion, leaves positions 33-127 unchanged, adds a series of accented
> characters and monetary symbols (euro, pound, yen) in characters
> 128-165, and includes a Purple X Moria-style snake icon in position 159.
> The remaining character positions are left blank for additional
> customization.
/*Nitpick*/ IMHO some may need to be preserved for RETURN, ESCAPE, CTRL, and things like that.
>
> I have been told that Linux (and other UNIX graphical systems) do
> not allow ordinary users to use custom or application-specific fonts,
> that one has to be root and that the fonts have to be installed in some
> special way. One idea to work around this is to supply custom fonts as
> bitmap files in /lib/xtra/. Is there a reason why this wouldn't work
> for all graphical UNIX systems?
Diego confirmed with me that Linux does not use the *.fon files at all. I will see what he says about this question. Either he will post or I will.
>
> Terminals (various systems (other than IBM/DOS) without graphical
> capacity) (cap, gcu?):
Should be be concerned about Amiga? Not even Vanilla has been compiled for Amiga for several versions.
> Consider an accented name, such as Luthien. In "artifact.txt", it
> is listed as:
>
> # The Shadow Cloak of Luthien
>
> N:49:of Luthien
> I:35:6:2
> W:40:40:5:45000
> P:6:0d0:0:0:20
>
>
> We want a forward slant accent over that u. Let's change this to:
>
> # The Shadow Cloak of Luthien
>
> N:49:of L^'uthien # see explanation below
> I:35:6:2
> W:40:40:5:45000
> P:6:0d0:0:0:20
>
>
Brilliant. There is a chance there is a simpler way, but I don't know if it will allow 100% compatibility with all OSs in all countries. I hand't gotten that far yet. Of the three main OS types out there, Windows uses ANSI, Mac uses MACRoman, and Linux/Unix uses iso-8859-1 (all of which can vary slightly from country to country, that's the problem). All three kernels have the "international letters" we want, so they shouldn't have any trouble reading them from a .txt file. The only thing preventing Angband from actually reading these sybmols is the isprint() check in my_fgets in util.c. The trick is that each OS would store them in different positions, so they would have to be converted, but that is simple.
My source for this is:
http://www.alanwood.net/demos/charsetdiffs.html
Here is a list of characters in the 128-255 set list that are common to all three of these main character sets. I haven't cross-checked with DOS yet, but I think it has most of these....
¡
¢
£
¥
§
¨
©
ª
«
®
¯
°
±
´
µ
·
¸
¹
º
»
¿
À
Á
Â
Ã
Ä
Å
Æ
Ç
È
É
Ê
Ë
Ì
Í
Î
Ï
Ñ
Ò
Ó
Ô
Õ
Ö
Ø
Ù
Ú
Û
Ü
ß
à
á
â
ã
ä
å
æ
ç
è
é
ê
ë
ì
í
î
ï
ñ
ò
ó
ô
õ
ö
÷
ø
ù
ú
û
ü
ÿ
This is the research Diego and I have done in the last couple days. I don't know if that is any help to you at all, or inspires any new ideas for you, but that's where we were.
--
-Jeff
Author of NPPAngband. Check it out at:
http://members.cox.net/nppangband/
replace the ".spam"s with cox.net to reply
.
- References:
- Angband with an accent: displaying extended characters
- From: Leon Marrick
- Angband with an accent: displaying extended characters
- Prev by Date: Re: Angband with an accent: displaying extended characters
- Next by Date: Re: Angband with an accent: displaying extended characters
- Previous by thread: Re: Angband with an accent: displaying extended characters
- Next by thread: Re: Angband with an accent: displaying extended characters
- Index(es):
Relevant Pages
|