From 2e904412e4e31a0312d77dd7697d6a59faa627fe Mon Sep 17 00:00:00 2001 From: Omar Antolin Camarena Date: Sun, 25 Feb 2024 12:42:52 -0600 Subject: Work around bug in GitHub's org parser Sadly neither =verbatim= nor ~code~ syntax seems to work in all cases, in particular, neither =,= nor ~,~ display a fixed-width comma. This fixes #155. --- README.org | 20 ++++++++++---------- orderless.texi | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.org b/README.org index 1050fe9..f4d5395 100644 --- a/README.org +++ b/README.org @@ -186,16 +186,16 @@ Style modifiers should not be used directly in =orderless-affix-dispatch= which enables a simple syntax based on special characters used as either a prefix or suffix: - - =!= modifies the component with =orderless-not=. Both =!bad= and =bad!= - will match strings that do /not/ contain the pattern =bad=. - - =@= modifies the component with =orderless-annotation=. The pattern - will match against the candidate annotation. - - =,= uses =orderless-initialism=. - - === uses =orderless-literal=. - - =~= uses =orderless-flex=. - - =%= makes the string match ignoring diacritics and similar - inflections on characters (it uses the function =char-fold-to-regexp= - to do this). + - ! modifies the component with =orderless-not=. Both =!bad= and + =bad!= will match strings that do /not/ contain the pattern =bad=. + - @ modifies the component with =orderless-annotation=. The pattern + will match against the candidate's annotation. + - , uses =orderless-initialism=. + - = uses =orderless-literal=. + - ~ uses =orderless-flex=. + - % makes the string match ignoring diacritics and similar + inflections on characters (it uses the function + =char-fold-to-regexp= to do this). You can add, remove or change this mapping between affix characters and matching styles by customizing the user option diff --git a/orderless.texi b/orderless.texi index 44747a5..7602947 100644 --- a/orderless.texi +++ b/orderless.texi @@ -240,21 +240,21 @@ special characters used as either a prefix or suffix: @itemize @item -@samp{!} modifies the component with @samp{orderless-not}. Both @samp{!bad} and @samp{bad!} -will match strings that do @emph{not} contain the pattern @samp{bad}. +! modifies the component with @samp{orderless-not}. Both @samp{!bad} and +@samp{bad!} will match strings that do @emph{not} contain the pattern @samp{bad}. @item -@samp{@@} modifies the component with @samp{orderless-annotation}. The pattern -will match against the candidate annotation. +@@ modifies the component with @samp{orderless-annotation}. The pattern +will match against the candidate's annotation. @item -@samp{,} uses @samp{orderless-initialism}. +, uses @samp{orderless-initialism}. @item -@samp{=} uses @samp{orderless-literal}. += uses @samp{orderless-literal}. @item -@samp{~} uses @samp{orderless-flex}. +~ uses @samp{orderless-flex}. @item -@samp{%} makes the string match ignoring diacritics and similar -inflections on characters (it uses the function @samp{char-fold-to-regexp} -to do this). +% makes the string match ignoring diacritics and similar +inflections on characters (it uses the function +@samp{char-fold-to-regexp} to do this). @end itemize You can add, remove or change this mapping between affix characters -- cgit v1.0