Jump to content
Chinese-forums.com
Learn Chinese in China

  • Why you should look around

    Since 2003, Chinese-forums.com has been helping people learn Chinese faster and get to China sooner. Our members can recommend beginner textbooks, help you out with obscure classical vocabulary, and tell you where to get the best street food in Xi'an. And we're friendly about it too. 

    Have a look at what's going on, or search for something specific. We hope you'll join us. 
trevelyan

Firefox Plugin: Chinese text annotation

Recommended Posts

trevelyan
does it require a connectiong to adsotrans.com? Sometimes its down for me or very very slow.

Yes. If anyone wants to try developing a desktop GUI that will play nicely with C++ code I'd be comfortable helping put together a downloadable version.

Share this post


Link to post
Share on other sites
Site Sponsors:
Pleco for iPhone / Android iPhone & Android Chinese dictionary: camera & hand- writing input, flashcards, audio.
Study Chinese in Kunming 1-1 classes, qualified teachers and unique teaching methods in the Spring City.
Learn Chinese Characters Learn 2289 Chinese Characters in 90 Days with a Unique Flash Card System.
Hacking Chinese Tips and strategies for how to learn Chinese more efficiently
Popup Chinese Translator Understand Chinese inside any Windows application, website or PDF.
Chinese Grammar Wiki All Chinese grammar, organised by level, all in one place.

stephanhodges

Another problem is the pop up window sometimes cuts off the top Hanzi and accents of the pinyin. I've attached a small image of the problem.

263_thumb.attach

Share this post


Link to post
Share on other sites
stephanhodges

Is there any way to increase the size of the hanzi characters in the pop up window or the yellow pop up box? It's hard for me to see them, sometimes. (My issue, but it would help..)

Share this post


Link to post
Share on other sites
trevelyan

Stephen,

The popup is jumping off-screen because the window isn't big enough. I'll take a look at it. If its a common problem for you, you can fix it permanently by editing the file "adso.user.js" and increasing the height of the popup window:

// Customize the Popup

var width_of_popup = 500;

var height_of_popup = 157;

var surrounding_text_length = 46;

I'd like to avoid making system-wide changes to the text size, but will try and add a variable to the script that will give users control over the size of the text. Won't be able to get around to this today but will try to take care of it tomorrow Friday. Thanks for the feedback and suggestions.

Share this post


Link to post
Share on other sites
muldersgun

any chance of adsotrans becoming an offline version? Erik Peterson's dimsum chinese annotator decided to stop working on my computer and i desperately need something else to replace it.

somehow the online adsotrans doesn't support more than say 10 lines of text.

Share this post


Link to post
Share on other sites
sui.generis
(3) annotation doesn't work for webpages encoded in BIG5 yet.

You could probably use it in conjunction with 同文堂, and never have to add that feature for yourselves.

Share this post


Link to post
Share on other sites
Prodigal Son

Does this work with Firefox 1.5.0.1 (latest version)? It's not working properly for me; I've installed and restarted Firefox, and greasemonkey and adso are both running, but hitting "a" or mousing over the characters doesn't do anything. Hope to get it working!

Share this post


Link to post
Share on other sites
bokane

Thanks for the pointer to 同文堂 -- it looks absolutely bitchcakes. Unfortunately, Firefox won't let me install it; allegedly, v. 0.2 is only compatible with releases of Firefox through 0.9. Is there a newer version of the plugin than what's hosted on Mozdev? Is Firefox 1.5 just being wrong about this?

Share this post


Link to post
Share on other sites
necroflux
Thanks for the pointer to 同文堂 -- it looks absolutely bitchcakes.

Bitchcakes? sweeeeet.. Is this your own creation or is it really used in Shanghai? :)

Share this post


Link to post
Share on other sites
hlk123

Firefox Plugin: Chinese text annotation

Hello trevelyan

I've done as you've said.

I went to a Sino website to test it.

I press the "a"-button.

When I click a Chinese character a pop-up window from adso appears. In the window are "teach adso" and "chinese forums".

Nothing else.

What have I done wrong?

Thank you.

ps: right below is a monkey

Share this post


Link to post
Share on other sites
sui.generis
Scratch that -- the plugin is now available as ' 新同文堂' off of Mozdev.

there's always someone who hacks the build and makes it availible for newer versions if you google for it. If you visit the 同文堂 forums on the page I linked it also has instructions to make the changes yourself.

Share this post


Link to post
Share on other sites
trevelyan

hlk123,

It sounds as if the Javascript isn't picking up the Chinese text below the mouse. Be sure that you are clicking on actual Chinese text as opposed to whitespace. If the error persists send me a note with the URL and the text on which you're clicking.

Share this post


Link to post
Share on other sites
hlk123

Hello trevelyan

I visited this website:

http://news.xinhuanet.com/world/2006-03/06/content_4265895.htm

When I clicked at the "big" characters above I got from www.adsotrans.com this:

忙里打高尔夫 韩国总理道歉并暗示可能辞职

When I clicked at the "small" characters below I got blank pop-up answer window!!

I have clicked at several characters and each time the reaction was the same.

Share this post


Link to post
Share on other sites
trevelyan

hlk123,

The error is fixed. Thanks for bringing it to my attention.

Share this post


Link to post
Share on other sites
hlk123

Thank you.

I've a question.

When I click at a Chinese character .. several characters are DISPLAYED in an Adso pop-up window. Which criteria do you use for this subset of the characters? The whole characters in a sentence .. or the whole characters in a line .. or ...????

For example .. I read a whole report in a Chinese newspaper. That's why I must click a few times. Each time I must LOOK FOR the last character which I've read .. before I can continue reading the report. It is a little bit annoying .. ;)

But I feel I've a new tool ...! :)

Share this post


Link to post
Share on other sites
kevinjamessmith

I'm running Mac OS X 10.4.5, Firefox 1.5.0.1 and Greasemonkey 0.6.4 and have installed the script, but still can not get it working :wall It shows up fine under "Manage User Scripts...", so I know it's there. Initially, I had a problem where pressing 'a' put Firefox into auto-find-as-you-type mode, which I had to change in the user_pref's under about:config. Is that normal for people to need to change that? Anyway, I'm still having absolutely no results. I'm wondering if one of my other Firefox plugins is getting in the way. I've got NoScript installed, which disables javascript in Firefox except for allowed pages, but have turned it off completely and restarted FF so I can't see how that would still be a problem. Looking through my other extensions there doesn't seem to be anything that would be causing a problem.

I see at least one other person has got this script running on OS X, though he seems to be experiencing some compatibility issues. Anyway, this is a plea for help :help to get this script working.

Share this post


Link to post
Share on other sites
trevelyan

hlk123 --> download the file "adso.user.js" and look for these lines:

// Customize the Popup

var width_of_popup = 500;

var height_of_popup = 157;

var surrounding_text_length = 46;

The first two control the size of the popup window. The third controls the amount of text which is sent for analysis. If the software is picking up too much text by default, reduce that number to whatever feels more reasonable. You can also try increasing the size of the popup window and the amount of text it picks up if that is more convenient. Remember to reinstall the edited greasemonkey script.

kevin --> haven't heard of that problem with the Macintosh before, but I also don't have an Apple so am not in a good position to debug this sort of thing. You should definitely not need to do anything special for this particular greasemonkey script though.

Share this post


Link to post
Share on other sites
梅克立

I've been trying this out on my mac and I've noticed that on certain pages certain characters are NOT in the java popup box. Regardless of them not being there the translator is still translating them as if they were there. For instance 别的 will be missing the 别 but the translator will still say 'biede' and give you the correct translation.

Any ideas?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...