johanberntsson / ozmoo

A Z-machine interpreter for the Commodore 64 and similar computers
GNU General Public License v2.0
114 stars 18 forks source link

Character display instead of a line feed for French fonts #43

Closed auraes closed 2 years ago

auraes commented 2 years ago

With the French system font in v5, Ozmoo displays a '↑' character instead of a line break: bugLF

fredrikr commented 2 years ago

I can't reproduce this with the games I've tried. Which game did you see this in?

auraes commented 2 years ago

This seems to happen only with my French translation of the library. With the French translation: screen_fr Without: screen2 bug.tar.gz

auraes commented 2 years ago

The issue seems to come from the use of Zcharacter in my global.h file header. By removing this part of the code, I don't have the issue.

! Part of PunyInform, a standard library for writing interactive fiction using Inform 6.
!
System_file;

!FRENCH
#IfV5;
! treize emplacements disponibles ; il manque 'ä' 'ü' 'ÿ' 'ö' 'æ'
Zcharacter 'à';
Zcharacter 'â';
Zcharacter 'ç';
Zcharacter 'è';
Zcharacter 'é';
Zcharacter 'ê';
Zcharacter 'ë';
Zcharacter 'î';
Zcharacter 'ï';
Zcharacter 'ô';
Zcharacter 'œ';
Zcharacter 'ù';
Zcharacter 'û';
#EndIf;
auraes commented 2 years ago

With the original English library: I added !% -Cu in the header of minimal.inf as well as my Zcharacter definitions in the header of global.h. I converted this way for ozmoo : ruby make.rb -cm:fr -f system-FR.fnt minimal.z5 bug

fredrikr commented 2 years ago

I think I understand what's happening. If you could supply me with a story file that exhibits this problem, it would be helpful.

auraes commented 2 years ago

It's all in there: bug.tar.gz

fredrikr commented 2 years ago

Fixed. Thanks for reporting and helping out.