-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
Description
The official ruby documentation does not include a comprehensive list of all named properties supported by the language. Some examples:
/\p{Age=6.0}/
/\p{In Miscellaneous Mathematical Symbols-B}/
/\p{Transport and Map Symbols}/
/\p{Emoji}/ # <-- A valid unicode property name, but NOT(!!) supported by ruby
Thankfully, the onigmo docs do provide a full list (but not all of these are supported by the latest ruby!)
Possible paths to take:
- Refresh the
db/*.pstore
files with a more comprehensive list - Has this problem been solved before? Research other libraries.
- Consider directly referencing RFCs or similar, rather than dynamically generating the lists? (Is this practical?)
Also worth noting:
- This library does not yet "officially" support jruby, because the test suite fails in relation to named properties. (The list supported by this implementation differs to MRI.) Maybe try wrapping the tests in a
rescue SyntaxError
... with caution!! (Define a list of known errors; don't justrescue
blindly.) - Arbitrary whitespace, underscores and hyphens can be included in unicode property names. This library does not yet account for this.