Transliterator::listIDs()
will list IDs, but apparently it's not a complete list.
In the example from this page, the ID looks like:
Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();
which is kind of weird, because IDs are supposed to be unique. This looks more like a rule, but it doesn't work if I pass it to the createFromRules
method :)
Anyway, I'm trying to remove any punctuation from the string, except dash (-
), or characters from a specific list.
Do you know if that's possible? Or is there some documentation that better explains the syntax for the transliterator ?