summaryrefslogtreecommitdiff
path: root/src/features.fea
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-08-30 19:27:54 +0300
committerRasmus Andersson <rasmus@notion.se>2017-08-30 19:27:54 +0300
commitcf49a3ba7e5403bae292ac7e0aab41716aaae9b7 (patch)
tree3c020098d000bf6721b1954223460851e0e31f8a /src/features.fea
parent6091d15779af1acfff3bb75a85c4a13b697ac6db (diff)
downloadinter-cf49a3ba7e5403bae292ac7e0aab41716aaae9b7.tar.xz
Adds cascading contextual alternates for case-sensitive delimiters
Diffstat (limited to 'src/features.fea')
-rw-r--r--src/features.fea13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/features.fea b/src/features.fea
index 8b5e9860d..e62b0dd91 100644
--- a/src/features.fea
+++ b/src/features.fea
@@ -884,11 +884,13 @@ feature numr {
colon
];
@CASE_L = [ @CASE_DELIM_L @CASE_NONDELIM_L ];
-@CASE_R = [
+
+@CASE_DELIM_R = [
braceleft.case braceright.case
bracketleft.case bracketright.case
parenleft.case parenright.case
-
+];
+@CASE_NONDELIM_R = [
asterisk.case
at.case
multiply.case
@@ -910,6 +912,7 @@ feature numr {
notequal.case
colon.case
];
+@CASE_R = [ @CASE_DELIM_R @CASE_NONDELIM_R ];
feature case {
sub @CASE_L by @CASE_R;
@@ -919,9 +922,11 @@ feature calt {
@UC = [ @UC_ROMAN @UC_SET1 exclam question ];
@LC = [ @LC_ROMAN @LC_SET1 ];
- sub @UC @CASE_L' by @CASE_R;
+ sub [ @UC @CASE_R ] @CASE_L' by @CASE_R;
ignore sub @LC @CASE_NONDELIM_L' @UC;
- sub @CASE_L' @UC by @CASE_R;
+ sub @CASE_L' [ @CASE_R @UC ] by @CASE_R;
+
+ sub @CASE_DELIM_L' @CASE_DELIM_L [ @CASE_R @UC ] by @CASE_DELIM_R;
# ->, <-
@ARROW_DASH = [ hyphen endash emdash ];