Jump to content
Chinese-Forums
  • Sign Up

New Javascript


Recommended Posts

Posted

Quick update to let people know that we have new javascript code powering the Adsotrans popups. I've blogged about it briefly on the site. There are two major improvements though:

  1. click on any word to edit its definition in real-time
  2. highlight text to add words (don't forget to add the english)

I'm really pleased with the changes personally. The new interface is tested on Internet Explorer and Firefox. I'd appreciate reports of popup/editing failures on Safari or other browsers and will make changes/fixes to support other browsers as I can.

Posted

Very nice. Would make a great Firefox add-on tool :)

Also worth considering:

A favicon for http://adsotrans.com/

so that it fits on one's Firefox bookmarks toolbar and is recognizable without lengthy words.

I'm not partial to any design, and a simple @ would serve the purpose.

Posted

@character - the database is distributed along with the engine. A revised version will be out tomorrow.

The new javascript is just the editing interface for the website itself.

Would be nice to have a favicon... any volunteers? (I'm truly awful at art)....

Posted

Nice job! And it would be nice to have a simple tool to mark the pinyin tones. I just input 电子手帐 in the dictionary, but don't know how to write a tonal mark.

And it seems that the system mainly support simplified Chinese and there's no conversion between them. The term 微软 shows "microsoft", but "微軟" shows "Micro" and "軟" isn't annotated.

Posted

Awesome! First time I've seen them both. I really like the second one and will convert it into a favicon tomorrow. :)

Posted

Quick issue - testing out the implementation on the forums, and it seems that line breaks are not preserved. If I attempt to annotate

[adso]你好

你好。[/adso]

I get the text back, but not the spacing.

Posted

Let me take a look at it. Can probably figure out what is going on.

That being said, I honestly think you'll get a much more usable site using the automatic wrapping that the WordPress plugin provides. It breaks up the annotating span tags at every ASCII entry, so you'd have two bits to annotate rather than one, and the response time will be faster.

Posted

Was defensively stripping tags before processing text. Have disabled this for now. But really think you should be marking up only the Chinese content for submission. I'll send you an email with the code that will do this automatically.

Posted

Yeah, I can understand that - however, if I'm going to let people tag stuff on the forums I can't guarantee that they will . . .

It's not a major issue though, just something I noticed during testing.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...