Cannot parse Greek characters in Inform 7

A more useful thread can be found at unicode problem.

zarf may not be giving himself enough credit. Using the version of Unicode Parser linked there (which is still compatible with 6M62, though I’m not sure about 10.1.2), I got the following transcript:

Adventure Lab
You can see a ΔV here.

> x
(the ΔV)
You see nothing special about the ΔV.

> x ΔV
You see nothing special about the ΔV.

> παίρνω
(the ΔV)
Taken.

The source code used was:

Include Unicode Parser by Andrew Plotkin.

The Adventure Lab is a room.

A thing has a text called greek-name. Understand the greek-name property as describing a thing. [see Unicode Parser documentation]

A ΔV is in Adventure Lab. The printed name of it is "ΔV". The greek-name of it is "ΔV".

Include
(-	Verb '@{3C0}@{3B1}@{3AF}@{3C1}@{3BD}@{3C9}' = 'get';
	Verb '@{3C0}@{3B1}@{3B9}@{3C1}@{3BD}@{3C9}' = 'get';
	Verb '@{11D}et' = 'get';
-) 	after "Grammar" in "Output.i6t". [see Unicode Parser documentation]

and to get it to compile, it was necessary to:

  1. Compile I7 source code.
  2. Go to the projects “Build” directory (where auto.inf was generated).
  3. Issue the command /usr/lib/x86_64-linux-gnu/gnome-inform7/inform6 -wxE2kSDGC7 $huge auto.inf output.ulx
  4. Test the compiled game with a non-IDE interpreter.

Note that the C7 switch is not normally included. Someone may be able to offer a way to get the IDE to add it; I don’t know of one. [EDIT: Also note that the C7 switch does not appear to be necessary for Glulx. See post below.]

It sounds like you have your work cut out for you. Good luck!

P.S. You may also want to take special note of a mention in the Glk specification section 2.6.1:

The initial decomposition is only necessary because of a historical error in the Unicode spec: character 0x0345 (COMBINING GREEK YPOGEGRAMMENI) behaves inconsistently.

3 Likes