Thursday, July 19, 2012

LibreOffice Impress Bug

File opened in LibreOffice Impress, tested on version 3.5.4 and (above)
The same file opened in Microsoft Office PowerPoint (below)
Test case file LO-error-testcase-1.pptx

Update: Reported as bug 55260. Fix is already in master (3.7).

Thursday, July 05, 2012

Editing PO File Using Vi

Sometimes I prefer to use vi to do translation, by directly edit a PO file. To complete a partially translated file, it's very handy to know this regex to search untranslated or fuzzy strings:

/^msgstr ""\n^$\|^msgstr\[1\] ""\n^$\|, fuzzy
/^msgstr ""\n^$ will search for untranslated string, taking into account (and skipping) translated multi line strings. ^msgstr\[1\] ""\n^$\ will search for untranslated plural string. While \| are needed to OR multiple regex patterns (need to be escaped).

Update 13rd Jul, 2012: more exact 'fuzzy' matching.