Skip to content

Commit

Permalink
Autocorrect changes & some stuff to fit into eeprom
Browse files Browse the repository at this point in the history
  • Loading branch information
plodah committed Aug 30, 2024
1 parent 2bdd159 commit e000949
Show file tree
Hide file tree
Showing 14 changed files with 741 additions and 290 deletions.
6 changes: 3 additions & 3 deletions buildmykeyboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ cd $qmkdir
#Small Dictionary
declare -a usesmalldict=(
"keebio/iris/keymaps/plodah"
"keychron/q1v1/iso_encoder"
"keychron/v2/iso_encoder"
"keychron/q1v1/iso_encoder/keymaps/plodah"
"keychron/v2/iso_encoder/keymaps/plodah"
"kprepublic/bm65hsrgb_iso/keymaps/plodah"
"xiudi/xd60/keymaps/plodah"
"ymdk/yd60mq/keymaps/plodah_jpn"
"ymdk/yd60mq/keymaps/plodah_spl"
"ymdk/yd60mq/keymaps/plodah_splbl"
)
if [[ -e $plodir/dict-small.txt && -e $plodir/autocorrect_data_s.h && $plodir/dict-small.txt -nt $plodir/autocorrect_data_s.h ]]; then
if [[ -e $plodir/dict-small.txt && (-e $plodir/autocorrect_data_s.h && $plodir/dict-small.txt -nt $plodir/autocorrect_data_s.h) || (! -e $plodir/autocorrect_data_s.h) ]]; then
qmk generate-autocorrect-data -o $plodir/autocorrect_data_s.h $plodir/dict-small.txt
fi

Expand Down
103 changes: 50 additions & 53 deletions keyboards/keebio/iris/keymaps/plodah/autocorrect_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#pragma once

// Autocorrection dictionary (67 entries):
// Autocorrection dictionary (65 entries):
// fitler -> filter
// somehting -> something
// :thier -> their
Expand All @@ -34,6 +34,7 @@
// verisons -> versions
// lenght -> length
// ouput -> output
// thign -> thing
// widht -> width
// :esle -> else
// :adn: -> and
Expand All @@ -57,13 +58,10 @@
// :leran -> learn
// :loev -> love
// :lsat -> last
// :lveo -> love
// :lvoe -> love
// :nad: -> and
// :nto: -> not
// :onyl: -> only
// :ocuntry -> country
// :ot: -> to
// :ous: -> our
// :oru: -> our
// :owrk -> work
Expand Down Expand Up @@ -96,64 +94,63 @@

#define AUTOCORRECT_MIN_LENGTH 4 // ":gt:"
#define AUTOCORRECT_MAX_LENGTH 9 // "somehting"
#define DICTIONARY_SIZE 912
#define DICTIONARY_SIZE 882

static const uint8_t autocorrect_data[DICTIONARY_SIZE] PROGMEM = {
0x6C, 0x2E, 0x00, 0x07, 0xE3, 0x01, 0x08, 0xF2, 0x01, 0x0A, 0x6C, 0x02, 0x0B, 0x8A, 0x02, 0x0E,
0xB7, 0x02, 0x0F, 0xC2, 0x02, 0x11, 0xCD, 0x02, 0x12, 0xE8, 0x02, 0x15, 0xF2, 0x02, 0x16, 0x0E,
0x03, 0x17, 0x1D, 0x03, 0x18, 0x5F, 0x03, 0x19, 0x68, 0x03, 0x1C, 0x7F, 0x03, 0x00, 0x44, 0x5C,
0x00, 0x07, 0x73, 0x00, 0x08, 0x7C, 0x00, 0x0B, 0xDE, 0x00, 0x0C, 0x04, 0x01, 0x0F, 0x0D, 0x01,
0x10, 0x16, 0x01, 0x11, 0x2D, 0x01, 0x12, 0x4F, 0x01, 0x15, 0x71, 0x01, 0x16, 0x79, 0x01, 0x17,
0x9B, 0x01, 0x18, 0xC7, 0x01, 0x1A, 0xCF, 0x01, 0x1C, 0xD9, 0x01, 0x00, 0x51, 0x63, 0x00, 0x17,
0x6B, 0x00, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82, 0x61, 0x6E, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82,
0x61, 0x74, 0x00, 0x04, 0x11, 0x2C, 0x00, 0x83, 0x61, 0x6E, 0x64, 0x00, 0x44, 0x8F, 0x00, 0x0B,
0xA6, 0x00, 0x0D, 0xBE, 0x00, 0x11, 0xC5, 0x00, 0x12, 0xCD, 0x00, 0x17, 0xD6, 0x00, 0x00, 0x4E,
0x96, 0x00, 0x10, 0x9E, 0x00, 0x00, 0x17, 0x2C, 0x00, 0x83, 0x61, 0x6B, 0x65, 0x00, 0x16, 0x2C,
0x00, 0x83, 0x61, 0x6D, 0x65, 0x00, 0x4D, 0xAD, 0x00, 0x17, 0xB4, 0x00, 0x00, 0x17, 0x2C, 0x00,
0x83, 0x68, 0x65, 0x00, 0x16, 0x04, 0x2C, 0x00, 0x83, 0x20, 0x74, 0x68, 0x65, 0x00, 0x17, 0x2C,
0x00, 0x82, 0x68, 0x65, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82, 0x65, 0x6E, 0x00, 0x10, 0x16, 0x2C,
0x00, 0x83, 0x6F, 0x6D, 0x65, 0x00, 0x0B, 0x2C, 0x00, 0x83, 0x74, 0x68, 0x65, 0x00, 0x48, 0xE5,
0x00, 0x17, 0xEC, 0x00, 0x00, 0x17, 0x2C, 0x00, 0x82, 0x68, 0x65, 0x00, 0x44, 0xF3, 0x00, 0x15,
0xFB, 0x00, 0x00, 0x17, 0x2C, 0x00, 0x83, 0x68, 0x61, 0x74, 0x00, 0x18, 0x12, 0x16, 0x2C, 0x00,
0x83, 0x74, 0x68, 0x00, 0x16, 0x0B, 0x17, 0x2C, 0x00, 0x82, 0x69, 0x73, 0x00, 0x1C, 0x11, 0x12,
0x2C, 0x00, 0x82, 0x6C, 0x79, 0x00, 0x08, 0x00, 0x4C, 0x1F, 0x01, 0x12, 0x26, 0x01, 0x00, 0x17,
0x2C, 0x00, 0x82, 0x6D, 0x65, 0x00, 0x16, 0x2C, 0x00, 0x82, 0x6D, 0x65, 0x00, 0x47, 0x37, 0x01,
0x08, 0x3E, 0x01, 0x0B, 0x48, 0x01, 0x00, 0x04, 0x2C, 0x00, 0x82, 0x6E, 0x64, 0x00, 0x17, 0x0B,
0x2C, 0x00, 0x84, 0x74, 0x68, 0x65, 0x6E, 0x00, 0x17, 0x2C, 0x00, 0x81, 0x65, 0x6E, 0x00, 0x4F,
0x59, 0x01, 0x13, 0x62, 0x01, 0x17, 0x6A, 0x01, 0x00, 0x16, 0x04, 0x2C, 0x00, 0x83, 0x6C, 0x73,
0x6F, 0x00, 0x17, 0x16, 0x2C, 0x00, 0x82, 0x6F, 0x70, 0x00, 0x11, 0x2C, 0x00, 0x82, 0x6F, 0x74,
0x00, 0x17, 0x16, 0x04, 0x0F, 0x2C, 0x00, 0x81, 0x00, 0x44, 0x83, 0x01, 0x0B, 0x8C, 0x01, 0x18,
0x95, 0x01, 0x00, 0x1C, 0x16, 0x2C, 0x00, 0x83, 0x61, 0x79, 0x73, 0x00, 0x0C, 0x17, 0x2C, 0x00,
0x83, 0x68, 0x69, 0x73, 0x00, 0x12, 0x2C, 0x00, 0x81, 0x72, 0x00, 0x4A, 0xA5, 0x01, 0x12, 0xAB,
0x01, 0x16, 0xBD, 0x01, 0x00, 0x2C, 0x00, 0x81, 0x69, 0x74, 0x00, 0x6C, 0xB2, 0x01, 0x11, 0xB6,
0x01, 0x00, 0x82, 0x74, 0x6F, 0x00, 0x0C, 0x2C, 0x00, 0x82, 0x74, 0x6F, 0x00, 0x18, 0x17, 0x2C,
0x6C, 0x28, 0x00, 0x07, 0xD3, 0x01, 0x08, 0xE2, 0x01, 0x0A, 0x5C, 0x02, 0x0B, 0x7A, 0x02, 0x0E,
0xA7, 0x02, 0x0F, 0xB2, 0x02, 0x11, 0xBD, 0x02, 0x15, 0xE5, 0x02, 0x16, 0x01, 0x03, 0x17, 0x10,
0x03, 0x18, 0x52, 0x03, 0x19, 0x5B, 0x03, 0x00, 0x44, 0x56, 0x00, 0x07, 0x6D, 0x00, 0x08, 0x76,
0x00, 0x0B, 0xD8, 0x00, 0x0C, 0xFE, 0x00, 0x0F, 0x07, 0x01, 0x10, 0x10, 0x01, 0x11, 0x27, 0x01,
0x12, 0x49, 0x01, 0x15, 0x6B, 0x01, 0x16, 0x73, 0x01, 0x17, 0x95, 0x01, 0x18, 0xB7, 0x01, 0x1A,
0xBF, 0x01, 0x1C, 0xC9, 0x01, 0x00, 0x51, 0x5D, 0x00, 0x17, 0x65, 0x00, 0x00, 0x0B, 0x17, 0x2C,
0x00, 0x82, 0x61, 0x6E, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82, 0x61, 0x74, 0x00, 0x04, 0x11, 0x2C,
0x00, 0x83, 0x61, 0x6E, 0x64, 0x00, 0x44, 0x89, 0x00, 0x0B, 0xA0, 0x00, 0x0D, 0xB8, 0x00, 0x11,
0xBF, 0x00, 0x12, 0xC7, 0x00, 0x17, 0xD0, 0x00, 0x00, 0x4E, 0x90, 0x00, 0x10, 0x98, 0x00, 0x00,
0x17, 0x2C, 0x00, 0x83, 0x61, 0x6B, 0x65, 0x00, 0x16, 0x2C, 0x00, 0x83, 0x61, 0x6D, 0x65, 0x00,
0x4D, 0xA7, 0x00, 0x17, 0xAE, 0x00, 0x00, 0x17, 0x2C, 0x00, 0x83, 0x68, 0x65, 0x00, 0x16, 0x04,
0x2C, 0x00, 0x83, 0x20, 0x74, 0x68, 0x65, 0x00, 0x17, 0x2C, 0x00, 0x82, 0x68, 0x65, 0x00, 0x0B,
0x17, 0x2C, 0x00, 0x82, 0x65, 0x6E, 0x00, 0x10, 0x16, 0x2C, 0x00, 0x83, 0x6F, 0x6D, 0x65, 0x00,
0x0B, 0x2C, 0x00, 0x83, 0x74, 0x68, 0x65, 0x00, 0x48, 0xDF, 0x00, 0x17, 0xE6, 0x00, 0x00, 0x17,
0x2C, 0x00, 0x82, 0x68, 0x65, 0x00, 0x44, 0xED, 0x00, 0x15, 0xF5, 0x00, 0x00, 0x17, 0x2C, 0x00,
0x83, 0x68, 0x61, 0x74, 0x00, 0x18, 0x12, 0x16, 0x2C, 0x00, 0x83, 0x74, 0x68, 0x00, 0x16, 0x0B,
0x17, 0x2C, 0x00, 0x82, 0x69, 0x73, 0x00, 0x1C, 0x11, 0x12, 0x2C, 0x00, 0x82, 0x6C, 0x79, 0x00,
0x08, 0x00, 0x4C, 0x19, 0x01, 0x12, 0x20, 0x01, 0x00, 0x17, 0x2C, 0x00, 0x82, 0x6D, 0x65, 0x00,
0x16, 0x2C, 0x00, 0x82, 0x6D, 0x65, 0x00, 0x47, 0x31, 0x01, 0x08, 0x38, 0x01, 0x0B, 0x42, 0x01,
0x00, 0x04, 0x2C, 0x00, 0x82, 0x6E, 0x64, 0x00, 0x17, 0x0B, 0x2C, 0x00, 0x84, 0x74, 0x68, 0x65,
0x6E, 0x00, 0x17, 0x2C, 0x00, 0x81, 0x65, 0x6E, 0x00, 0x4F, 0x53, 0x01, 0x13, 0x5C, 0x01, 0x17,
0x64, 0x01, 0x00, 0x16, 0x04, 0x2C, 0x00, 0x83, 0x6C, 0x73, 0x6F, 0x00, 0x17, 0x16, 0x2C, 0x00,
0x82, 0x6F, 0x70, 0x00, 0x11, 0x2C, 0x00, 0x82, 0x6F, 0x74, 0x00, 0x17, 0x16, 0x04, 0x0F, 0x2C,
0x00, 0x81, 0x00, 0x44, 0x7D, 0x01, 0x0B, 0x86, 0x01, 0x18, 0x8F, 0x01, 0x00, 0x1C, 0x16, 0x2C,
0x00, 0x83, 0x61, 0x79, 0x73, 0x00, 0x0C, 0x17, 0x2C, 0x00, 0x83, 0x68, 0x69, 0x73, 0x00, 0x12,
0x2C, 0x00, 0x81, 0x72, 0x00, 0x4A, 0x9F, 0x01, 0x12, 0xA5, 0x01, 0x16, 0xAD, 0x01, 0x00, 0x2C,
0x00, 0x81, 0x69, 0x74, 0x00, 0x11, 0x0C, 0x2C, 0x00, 0x82, 0x74, 0x6F, 0x00, 0x18, 0x17, 0x2C,
0x00, 0x83, 0x72, 0x75, 0x73, 0x74, 0x00, 0x15, 0x12, 0x2C, 0x00, 0x82, 0x75, 0x72, 0x00, 0x0B,
0x12, 0x16, 0x2C, 0x00, 0x83, 0x68, 0x6F, 0x77, 0x00, 0x0B, 0x08, 0x17, 0x2C, 0x00, 0x83, 0x68,
0x65, 0x79, 0x00, 0x15, 0x04, 0x0A, 0x15, 0x08, 0x2C, 0x00, 0x85, 0x72, 0x65, 0x67, 0x61, 0x72,
0x64, 0x00, 0x4B, 0x02, 0x02, 0x0C, 0x2A, 0x02, 0x0F, 0x33, 0x02, 0x12, 0x3C, 0x02, 0x15, 0x45,
0x02, 0x00, 0x17, 0x00, 0x47, 0x0E, 0x02, 0x12, 0x18, 0x02, 0x17, 0x21, 0x02, 0x00, 0x11, 0x04,
0x64, 0x00, 0x4B, 0xF2, 0x01, 0x0C, 0x1A, 0x02, 0x0F, 0x23, 0x02, 0x12, 0x2C, 0x02, 0x15, 0x35,
0x02, 0x00, 0x17, 0x00, 0x47, 0xFE, 0x01, 0x12, 0x08, 0x02, 0x17, 0x11, 0x02, 0x00, 0x11, 0x04,
0x2C, 0x00, 0x82, 0x20, 0x74, 0x68, 0x65, 0x00, 0x17, 0x2C, 0x00, 0x82, 0x20, 0x74, 0x68, 0x65,
0x00, 0x04, 0x2C, 0x00, 0x82, 0x20, 0x74, 0x68, 0x65, 0x00, 0x1D, 0x16, 0x2C, 0x00, 0x82, 0x69,
0x7A, 0x65, 0x00, 0x16, 0x08, 0x2C, 0x00, 0x82, 0x6C, 0x73, 0x65, 0x00, 0x19, 0x0F, 0x2C, 0x00,
0x82, 0x6F, 0x76, 0x65, 0x00, 0x46, 0x4F, 0x02, 0x08, 0x59, 0x02, 0x18, 0x64, 0x02, 0x00, 0x12,
0x82, 0x6F, 0x76, 0x65, 0x00, 0x46, 0x3F, 0x02, 0x08, 0x49, 0x02, 0x18, 0x54, 0x02, 0x00, 0x12,
0x16, 0x2C, 0x00, 0x83, 0x63, 0x6F, 0x72, 0x65, 0x00, 0x17, 0x0B, 0x2C, 0x00, 0x84, 0x74, 0x68,
0x65, 0x72, 0x65, 0x00, 0x17, 0x2C, 0x00, 0x82, 0x72, 0x75, 0x65, 0x00, 0x11, 0x0C, 0x17, 0x0B,
0x00, 0x6C, 0x78, 0x02, 0x08, 0x7F, 0x02, 0x00, 0x84, 0x74, 0x68, 0x69, 0x6E, 0x67, 0x00, 0x10,
0x12, 0x16, 0x00, 0x84, 0x74, 0x68, 0x69, 0x6E, 0x67, 0x00, 0x48, 0x91, 0x02, 0x17, 0x9D, 0x02,
0x00, 0x17, 0x07, 0x11, 0x04, 0x2C, 0x00, 0x82, 0x20, 0x74, 0x68, 0x65, 0x00, 0x55, 0xA4, 0x02,
0x1A, 0xAE, 0x02, 0x00, 0x18, 0x17, 0x2C, 0x00, 0x83, 0x72, 0x75, 0x74, 0x68, 0x00, 0x0C, 0x2C,
0x00, 0x6C, 0x68, 0x02, 0x08, 0x6F, 0x02, 0x00, 0x84, 0x74, 0x68, 0x69, 0x6E, 0x67, 0x00, 0x10,
0x12, 0x16, 0x00, 0x84, 0x74, 0x68, 0x69, 0x6E, 0x67, 0x00, 0x48, 0x81, 0x02, 0x17, 0x8D, 0x02,
0x00, 0x17, 0x07, 0x11, 0x04, 0x2C, 0x00, 0x82, 0x20, 0x74, 0x68, 0x65, 0x00, 0x55, 0x94, 0x02,
0x1A, 0x9E, 0x02, 0x00, 0x18, 0x17, 0x2C, 0x00, 0x83, 0x72, 0x75, 0x74, 0x68, 0x00, 0x0C, 0x2C,
0x00, 0x83, 0x77, 0x69, 0x74, 0x68, 0x00, 0x15, 0x1A, 0x12, 0x2C, 0x00, 0x83, 0x77, 0x6F, 0x72,
0x6B, 0x00, 0x0F, 0x1A, 0x0C, 0x2C, 0x00, 0x83, 0x77, 0x69, 0x6C, 0x6C, 0x00, 0x04, 0x00, 0x4C,
0xD6, 0x02, 0x15, 0xDF, 0x02, 0x00, 0x0A, 0x04, 0x2C, 0x00, 0x82, 0x61, 0x69, 0x6E, 0x00, 0x08,
0x0F, 0x2C, 0x00, 0x82, 0x61, 0x72, 0x6E, 0x00, 0x08, 0x19, 0x0F, 0x2C, 0x00, 0x82, 0x6F, 0x76,
0x65, 0x00, 0x08, 0x00, 0x4C, 0xFB, 0x02, 0x0F, 0x04, 0x03, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82,
0x65, 0x69, 0x72, 0x00, 0x17, 0x0C, 0x09, 0x00, 0x83, 0x6C, 0x74, 0x65, 0x72, 0x00, 0x11, 0x12,
0x16, 0x0C, 0x15, 0x08, 0x19, 0x00, 0x84, 0x73, 0x69, 0x6F, 0x6E, 0x73, 0x00, 0x44, 0x2A, 0x03,
0x06, 0x33, 0x03, 0x0B, 0x3F, 0x03, 0x18, 0x55, 0x03, 0x00, 0x16, 0x0F, 0x2C, 0x00, 0x82, 0x61,
0x73, 0x74, 0x00, 0x18, 0x09, 0x12, 0x15, 0x13, 0x00, 0x83, 0x64, 0x75, 0x63, 0x74, 0x00, 0x47,
0x46, 0x03, 0x0A, 0x4D, 0x03, 0x00, 0x0C, 0x1A, 0x00, 0x81, 0x74, 0x68, 0x00, 0x11, 0x08, 0x0F,
0x00, 0x81, 0x74, 0x68, 0x00, 0x13, 0x18, 0x12, 0x00, 0x82, 0x74, 0x70, 0x75, 0x74, 0x00, 0x17,
0x12, 0x05, 0x04, 0x00, 0x81, 0x75, 0x74, 0x00, 0x08, 0x00, 0x44, 0x71, 0x03, 0x12, 0x78, 0x03,
0x00, 0x0B, 0x2C, 0x00, 0x81, 0x76, 0x65, 0x00, 0x0F, 0x2C, 0x00, 0x81, 0x76, 0x65, 0x00, 0x15,
0x17, 0x11, 0x18, 0x06, 0x12, 0x2C, 0x00, 0x86, 0x63, 0x6F, 0x75, 0x6E, 0x74, 0x72, 0x79, 0x00
0x6B, 0x00, 0x0F, 0x1A, 0x0C, 0x2C, 0x00, 0x83, 0x77, 0x69, 0x6C, 0x6C, 0x00, 0x44, 0xC4, 0x02,
0x0A, 0xDD, 0x02, 0x00, 0x4C, 0xCB, 0x02, 0x15, 0xD4, 0x02, 0x00, 0x0A, 0x04, 0x2C, 0x00, 0x82,
0x61, 0x69, 0x6E, 0x00, 0x08, 0x0F, 0x2C, 0x00, 0x82, 0x61, 0x72, 0x6E, 0x00, 0x0C, 0x0B, 0x17,
0x00, 0x81, 0x6E, 0x67, 0x00, 0x08, 0x00, 0x4C, 0xEE, 0x02, 0x0F, 0xF7, 0x02, 0x00, 0x0B, 0x17,
0x2C, 0x00, 0x82, 0x65, 0x69, 0x72, 0x00, 0x17, 0x0C, 0x09, 0x00, 0x83, 0x6C, 0x74, 0x65, 0x72,
0x00, 0x11, 0x12, 0x16, 0x0C, 0x15, 0x08, 0x19, 0x00, 0x84, 0x73, 0x69, 0x6F, 0x6E, 0x73, 0x00,
0x44, 0x1D, 0x03, 0x06, 0x26, 0x03, 0x0B, 0x32, 0x03, 0x18, 0x48, 0x03, 0x00, 0x16, 0x0F, 0x2C,
0x00, 0x82, 0x61, 0x73, 0x74, 0x00, 0x18, 0x09, 0x12, 0x15, 0x13, 0x00, 0x83, 0x64, 0x75, 0x63,
0x74, 0x00, 0x47, 0x39, 0x03, 0x0A, 0x40, 0x03, 0x00, 0x0C, 0x1A, 0x00, 0x81, 0x74, 0x68, 0x00,
0x11, 0x08, 0x0F, 0x00, 0x81, 0x74, 0x68, 0x00, 0x13, 0x18, 0x12, 0x00, 0x82, 0x74, 0x70, 0x75,
0x74, 0x00, 0x17, 0x12, 0x05, 0x04, 0x00, 0x81, 0x75, 0x74, 0x00, 0x08, 0x00, 0x44, 0x64, 0x03,
0x12, 0x6B, 0x03, 0x00, 0x0B, 0x2C, 0x00, 0x81, 0x76, 0x65, 0x00, 0x0F, 0x2C, 0x00, 0x81, 0x76,
0x65, 0x00
};
Loading

0 comments on commit e000949

Please sign in to comment.