Edit a layout #70

Closed
pilonscv opened this Issue May 23, 2012 · 8 comments

Comments

Projects
None yet
2 participants

Hello my friend,

How can i remove the key "ñ" and add the key "~" from catalan layout?

Thanks a lot

Owner

Mottie commented May 23, 2012

Hi pilonscv!

In the catalan.js file, replace all instances of \u00f1 and \u00d1 with ~. You should end up with this:

$.keyboard.layouts['catalan-qwerty'] = {
    'default' : [
        "\u00ba 1 2 3 4 5 6 7 8 9 0 ' \u00a1 {bksp}",
        "{tab} q w e r t y u i o p \u0300 +",
        "a s d f g h j k l ~ \u0301 \u00e7 {enter}",
        "{shift} < z x c v b n m , . - {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'shift' : [
        '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
        "{tab} Q W E R T Y U I O P \u0302 *",
        "A S D F G H J K L ~ \u0308 \u00c7 {enter}",
        "{shift} > Z X C V B N M ; : _ {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'alt' : [
        '\\ \u007c @ # \u0303 5 \u00ac 7 8 9 0 \u0027 \u00a1 {bksp}',
        "{tab} q w \u20ac r t y u i o p [ ]",
        "a s d f g h j k l ~ { } {enter}",
        "{shift} \u007c z x c v b n m , . - {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ],
    'alt-shift' : [
        '\u00aa ! " \u00b7 $ % & / ( ) = ? \u00bf {bksp}',
        "{tab} Q W E R T Y U I O P [ ]",
        "A S D F G H J K L ~ { } {enter}",
        "{shift} > Z X C V B N M ; : _ {shift}",
        "{accept} {alt} {space} {alt} {cancel}"
    ]
};

Perfect my friend.

Can you tell how i put the "~" in a letter like this "ã" or "õ"

Owner

Mottie commented May 23, 2012

When you use the keyboard, make sure the useCombos option is true, then just type ~ and a and they should automatically be combined.

The useCombos is set true but when i press "" for example its show in the input ""....

Owner

Mottie commented May 23, 2012

~ + a = ã

Sorry i dont understand...

Owner

Mottie commented May 23, 2012

When you type in ~ followed by a vowel, like a.. the keyboard plugin automatically converts ~a into ã.

Copy this string → ~a ← then paste it into any keyboard demo:

Ah ok, know it works... sorry... the error is mine

Thanks once again you can close the issue

@Mottie Mottie closed this May 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment