From c419bd044197a54e388246a730fd1535e33ec370 Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 21 Nov 2016 12:12:10 +0100 Subject: [PATCH] Fix rules.txt to match v3.20 limitations --- docs/rules.txt | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/docs/rules.txt b/docs/rules.txt index 836eace83..5f8c11362 100644 --- a/docs/rules.txt +++ b/docs/rules.txt @@ -26,24 +26,6 @@ #define RULE_OP_MANGLE_DUPECHAR_FIRST 'z' // prepend first char of word to itself. ex: hello -> hhello #define RULE_OP_MANGLE_DUPECHAR_LAST 'Z' // append last char of word to itself. ex: hello -> helloo #define RULE_OP_MANGLE_DUPECHAR_ALL 'q' // duplicate all chars. ex: hello -> hheelllloo -#define RULE_OP_MANGLE_EXTRACT_MEMORY 'X' // insert substring delimited by N and M into current word at position I -#define RULE_OP_MANGLE_APPEND_MEMORY '4' // insert the word saved by 'M' at the end of current word -#define RULE_OP_MANGLE_PREPEND_MEMORY '6' // insert the word saved by 'M' at the beginning of current word - -#define RULE_OP_MEMORIZE_WORD 'M' // memorize current word - -#define RULE_OP_REJECT_LESS '<' // reject plains of length greater than N -#define RULE_OP_REJECT_GREATER '>' // reject plains of length less than N -#define RULE_OP_REJECT_CONTAIN '!' // reject plains that contain char X -#define RULE_OP_REJECT_NOT_CONTAIN '/' // reject plains that do not contain char X -#define RULE_OP_REJECT_EQUAL_FIRST '(' // reject plains that do not contain char X at first position -#define RULE_OP_REJECT_EQUAL_LAST ')' // reject plains that do not contain char X at last position -#define RULE_OP_REJECT_EQUAL_AT '=' // reject plains that do not contain char X at position N -#define RULE_OP_REJECT_CONTAINS '%' // reject plains that contain char X less than N times -#define RULE_OP_REJECT_MEMORY 'Q' // reject plains that match the plain saved (see M), i.e. if unchanged - -/* With -j or -k only */ - #define RULE_OP_MANGLE_SWITCH_FIRST 'k' // switches the first 2 chars. ex: hello -> ehllo #define RULE_OP_MANGLE_SWITCH_LAST 'K' // switches the last 2 chars. ex: hello -> helol #define RULE_OP_MANGLE_SWITCH_AT '*' // switches the first 2 chars after pos N. ex: hello -> hlelo @@ -57,3 +39,20 @@ #define RULE_OP_MANGLE_DUPEBLOCK_LAST 'Y' // duplicates last n characters #define RULE_OP_MANGLE_TITLE 'E' // lowercase everything then upper case the first letter and every letter after a space +/* With -j or -k only */ + +#define RULE_OP_MANGLE_EXTRACT_MEMORY 'X' // insert substring delimited by N and M into current word at position I +#define RULE_OP_MANGLE_APPEND_MEMORY '4' // insert the word saved by 'M' at the end of current word +#define RULE_OP_MANGLE_PREPEND_MEMORY '6' // insert the word saved by 'M' at the beginning of current word +#define RULE_OP_MEMORIZE_WORD 'M' // memorize current word + +#define RULE_OP_REJECT_LESS '<' // reject plains of length greater than N +#define RULE_OP_REJECT_GREATER '>' // reject plains of length less than N +#define RULE_OP_REJECT_CONTAIN '!' // reject plains that contain char X +#define RULE_OP_REJECT_NOT_CONTAIN '/' // reject plains that do not contain char X +#define RULE_OP_REJECT_EQUAL_FIRST '(' // reject plains that do not contain char X at first position +#define RULE_OP_REJECT_EQUAL_LAST ')' // reject plains that do not contain char X at last position +#define RULE_OP_REJECT_EQUAL_AT '=' // reject plains that do not contain char X at position N +#define RULE_OP_REJECT_CONTAINS '%' // reject plains that contain char X less than N times +#define RULE_OP_REJECT_MEMORY 'Q' // reject plains that match the plain saved (see M), i.e. if unchanged +