summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-11-24 01:07:04 -0500
committerZach DeCook <zachdecook@librem.one>2021-11-24 01:19:57 -0500
commit85c03d4d69f6a004e3d166680c6163147fb34470 (patch)
tree9bd583ae2149f274f9e49bae55642ee10d4388bf /README.md
parentd7c14388e5eb764056fcf6d3262e2d4028db3e12 (diff)
downloadswipeGuess-85c03d4d69f6a004e3d166680c6163147fb34470.tar.gz
doc changes, minor fix
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index cdf4ad6..db62749 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,8 @@ There's a WIP Merge Request towards proycon's wvkbd for an example of this.
 
 This should be a list of words, sorted by preferability of choice.
 
+### sorting tips
+
 Note: you probably want longest words first, otherewise, it may be impossible to type them.
 
 ```
@@ -26,6 +28,15 @@ ls $PATH | awk '{ print length, $0 }' | sort -nr | cut -d" " -f2- > binsSorted.t
 
 ```
 
+Smarter sorting would be keyboard-layout aware. mapscore.py can do that for you
+
+```sh
+./mapScore.py map.txt <words.txt | sort -nr | cut -f2 > wordsSorted.txt
+```
+map.txt uses tabs and newlines to create the grid-based layout.
+
+### alternate formats
+
 Alternatively, for performance, you can use a directory with the following format: each file is named with the first and last letters of the contained words.
 The script `makeDir.sh` is provided to help create these.