[zanata-bugs] [Bug 831056] RFE: [Translation Memory] Option for highlight only the search terms

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 30 07:32:14 UTC 2012


Product: Zanata
https://bugzilla.redhat.com/show_bug.cgi?id=831056

Sean Flanigan <sflaniga at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?                   |

--- Comment #7 from Sean Flanigan <sflaniga at redhat.com> ---
I don't think we want to make a big thing of this RFE.  Just highlight the
matching bits, according to diffmatchpatch, hide the missing bits, and show the
added bits unhighlighted.  Some edge cases may not highlight well, but they may
not be worth worrying about.

If we really wanted to, we could tell diffmatchpatch not to do "semantic
cleanup" (see org.zanata.webtrans.client.ui.Highlighting.diff(String, String)),
but this will probably make the highlighting uglier in most cases.

I suppose it could be useful to turn off semantic cleanup only in the cases
where it makes a complete mess (eg one big deletion, and one big insertion). 
But it's probably not worth the effort.

Or you could try turning off semantic cleanup whenever term highlighting is
active, and we could see if we like the results.

-- 
You are receiving this mail because:
You are on the CC list for the bug.




More information about the zanata-bugs mailing list