Skip to content

Commit 9fe0ea4

Browse files
keymaps (#276)
1 parent 401822c commit 9fe0ea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+20
-20
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
all:
2-
@find layouts -type f \( -name '*.toml' -o -name '*.yaml' \) | while read -r file; do \
2+
@find keymaps -type f \( -name '*.toml' -o -name '*.yaml' \) | while read -r file; do \
33
kalamine build "$$file" --out "$$(echo $$file | sed 's/....$$/json/')"; \
44
done
55

66
watch:
7-
@inotifywait -m -r layouts -e close_write | while read -r path _action file; do \
7+
@inotifywait -m -r keymaps -e close_write | while read -r path _action file; do \
88
case $$file in \
99
*.yaml | *.toml) echo kalamine build "$$path$$file" --out "$$path$$(basename "$${file%.*}").json";; \
1010
esac \
@@ -21,7 +21,7 @@ clean:
2121
install:
2222
@echo "Installer script for XKB (GNU/Linux)."
2323
@echo
24-
xkalamine install layouts/ergol.toml
24+
xkalamine install keymaps/ergol.toml
2525

2626
uninstall:
2727
@echo "Unistaller script for XKB (GNU/Linux)."

README.md

+4-4

code/duck-typist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ window.addEventListener('DOMContentLoaded', () => {
9797
// fetch a kalamine keyboard layout
9898
const fetchLayout = () => {
9999
const selected = gLayout.querySelector(`option[value="${gLayout.value}"`);
100-
return fetch(`../layouts/${selected.dataset.folder}/${gLayout.value}.json`)
100+
return fetch(`../keymaps/${selected.dataset.folder}/${gLayout.value}.json`)
101101
.then(response => response.json())
102102
.then(layout => {
103103
gKeyboard.setKeyboardLayout(layout.keymap, layout.deadkeys, gGeometry.value);

code/layout-analyzer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ window.addEventListener('DOMContentLoaded', () => {
550550
if (value) {
551551
const layoutFolder = document
552552
.querySelector(`#layout option[value="${value}"]`).dataset.folder;
553-
fetch(`../layouts/${layoutFolder}/${value}.json`)
553+
fetch(`../keymaps/${layoutFolder}/${value}.json`)
554554
.then(response => response.json())
555555
.then(data => {
556556
const selectedOption = document
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

www/content/alternatives/_index.md

+1-1

www/content/alternatives/bepo/index.md

+1-1

www/content/dactylo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h2><span class="key_list"></span><span class="quacks">🦆</span></h2>
9999
<x-keyboard></x-keyboard>
100100
<p style="text-align: right;">
101101
<span style="float: left;">
102-
{{< layout-list >}}
102+
{{< keymap-list >}}
103103
<select id="dict">
104104
<option value="fr,french_1k">Français 1k</option>
105105
<option value="fr,french_10k" selected>Français 10k</option>

www/content/installation/index.md

+1-1

www/content/stats.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<div id="sticky-select">
2323
<form>
24-
{{< layout-list >}}
24+
{{< keymap-list >}}
2525
<select id="geometry">
2626
<option value="iso" selected>ISO</option>
2727
<option value="ansi">ANSI</option>

www/hugo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ author = "authors"
2929
source = "../corpus"
3030
target = "static/corpus"
3131
[[module.mounts]]
32-
source = "../layouts"
33-
target = "static/layouts"
32+
source = "../keymaps"
33+
target = "static/keymaps"
3434
[[module.mounts]]
3535
source = "static"
3636
target = "static"

www/layouts/shortcodes/layout-list.html www/layouts/shortcodes/keymap-list

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ $default_layout := "ergol" }}
2-
{{ $layouts := dict
2+
{{ $keymaps := dict
33
"en" (dict
44
"qwerty" "Qwerty"
55
"dvorak" "Dvorak"
@@ -36,9 +36,9 @@
3636
}}
3737

3838
<select id="layout">
39-
{{ range $language, $layouts_language := $layouts }}
39+
{{ range $language, $keymaps_language := $keymaps }}
4040
<option disabled>  [{{ $language }}]</option>
41-
{{ range $json_name, $displayed_name := $layouts_language }}
41+
{{ range $json_name, $displayed_name := $keymaps_language }}
4242
{{ if eq $default_layout $json_name }}
4343
<option data-folder="{{$language}}" value="{{ $json_name }}" selected> {{ $displayed_name }} </option>
4444
{{ else }}

www/layouts/shortcodes/x-keyboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
{{ with .Get "data" }}
3737
<dialog>
3838
<input spellcheck="false" placeholder="zone de saisie {{ $name }}" />
39-
<x-keyboard src="/layouts/fr/{{ . }}.json"></x-keyboard>
39+
<x-keyboard src="/keymaps/fr/{{ . }}.json"></x-keyboard>
4040
</dialog>
4141
{{ end }}
4242
<nav>

0 commit comments

Comments
 (0)