Tazinho / snakecase

🐍🐍🐍 A systematic approach to parse strings and automate the conversion to snake_case, UpperCamelCase or any other case.
https://tazinho.github.io/snakecase/
GNU General Public License v3.0
146 stars 9 forks source link

align_left, align_right, align_middle, allign_asis, allign_tight #154

Closed Tazinho closed 5 years ago

Tazinho commented 5 years ago

There is currently no way to format or transliterate some special character like "%". So it might be necessary to generalice the flags for numerals and then split and generalize the numerals argument handle cases like the following in a better way

> to_sentence_case("45% of. the work was implemented.", sep_in = NULL)
[1] "45%of.the work was implemented."
> to_snake_case("45% of. the work was implemented.", sep_in = NULL)
[1] "45%of.the_work_was_implemented."
> to_snake_case("45% of. the work was implemented.", trans = c(`\\%` = "percent"))
[1] "45_of_the_work_was_implemented"
Tazinho commented 5 years ago

Can be achieved like this

> to_snake_case("bla 45 % sind super", sep_in = NULL, transliterations = c("%" = "percent"))
[1] "bla_45_percent_sind_super"