Skip to content

Right-to-left format method #5

@joeroe

Description

@joeroe

R seems to have some support for right-to-left scripts, presumably picking up on the unicode bidi class, e.g.:

library("numerals")
numeral(1:9, "ar")
#> <numeral[9]>
#> [1] ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩

But it doesn't always happen when expected:

numeral(1:9, "fa")
#> <numeral[9]>
#> [1] ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹

And it would also be nice if the indices and justification followed, something like this:

library("numerals")
numeral(1:9, "ar")
#> <numeral[9]>
#> ١] ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions