tag:blogger.com,1999:blog-20155610.post4422026321449118294..comments2024-03-06T02:46:19.929+00:00Comments on Translation Tribulations: Dynamic filtering with regular expressions in memoQKevin Lossnerhttp://www.blogger.com/profile/14727800526216764023noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-20155610.post-15493439709637619442016-03-30T00:36:27.851+01:002016-03-30T00:36:27.851+01:00I have been planning to make some memoQ RegEx demo...I have been planning to make some memoQ RegEx demos, and I will eventually get around to putting up some - hopefully sooner than later! I will include live demos as well, so hopefully some translators can be converted.<br /><br />Thanks for the link. I read parts of it, and it looks like a clear and succinct summary of RegEx.<br /><br />I'd also like to recommend http://www.regular-expressions.info/ as a great look-up resource. It's by the author of the Regular Expressions Cookbook, but which sadly doesn't hold that much relevance to translators as it focuses on the common needs of developers (e-mail validation etc). What's funny is that many programmers don't know regular expressions very well, and the language actually seems to be more relevant to us translators at times.<br /><br />Sometimes I think the world might benefit from a translation-oriented book on regular expressions. E.g. a kind of tutorial + dictionary of trivial as well as non-trivial expressions that are useful across many languages. However, I would expect world sales to be around ... 100? :)<br /><br />Have you considered using the following free tool in your workflow?<br />https://languagetool.org/<br /><br />And here are the rule lists for German and English:<br />http://community.languagetool.org/rule/list?lang=de<br />http://community.languagetool.org/rule/list?lang=en<br /><br />I can't tell whether these are any good, as my most common target language, Norwegian, doesn't even have a database (I've thought of starting one though, but not sure if anyone would take notice TBH!)Eirik Birkelandnoreply@blogger.comtag:blogger.com,1999:blog-20155610.post-7221945384823127232016-03-23T15:38:05.449+00:002016-03-23T15:38:05.449+00:00Thank you for sharing your tips here! Our brillian...Thank you for sharing your tips here! Our brilliant colleague Marek Pawelec has also published a good regex tutorial recently on an Adobe blog. It will be found at http://blogs.adobe.com/techcomm/2016/03/framemaker-regular-expressions.html<br /><br />The two Kilgray videos (with Denis Hay and Miklos Urban) on using regex are also well-presented, but I think both suffer from too great a scope for most viewers to absorb in one sitting. Covering more than one application area for regex in memoQ in detail is a recipe for a burst head in most people. These are probably best dealt with in application area chunks, but of course they are not indexed, so this isn't very easy. Kevin Lossnerhttps://www.blogger.com/profile/14727800526216764023noreply@blogger.comtag:blogger.com,1999:blog-20155610.post-81273392910924568112016-03-23T15:15:22.338+00:002016-03-23T15:15:22.338+00:00Good to see that someone else is using the RegEx f...Good to see that someone else is using the RegEx functionality. Thanks for writing this great blog!<br /><br />I'd like to share some checks I found useful recently:<br /><br />Checking for missing period in target:<br />Source: \.$<br />Target [^.]$<br /><br />Check if word is present in source, but missing in target string:<br /><br />Source: someWord<br />Target ^((?!someWord).)*$<br /><br />The target regex traverses the string step by step and uses a lookahead at each step to check if the word is matched. This is somewhat computing intensive. Whenever I write RegEx I mostly use the below regex101 as my testing ground.<br /><br />https://regex101.com/r/jK4aR3/1<br /><br />I totally agree that memoQ would benefit from having lists of regular expressions. That would really make it useful to anyone.Eirik Birkelandnoreply@blogger.com