diff --git a/data/keyboards/geometry/extended.xml b/data/keyboards/geometry/extended.xml
deleted file mode 100644
index 0f2dc0ac..00000000
--- a/data/keyboards/geometry/extended.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- q w e r t y u i o p aring
- a s d f g h j k l oslash ae
- Shift_L z x c v b n m BackSpace
- show_numbers preferences space period Return
-
-
- Q W E R T Y U I O P Aring
- A S D F G H J K L Oslash AE
- Shift_L Z X C V B N M BackSpace
- show_numbers preferences space period Return
-
-
-
- at numbersign dollar percent ampersand minus underscore plus parenleft parenright
- show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace
- show_letters preferences space period Return
-
-
- asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph
- copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright
- show_numbers backslash slash less greater equal bracketleft bracketright BackSpace
- show_letters preferences space period Return
-
-
diff --git a/data/keyboards/nb.yaml b/data/keyboards/nb.yaml
new file mode 100644
index 00000000..e55a5214
--- /dev/null
+++ b/data/keyboards/nb.yaml
@@ -0,0 +1,179 @@
+---
+bounds: { x: 0, y: 10, width: 426, height: 229 }
+
+outlines:
+ default:
+ corner_radius: 1
+ bounds: { x: 0, y: 0, width: 32, height: 52 }
+ altline:
+ corner_radius: 1
+ bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
+ outline7:
+ corner_radius: 1
+ bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
+ spaceline:
+ corner_radius: 1
+ bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
+
+views:
+ base:
+ - "q w e r t y u i o p aring"
+ - "a s d f g h j k l oslash ae"
+ - "Shift_L z x c v b n m BackSpace"
+ - "show_numbers preferences space period Return"
+ upper:
+ - "Q W E R T Y U I O P Aring"
+ - "A S D F G H J K L Oslash AE"
+ - "Shift_L Z X C V B N M BackSpace"
+ - "show_numbers preferences space period Return"
+ numbers:
+ - "1 2 3 4 5 6 7 8 9 0"
+ - "at numbersign dollar percent ampersand minus underscore plus parenleft parenright"
+ - "show_symbols comma quotedbl quoteright colon semicolon exclam question BackSpace"
+ - "show_letters preferences space period Return"
+ symbols:
+ - "asciitilde quoteleft bar U00B7 squareroot Greek_pi Greek_tau division multiply paragraph"
+ - "copyright U00AE U00A3 EuroSign U00A5 asciicircum degree asterisk braceleft braceright"
+ - "show_numbers backslash slash less greater equal bracketleft bracketright BackSpace"
+ - "show_letters preferences space period Return"
+
+buttons:
+ Shift_L:
+ action:
+ locking:
+ lock_view: "upper"
+ unlock_view: "base"
+ outline: "altline"
+ icon: "key-shift"
+ BackSpace:
+ outline: "altline"
+ icon: "edit-clear-symbolic"
+ preferences:
+ action: "show_prefs"
+ outline: "altline"
+ icon: "keyboard-mode-symbolic"
+ show_numbers:
+ action:
+ set_view: "numbers"
+ outline: "altline"
+ label: "123"
+ show_letters:
+ action:
+ set_view: "base"
+ outline: "altline"
+ label: "ABC"
+ show_symbols:
+ action:
+ set_view: "symbols"
+ outline: "altline"
+ label: "+/="
+ period:
+ outline: altline
+ label: "."
+ space:
+ outline: spaceline
+ label: " "
+ Return:
+ outline: outline7
+ icon: "key-enter"
+ aring:
+ label: "å"
+ Aring:
+ label: "Å"
+ oslash:
+ label: "ø"
+ Oslash:
+ label: "Ø"
+ ae:
+ label: "æ"
+ AE:
+ label: "Æ"
+ asterisk:
+ label: "*"
+ asciitilde:
+ label: "~"
+ quoteleft:
+ label: "`"
+ bar:
+ label: "|"
+ U00B7:
+ label: "·"
+ squareroot:
+ label: "√"
+ Greek_pi:
+ label: "π"
+ division:
+ label: "÷"
+ multiply:
+ label: "×"
+ paragraph:
+ label: "¶"
+ Greek_tau:
+ label: "τ"
+ copyright:
+ label: "©"
+ numbersign:
+ label: "#"
+ U00AE:
+ label: "®"
+ at:
+ label: "@"
+ dollar:
+ label: "$"
+ U00A3:
+ label: "£"
+ percent:
+ label: "%"
+ EuroSign:
+ label: "€"
+ ampersand:
+ label: "&"
+ U00A5:
+ label: "¥"
+ minus:
+ label: "-"
+ asciicircum:
+ label: "^"
+ underscore:
+ label: "_"
+ degree:
+ label: "°"
+ plus:
+ label: "+"
+ equal:
+ label: "="
+ parenleft:
+ label: "("
+ parenright:
+ label: ")"
+ braceleft:
+ label: "{"
+ braceright:
+ label: "}"
+ comma:
+ label: ","
+ backslash:
+ label: "\\"
+ slash:
+ label: "/"
+ quotedbl:
+ label: "\""
+ quoteright:
+ label: "'"
+ less:
+ label: "<"
+ greater:
+ label: ">"
+ colon:
+ label: ":"
+ semicolon:
+ label: ";"
+ exclam:
+ label: "!"
+ question:
+ label: "?"
+ bracketleft:
+ label: "["
+ bracketright:
+ label: "]"
+
diff --git a/data/keyboards/symbols/nb.xml b/data/keyboards/symbols/nb.xml
deleted file mode 100644
index bbf9fb77..00000000
--- a/data/keyboards/symbols/nb.xml
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
- asterisk
- show_symbols
- Greek_tau
- aring
- oslash
- ae
- Aring
- Oslash
- AE
- q
- Q
- 1
- asciitilde
- w
- W
- 2
- quoteleft
- e
- E
- 3
- bar
- r
- R
- 4
- U00B7
- t
- T
- 5
- squareroot
- y
- Y
- 6
- Greek_pi
- u
- U
- 7
- division
- i
- I
- 8
- multiply
- o
- O
- 9
- paragraph
- p
- P
- 0
- U25B3
- aring
- Aring
- a
- A
- at
- copyright
- s
- S
- numbersign
- U00AE
- d
- D
- dollar
- U00A3
- f
- F
- percent
- EuroSign
- g
- G
- ampersand
- U00A5
- h
- H
- minus
- asciicircum
- j
- J
- underscore
- degree
- k
- K
- plus
- equal
- l
- L
- parenleft
- braceleft
- oslash
- Oslash
- parenright
- braceright
- ae
- AE
- Return
- Shift_L
- z
- Z
- comma
- backslash
- x
- X
- quotedbl
- slash
- c
- C
- quoteright
- less
- v
- V
- colon
- greater
- b
- B
- semicolon
- equal
- n
- N
- exclam
- bracketleft
- m
- M
- question
- bracketright
- period
- show_numbers
- show_letters
- preferences
- space
- BackSpace
-
diff --git a/data/squeekboard.gresources.xml b/data/squeekboard.gresources.xml
index fecd8587..08290e9b 100644
--- a/data/squeekboard.gresources.xml
+++ b/data/squeekboard.gresources.xml
@@ -2,7 +2,6 @@
style.css
- keyboards/geometry/extended.xml
keyboards/geometry/number-keypad.xml
keyboards/keyboards.xml
keyboards/symbols/ar.xml
@@ -22,7 +21,6 @@
keyboards/symbols/ml-inscript.xml
keyboards/symbols/mr-inscript.xml
keyboards/symbols/my.xml
- keyboards/symbols/nb.xml
keyboards/symbols/or-inscript.xml
keyboards/symbols/pa-inscript.xml
keyboards/symbols/ru.xml
diff --git a/src/resources.rs b/src/resources.rs
index 63df57ed..bd7d1871 100644
--- a/src/resources.rs
+++ b/src/resources.rs
@@ -4,7 +4,8 @@
const KEYBOARDS: &[(*const str, *const str)] = &[
- ("us", include_str!("../data/keyboards/us.yaml"))
+ ("us", include_str!("../data/keyboards/us.yaml")),
+ ("nb", include_str!("../data/keyboards/nb.yaml")),
];
pub fn get_keyboard(needle: &str) -> Option<&'static str> {