| Title: | Print Right-to-Left Languages Correctly |
| Version: | 0.1.0 |
| Description: | Convenience functions to make some common tasks with right-to-left string printing easier, more convenient and with no need to remember long Unicode characters. Specifically helpful for right-to-left languages such as Arabic, Persian and Hebrew. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.2.3 |
| Imports: | lifecycle, stringr |
| Suggests: | hexSticker, testthat (≥ 3.0.0), usethis |
| Config/testthat/edition: | 3 |
| URL: | https://github.com/matanhakim/rtlr, https://matanhakim.github.io/rtlr/ |
| BugReports: | https://github.com/matanhakim/rtlr/issues |
| NeedsCompilation: | no |
| Packaged: | 2023-04-03 20:32:44 UTC; Matan |
| Author: | Matan Hakim |
| Maintainer: | Matan Hakim <matanhakim@gmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2023-04-04 12:10:05 UTC |
rtlr: Print Right-to-Left Languages Correctly
Description
Convenience functions to make some common tasks with right-to-left string printing easier, more convenient and with no need to remember long Unicode characters. Specifically helpful for right-to-left languages such as Arabic, Persian and Hebrew.
Author(s)
Maintainer: Matan Hakim matanhakim@gmail.com (ORCID) [copyright holder]
See Also
Useful links:
Report bugs at https://github.com/matanhakim/rtlr/issues
Wrap a string with RTL-embedding Unicode characters
Description
Wrap a string with RTL-embedding Unicode characters
Usage
str_rtl(..., multiline = FALSE)
Arguments
... |
One or more character vectors, ideally of length 1. |
multiline |
Whether to split the input strings to separate lines. Defaults to |
Value
A character vector.
Examples
# Notice how the `.` prints to the right, while in RTL it should print to the left
cat("a.")
# `str_rtl()` fixes this:
str_rtl("a.") |> cat()
str_rtl("a.", "b.", multiline = TRUE) |> cat()