The ids that Transliterator::listIDs()
are the "basic ids". The example you gave is a "compound id". You can see the ICU docs on this.
You can also create your own rules with Transliterator::createFromRules()
.
You can take a look at the prefefined rules:
<?php
$a = new ResourceBundle(NULL, sprintf('icudt%dl-translit', INTL_ICU_VERSION), true);
foreach ($a['RuleBasedTransliteratorIDs'] as $name => $v) {
$file = @$v['file'];
if (!$file) {
$file = $v['internal'];
echo $name, " (direction $file[direction]; internal)\n";
} else {
echo $name, " (direction: $file[direction])\n";
echo $file['resource'];
}
echo "\n--------------\n";
}
After formatting, the result looks like this.