DavidGriffith / inform6lib

The Inform6 interactive fiction standard library (moved to https://gitlab.com/DavidGriffith/inform6lib)
Other
22 stars 9 forks source link

Dictionary of Glulx games can now contain characters outside of ISO 8859-1 #33

Open DavidGriffith opened 8 years ago

DavidGriffith commented 8 years ago

I just noticed this item from the release notes for 6.32 of the Inform6 Compiler:

The dictionary of Glulx games can now contain characters outside of ISO 8859-1. There is a new memory setting, $DICT_CHAR_SIZE: by default this is 1, but setting it to 4 causes the compiler to create a dictionary containing 32-bit Unicode characters.

However, this also requires library changes to be useful, as the library makes use of this dictionary table.

I vaguely recall doing some sort of modification for this, but I'm not sure.

vlaviano commented 8 years ago

I've investigated this issue. The required library changes are nontrivial and have not yet been made (you'd recall having done so). Nor have they been made to I7. I have a good understanding of what needs to be done, so I've created a branch and started making these changes. However, it might not be worth delaying 6.12.1 for this enhancement.

DavidGriffith commented 8 years ago

I agree with your assessment. I'll mark this for 6.12.2.

vlaviano commented 8 years ago

Ran across some experimental work that @erkyrath did in this area for the I7 parser. As the I6 and I7 parsers are similar, it should be a useful reference.

erkyrath commented 8 years ago

Yeah, it's down in the code that hasn't changed much since before I7.

Basically you change the buffer and buffer2 arrays to --> arrays, and then update any code that accesses them.