mozdev.org

anykey

resources:

User Manual

There is a settings dialog that allows changing shortcut keys and setting the prefered script.

F2 toggles edit mode.

Ctrl+Shift+M - transforms Translit to a specific (the user choosen one) .

The key sequence ctrl-shift-k acts as a shortcut to Any key extension functionality.

Choosing your language with Any key

Once the extension is installed, a status bar button appears .Double cliking on it open a window with the anykey settings title. The "keymap" tabbed pane has a list box which propose a choice of scripts.

It is also possible to set the choosen script in the FF preferences by setting the "anykey.keyMapName" to a new script name.It must be already defined in the supported list of scripts wich can be viewed in the anykey.keyboardList string in the preferences.

 Typing with Any key

Once the extension is installed "Any key" menu-item is added to the context menu. To type in the choosen script, simply right-click on the input field (either Text or TextArea) and select "Any key". Alternatively if the text cursor is already in the text box in question, you can click on the 'Any key' button on the statusbar. You will notice that due to the implementation of the extension, the keyboard will sometimes change back to the default keyboard (English.) This means that you have to right click and select "Any key" again. If you are interested to find out why that is, you can visit the design page.

Interesting side-effect of having the status bar button is that if you put the text cursor on the address text bar (where the URL is typed) or on the search text bar, you can then click on the status bar 'Any key' button to turn the translator on and type in those input text fields in you script as well.

 Any key can be used in ThunderBird to type in any input field including the text editor in the compose window. The scrolling and focusing behaviour in this window is not well controlled so don't get too mad when the window will lose focus as you type. 

Transforming Translit Into Cyrillic

It is now possible to transform text typed in Latin (English) letters into your sscript. To do so, simply select text that needs to be transformed (text can either be inside a text input field or simply static HTML text and select "Any key" menu-item from the context menu or click on the 'Any key' button on the statusbar.

Be careful, current implementation of the translit-transformer does not preserve the original HTML structure, so when text is translated it may lose its HTML properties. This maybe fixed in later releases.

Switching Keyboard Layout

It is  possible to add a user defined keyboard layout.Currently it is a manual process that must be followed precisely that maybe made more user-friendly in the future.
  1. Design a new mapping that must respect these rules:
    • a  mapping where there only a one to one keymap is easy to design : just prepare a String  beginining  with a { end ending with } with : as separator between a char and it equivalent in the script and , as a separator between two couples:exemple: {"a":"а","b":"б","v":"в"}.
    • to design a multiple key to one mapping the we have somethink like that: {"c":"ц","цh":"ч"} where the we express that typing ch gives ч.It means that c-->ц and once we get ц adding h gives ч.
  2. In the URL text area of the browser type about:config and press Enter.
  3. Find a key-value pair named anykey.keyboardList, and a key value pair inside the value part the key by which the script will be refered to and a value that will be displayed on the settings windows:example:{"translit_ru":"translit.ru", "ethiopic-sera":"ethiopic sera","ukrainian":"ukrainian","arabic-qualam":"arabic qualam", "gost":"gost","devangari":"hindi devangari","myScript":"my keyboard"}
  4. If you want to make it default, put the about key in the value of the anykey.keyMapName preference here myScript.
  5. Restart the browser.

Switching Transliteration Mapping

The transliteration is based on the same keyboard choosen for the typing.

The anykey project can be contacted through the mailing list or the member list.
Copyright © 2000-2017. All rights reserved. Terms of Use & Privacy Policy.