Към съдържанието

Created a bookmarklet for autoconverting from the x-system to real Esperanto Chars

от cannona, 20 юни 2012

Съобщения: 5

Език: English

cannona (Покажи профила) 20 юни 2012, 01:43:17

Hi all.

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 (Покажи профила) 28 юни 2012, 18:24:50

I just happened to have a textbox sitting around in which to type some x-system text. Not a whole lot happened. In fact, one might even say that nothing happened at all.

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 (Покажи профила) 24 юли 2012, 03:24:08

Sorry about that. The only requirement for it to work is that the text field you wish to process has focus. I use it all the time to write in Esperanto in web forms, and I am also on Firefox 14. I've also tested it in IE8.

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 (Покажи профила) 31 юли 2012, 23:25:18

Umm... I just use sed to convert from the x-system to Unicode. There is even a Windows version of sed available from the GnuWin32 project. The syntax can take a little getting used to, but regular expressions really are powerful.

I'll be happy to post the sed script I use, if any of you want it.

sifb (Покажи профила) 01 август 2012, 00:46:59

Via instala paĝo havas eraron kun citilo, do nur peco de la programo estas uzata.

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.

Обратно нагоре