GithubHelp home page GithubHelp logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Type should be Enhancement.

Original comment by [email protected] on 27 Oct 2008 at 7:15

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Could you provide us with some examples, say, third party application that 
support
this feature? I have seen that this feature is supported by Apple Softwares. It 
is
really cool, but I'm not sure if we could find some example codes about how to
implement it.

Original comment by [email protected] on 27 Oct 2008 at 7:38

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
OS X's standard dictionary is supposed to work with any application that uses 
Cocoa text rendering, but I 
think something is different with the way Welly renders and possibly 
idiosyncrasies of telnet (multi-byte 
chinese characters) that prevents it from working.

This makes me think that making a feature (or plugin) directly for Welly might 
be a better approach. Basically, 
with a keyboard shortcut, the word that is currently selected with the cursor 
(mouse or maybe text cursor) 
would show a small popup (or maybe a line in the status bar) that queried that 
word in a free Chinese or 
English dictionary.

I can't find example code now, but here is a firefox tool that has the kind of 
functionality I think would work 
best:
https://addons.mozilla.org/en-US/firefox/addon/3349

I'll keep looking to see if I can find some open source projects that have this 
kind of feature.

Can you please clarify your question, though. What is the confusing part: which 
dictionaries to use and how to 
query them, or how to get the text from the currently selected word?

Original comment by [email protected] on 27 Oct 2008 at 11:12

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Upon some further research, I think working with OS X's standard dictionary is 
the best way. I'm trying to find 
some help for this.

Original comment by [email protected] on 27 Oct 2008 at 11:40

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
So with a few modifications Dictionary.app's tooltip function is very usable 
for looking up english and chinese 
words. 

Dictionary.app's popup function (command-ctrl-D with the mouse over a word) 
works for all apps that use 
Cocoa text rendering.  In fact, if I type an English or Chinese word into 
Welly's address bar, it will give a 
definition. I have attached a screenshot showing this functionality (I have 
typed 最近, then pressed command-
ctrl-D).

It doesn't work on the BBS window, though. I suspect it is because of the way 
Welly renders telnet text. Does 
anyone know if modifying Welly so that the built in dictionary popup is 
possible?

Original comment by [email protected] on 27 Oct 2008 at 11:53

Attachments:

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
it is not clear how to support the shortcut, because welly is not using 
standard widgets for text rendering...

maybe one can try to find some dictionary api or clone the text in some 
standard widget.

Original comment by [email protected] on 6 Nov 2008 at 4:18

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
I guess we shall implement some interface function so that the Dictionary.app 
can 
fetch the text it need. However, what's the interface?

Original comment by [email protected] on 28 Nov 2008 at 5:08

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
Guys, this may help: 
http://www.mail-archive.com/[email protected]/msg11727.html

Original comment by [email protected] on 11 Feb 2009 at 1:44

from welly.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 15, 2024
implemented in r790

Original comment by [email protected] on 14 May 2010 at 3:46

  • Changed state: Fixed

from welly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.