TranslateSelection
TranslateSelection copied to clipboard
Allow tab-separated copy
Here's a feature request in two parts:
- I'd like to display a translation source and result separated by a tab, so that I could copy/paste it into a spreadsheet. From the spreadsheet I could import it into a flashcard-creating app like AnyMemo (http://anymemo.org/), and I'd have an awesome language learning tool system: I could read articles in a foreign language, translate the words and phrases I don't know, and easily create a flash card deck from that. I mean I can do that now, but it takes several more clicks for each item.
- Even more awesome would be to let me do all the translations I want on a given web page, and then when I click the plug-in icon, I get a text box containing the tab-separated translations, one per line. Then I could copy/paste the whole set to a spreadsheet in one action.
Implementation? I poked around the code briefly, and to do item 2, I'd guess you'd want to add specific CSS classes and data attributes to the translation source spans and result spans so you collect them all at once from the DOM and pair them up. Or maybe you could use localStorage? (Sorry, I've never done a plug-in). If that's too big a change, then item 1 would still be useful and much simpler to implement. Keeping the UI clean seems the biggest challenge there.
All that said, this is a great tool as is. Thank you!