Eloquent Software Forum Index Eloquent Software
Excellent utilities for Mac OS X
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make LiveDictionary Load in Mail and Other Apps
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Eloquent Software Forum Index -> LiveDictionary
View previous topic :: View next topic  
Author Message
mikeash
Site Admin


Joined: 11 Mar 2004
Posts: 127
Location: VA, USA

PostPosted: Wed Apr 21, 2004 10:17 pm    Post subject: Make LiveDictionary Load in Mail and Other Apps Reply with quote

For the more adventurous types out there, I've put together a little guide on how to convince LiveDictionary to load itself into other applications besides Safari. First, the disclaimer: this is totally unsupported, it may not work well, and it could break things. That said, the worst that should happen is that it will fail to recognize some words.

Now that I've scared everybody off, here's how to do it:

1) Open Library (in your home folder if you installed for yourself, the system Library if it was for everybody), then InputManagers, then open LiveDictInputManager.inputManager.
2) Control-click on LiveDictInputManagerLoader.bundle, select "Show Package Contents".
3) In the window that appears, open Contents, then open Info.plist.

If you don't have the developer tools installed, you can open it with TextEdit. Look near the bottom of the file for something like this:

Code:
   <key>LiveDictLoadableAppIDs</key>
   <array>
      <string>com.apple.Safari</string>
      <string>com.milvich.michael.MenuSpell</string>
   </array>


You can add other application bundle IDs to the list and LiveDictionary will load into them. To find out an app's bundle ID, do the "Show Package Contents" thing on them, open their Info.plist file, and find the "CFBundleIdentifier" inside. Mail's bundle ID is "com.apple.mail", so to add Mail to the list, add this line:

Code:
   <string>com.apple.mail</string>


Order doesn't matter as long as it's between <array> and </array>.

If you do have the developer tools installed, the file will open with Property List Editor which will give you a graphical interface to this operation.

Once you've edited the file, save your changes and restart Mail, or whatever application you added to the list. You should get the LiveDictionary menu, and word lookups will start working as in Safari, except for the fact that they may not work everywhere because it doesn't know how to get text from other applications very well. Depending on the application, it may range from near-perfect to nothing at all.

Regardless of the bundle IDs, LD will only load into applications that use Cocoa, and it only knows how to get text from (some) Cocoa controls.

The only other thing to watch out for is the autoupdate process. When the next update comes out, it will only ask you to restart Safari, and it'll be oblivious to the other apps you have running that have LD loaded. The update process will also obliterate your changes to Info.plist and you'll have to redo them.

Again, this is completely unsupported, but I'll try to help you out if you run into problems with this procedure.


Last edited by mikeash on Thu Oct 27, 2005 1:57 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Guest






PostPosted: Wed May 19, 2004 4:39 am    Post subject: LiveDictionary loadable Apps Reply with quote

Here's my list of Applications that succesfully load LiveDictionary:

    Safari
    Mail.app
    iChat
    ecto (ex. Kung-Log)
    NetNewsWire
    Curio
    PulpFiction


And this is the corresponding Info.plist part:

Code:
<key>LiveDictLoadableAppIDs</key>
<array>
    <string>com.apple.iChat</string>
    <string>com.zengobi.curio</string>
    <string>com.apple.Safari</string>
    <string>com.apple.mail</string>
    <string>kungfoo.tv.ecto</string>
    <string>com.ranchero.NetNewsWire</string>
    <string>com.freshsqueeze.PulpFiction</string>
</array>
Back to top
Guest






PostPosted: Tue Aug 17, 2004 5:47 am    Post subject: Getting it to work with OmniWeb 5 Reply with quote

Is there any chance that LiveDictionary might be made to work with OmniWeb 5? I tried the plist trick, adding "com.omnigroup.OmniWeb5" but this causes OmniWeb to crash on launch. Any suggestions?

Thanks,
--Mathew
Back to top
mikeash
Site Admin


Joined: 11 Mar 2004
Posts: 127
Location: VA, USA

PostPosted: Tue Aug 17, 2004 12:45 pm    Post subject: Reply with quote

OmniWeb support isn't likely to happen, at least not soon.

The hardest part about supporting other applications is the code to scrape the text out of them. For things like Mail, iChat, Fire, etc., it's straightforward because they all use the standard Cocoa classes to display text.

Safari was a lot trickier, because WebView is a whole other beast. It took a couple of weeks to get text scraping from WebView to work, and a couple of months to make it work reliably. Other browsers use different ways to display the stuff on the screen, which is why LiveDictionary doesn't work in any browsers other than Safari.

OmniWeb uses a customized version of WebKit, which I assume is why it outright crashes, rather than simply failing to work. It should be possible to get a copy of their customized version and make LiveDictionary's scraper work with it, but it would be a lot of work and it's not a high priority.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
sohailm01
Guest





PostPosted: Sun Jan 02, 2005 9:17 am    Post subject: Omniweb 5 Reply with quote

Mike,

Looks like Omniweb 5 isn't crashing anymore and it's loading the LiveDictionary menu, but the popup's not working any more. Is there any chance we can get you to work on supporting this browser. It would be really killer...
Back to top
Mac New User
Guest





PostPosted: Tue Jan 04, 2005 7:23 am    Post subject: Support MS Office 2004 Reply with quote

Dear All

I've try add LD to support Firem TextEdit and some other applicattion. Is there anyway we can add LD to support MS Office 2004?

Thank you very much in advance.
Back to top
mikeash
Site Admin


Joined: 11 Mar 2004
Posts: 127
Location: VA, USA

PostPosted: Sat Jan 08, 2005 9:56 pm    Post subject: Reply with quote

OmniWeb support is interesting, and I'll consider it, but don't hold your breath. Just getting Safari to work was a great deal of pain, and I don't look forward to doing it again for another browser.

Microsoft Word is probably never going to happen, sorry to say. If there is a public method for getting text out of Word in the way that LiveDictionary needs (exact location of the mouse cursor in the text, mainly) then I'd love to hear it.

Safari support was possible because WebCore is open source, and I was able to examine a lot of its inner workings. Without an open source core or a public API, there isn't much hope.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
flO
Guest





PostPosted: Thu Feb 03, 2005 8:00 am    Post subject: Camino Reply with quote

Has anybode the ID of the browser camino? com.mozilla.camino doesn't work...
Back to top
Guest






PostPosted: Fri Apr 15, 2005 7:26 pm    Post subject: Re: Camino Reply with quote

flO wrote:
Has anybode the ID of the browser camino? com.mozilla.camino doesn't work...


On my old (0.7.0) copy, it's com.mozilla.navigator
Back to top
JoLan
Guest





PostPosted: Mon Apr 18, 2005 4:25 pm    Post subject: Reply with quote

you can get a slightly outdated (?) version of omni's WebCore here
Back to top
bubba
Guest





PostPosted: Mon May 09, 2005 3:44 am    Post subject: Does this still work in 10.4? Reply with quote

Before I go editting files, I would just like to know if people have tried this in 10.4 with the 1.1.5 update and what works, what doesn't.

Thanks again to the authors of this app. It really is one of the most usefull things I have installed on my computer.
Back to top
bubba
Guest





PostPosted: Wed May 11, 2005 6:30 am    Post subject: Reply with quote

It works so far in textedit and mail. 10.4 + 1.1.5 update.
Back to top
mikeash
Site Admin


Joined: 11 Mar 2004
Posts: 127
Location: VA, USA

PostPosted: Wed May 11, 2005 12:08 pm    Post subject: Reply with quote

I have had success using it in Fire, and I've heard it's effective and useful in iChat.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Guest
Guest





PostPosted: Thu May 26, 2005 1:03 pm    Post subject: Reply with quote

And what is about Acrobat from Adobe ?

Often informational text files are published as Acrobat PDFs.

Thank You
Wolfgang
Back to top
Robert Whittier
Guest





PostPosted: Sat May 28, 2005 2:17 am    Post subject: LiveDictionary mit PDFs Reply with quote

Wolfgang,

Safari can now open and view PDFs. Unfortunately, LiveDictionary does not yet recognize the PDF view. Mike says http://forums.eloquentsw.com/viewtopic.php?t=65 he will work on that for a future release. See his final comment in the linked topic.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Eloquent Software Forum Index -> LiveDictionary All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group