DavidGriffith / frotz

Infocom-style interactive fiction player for Unix and DOS (moved to https://gitlab.com/DavidGriffith/frotz)
GNU General Public License v2.0
209 stars 64 forks source link

Accents and other special characters missing #22

Open vanfanel opened 8 years ago

vanfanel commented 8 years ago

Hi,

I am trying to use an spanish translation for "Adventure", but accents and other characters like ñ letter and opening "¡" are missing. It seems Frotz is still missing UTF-8, right?

DavidGriffith commented 8 years ago

Correct. I'm concentrating now on getting audio working correctly.

vanfanel commented 8 years ago

Great to hear it will be fixed, David! Thanks :+1:

vanfanel commented 7 years ago

Did it ever get to work? I mean, the missing accents, etc. I am going to do a gameplay of Zork in spanish soon (there's a translated version) with some friends, and I'd love to do it with Frotz on the Raspberry Pi :)

DavidGriffith commented 7 years ago

Nothing yet.

alessioscand commented 7 years ago

Hello, same "issue" with Italian translation of Zork. Can't wait to see it fixed, thanks! :D

vanfanel commented 7 years ago

Any news on this? Thanks!

DavidGriffith commented 7 years ago

Nothing yet. I've been working on other stuff.

vanfanel commented 6 years ago

Any news on this, @DavidGriffith ? I still want to play "Aventura" (the spanish version of "Adventure") on the Raspberry Pi! :dancing_men: (BTW, I fixed Hypseus, I seem to recall you were interested on it for the Pi)

DavidGriffith commented 6 years ago

Nothing new. I do have some time tonight and tomorrow to study the problem.

vanfanel commented 6 years ago

@DavidGriffith : Any news on this? I am having friends coming home soon who would enjoy the spanish translation of Adventure and Zork! :)

DavidGriffith commented 6 years ago

No news. Honestly, I'm not at all clear how I'd tackle this problem.

auraes commented 6 years ago

I tried the game Adventure in Spanish and all seems ok with accents. I tried with Gargoyle-Frotz, Dos-Frotz, and Linux-Frotz (with scrit: luit -encoding iso-8859-1 frotz -d $1) and all seems ok. The game: https://www.ifarchive.org/if-archive/games/zcode/spanish/aventura.zip

vanfanel commented 6 years ago

@auraes : Thanks for the tip! However, isn't luit an X11-only thing? I run frotz on real TTYs. @DavidGriffith: All luit does seems to do is convert to any given encoding... Wouldn't it be possible just to make FROTZ to output in a given encoding by passing it an encoding type parameter?

auraes commented 6 years ago

With wide character functions and ncursew, it's probably possible to do something!

//gcc -Wall -W -std=c99 accents.c -otest
#include <wchar.h>
#include <locale.h>
const wchar_t *accents = L"¡ ¿ á í ó ú ñ Ñ Ó Ú Í Á É ª º";
int main(void)
{
    setlocale(LC_ALL, "");
    wprintf(L"\nAcentos españoles: %ls\n", accents);
    return 0;
}
vanfanel commented 6 years ago

@DavidGriffith : What do you think about @auraes proposed solution?

DavidGriffith commented 6 years ago

@vanfanel I think it's good, but I really don't know how to go about implementing it. I'm open for suggested patches.