jthlim / javelin-steno

Embedded Steno Engine
Other
63 stars 10 forks source link

Adding AZERTY Keyboard layout to current keyboard layout of Javelin #14

Closed lblum-steno closed 1 month ago

lblum-steno commented 1 month ago

Hi there,

My computer is mainly configured in AZERTY, so when I use the javelin keyboard 'are' becomes 'qre' and so on. Workaround is to switch, on the software side, constantly between UK keyboard layout and AZERTY (my work involves writing in parallel in english french and dutch...).

I am ready to update a Javelin configuration file from Qwerty to Azerty so Azerty( belgian keyboard) is supported by Javelin. Can someone please indicate me which files to updated?

Many thanks!

Lionel

jthlim commented 1 month ago

The files are in https://github.com/jthlim/javelin-host-layouts

After creating the configuration, you can test it out using the firmware builder:

Screenshot 2024-09-02 at 7 05 24 PM
lblum-steno commented 1 month ago

@jthlim I quickly updated the yaml by exchanging the q and a scan codes so to check results -> 'are' still shows 'qre': could it be that the download on the webpage of javelin does not properly integrate my new Belgian yaml? Thanks for your additional support!

Hereafter my yaml trial, file it should in your case show 'qre' instead of are on your US layout computer :)

Mapping for US keyboards without support for non-ascii input.

name: BELGIAN identifier: be

unicode: none keyCodes:

Number row

"`": 0x35 "~": modifiers: shift scanCode: 0x35 "1": 0x1e "!": modifiers: shift scanCode: 0x1e "2": 0x1f "@": modifiers: shift scanCode: 0x1f "3": 0x20 "#": modifiers: shift scanCode: 0x20 "4": 0x21 "$": modifiers: shift scanCode: 0x21 "5": 0x22 "%": modifiers: shift scanCode: 0x22 "6": 0x23 "^": modifiers: shift scanCode: 0x23 "7": 0x24 "&": modifiers: shift scanCode: 0x24 "8": 0x25 "*": modifiers: shift scanCode: 0x25 "9": 0x26 "(": modifiers: shift scanCode: 0x26 "0": 0x27 ")": modifiers: shift scanCode: 0x27 "-": 0x2d "_": modifiers: shift scanCode: 0x2d "=": 0x2e "+": modifiers: shift scanCode: 0x2e "\b": 0x2a

Top letter row

"\t": 0x2b

"q": 0x04 "Q": modifiers: shift scanCode: 0x04 "w": 0x1d "W": modifiers: shift scanCode: 0x1d "e": 0x08 "E": modifiers: shift scanCode: 0x8 "r": 0x15 "R": modifiers: shift scanCode: 0x15 "t": 0x17 "T": modifiers: shift scanCode: 0x17 "y": 0x1c "Y": modifiers: shift scanCode: 0x1c "u": 0x18 "U": modifiers: shift scanCode: 0x18 "i": 0x0c "I": modifiers: shift scanCode: 0x0c "o": 0x12 "O": modifiers: shift scanCode: 0x12 "p": 0x13 "P": modifiers: shift scanCode: 0x13 "[": 0x2f "{": modifiers: shift scanCode: 0x2f "]": 0x30 "}": modifiers: shift scanCode: 0x30 "\": 0x31 "|": modifiers: shift scanCode: 0x31

Middle letter row

Original:0x04

"a": 0x14 "A": modifiers: shift scanCode: 0x14 "s": 0x16 "S": modifiers: shift scanCode: 0x16 "d": 0x07 "D": modifiers: shift scanCode: 0x07 "f": 0x09 "F": modifiers: shift scanCode: 0x09 "g": 0x0a "G": modifiers: shift scanCode: 0x0a "h": 0x0b "H": modifiers: shift scanCode: 0x0b "j": 0x0d "J": modifiers: shift scanCode: 0x0d "k": 0x0e "K": modifiers: shift scanCode: 0x0e "l": 0x0f "L": modifiers: shift scanCode: 0x0f ";": 0x10 ":": modifiers: shift scanCode: 0x33 "'": 0x34 "\"": modifiers: shift scanCode: 0x34 "\n": 0x28

Lower letter row

"z": 0x1a "Z": modifiers: shift scanCode: 0x1a "x": 0x1b "X": modifiers: shift scanCode: 0x1b "c": 0x06 "C": modifiers: shift scanCode: 0x06 "v": 0x19 "V": modifiers: shift scanCode: 0x19 "b": 0x05 "B": modifiers: shift scanCode: 0x05 "n": 0x11 "N": modifiers: shift scanCode: 0x11 "m": 0x33 "M": modifiers: shift scanCode: 0x33 ",": 0x36 "<": modifiers: shift scanCode: 0x36 ".": 0x37 ">": modifiers: shift scanCode: 0x37 "/": 0x38 "?": modifiers: shift scanCode: 0x38

Space bar

" ": 0x2c

jthlim commented 1 month ago

That file seems to be working for me. Did you set it up like this?

Screenshot 2024-09-02 at 10 39 16 PM

Then click create firmware after, and upload that to the board?

If you use the web tools -> console, what does it show if you type:

get_parameter host_layout

What does it show if you type

get_parameter available_host_layouts

?

lblum-steno commented 1 month ago

No I could not click on 'create firmware' since the form was requiring a dictionary. I will check this again. Also I wish to use lapwing so when I click on lapwing it downloads a firmware file.

Blue Bear Consulting BE0751.766.034

Le lun. 2 sept. 2024 à 16:40, jthlim @.***> a écrit :

That file seems to be working for me. Did you set it up like this?

Screenshot.2024-09-02.at.10.39.16.PM.png (view on web) https://github.com/user-attachments/assets/be45d417-daa8-4599-9d58-1534fc9ba091

Then click create firmware after, and upload that to the board?

If you use the web tools -> console, what does it show if you type:

get_parameter host_layout

What does it show if you type

get_parameter available_host_layouts

?

— Reply to this email directly, view it on GitHub https://github.com/jthlim/javelin-steno/issues/14#issuecomment-2324902368, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJE3NSZUI4JK6OQLEFLYRKDZUR2ENAVCNFSM6AAAAABNP3QNRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUHEYDEMZWHA . You are receiving this because you authored the thread.Message ID: @.***>

jthlim commented 1 month ago

The quick firmware downloads are a convenience and do not use any of the options specified below. You'll need to configure the firmware for lapwing manually to make use of the host layout options.

There are old instructions on how to do it here: https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/Appendix-C.md

jthlim commented 1 month ago

Follow the Setting up Javelin guide, and also remember to include your new host layout file (Instead of the old Unicode Mode option).

lblum-steno commented 1 month ago

Oookay that's clearer! Many thanks!

I will try asap

Blue Bear Consulting BE0751.766.034

Le lun. 2 sept. 2024 à 17:15, jthlim @.***> a écrit :

Follow the Setting up Javelin https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/Appendix-C.md#setting-up-javelin guide, and also remember to include your new host layout file.

— Reply to this email directly, view it on GitHub https://github.com/jthlim/javelin-steno/issues/14#issuecomment-2324966210, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJE3NS6DDXVWVQ3GT54DDXDZUR6HNAVCNFSM6AAAAABNP3QNRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUHE3DMMRRGA . You are receiving this because you authored the thread.Message ID: @.***>

lblum-steno commented 1 month ago

Hello,

It seems to work fine now. Note that following json link on the setting up javelin webpage do not provide a file but rather a 404 error

-

I am however not enough of an expert to assess whether these json data is already included somewhere in the firmware builder...Any idea?

At least the host layout seems to work, once I do it for the whole keyboard I will propose it in the github so it can be used by others.

Thanks a lot for your help,

Lionel

Le lun. 2 sept. 2024 à 17:15, jthlim @.***> a écrit :

Follow the Setting up Javelin https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/Appendix-C.md#setting-up-javelin guide, and also remember to include your new host layout file.

— Reply to this email directly, view it on GitHub https://github.com/jthlim/javelin-steno/issues/14#issuecomment-2324966210, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJE3NS6DDXVWVQ3GT54DDXDZUR6HNAVCNFSM6AAAAABNP3QNRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUHE3DMMRRGA . You are receiving this because you authored the thread.Message ID: @.***>

-- Lionel BLUM Managing Partner +32 486 311 135

Blue Bear Consulting SRL Avenue Kersbeek 229 1190 Forest BCE: 0751.766.034

jthlim commented 1 month ago

You can find them in the old repo here:

https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/javelin_dictionaries/abby-left-hand-modifiers.json

https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/javelin_dictionaries/emily-modifiers.json

https://github.com/aerickt/lapwing-for-beginners/blob/7fd9e472b8ab7f201bf9e8f9106b18b1c719d7f5/src/javelin_dictionaries/lapwing-javelin-additions.json

lblum-steno commented 1 month ago

Hello jthlim,

Something is really hindering me when trying to remap the scancode with actual 'to show' key: the scancode used us.yaml (or other on your rep), if I am not mistaken, do not match with standards...for instance 'q' scancode is '0x14' in the standard and in the yaml is 0x10...and so on.

So my tentatives to be exhaustive fail miserably. I am limited to swap some key letters and that works and can't be exhaustive (with symbols)

Do you have a feedback on this?

Kind regards

jthlim commented 1 month ago

I'm not sure where you're looking?

In the standard Chapter 10, q is scancode 0x14, and in host-layouts, it's also scancode 0x14: https://github.com/jthlim/javelin-host-layouts/blob/main/us.yaml#L63

lblum-steno commented 1 month ago

I m using this one https://kbdlayout.info/KBDUSX/virtualkeys And scan code is 10....i am very confuszd to be honest. I will ddig more in details into the doc you provided then.

Many thanks,

Lionel

Blue Bear Consulting BE0751.766.034

Le mer. 4 sept. 2024 à 11:30, jthlim @.***> a écrit :

I'm not sure where you're looking?

In the standard https://www.usb.org/sites/default/files/hut1_5.pdf Chapter 10, q is scancode 0x14, and in host-layouts, it's also scancode 0x14: https://github.com/jthlim/javelin-host-layouts/blob/main/us.yaml#L63

— Reply to this email directly, view it on GitHub https://github.com/jthlim/javelin-steno/issues/14#issuecomment-2328370631, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJE3NS2ZDPRONLSCYFVHWDDZU3HMJAVCNFSM6AAAAABNP3QNRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYGM3TANRTGE . You are receiving this because you authored the thread.Message ID: @.***>

jthlim commented 1 month ago

Those scan codes are from the pre-USB days.. ancient history now :)

lblum-steno commented 2 weeks ago

Hi Jthlim,

Still working on the keyboard mapping (getting closer...) 90% of the keyboard mapped.. I however get the following error while uploading my layout:

[image: image.png]

See file in attachment. Any idea why? (the two previous files trial 1/2 worked fine but are not fully correct)

THanks!

Lionel

Le mer. 4 sept. 2024 à 12:40, jthlim @.***> a écrit :

Those scan codes are from the pre-USB days.. ancient history now :)

— Reply to this email directly, view it on GitHub https://github.com/jthlim/javelin-steno/issues/14#issuecomment-2328532171, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJE3NS2E4CY2NWETIIFVMM3ZU3PRNAVCNFSM6AAAAABNP3QNRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRYGUZTEMJXGE . You are receiving this because you authored the thread.Message ID: @.***>

-- Lionel BLUM Managing Partner +32 486 311 135

Blue Bear Consulting SRL Avenue Kersbeek 229 1190 Forest BCE: 0751.766.034

Mapping for US keyboards without support for non-ascii input.

name: BELGIAN identifier: be

unicode: none keyCodes:

Number row

"`": 0x35 "~": modifiers: shift scanCode: 0x35 "!": 0x1e "1": modifiers: shift scanCode: 0x1e "@": 0x1f "2": modifiers: shift scanCode: 0x1f "#": 0x20 "3": modifiers: shift scanCode: 0x20 "$": 0x21 "4": modifiers: shift scanCode: 0x21 "(": 0x22 "5": modifiers: shift scanCode: 0x22 "^": 0x23 "6": modifiers: shift scanCode: 0x23 "?": 0x24 "7": modifiers: shift scanCode: 0x24 "*": 0x25 "8": modifiers: shift scanCode: 0x25 "(": 0x26 "9": modifiers: shift scanCode: 0x26 ")": 0x27 "0": modifiers: shift scanCode: 0x27 "-": 0x2d "_": modifiers: shift scanCode: 0x2d "=": 0x2e "?": modifiers: shift scanCode: 0x2e "\b": 0x2a

Top letter row

"\t": 0x2b

"q": 0x04 "Q": modifiers: shift scanCode: 0x04 "w": 0x1d "W": modifiers: shift scanCode: 0x1d "e": 0x08 "E": modifiers: shift scanCode: 0x8 "r": 0x15 "R": modifiers: shift scanCode: 0x15 "t": 0x17 "T": modifiers: shift scanCode: 0x17 "y": 0x1c "Y": modifiers: shift scanCode: 0x1c "u": 0x18 "U": modifiers: shift scanCode: 0x18 "i": 0x0c "I": modifiers: shift scanCode: 0x0c "o": 0x12 "O": modifiers: shift scanCode: 0x12 "p": 0x13 "P": modifiers: shift scanCode: 0x13 "[": 0x2f "{": modifiers: shift scanCode: 0x2f "]": 0x30 "}": modifiers: shift scanCode: 0x30 "\": 0x31 "|": modifiers: shift scanCode: 0x31

Middle letter row

Original:0x04

"a": 0x14 "A": modifiers: shift scanCode: 0x14 "s": 0x16 "S": modifiers: shift scanCode: 0x16 "d": 0x07 "D": modifiers: shift scanCode: 0x07 "f": 0x09 "F": modifiers: shift scanCode: 0x09 "g": 0x0a "G": modifiers: shift scanCode: 0x0a "h": 0x0b "H": modifiers: shift scanCode: 0x0b "j": 0x0d "J": modifiers: shift scanCode: 0x0d "k": 0x0e "K": modifiers: shift scanCode: 0x0e "l": 0x0f "L": modifiers: shift scanCode: 0x0f ";": 0x10 ":": modifiers: shift scanCode: 0x33 "'": 0x34 "\"": modifiers: shift scanCode: 0x34 "\n": 0x28

Lower letter row

"z": 0x1a "Z": modifiers: shift scanCode: 0x1a "x": 0x1b "X": modifiers: shift scanCode: 0x1b "c": 0x06 "C": modifiers: shift scanCode: 0x06 "v": 0x19 "V": modifiers: shift scanCode: 0x19 "b": 0x05 "B": modifiers: shift scanCode: 0x05 "n": 0x11 "N": modifiers: shift scanCode: 0x11 "m": 0x33 "M": modifiers: shift scanCode: 0x33 ",": 0x36 "<": modifiers: shift scanCode: 0x36 ".": 0x37 ">": modifiers: shift scanCode: 0x37 "/": 0x38 "?": modifiers: shift scanCode: 0x38

Space bar

" ": 0x2c