Created a bookmarklet for autoconverting from the x-system to real Esperanto Chars
貼文者: cannona, 2012年6月20日
訊息: 5
語言: English
cannona (顯示個人資料) 2012年6月20日上午1:43:17
As an experiment today I created a bookmarklet for converting characters that one types in a text field on a web page using the x-system into their real Unicode equivalents. Anyway, I just thought I'd share.
For those of you non-techy folks, bookmarklets are a special kind of bookmark that when you add them to your web browser, and then click on them, they don't take you to another page, like a regular bookmark. Instead they change the current page.
Here is the link to the source code (please feel free to make suggestions, translations, or report bugs, as well as contribute patches if you're able).
https://gist.github.com/2957498
And if you just want to install it and try it out, you can visit
http://fireantproductions.com/EOBookmarklet/
To use it, simply:
[list=1]
install it.
visit any web page where you can enter text, and type some Esperanto text using the x-system.
Make sure your cursor is still in the text field, and click the bookmark.[/list]Please let me know how it goes, and whether or not this is useful for you.
Sincerely
Aaron
brodicius (顯示個人資料) 2012年6月28日下午6:24:50
Firefox 13.0.1, used as a toolbar bookmark. Tried it in javascript, html and this other kind of text field.
Under what circumstances did you get it to work?
cannona (顯示個人資料) 2012年7月24日上午3:24:08
Is it possible that you tried the bookmarklet with the text field not focused?
If not, I'm stumped, unless there was some sort of issue with how the bookmarklet was installed.
Good luck and sorry again.
Aaron
eojeff (顯示個人資料) 2012年7月31日下午11:25:18
I'll be happy to post the sed script I use, if any of you want it.
sifb (顯示個人資料) 2012年8月1日上午12:46:59
Your install page has a bug with quote handling. The quote after the triple equals sign ends the href attribute, and only a bit of the code ends up in the bookmarklet. At least in Safari, but then I can't make the bookmarklet work in Safari anyway.