Skip to content

sgaliamov/ergo-layouts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utilities for ErgoDox EZ

edLayout

Is a utility to examine layouts for ErgoDox keyboard.

❯ .\edLayout.exe -i .\samples -l .\layouts\qwerty.json -sp false -o .\publish\edLayout\results.csv

Usage:
  edLayout [options]

Options:
  -i, --input <input>        Path to a directory with sampling texts.
  -p, --pattern <pattern>    Pattern to filter sampling files. [default: *.txt]
  -l, --layout <layout>      Path to a layout file.
  -o, --output <output>      Path to the output file.
  -sp, --show-progress       [default: True]
  -d, --detailed             Show sample texts statistics.
  --version                  Show version information
  -?, -h, --help             Show help and usage information

More details you can find here.

edText

A utility that helps to minify sampling texts without loosing statistical characteristic's of digraphs.

In case when you have a lot of texts for some algorithm, you can save some time running it on smaller version of those texts that have same quality.

edText.exe .\samples 0.01 .\results 4

Parameters

  1. .\samples path to a folder with original texts. It should be txt files.
  2. 0.01 target precision.
  3. .\results output folder.
  4. 4 defines the way how to split the set of lines in the algorithm.

Algorithm

  1. Load all texts.
  2. Shuffle the current set of lines.
  3. If shuffled 10 times already, save text and exit.
  4. Split into 2 parts using the last input parameter.
  5. Calculate a score for both parts.
  6. If both bad according the chosen precision, go to 2.
  7. Get the best part.
  8. Go to 3.