Another quirk: "You don't see him"

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Another quirk: "You don't see him"

by Merk » Tue Aug 08, 2006 8:38 pm

Thanks!

by Kent » Tue Aug 08, 2006 1:30 pm

Good idea. I think that should probably go in as a fix.

Another quirk: "You don't see him"

by Merk » Thu Aug 03, 2006 6:05 pm

The applicable bit is around line 1091 in hugolib.h.

If you have a "living" thing that is neither male nor female (an androgenous alien, perhaps), and you've set the appropriate pronouns ("it", "it", "its", "itself), I've found at least one instance where the library will still refer to it as a "him". The code checks to see if the living thing is plural (them), else female (her), else (him).

It'd be pretty easy to test for obj.pronoun #2, and print that instead -- and if non-existent, follow through with the current logic.

For my purposes, I'll probably need to do a NewParseError for that one condition (case 11). :)

(update)

Here's how I've fixed that part, in a little snippet I put inside a NewParseError:

Code: Select all

print CThe(actor); \
    MatchPlural(actor, "doesn't", "don't"); \
    " see ";
if (obj.pronouns #2)
    print obj.pronouns #2;
elseif obj is plural
    "them";
elseif obj is female
    "her";
else
    "him";
print "."

Top