intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Sep 22, 2017 7:03 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Sep 11, 2017 10:34 am 
Offline

Joined: Mon Sep 11, 2017 9:19 am
Posts: 4
Hello everyone !

I've a big problem with the Italian Language extension (is the last version and I've the last of Text Capture ).

When I try to compile and run the story in Inform7 (vr 6M62) on Ubuntu 17.04 64bit, the report show my this problem:

In Volume 1 - Settings in the extension Italian Language by Massimo Stella:

Problem. The sentence 'The grammatical gender of an object is usually masculine gender' appears to say two things are the same - I am reading 'grammatical gender of an object' and 'masculine gender' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

Problem. The sentence 'The grammatical gender of a woman is usually feminine gender' appears to say two things are the same - I am reading 'grammatical gender of a woman' and 'feminine gender' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

Problem. The sentence 'The grammatical gender of a man is usually masculine gender' appears to say two things are the same - I am reading 'grammatical gender of a man' and 'masculine gender' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

Problem. The sentence 'The past historic tense is a grammatical tense' appears to say two things are the same - I am reading 'past historic tense' and 'grammatical tense' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

In Section 1 - Grammatical definitions in the extension English Language by Graham Nelson:

Problem. You wrote ''A grammatical tense is a kind of value' ', but that seems to say that some room or thing already created ('grammatical tense', created by ''The past historic tense is a grammatical tense' ') is now to become a kind. To prevent a variety of possible misunderstandings, this is not allowed: when a kind is created, the name given has to be a name not so far used. (Sometimes this happens due to confusion between names. For instance, if a room called 'Marble archway' exists, then Inform reads 'An archway is a kind of thing', Inform will read 'archway' as a reference to the existing room, not as a new name. To solve this, put the sentences the other way round.)

Problem. The sentence 'The grammatical tenses are present tense, past tense, perfect tense, past perfect tense and future tense' appears to say two things are the same - I am reading 'grammatical tenses' and 'present tense' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

Problem. In order to act on 'The narrative viewpoints are first person singular, second person singular, third person singular, first person plural, second person plural, and third person plural' , I seem to need to give a new meaning to 'second person singular', something which was created by the earlier sentence 'The adaptive text viewpoint of the Italian language is second person singular' . That must be wrong somehow: I'm guessing that there is an accidental clash of names. This sometimes happens when adjectives are being made after objects whose names include them: for instance, defining 'big' as an adjective after having already made a 'big top'. The simplest way to avoid this is to define the adjectives in question first.

Problem. You wrote ''A grammatical gender is a kind of value' ', but that seems to say that some room or thing already created ('grammatical gender of an object', created by ''The grammatical gender of an object is usually masculine gender' ') is now to become a kind. To prevent a variety of possible misunderstandings, this is not allowed: when a kind is created, the name given has to be a name not so far used. (Sometimes this happens due to confusion between names. For instance, if a room called 'Marble archway' exists, then Inform reads 'An archway is a kind of thing', Inform will read 'archway' as a reference to the existing room, not as a new name. To solve this, put the sentences the other way round.)

Problem. The sentence 'The grammatical genders are neuter gender, masculine gender, feminine gender' appears to say two things are the same - I am reading 'grammatical genders' and 'neuter gender' as two different things, and therefore it makes no sense to say that one is the other: it would be like saying that 'Tarzan is Jane'. It would be all right if the second thing were the name of a kind, perhaps with properties: for instance 'Treehouse is a lighted room' says that something called Treehouse exists and that it is a 'room', which is a kind I know about, combined with a property called 'lighted' which I also know about.

Problem. In 'The story tense is a grammatical tense that varies' , 'grammatical tense' is not a kind of value which a variable can safely have, as it cannot be guaranteed that the contents will always meet this criterion.

Problems occurring in translation prevented the game from being properly created. (Correct the source text to remove these problems and click on Go once again.)


How can I do for fix it ? :|


Top
 Profile Send private message  
 
PostPosted: Fri Sep 15, 2017 3:24 pm 
Offline

Joined: Tue Jul 17, 2012 5:06 pm
Posts: 147
The problem is not with Ubuntu. These are error messages from the Inform 7 compiler; it is complaining about "illegal" code in the version of the Italian Language extension that you have.

As far as I know, there is no version of the Italian Language extension that is compatible with 6M62. (You can search on this board to see similar complaints.) I believe that the latest version of Italian Language is compatible with Inform 7 version 6L38. The best starting place would probably be to downgrade your version of Inform 7 to 6L38.


Top
 Profile Send private message  
 
PostPosted: Fri Sep 15, 2017 5:09 pm 
Offline

Joined: Mon Sep 11, 2017 9:19 am
Posts: 4
Unfortunately I've try with the 6l38 and it shows me the same problem :cry: and the last month "Italian Language" has been updated for the 6m62.


Top
 Profile Send private message  
 
PostPosted: Fri Sep 15, 2017 7:52 pm 
Offline
User avatar

Joined: Fri Jul 11, 2014 12:50 pm
Posts: 79
I'm the maintainer of the French extension, and, if I recall correctly, I encountered the same bug on Linux. The problem is that Inform is supposed to read the English language extension before any other languages, but it's not the case on some Linux.

Therefore, Inform thinks that English Language tries to redefine things defined in Italian, instead of thinking Italian language extends things defined in English. (I hope it's clear.)

I don't know how to solve it directly (I don't have Linux installed, some other users reported it), but I got a workaround. You have to add the following code at the very start of the Italian extension:

Workaround code : show
Code:
Section 1 - Hack

The language of play is a natural language that varies. The language of play
is usually the English language.

A grammatical tense is a kind of value. The grammatical tenses are present tense,
past tense, perfect tense, past perfect tense and future tense.

A narrative viewpoint is a kind of value. The narrative viewpoints are first
person singular, second person singular, third person singular, first person
plural, second person plural, and third person plural.

A natural language has a narrative viewpoint called the adaptive text viewpoint.

The adaptive text viewpoint of the English language is first person plural.

A grammatical case is a kind of value. The grammatical cases are nominative
and accusative.

A grammatical gender is a kind of value. The grammatical genders are
neuter gender, masculine gender, feminine gender.

The story tense is a grammatical tense that varies.
The story tense variable translates into I6 as "story_tense".
The story viewpoint is a narrative viewpoint that varies.
The story viewpoint variable translates into I6 as "story_viewpoint".

To say regarding (item - an object): (- RegardingSingleObject({item}); -).

To say regarding list writer internals: (- RegardingLWI(); -).

To say regarding (D - a description of objects): (-
       objectloop({-my:1} ofclass Object)
         if ({-matches-description:1:D})
            give {-my:1} workflag2;
         else
            give {-my:1} ~workflag2;
      RegardingMarkedObjects();
   -).

To decide if the prior naming context is plural:
   (- ((prior_named_list >= 2) || (prior_named_noun && prior_named_noun has pluralname)) -).

Section 2 - Empty Grammatical definitions (in place of Section 1 - Grammatical definitions in English Language by Graham Nelson)

[Nothing in here!!!]

It rewrites the definitions of English Language and empties the corresponding section of English language, so that there are no conflicts left. I don't know if there are any secondary effects, but it seems to work well.

And if that's not the same problem as yours, sorry! I'll try to find another solution.


Grid wrote:
the last month "Italian Language" has been updated for the 6m62
Really? It hasn't been updated on Github. Could you give the location of the last version? I'm curious, since I didn't update the French extension due to a severe bug that would require me to rewrite a lot in the extension, only to revert when the bug is solved. Thanks!


Top
 Profile Send private message  
 
PostPosted: Sat Sep 16, 2017 3:27 am 
Offline

Joined: Mon Sep 11, 2017 9:19 am
Posts: 4
Thank you, now it works :D

You can find the update extension here :
https://sourceforge.net/projects/milleuna/files/Extensions/3.0/


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group