Comments (9)
Type should be Enhancement.
Original comment by [email protected]
on 27 Oct 2008 at 7:15
from welly.
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.
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.
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.
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.
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.
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.
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.
implemented in r790
Original comment by [email protected]
on 14 May 2010 at 3:46
- Changed state: Fixed
from welly.
Related Issues (20)
- look up system dictionary on selections HOT 1
- ANSI 色彩控制碼錯誤 HOT 1
- URL links with singlequote (') will be cut HOT 1
- 同主题阅读时左方向键退出版面 HOT 1
- Swipe gesture support
- 偶尔汉字显示异常,部分重叠
- Maximize welly window size
- Welly depends on discrete GPU HOT 1
- Random crashes on OS X Mavericks
- The width of the Welly is wrong
- 站台無法編輯 HOT 3
- Enable SSH login with ssh keys
- 能否支持自动登录和把地址簿放在iCloud上面?
- can't connect to ptt/ptt2 for weeks when the site has no problem to connect with phone
- 中文介面下書籤功能出問題 HOT 2
- slow image preview at imgur HOT 1
- switch site by mouse, shortcut will be incorrect
- upgrade sparkle framework and make software update work
- notification msg issues
- Fullscreen / window mode switch issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from welly.