2

There is a very elegant solution to use shortkeys to search the internet (or translate on Google Translation etc) a text selected in a text editor/viewer, but that solution does not seem to work in programs installed under Wine, like Notepad and Office 2007.

I wander what the cause might be and whether there is a way to make it work.

(I created this question to bring this into spotlight, but in the end it may be closed as duplicate of the other one, and its answers migrated there. So, in case you feel like closing this, please wait until an accepted answer is posted, or even better try to answer it - here or there.)


Edit after IgnitE's comments:

  • A problem is that a text selected in a wine application it is not directly available outside wine. That might make unusable the script in the linked answer, which involves xclip (and that is clearly outside Wine).

  • Wine is a Linux program. I use libreoffice and office2007 for translating, writing and editing texts and want to be able to use shortcuts to search selected text in search engines or to translate it quickly in the same way. it saves me a lot of time and am already able to do it in libreoffice.

  • Why not writing a wine script? winetricks is nothing but that

5
  • 1
    I don't think it's possible out of the box. Have a look at wiki.winehq.org/CopyAndPaste
    – ignite
    Feb 20, 2013 at 13:28
  • 1
    I mean that, if you select any text in some wine application, it's not directly available outside wine. Also solution, you provided is making me search inside wine.
    – ignite
    Feb 20, 2013 at 14:20
  • It's turning out to be more interesting than I thought!
    – ignite
    Feb 20, 2013 at 15:18
  • @IgnitE: sorry for not noticing later: you said: solution, you provided is making me search inside wine. what is the solution you are reffering to? you mean the answer below on PDFXchange? in my case it opens my default Ubuntu browser, Firefox. It is an instance of a Wine text viewer from which selected text is searched outside Wine.
    – user47206
    Feb 20, 2013 at 16:24
  • 1
    So my guess is, PDFXchange is copying the text to clipboard, which is available outside wine! I just said that the selected text is not available outside wine.
    – ignite
    Feb 20, 2013 at 22:18

1 Answer 1

1

This is a limited and incomplete answer, but maybe useful.

A program that runs under Wine and can search as required in the question is PDF-Xchange Viewer. The feature is part of this excellent program, only that it is not done by shortkey, but from the context menu.

So, selecting a text:

enter image description here

(the menu is already customized)

To add new options:

enter image description here

enter image description here

In this way the default Ubuntu web browser opens as expected.

(It is an example of text selected in a Wine program and searched outside Wine.)

1
  • the question asks for shortkeys, but i post this for reference, especially that i found the solution that works in the native text editors/viewers while asking for a context-menu search (askubuntu.com/q/216770/47206)
    – user47206
    Feb 22, 2013 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy