Permalink
Browse files

:ii implies :i, :mm implies :m

  • Loading branch information...
1 parent 1c74b86 commit ebd24364a0389159c0a5e5ead8cebe7f915a328e @TimToady TimToady committed Oct 5, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 S05-regex.pod
View
@@ -17,8 +17,8 @@ Synopsis 5: Regexes and Rules
Created: 24 Jun 2002
- Last Modified: 31 Jul 2012
- Version: 158
+ Last Modified: 5 Oct 2012
+ Version: 159
This document summarizes Apocalypse 5, which is about the new regex
syntax. We now try to call them I<regex> rather than "regular
@@ -225,7 +225,9 @@ is required (as defined in TR18 section 2.4). In grapheme mode level 2 is
required.
The C<:ii> (or C<:samecase>) variant may be used on a substitution to change the
-substituted string to the same case pattern as the matched string.
+substituted string to the same case pattern as the matched string. It implies
+the same pattern semantics as C<:i> above, so it is not necessary to
+put both C<:i> and C<:ii>.
If the pattern is matched without the C<:sigspace> modifier, case
info is carried across on a character by character basis. If the
@@ -273,6 +275,9 @@ base character.
The C<:mm> (or C<:samemark>) variant may be used on a substitution to change the
substituted string to the same mark/accent pattern as the matched string.
+It implies the same pattern semantics as C<:m> above, so it is not necessary
+to put both C<:m> and C<:mm>.
+
Mark info is carried across on a character by character basis. If
the right string is longer than the left one, the remaining characters
are substituted without any modification. (Note that NFD/NFC distinctions

0 comments on commit ebd2436

Please sign in to comment.