Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sciviews/rmdpo
Transform R Markdown and Quarto documents into poEdit files and back for easy translation
https://github.com/sciviews/rmdpo
poedit quarto rmarkdown rstats translation
Last synced: 2 months ago
JSON representation
Transform R Markdown and Quarto documents into poEdit files and back for easy translation
- Host: GitHub
- URL: https://github.com/sciviews/rmdpo
- Owner: SciViews
- License: other
- Created: 2024-08-13T15:54:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T12:57:03.000Z (5 months ago)
- Last Synced: 2024-08-16T13:12:59.369Z (5 months ago)
- Topics: poedit, quarto, rmarkdown, rstats, translation
- Language: R
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Translate R Markdown and Quarto documents using poEdit
With {rmdpo} you convert R Markdown and Quarto documents into .po files that contain each block of the original document as a string to be translated using, for instance, [poEdit](https://poedit.net). This is done with the `rmd2po()` function. Once the translation is done, you can convert the .po file back into a translated R Markdown or Quarto document with `po2rmd()`.
When the original document is modified, just rerun the `rmd2po()` function to update the .po file with the new strings to be translated. The translation can be done incrementally, block by block, and the translated document can be updated incrementally as well.
Most of the work is done internally by the `mdpo` Python library. Special care is taken for R Markdown and Quarto specific syntax, such as the YAML header and code chunks than `mdpo` does not handle correctly otherwise.
## Installation
You can install the development version of {rmdpo} from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("SciViews/rmdpo")
```## Example
TODO...
``` r
library(rmdpo)
## basic example code
```## Code of Conduct
Please note that the {rmdpo} project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.