-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optionally wrap text in bidi isolates and overrides #333
Comments
Reprex: aleph <- "א"
bet <- "ב"
data <- as.list(1:2)
names(data) <- c(aleph, bet)
pillar:::new_tbl(data)
#> # A data frame: 1 × 2
#> א ב
#> <int> <int>
#> 1 1 2 Created on 2021-07-26 by the reprex package (v2.0.0.9000) |
With FSI and LRO: aleph <- "א"
bet <- "ב"
data <- as.list(1:2)
names(data) <- c(aleph, bet)
pillar:::new_tbl(data)
#> # A data frame: 1 × 2
#> א ב
#> <int> <int>
#> 1 1 2 Created on 2021-07-26 by the reprex package (v2.0.0.9000) Also works in RStudio (at least on my Mac) 🎉 Needs #339 (for the option). |
Now exposed through the aleph <- "א"
bet <- "ב"
data <- as.list(1:2)
names(data) <- c(aleph, bet)
pillar:::new_tbl(data)
#> # A data frame: 1 × 2
#> א ב
#> <int> <int>
#> 1 1 2
options(pillar.bidi = TRUE)
pillar:::new_tbl(data)
#> # A data frame: 1 × 2
#> א ב
#> <int> <int>
#> 1 1 2 Created on 2021-07-27 by the reprex package (v2.0.0.9000) It will be more difficult to take directionality into account for deciding if the column title should be left- or right-aligned. We could solve this in {utf8} if needed, please file an issue there. (We'd likely use a new aleph <- "א"
utf8::utf8_format(aleph, width = 5, justify = "left")
#> [1] "א " Created on 2021-07-27 by the reprex package (v2.0.0.9000) |
- New `pillar.bidi` option. When active, control characters are inserted to improve display of data with right-to-left text (#333).
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
for better support of RTL languages.
Should be a default in the next minor/major release.
CC @isteves @adisarid.
Created on 2021-04-16 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: