PossessiveProperNoun
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        



PossessiveProperNoun Expand / Collapse
Author
Message
Post #21610 Posted 5/8/2008 4:01:42 AM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Group: Customers
Last Login: 6/29/2008 3:20:07 PM
GenoPro Version: 2.0.1.4
Posts: 57, Visits: 272
The rule I'm trying to define is as follows: If the last character is an "s", "x" or "z" then use the value as is else append an "s".  E.g., Alice should become Alices, like in "Alices vader" and Charles should remain unchanged like in "Charles vader".

The original (EN) code is: <PossessiveProperNoun T="(s$)=$1':(.$)=$1's:" /> which returns Alices and Charles'.  But I wanted to get rid of the terminating apostroph.

I've tried following combinations but they don't deliver the expected result.

T="([sxz]$)=$1:([^sxz])=$1s:"               returns Aslice and Csharles
T="([sxz]$)=$1:(.$)=$1s:"                      returns Alices (OK)  and Charless
T="(s$)=$1:(x$)=$1:(z$)=$1:(.$)=$1s:" returns Alices (OK)  and Charless

Can anybody tell me what I'm doing wrong?

PS: I was unable to use script56.chm as documented but found information at http://msdn.microsoft.com/en-us/library/6wzad2b2.aspx

Post #21611 Posted 5/8/2008 5:53:13 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the translation of GenoPro This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Yesterday @ 5:10:14 PM
GenoPro Version: 2.0.1.5
Posts: 413, Visits: 1,083
Try:

<PossessiveProperNoun T="([^ sxz]$)=$1s:" />

This code means: if not (the '^') ending (the '$') with s, x or z, append an 's' at the end.

I tried it with my tree and it looks OK.

JC

Update: the script56.chm file can be downloaded at MS:

http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

Post #21612 Posted 5/8/2008 6:24:02 AM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Group: Customers
Last Login: 6/29/2008 3:20:07 PM
GenoPro Version: 2.0.1.4
Posts: 57, Visits: 272
Thanks JC,  your suggestion works.

Turns out that I forgot the "$" after "[^sxz]".  That's the sort of error you don't see when you wrote it yourself.

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:47 AM

Copyright 1998-2008 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.