Rolls, metrics of other analyzers, and search from saved layouts

- Pair metrics of other analyzers (oxeylyzer, genkey, the Keyboard
  Layouts Doc): same-finger distance, lateral stretches, scissors and
  half scissors.
- Rolls: each window of three presses gets a class: a roll of two or
  three, inward or outward, a roll with the ring finger above the middle
  finger, alternation, a redirect or a bad redirect. A space ends a
  window and is on neither hand, so a word's first and last two presses
  also make a window. The search scores the word edges too.
- All the new numbers are 0 by default: the scores do not change. The
  report, the Layout tab and word.bjo show the shares of each class.
- optimize.bjo can start from a saved layout.
- The GUI test sets the window size before showing it, so the first
  screenshot is not narrow. New screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-11-17 22:47:34 +01:00
parent 50a9d43d14
commit e0d1bfdefb
14 changed files with 430 additions and 37 deletions

View file

@ -50,6 +50,8 @@
(current-app (: Avalonia.Application.Current #:get))
(content! (: Avalonia.Controls.ContentControl.Content (-> ContentControl Object void) #:set))
(show! (: Avalonia.Controls.Window.Show (-> Window void)))
(width! (: Avalonia.Layout.Layoutable.Width (-> Layoutable double void) #:set))
(height! (: Avalonia.Layout.Layoutable.Height (-> Layoutable double void) #:set))
(app-styles (: Avalonia.Application.Styles (-> Application Styles) #:get))
(styles-add! (: Avalonia.Styling.Styles.Add (-> Styles IStyle void))))
@ -112,6 +114,10 @@
(ignore (wait-for scored?))
;; In a window, so that the theme gives the controls their templates.
(def frame (Window.))
;; At the shots' size before it is shown: else the first shot is laid out
;; at the window's default size.
(width! (cast Layoutable frame) 1500.0)
(height! (cast Layoutable frame) 900.0)
(content! (cast ContentControl frame) (cast Object (app-control app)))
(show! frame)
(loop (:for (Tuple t name) (list (Tuple 0 "rules") (Tuple 1 "key-costs") (Tuple 2 "layout") (Tuple 3 "search")))