use makefile that automatically calculates the path to sequence_transform

This commit is contained in:
Matt Skalecki 2024-03-21 10:45:00 -04:00
commit b2262c99f1
6 changed files with 60 additions and 26 deletions

View file

@ -18,13 +18,14 @@
#pragma once #pragma once
// #define ORYX_CONFIGURATOR
// User Added // User Added
#define COMBO_COUNT 10 #define COMBO_COUNT 10
#define TAPPING_TOGGLE 2 #define TAPPING_TOGGLE 2
#define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD #define DOUBLE_TAP_SHIFT_TURNS_ON_CAPS_WORD
#define SEQUENCE_TRANSFORM_IDLE_TIMEOUT 3000 #define SEQUENCE_TRANSFORM_IDLE_TIMEOUT 3000
#define SEQUENCE_TRANSFORM_EXTRA_BUFFER 10 #define SEQUENCE_TRANSFORM_EXTRA_BUFFER 10
#define SEQUENCE_TRANSFORM_FALLBACK_BUFFER 0
#define SEQUENCE_TRANSFORM_RECORD_RULE_USAGE 0 #define SEQUENCE_TRANSFORM_RECORD_RULE_USAGE 0
#define SEQUENCE_TRANSFORM_RULE_SEARCH 0
#define SEQUENCE_TRANSFORM_DEBUG 0
#define USER_PRINT #define USER_PRINT

View file

@ -10,7 +10,13 @@ CAPS_WORD_ENABLE = yes
TOP_SYMBOLS=10 TOP_SYMBOLS=10
include /home/qmk/qmk_userspace/keyboards/moonlander/keymaps/ikcelaks/sequence_transform/rules.mk # sequence_transform setup
mkfile_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
# Automatically rebuild my sequence_transform rules from the latest config all: st_build
$(shell python3 /home/qmk/qmk_userspace/keyboards/moonlander/keymaps/ikcelaks/sequence_transform/generator/sequence_transform_data.py -q)
st_build:
python3 $(mkfile_dir)/sequence_transform/generator/sequence_transform_data.py
include $(mkfile_dir)/sequence_transform/rules.mk
# end sequence_transform setup

@ -1 +1 @@
Subproject commit e332cf421c8e48512445b9eb1dadbe553ea513d1 Subproject commit 33cb17ce28cbe4fe94d6f054033a0d19c308a53f

View file

@ -1,11 +1,19 @@
{ {
"rules_file_name": "sequence_transform_dict.txt", "rules_file_name": "sequence_transform_dict.txt",
"sequence_token_symbols": "👆👍★✪", "sequence_token_symbols": {
"wordbreak_symbol": "⎵", "👆": "*",
"👍": "@",
"★": "$",
"✪": "#"
},
"wordbreak_symbol": {
"⎵": "^"
},
"digit_symbol": {
"": "D"
},
"output_func_symbols": "↻⇑", "output_func_symbols": "↻⇑",
"comment_str": "#", "comment_str": "#",
"separator_str": "⇒", "separator_str": "⇒",
"sequence_tokens_ascii": "*@$#", "implicit_transform_leading_wordbreak": true
"wordbreak_ascii": "^",
"quiet": false
} }

View file

@ -19,13 +19,13 @@ qa ⇒ qua
qi ⇒ qui qi ⇒ qui
qe ⇒ que qe ⇒ que
qo ⇒ quo qo ⇒ quo
qa👆 ⇒ qua qa👆 ⇒ qa
qi👆 ⇒ qui qi👆 ⇒ qi
qe👆 ⇒ que qe👆 ⇒ qe
qo👆 ⇒ quo qo👆 ⇒ qo
⎵eqa👍 ⇒ equal
eqa👍y ⇒ equally qua👆 ⇒ quali
eqa👍t ⇒ equality qa👆t ⇒ quality
d★ ⇒ develop d★ ⇒ develop
d★t ⇒ development d★t ⇒ development
@ -56,11 +56,12 @@ sim👆👆 ⇒ simultaneous
⎵c👍 ⇒ come ⎵c👍 ⇒ come
⎵c👍v ⇒ co ⎵c👍t ⇒ can't
⎵c👍v ⇒ cover
⎵c👍o ⇒ course ⎵c👍o ⇒ course
⎵c👍a ⇒ change ⎵c👍a ⇒ change
⎵c👍ai ⇒ changing ⎵c👍ai ⇒ changing
⎵c👍s ⇒ cause ⎵c👍e ⇒ cause
⎵c👍n ⇒ consider ⎵c👍n ⇒ consider
⎵c👍m ⇒ complete ⎵c👍m ⇒ complete
⎵c👍l ⇒ call ⎵c👍l ⇒ call
@ -234,7 +235,7 @@ rs👍 ⇒ rst
⎵w👍v ⇒ we've ⎵w👍v ⇒ we've
⎵w👆i ⇒ will ⎵w👆i ⇒ will
⎵w👆l ⇒ well ⎵w👆e ⇒ well
⎵w👆r ⇒ write ⎵w👆r ⇒ write
⎵w👆rn ⇒ written ⎵w👆rn ⇒ written
⎵w👆ri ⇒ writing ⎵w👆ri ⇒ writing
@ -257,6 +258,7 @@ rs👍 ⇒ rst
⎵a👆l ⇒ also ⎵a👆l ⇒ also
⎵a👍r ⇒ after ⎵a👍r ⇒ after
⎵a👍rt ⇒ aren't
⎵a👍👆 ⇒ another ⎵a👍👆 ⇒ another
⎵a👍d ⇒ around ⎵a👍d ⇒ around
⎵a👍n ⇒ again ⎵a👍n ⇒ again
@ -280,6 +282,9 @@ rs👍 ⇒ rst
⎵s👍p ⇒ special ⎵s👍p ⇒ special
⎵s👍a ⇒ state ⎵s👍a ⇒ state
⎵s👍e ⇒ seem ⎵s👍e ⇒ seem
⎵s👍es ⇒ she's
⎵s👍ed ⇒ she'd
⎵s👍el ⇒ she'll
⎵s👍i ⇒ still ⎵s👍i ⇒ still
⎵s👍n ⇒ since ⎵s👍n ⇒ since
@ -305,6 +310,8 @@ s👆l ⇒ school
⎵d👍t ⇒ don't ⎵d👍t ⇒ don't
⎵d👍i ⇒ did ⎵d👍i ⇒ did
⎵d👍it ⇒ didn't ⎵d👍it ⇒ didn't
⎵d👍s ⇒ does
⎵d👍st ⇒ doesn't
⎵d👍f ⇒ differ ⎵d👍f ⇒ differ
⎵d👍ft ⇒ different ⎵d👍ft ⇒ different
⎵d👍u ⇒ difficult ⎵d👍u ⇒ difficult
@ -326,6 +333,10 @@ s👆l ⇒ school
⎵h👍 ⇒ have ⎵h👍 ⇒ have
⎵h👍g ⇒ having ⎵h👍g ⇒ having
⎵h👍e ⇒ he
⎵h👍es ⇒ he's
⎵h👍el ⇒ he'll
⎵h👍ed ⇒ he'd
⎵h👍r ⇒ here ⎵h👍r ⇒ here
⎵h👍s ⇒ house ⎵h👍s ⇒ house
⎵h👍t ⇒ haven't ⎵h👍t ⇒ haven't
@ -363,6 +374,7 @@ ma👆g ⇒ making
mr👆 ⇒ mark mr👆 ⇒ mark
t👆 ⇒ tment t👆 ⇒ tment
ta👆 ⇒ take ta👆 ⇒ take
ta👆g ⇒ taking
k👆 ⇒ ks k👆 ⇒ ks
l👆 ⇒ lk l👆 ⇒ lk

View file

@ -17,8 +17,15 @@
# e👆a ⇒ ev # e👆a ⇒ ev
# e👆a⎵ ⇒ even⎵ # e👆a⎵ ⇒ even⎵
⎵s👍 ⇒ some
⎵s👍t ⇒ sometimes qa ⇒ qua
x👆 ⇒ yellow qi ⇒ qui
x👆b ⇒ blue qe ⇒ que
x👆br ⇒ red qo ⇒ quo
qa👆 ⇒ qa
qi👆 ⇒ qi
qe👆 ⇒ qe
qo👆 ⇒ qo
⎵qua👍 ⇒ ⎵quali
⎵qa👍t ⇒ ⎵quality