ars aranea. the web, the way we make it. | |||
78 Special characters, on the flyPosted: Oct 11, 2006, under ODP, DHTML. Updated: Oct 12, 2006. Add a comment!Are you away from your regular computer or notebook and you find yourself in need to generate certain special characters for a webpage? The solution is simple: use a bookmarklet that will bind those characters to certain keyboard shortcuts. 1. A bit of backgroundThe bookmarklet first started to prove useful to me when I started working as an Open Directory editor in the Romanian section. Common sense dictates that website descriptions should carry proper Romanian diacritics, but I wasn’t always editing from a computer that had the Romanian keyboard layout available. 2. What is a bookmarklet?Good question. Basically, it’s a link, found on a web page. Except instead of leading to a web URL (such as That’s not very useful, you’ll say. But wait, there’s more. If you drag the bookmarklet to your favorites (or bookmarks), you will be able to activate it on any page. Which is what I did: whenever I entered the page where the site description had to be filled in, I’d click on this bookmarklet in my bookmarks toolbar and presto, I got Romanian special characters at my fingertips. 3. How does it work?This bookmarklet does the following:
I’ve tested it successfully in recent versions of Internet Explorer, Firefox and Opera. (Please report additional success or failure cases.) 4. Known issuesYou can’t load more than one such bookmarklet at the same time. For the sake of sanity, it checks a global variable to see if it has already been loaded. But I recognize the need to have several such bookmarklets working side by side. If you have an elegant idea of how to signal that, please leave a comment. 5. CreditsThe character insertion functionality was provided by Alex King. For any additional credits see below next to each bookmarklet. 6. I’m sold, give it to meLook in the list below for the bookmark that’s good for you. Drag-and-drop it to an easy to reach place within your favorites and bookmarks. Whenever you need those special characters, load it by clicking once. Then focus a text or textarea form field and use Control and a key together to produce the special character.
Please leave a comment if you want to produce version of these bookmarklets for your own language. No need to repost the entire JavaScript code, just mention what key should produce what Unicode character (in 2-byte hex code, preferrably, ie.
| Important
Categories
Authoring
(1)Books (2)Cross platforms (2)DHTML (12)Graphical design (3)IT today (12)Morals&Politics (10)ODP (1)Random stuff (3)Romania (16)Security (7)SEO (2)Software (8)SQL (1)Standards (7)Technology (3)WordPress (4)[În română] (4)[This website] (2)Time-jump Syndication Need hosting?I've been a happy user of LunarPages since 2005. |
||
Copyright ©2005–2008 Zuavra | |||