Git Product home page Git Product logo

cf-keylayout's Introduction

cf-keylayout

Clavier canadien français pour macOS

Installation

Homebrew

brew tap joallard/cf-keylayout
brew install cf-keylayout

Pour utiliser le clavier installé ou mis à jour, ajoutez-le dans les préférences Clavier, onglet Méthodes de saisie/Input Sources:

open /System/Library/PreferencePanes/Keyboard.prefPane

Le clavier se trouve dans la section Autres/Others, et non Français.

Script d'installation

  1. Télécharger et décompresser (ou clôner le dépôt)
  2. Faites un clic-droit sur install, puis 'Ouvrir'. Vous aurez peut-être à entrer votre utilisateur et mot de passe pour continuer.
  3. Après l'installation, la fenêtre Clavier dans les préférences système (System Preferences > Keyboard) s'ouvrira. Cliquez sur l'onglet "Méthodes de saisie" (Input sources) et ajoutez "Canadien Francais".

Recettes et trucs de pro

Recette Résultat Commentaires
`, a à Voyelles accent grave
^, Shift + A Â
     
Alt + Shift + Space   Espace insécable (nbsp – u+00a0) *
Alt + ` {
Alt + < }
Alt + - En-dash/tiret moyen/demi-cadratin
Alt + Shift + - Em-dash/tiret long/cadratin
Alt + . · Point milieu (utile pour les auteur·e·s)
Alt + E
Alt + M µ 'm'/'µ' comme dans 'micro'
Alt + N ñ Les deux casses sont disponibles avec 'Shift'
Alt + S ß
Shift + ^ ^ Pas besoin de faire espace après
Shift + ` ` (même principe)

[*]: Espace insécable: Attention: Ça entraîne parfois des bogues de programmation et de rédaction étranges. Par ex.: "No method named ' foo'".

Utilisateurs de Vim: é est un bon leader key. (let mapleader = "é")

Changements en rupture (Breaking changes)

  • Alt + Espace: Passe de Non-breaking space (U+00A0) à Space (U+0020)

    Utiliser la touche Alt juste avant Espace créait facilement une espace insécable sans le vouloir. Dans un contexte de programmation, ça peut causer problème.

    Le nbsp est toujours disponible avec Alt + Shift + Espace, une combinaison plus délibérée.

Keymaps

  • 0: Normal
  • 1: Shift
  • 2: Caps Lock
  • 3: Alt
  • 4: Alt+Shift
  • 5: Alt+Caps Lock
  • 6: Cmd
  • 7: Ctrl

Contributions

Comme tout bon projet open-source, veuillez ne pas modifier la version du projet dans vos pull-requests; les mainteneurs s'en occuperont.

Crédits

Mainteneurs actuels: Jonathan Allard et Matthieu Yiptong

Code original par Sebastien Guillemette ([email protected])

cf-keylayout's People

Contributors

cmer avatar ergosteur avatar gableroux avatar joallard avatar jrobichaud avatar laurrentt avatar marc-etienne avatar myiptongc64 avatar stef-levesque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cf-keylayout's Issues

Insert key does not work

The Insert does not seem to work on Mac.

It is not a mechanical issue because the same keyboard plugged into a Windows machine does have that key working.

Alt+{key} not working when on CapsLock

Les raccourcis pour les caractères alternatifs ne fonctionnent pas lorsque CapsLock est activé.
Donc ces caractères ne fonctionnent pas en CapsLock : ~{}[]\±@£¢¤¬¦²³¼–¾

Installation avec Big Sour 11.6

J'ai cette erreur lorsque j'exécute install:

cp: cf.icns: Operation not permitted
cp: cf.keylayout: Operation not permitted
Installation du clavier Canadien Français terminée.

J'ai essayer sudo -s avant et ça ne fonctionne pas plus.

How do you backtick?

I'm puzzled. On Linux, I was used to hitting the backtick action, then hitting space to insert just a backtick (without the space). Kind of a trigger to get just the character. Now this doesn't work as expected. Hitting space after hitting the backtick character adds the space. I tried using "backtick" + tab as a replacement, still much further away, but this doesn't work consistently in all apps, because some trigger things on Tab.

How do you guys make a backtick, when editing Markdown for example?

Maybe a small tweak to the layout could honor that "space" that turns a backtick into an actual backtick?

Layout keeps swapping off

I cannot select the layout as a permanent one : there is always the older Canadian keyboard input source which cannot be removed from the list of Input Sources.

Additionally, some applications don't seem to recognize the layout and thus keep automatically swapping back to the Canadian layout. That includes "Notes", for example.

(macOS Big Sur v11.3.1)

File keylayout under "French" instead of "Other"

Présentement, ce layout de clavier apparaît dans la catégorie "Autres" dans la boîte de dialogue pour sélectionner une méthode de saisie. Il me semble que ça serait plus logique qu'il soit listé dans la catégorie "français", non?

Après avoir jeté un coup d'oeil, j'imagine que le seul changement requis est de changer l'attribut "group" de l'élément-racine "keyboard" pour une autre valeur que 0. J'ai essayé de chercher la bonne valeur à mettre, mais j'ai pas trouvé encore. Est-ce que quelqu'un la connaîtrait?

Fractions : Où trouver le caractère 1/2

Salut,

Merci pour le beau travail !
Normalement, alt+0, alt+ - et alt + +, font respectivement les fractions 1/4, 1/2 et 3/4

Par contre, j'obtiens le résulat suivant : ¼–¾
Comment produire le caractère 1/2 ?

Merci,
Guillaume

Feature request: add substitution for Fn key.

Hi there! First, thanks so much for this layout.

I noticed that my 105-key ISO FR-CA keyboard provides a key labelled "Menu Fn". This particular key doesn't appear to be mapped to anything in your layout, let alone the macOS Fn key. Having this set up would be quite useful seeing that I have to use the F keys regularly, but have no way to on-the-fly switch between the OS controls and the F keys with my keyboard.

After some digging:

Determining the output value is a bit of a mystery to me at this moment...

Lost the layout after an update in Catalina (v10.15.5)

Hi,
After an update, the layout does not appear anymore in the keyboard preference (even in "Other" category)
I've also tested to add the layout files in the "User" library, but nothing change. Still no layout to choose.
Does anyone have this problem ?

Inverting right-side controls

Could anyone give me the instructions so that I could swap the Cmd and the Opt buttons, but only the ones on the right side of the Space bar ?

I've used the Keyboard System Preferences' Key Modifiers to invert the Cmd and the Ctrl so that I can have something closer to a Windows keyboard, but now this is the last piece of the puzzle for me to have something extremely close which will match with this keyboard layout.

Thanks!

Comportement avec les accents

Bonjour, d'abord merci pour le repo, je commence à utiliser un mac, et c'est surprenant que le clavier canadien français ne soit pas disponible d'entrée de jeu. J'utilise toujours le clavier canadien français, je l'utilise sur Windows où il apparait sous le nom "French (Canada) - Canadian French" ainsi que sur différentes distributions Linux (Centos, Ubuntu) où il apparait sous le nom "French (Canada)". Une différence que je remarque avec ce layout pour Macos est que lorsque on entre un accent, par exemple "^", avec ce clavier macOS on obtient tout de suite le caractère "^", qui se transforme par exemple en "ê" si on appuie sur la touche "e". Or sur Windows et Linux, le comportement est de ne pas générer de caractère si on appuie sur "^", et de seulement générer un caractère lorsqu'on appuie sur un touche subséquente, par exemple "ê" si la touche subséquente est "e", "^f" si la touche subséquente est f, ou "^" si la touche subséquente est espace. Avec ce layout Macos, si j'appuie sur "^" suivi de la touch espace, j'obtiens "^ ", ce qui est différent du "^" attendu. J'utilise souvent "^" comme shortcut, et je suis habitué à faire "^" + espace pour l'obtenir.

Une façon d'obtenir ce comportement est d'enlever la section "terminators" dans cf.keylayout et d'ajouter une action pour la touche espace, par exemple:

		<action id="space">
		     <when state="none" output=" " />
                     <when state="grave" output="&#x60;" />
                     <when state="circumflex" output="&#x5e;" />
                     <when state="trema" output="&#xa8;" />
                     <when state="cedille" output="&#xb8;" />
                </action>

mais ça ne règle pas le problème du cas "^" + n'importe quelle autre touche, par exemple "^" + "f", qui devrait donner "^f" après avoir appuyé sur "f" et rien après avoir appuyé sur "^". Personnellement je n'utilise pas ce genre de combinaison et mon problème était uniquement avec la combinaison "^" + espace.

High Sierra - Impossible to select this layout in Mail

I just upgraded to High Sierra (i know, it's time...). In few applications (like Mail, Telegram...), the "ABC - Étendu" layout is automatically selected. I'm trying to select the "Canadien français 0.12.1" and it doesn't accept it. However, I can select it in Chrome. Any idea why? Thank you for your support.

Press-and-hold accent keys

Ça serait vraiment cool de trouver moyen d'activer cette fonction là avec le clavier Québécois.

https://support.apple.com/kb/PH25643?locale=en_US

Quand je prends le clavier par défaut Canadian French - CSA ça fonctionne mais pas avec ce clavier Québécois!

Y'a sûrement un setting à quelque part pour l'activer

sûrement dans cf.keylayout

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.