From: Serge N. <Ser...@fr...> - 2013-08-11 15:02:40
|
Le 11/08/2013 16:22, Tony Proctor a écrit : > I'm not a fan of text-based filters for this type of application. I know through experience that they can be fragile and error-prone, especially if misapplied to an idea that would be safer involving "objects" rather than text. > > Just to stir things up a little, can I refer you to a FHISO paper that does seem to be relevant here: http://fhiso.org/files/cfp/cfps19.pdf Perhaps you are right, But how do you search for search a string ? n(e|é|es|ey|oua|oai|o[iya](e|)|a[iy])r(r|)(o(n|t|d|s)|((e|)au(x|t|d|lt|))) I use this regexp for all the possibilities I found for the name "noiraud" since 1515. > > Tony Proctor > > ----- Original Message ----- From: "Nick Hall" <nic...@ho...> > To: "Serge Noiraud" <Ser...@fr...> > Cc: "Gramps-developers mailing list" <gra...@li...> > Sent: Sunday, August 11, 2013 3:16 PM > Subject: Re: [Gramps-devel] Filters and regular expressions > > >> On 11/08/13 09:59, Serge Noiraud wrote: >>> It doesn't work any more for me : >>> I get the following messages for all my filters: >>> >>> WARNING: Too many arguments in filter « XXXXX » ! >>> Trying to load with subset of arguments. >>> >>> I needed to edit all the filters and put again "use regexp". >>> Now all filters are working again >> >> Serge, >> >> Thanks for reporting this. >> >> The warning occurred with the five upgraded rules that already used >> regular expressions. >> >> People with records containing <substring> >> People with the <name> >> Families with child with the <Name> >> Families with father with the <Name> >> Families with mother with the <Name> >> >> I've added some code to automatically update these rules when they are >> first loaded. Let me know if this fixes your problem. >> >> Nick. >> > > |