From pawel.swoboda at gmail.com Mon Feb 22 06:39:40 2016 From: pawel.swoboda at gmail.com (=?UTF-8?Q?Pawe=C5=82_Swoboda?=) Date: Mon, 22 Feb 2016 12:39:40 +0100 Subject: [Tshwanelex-l] Filter using list of lemma signs Message-ID: I am wondering if there is a possibility to filter entries using list of lemma signs? Any suggestions? Regards Pawe? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.yale.edu/pipermail/tshwanelex-l/attachments/20160222/d9f83b80/attachment.html From malcolm.macleod at tshwanedje.com Mon Feb 22 13:58:51 2016 From: malcolm.macleod at tshwanedje.com (Malcolm MacLeod) Date: Mon, 22 Feb 2016 20:58:51 +0200 Subject: [Tshwanelex-l] Filter using list of lemma signs In-Reply-To: References: Message-ID: <1456167531.6455.51.camel@tshwanedje.com> Hello Pawel, Offhand I can't think of any direct way of doing this - i.e. a feature actually targeted at this. However it could be done with a relatively simple 'LUA script' filter. One other trick I can think of to accomplish this is as follows: 1) Turn your lemma sign list into a large regular expression of the form: ^lemmasign1$|^lemmasign2$|^lemmasign3$ Add an extra |^...$ for each word in the list, you can convert from e.g. an excel list of words to a regexp like this relatively easily using a text editor like notepad++ or similar. 2) In the TLex search dialog, limit the search to the Entry::LemmaSign field 3) Tick the "regular expression" search box 4) Paste the regular expression in 5) Search 6) Click the link to turn the search results into a filter. Hope this helps. Regards, Malcolm MacLeod > I am wondering if there is a possibility to filter entries using list > of lemma signs? > Any suggestions? > > Regards > > Pawe? > _______________________________________________ > Tshwanelex-l mailing list > Tshwanelex-l at mailman.yale.edu > http://mailman.yale.edu/mailman/listinfo/tshwanelex-l -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.yale.edu/pipermail/tshwanelex-l/attachments/20160222/6ad85446/attachment.html