HOW-TO:Use SMS-style text entry for remotes: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
(Added instructions for the Keymap Editor addon and the Imon remotes.)
Line 123: Line 123:


== Note for Imon remotes users ==
== Note for Imon remotes users ==
| Some Imon remotes such as the Pad, have numeric buttons that do not send keys like “one”, “two”, etc. Neither they do output key-codes from the numeric pad of a keyboard. What they do is send key-codes from the keys Under the function keys (F1, F2, etc), meaning: 1,2,3, etc. The problem on some system is : they send the keyboard’s lowercase characters for the 1,2,3, etc, keys. For example, they could send the French AZERTY keyboard keys such as "&锑(-è_çà)". As a result, the XML lines above need to be changed.<br />
- Some Imon remotes, such as the Pad, and perhaps other remotes, have numeric buttons that do not send keys like “one”, “two”, etc. Neither they do output key-codes from the numeric pad of a keyboard. What they do is send key-codes from the keys Under the function keys (F1, F2, etc), meaning: 1,2,3, etc. The problem on some system is : they send the keyboard’s lowercase (unshifted) characters for the 1,2,3, etc, keys. For example, if you have a French AZERTY keyboard, the remote's numeric keys will be understood by Kodi "&锑(-è_çà)". As a result, the XML lines above need to be changed.<br />


| Using the Keymap Editor addon, it should be possible to press the remote buttons and have the button's output registered. But in some cases it is not possible or not handy, so it is sometimes better to use some real keyboard key codes.<br />
- Using the Keymap Editor addon, it should be possible to press the remote buttons and have the button's output registered. But in some cases it is not possible or not handy, so it is sometimes better to use some real keyboard key codes. In the following method, we do not count on the remote's IR emitted key codes, but on regular keyboard keystrokes.<br />


| Used the Keymap Editor addon to note which key code Kodi gets when typing the keys from the second row of the keyboard. Go to Keymap Editor > edit > global > virtual keyboard > and for each number, typed the corresponding key on the keyboard (not the numpad).<br />
- Use the Keymap Editor addon to note which key-code Kodi gets when typing the keys from the second row of the keyboard. Go to Keymap Editor > edit > global > virtual keyboard > and for each number, typed the corresponding numeric key on the keyboard (not the numpad).<br />


| Open the gen.xml file, generated by the Keymap Editor addon, including with the appended XML lines above. Edit the lines like <zero>Number0</zero> and replace them by the codes you got from the Keymap Editor addon. For example : <key id=”61488″>Number0</key>.<br />
- Open the gen.xml file, generated by the Keymap Editor addon. Following the instructions above, it should include the XML lines above for the T9 ability. Edit the lines like <zero>Number0</zero> and replace them by the codes you got from the Keymap Editor addon. For example : <key id=”61488″>Number0</key>.<br />


| More info on this : http://www.dreamcraftdigital.com/kodiandimon/ , http://forum.kodi.tv/showthread.php?tid=218401 , http://www.soundgraph.com/forums/showthread.php?t=27737
- More info on this : http://www.dreamcraftdigital.com/kodiandimon/ , http://forum.kodi.tv/showthread.php?tid=218401 , http://www.soundgraph.com/forums/showthread.php?t=27737

Revision as of 12:51, 13 March 2015

Home icon grey.png   ▶ Remote controls ▶ HOW-TO:Use SMS-style text entry for remotes

If you have a remote control that is viewed as a keyboard to Kodi and want to enable SMS/T9-like text input and page jumping, this guide wills how you how to enable this using a custom keymap. If you have a normal "MCE" style remote or CEC then this how-to is not necessary.

Steps

1 Create a plain text file (no rich text formatting, don't use .doc, etc) and save it as keyboard.xml. Make sure that the file extension is ".xml" and not ".txt" or ".xml.txt".
2 Cut and paste this into your new plain text file:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <global>
    <keyboard>
      <zero>Number0</zero>
      <one>JumpSMS1</one>
      <two>JumpSMS2</two>
      <three>JumpSMS3</three>
      <four>JumpSMS4</four>
      <five>JumpSMS5</five>
      <six>JumpSMS6</six>
      <seven>JumpSMS7</seven>
      <eight>JumpSMS8</eight>
      <nine>JumpSMS9</nine>
      <escape>Back</escape>
    </keyboard>
  </global>
  <VirtualKeyboard>
    <keyboard>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <backspace>Backspace</backspace>
    </keyboard>
  </VirtualKeyboard>
  <FullscreenVideo>
    <keyboard>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <escape>Stop</escape>
    </keyboard>
  </FullscreenVideo>
  <VideoMenu>
    <keyboard>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
    </keyboard>
  </VideoMenu>
  <NumericInput>
    <keyboard>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
    </keyboard>
  </NumericInput>
  <Teletext>
    <keyboard>
      <zero>number0</zero>
      <one>number1</one>
      <two>number2</two>
      <three>number3</three>
      <four>number4</four>
      <five>number5</five>
      <six>number6</six>
      <seven>number7</seven>
      <eight>number8</eight>
      <nine>number9</nine>
    </keyboard>
  </Teletext>
</keymap>
3 Save this file in userdata/Keymaps/:

Note: if you use the Keymap Editor addon for Kodi, you need to append these new XML lines above inside the XML file generated by this addon, not in keyboard.xml. In March of 2015, the file generated by Keymap Editor is called "gen.xml".

4 If Kodi is already running then restart it so that the changes take effect.
5 Note: This step is not required for Kodi v14 and higher.

Go into Kodi and then Settings -> System -> Input devices and enable Remote control sends keyboard presses. This will allow your arrow keys to use the on-screen keyboard even though Kodi thinks your remote is a keyboard already.


Filter instead of jump

Incomplete.png INCOMPLETE:
This page or section is incomplete. Please add information or correct uncertain data which is marked with a ?

You can also use FilterSMS instead of JumpSMS.


Note for Imon remotes users

- Some Imon remotes, such as the Pad, and perhaps other remotes, have numeric buttons that do not send keys like “one”, “two”, etc. Neither they do output key-codes from the numeric pad of a keyboard. What they do is send key-codes from the keys Under the function keys (F1, F2, etc), meaning: 1,2,3, etc. The problem on some system is : they send the keyboard’s lowercase (unshifted) characters for the 1,2,3, etc, keys. For example, if you have a French AZERTY keyboard, the remote's numeric keys will be understood by Kodi "&锑(-è_çà)". As a result, the XML lines above need to be changed.

- Using the Keymap Editor addon, it should be possible to press the remote buttons and have the button's output registered. But in some cases it is not possible or not handy, so it is sometimes better to use some real keyboard key codes. In the following method, we do not count on the remote's IR emitted key codes, but on regular keyboard keystrokes.

- Use the Keymap Editor addon to note which key-code Kodi gets when typing the keys from the second row of the keyboard. Go to Keymap Editor > edit > global > virtual keyboard > and for each number, typed the corresponding numeric key on the keyboard (not the numpad).

- Open the gen.xml file, generated by the Keymap Editor addon. Following the instructions above, it should include the XML lines above for the T9 ability. Edit the lines like <zero>Number0</zero> and replace them by the codes you got from the Keymap Editor addon. For example : <key id=”61488″>Number0</key>.

- More info on this : http://www.dreamcraftdigital.com/kodiandimon/ , http://forum.kodi.tv/showthread.php?tid=218401 , http://www.soundgraph.com/forums/showthread.php?t=27737