This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom virtual keyboard layouts wanted
#1
Information 
We have included the virtual keyboard to openplotter-settings app in OpenPlotter 3 and we need to include different layouts for different languages:

   

We have created a layout for Catalan as example with the main characters and symbols used in the marine environment for this language:

   

For example if you want to create the French version, create a text file with this content:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<keyboard>

<!--

Basic keyboard layout

-->

<options>
<!-- not yet implemented -->
</options>

<layout id="OpenPlotter QWERTY-FR">
   <include file="base-fragment-fr_FR.xml"/>
</layout>
</keyboard>

and save it as keyboard-FR.xml in /usr/share/matchbox-keyboard

Then edit the file base-fragment-fr_FR.xml that you will find in /usr/share/matchbox-keyboard until you are happy with the result and finally post in this thread both files keyboard-FR.xml and base-fragment-fr_FR.xml to be added to the next version of openplotter-settings.

These base-fragment files are just drafts and need some edition, if you have any doubt check our file base-fragment-CAT.xml to see how things work. If you use any custom images, please post them in this thread as well.

thanks!
Reply
#2
(2022-05-29, 06:49 PM)Hi all !   I am using the attached keyboard version for french, and it is 100% operational. Also, I use a toggle type implementation, which uses the same button to display or hide the keyboard on the screen which is very comfortable.  It was inspired by an artcle of the well known site Pimylifeup : matchbox keyboardP.S. It seems impossible to add an attachment with an .xml extension, or with a 7z extension on this forum ... So sorry ... Sailoog Wrote: We have included the virtual keyboard to openplotter-settings app in OpenPlotter 3 and we need to include different layouts for different languages:



We have created a layout for Catalan as example with the main characters and symbols used in the marine environment for this language:



For example if you want to create the French version, create a text file with this content:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<keyboard>

<!--

Basic keyboard layout

-->

<options>
<!-- not yet implemented -->
</options>

<layout id="OpenPlotter QWERTY-FR">
   <include file="base-fragment-fr_FR.xml"/>
</layout>
</keyboard>

and save it as keyboard-FR.xml in /usr/share/matchbox-keyboard

Then edit the file base-fragment-fr_FR.xml that you will find in /usr/share/matchbox-keyboard until you are happy with the result and finally post in this thread both files keyboard-FR.xml and base-fragment-fr_FR.xml to be added to the next version of openplotter-settings.

These base-fragment files are just drafts and need some edition, if you have any doubt check our file base-fragment-CAT.xml to see how things work. If you use any custom images, please post them in this thread as well.

thanks!
Cordialement
Didier B
Pi4, SSD USB3, OP 3.0 Touch SK 3.2.1 OpenCPN  5.8.4 :  Thank you  Thank you  Thank you


Reply
#3
can you use zip format?
Reply
#4
I'm not seeing the menu header for the keyboard, it doesn't seem to matter which keyboard I select, and so I can't close it once it's displayed, I'm a beginner at Rpi and Linux but managed to install the necessary software....
Should be a photo showing the problem.


Attached Files Image(s)
   
Reply
#5
(2023-08-22, 12:49 PM)Kennyboy Wrote: Je ne vois pas l'en-tête du menu du clavier, le clavier que je sélectionne n'a pas d'importance, et donc je ne peux pas le fermer une fois affiché, je suis débutant sous Rpi et Linux mais j'ai réussi à installer le logiciel nécessaire....
Devrait être une photo montrant le problème.
Bonjour, après avoir installé la version V3 sur la même configuration que la V2, le clavier virtuel qui apparaît est amputé de la première ligne, je ne peux donc pas non plus le fermer, que se passe-t-il?
Reply
#6
Suggestion for all kayboards : the 'CTRL' key should be included ! think of 'CTRL' + Q to close OpenCpn when in full-screen mode !
Cordialement
Didier B
Pi4, SSD USB3, OP 3.0 Touch SK 3.2.1 OpenCPN  5.8.4 :  Thank you  Thank you  Thank you


Reply
#7
I've managed to build a full Italian keyboard and a little compact one (the latter without cursors). Actually I put a "steering weel" mapped to mod3 but not used (suggestions are welcome). I attach zipped xml files. Layout is little changed from Italian to have @# and € symbol in a more "natural" position (see screenshots).
Zip file contains:
1. keyboard layouts full and normal to be copied into /usr/share/matchbox-keyboard/
2. a bash script (toggle-keyboard.sh) to use for the menu entry (and the launchbar item) that toggles keyboard state and sets font size and family, to be copied in /usr/bin
3. a fragment to be inserted into $HOME/.config/openbox/ldxe-pi-rc.xml to intercept window opening and set display attributes

Note that menu item for keyboard has to be changed to point to the toggle-keyboard.sh script (not mandatory)

   
   

.zip   keyboard-kit_IT.zip (Size: 1.79 KB / Downloads: 50)
Reply
#8
Thanks!
Let me take a look at this.
Reply
#9
Added to openplotter v4, thanks!

https://github.com/openplotter/openplott...348be41dbd
Reply
#10
(2023-08-22, 12:49 PM)Kennyboy Wrote: I'm not seeing the menu header for the keyboard, it doesn't seem to matter which keyboard I select, and so I can't close it once it's displayed, I'm a beginner at Rpi and Linux but managed to install the necessary software....
Should be a photo showing the problem.

Did you ever get a resolution to this? I just tried it on a Linux Mint mini-PC and got the same thing. I had to open a terminal and kill the process to make it go away (or logout).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)