aboutsummaryrefslogtreecommitdiff
path: root/compiler/ucd.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ucd.go')
-rw-r--r--compiler/ucd.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/compiler/ucd.go b/compiler/ucd.go
index 3c0bee1..80b46ab 100644
--- a/compiler/ucd.go
+++ b/compiler/ucd.go
@@ -33,7 +33,7 @@ func normalizeCharacterProperty(propName, propVal string) (string, error) {
fmt.Fprint(&b, prop)
}
fmt.Fprint(&b, "]")
-
+
return b.String(), nil
}
@@ -61,6 +61,16 @@ func findCodePointRanges(propName, propVal string) ([]*ucd.CodePointRange, bool,
ranges = append(ranges, rs...)
}
return ranges, false, nil
+ case "oalpha":
+ yes, ok := binaryValues[ucd.NormalizeSymbolicValue(propVal)]
+ if !ok {
+ return nil, false, fmt.Errorf("unsupported character property value: %v", propVal)
+ }
+ if yes {
+ return otherAlphabeticCodePoints, false, nil
+ } else {
+ return otherAlphabeticCodePoints, true, nil
+ }
case "olower":
yes, ok := binaryValues[ucd.NormalizeSymbolicValue(propVal)]
if !ok {