Skip to content
/ rmdpo Public

Transform R Markdown and Quarto documents into poEdit files and back for easy translation

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

SciViews/rmdpo

Repository files navigation

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. 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 with:

# install.packages("remotes")
remotes::install_github("SciViews/rmdpo")

Example

TODO...

library(rmdpo)
## basic example code

Code of Conduct

Please note that the {rmdpo} project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Transform R Markdown and Quarto documents into poEdit files and back for easy translation

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published