« SailfishOS » : différence entre les versions

De Disposition de clavier bépo
Aucun résumé des modifications
Ligne 1 : Ligne 1 :


Installation d'un clavier virtuel de type bépo sur un appareil Jolla SailfishOS 3.0
[[Category:Installation]]
 
{{navigation|Installation}}
En cours d'écriture.
{{sommaire à droite}}


Cette page donne les étapes pour l'installation d'un clavier virtuel de type bépo sur un appareil Jolla SailfishOS 3.0


= Historique =
= Historique =

Version du 6 février 2019 à 18:37

Cette page donne les étapes pour l'installation d'un clavier virtuel de type bépo sur un appareil Jolla SailfishOS 3.0

Historique

Il a été possible d'installer un clavier bépo sur SailfishOS. C'est en se basant sur un fichier trouvé sur Internet qu'une adaptation a été réalisée pour le charger sur un appareil Jolla sous SailfishOS.

Fichiers

Fichier bepo.qml

// No copyright (C)... Enjoy!
// Done by RbN (Jan 2014); adapté à SailfishOS 3.0 par jchrbe (20190205)

import QtQuick 2.0
import com.jolla.keyboard 1.0
import ".."

KeyboardLayout
  {
  splitSupported: true

  KeyboardRow
    {
    CharacterKey { caption: "b"; captionShifted: "B"; symView: "1"; symView2: "€" }
    CharacterKey { caption: "é"; captionShifted: "É"; symView: "2"; symView2: "£"; accents: "éëê€"; accentsShifted: "ÉËÊ€" }
    CharacterKey { caption: "p"; captionShifted: "P"; symView: "3"; symView2: "$" }
    CharacterKey { caption: "o"; captionShifted: "O"; symView: "4"; symView2: "¥"; accents: "oœöô"; accentsShifted: "OŒÖÔ" }
    CharacterKey { caption: "è"; captionShifted: "È"; symView: "5"; symView2: "?"; accents: "èëê€"; accentsShifted: "ÈËÊ€" }
    CharacterKey { caption: "v"; captionShifted: "V"; symView: "6"; symView2: "%"; accents: "vw"; accentsShifted:"VW" }
    CharacterKey { caption: "d"; captionShifted: "D"; symView: "7"; symView2: "<" }
    CharacterKey { caption: "l"; captionShifted: "L"; symView: "8"; symView2: ">" }
    CharacterKey { caption: "j"; captionShifted: "J"; symView: "9"; symView2: "[" }
    CharacterKey { caption: "z"; captionShifted: "Z"; symView: "0"; symView2: "]" }
    }

  KeyboardRow
    {
    CharacterKey { caption: "a"; captionShifted: "A"; symView: "*"; symView2: "`"; accents: "aàâ"; accentsShifted: "AÀÂ" }
    CharacterKey { caption: "u"; captionShifted: "U"; symView: "#"; symView2: "^"; accents: "uûùü"; accentsShifted: "UÛÙÜ" }
    CharacterKey { caption: "i"; captionShifted: "I"; symView: "+"; symView2: "|"; accents: "iîï"; accentsShifted: "IÎÏ" }
    CharacterKey { caption: "e"; captionShifted: "E"; symView: "-"; symView2: "_"; accents: "eëê€"; accentsShifted: "EËÊ€" }
    CharacterKey { caption: "c"; captionShifted: "C"; symView: "="; symView2: "§"; accents: "cç"; accentsShifted: "CÇ" }
    CharacterKey { caption: "t"; captionShifted: "T"; symView: "("; symView2: "{" }
    CharacterKey { caption: "s"; captionShifted: "S"; symView: ")"; symView2: "}" }
    CharacterKey { caption: "r"; captionShifted: "R"; symView: "~"; symView2: "°" }
    CharacterKey { caption: "n"; captionShifted: "N"; symView: "!"; symView2: "¡" }
    CharacterKey { caption: "m"; captionShifted: "M"; symView: "?"; symView2: "¿" }
    }

  KeyboardRow
    {
    ShiftKey {}
    CharacterKey { caption: "y"; captionShifted: "Y"; symView: "@"; symView2: "«"; accents: "ÿ" }
    CharacterKey { caption: "x"; captionShifted: "X"; symView: "&"; symView2: "»" }
    CharacterKey { caption: "k"; captionShifted: "K"; symView: "/"; symView2: "÷" }
    CharacterKey { caption: "q"; captionShifted: "Q"; symView: "\\"; symView2: "“" }
    CharacterKey { caption: "g"; captionShifted: "G"; symView: "\""; symView2: "”" }
    CharacterKey { caption: "h"; captionShifted: "H"; symView: ";"; symView2: "„" }
    CharacterKey { caption: "f"; captionShifted: "F"; symView: ":"; symView2: "·" }
    BackspaceKey {}
    }

  KeyboardRow
    {
    splitIndex: 4
    SymbolKey { implicitWidth: symbolKeyWidthNarrow }
    CharacterKey { caption: "."; captionShifted: "."; implicitWidth: punctuationKeyWidthNarrow; fixedWidth: !splitActive; separator: SeparatorState.HiddenSeparator }
    ContextAwareCommaKey { implicitWidth: punctuationKeyWidthNarrow }
    SpacebarKey {}
    CharacterKey { caption: "'"; captionShifted: "'"; implicitWidth: punctuationKeyWidthNarrow; fixedWidth: !splitActive }
    SpacebarKey { active: splitActive; languageLabel: "" }
   EnterKey {}
    }
  }

Fichier layout_bepo.conf

[bepo.qml]
name=Bépo
languageCode=FR
handler=Xt9InputHandler.qml

Manipulation

Avec les droits de super-utilisateur, placer ces deux fichiers dans le répertoire /usr/share/maliit/plugins/com/jolla/layouts/

Relancer le serveur avec (c'est un peu bourru; rebooter l'appareil devrait le faire):

killall maliit-server

Dans l'application Réglages » Système » Entrée de texte » Claviers, ajouter Bépo.

Faiblesses reconnues

  • w est avec v, ç avec c, ê avec é...
  • Faire rentrer en trois rangées un clavier de cinq est une gageure. Il s'agit d'un clavier de smartphone.
  • les ponctuations apostrophe, virgule et point pourraient être intervertis.