Simple utility to turn swipes into words -- "plugin" for wvkbd to enable swipe-typing under wayland SXMO.
-rw-r--r--functions.sh6
-rwxr-xr-xmakeDir.sh9
2 files changed, 15 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
new file mode 100644
index 0000000..440219b
--- /dev/null
+++ b/functions.sh
@@ -0,0 +1,6 @@
+firstLetter(){
+ echo "$1"|grep -o '^.'
+}
+lastLetter(){
+ echo "$1"|grep -o '.$'
+}
diff --git a/makeDir.sh b/makeDir.sh
new file mode 100755
index 0000000..aa9f782
--- /dev/null
+++ b/makeDir.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+dir="$1"
+rm $dir/*
+source functions.sh
+while read -r line; do
+ fl=$(firstLetter "$line")
+ ll=$(lastLetter "$line")
+ echo "$line" >> "$dir/$fl$ll"
+done