5

GitHub - tallguyjenks/runes: ᚱᚢᚾᛖᛋ.ᛋᚻ

 4 years ago
source link: https://github.com/tallguyjenks/runes
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

runes - ᚱᚢᚾᛖᛋ

Have you ever wanted Runes in your R Documents? Of course you did! so here's a package that gives you that functionality.

runes is a package to convert English A-Z characters to Runes. There is a LaTeX package to do this with RMarkdown, but why not make it easier and more intuitive to get the runes you need when you need them? runes("any string or vector here") works as you'd expect.

I did not find a package in R that does this so i made it myself, so if you work with old Germanic runes for linguistic purposes or just really like runes like me, hopefully this will be a package you will get some use out of.

What Does It Look Like?

runesPreview.png

Dependencies

  • None: Relies only on base functions.

Installation

# CRAN version:
install.packages("runes")

# OR for the development version:
remotes::install_github("tallguyjenks/runes")

Usage

library(runes)

runes("hello world!")

#> [1] "ᚻᛖᛚᛚᛟ ᚹᛟᚱᛚᛞ!"

If you want a complete translation table of unicode sequence --> English Transcription --> Rune Character you can call the runes_table() function that returns a data.frame of these items so you can use this for reference or input them into a document using the DT, kable, etc packages.

  • runes can work with the pipe %>% to take a single string output as a piped input
  • You can feed runes a string to format the output for any other function such as a console cli::cli_h1(runes("This is a level 1 heading in runes"))
  • Let me know some of the uses YOU have made with it!

How to Contribute

  1. Read CONTRIBUTING
  2. Clone repository and create a new branch.
  3. Make changes and test
  4. Submit Pull Request with comprehensive description of changes

Acknowledgements

Donations

This is free, open-source software. If you'd like to support the development of future projects, or say thanks for this one, you can donate to me through paypal

License


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK