joeroe / joeroe/numerals

Right-to-left format method

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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

```r
library("numerals")
numeral(1:9, "ar")
#>
#> [1] ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩
```
But it doesn't always happen when expected:

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

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.