Note that 'bidi-mirroring' and 'bidi-brackets' fit in well here, in this form, where they would have to be `resource['bidi-mirroring']` in the long form version.  Also we'd need to add two more if statements, because not all unicode versions have `bidi-mirroring`, and not all of those have `bidi-brackets` (which was just added in 6.3.0).