You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> tools::showNonASCIIfile("R/dev_t.R")
988: text <- stringr::str_replace_all(text, "\\<c2><ab>", "")
989: text <- stringr::str_replace_all(text, "\\<c2><bb>", "")
990: text <- stringr::str_replace_all(text, "\\<c2><ab>", "")
991: text <- stringr::str_replace_all(text, "\\<c2><bb>", "")
992: text <- stringr::str_replace_all(text, "\\<e2><80><99>", "\\\\'")
Source code
# There atr characters that need to be escaped (or even removed) in order for the translator to
# be able to take them
text <- stringr::str_replace_all(text, "\\'", "\\\\'")
text <- stringr::str_replace_all(text, "\\«", "")
text <- stringr::str_replace_all(text, "\\»", "")
text <- stringr::str_replace_all(text, "\\«", "")
text <- stringr::str_replace_all(text, "\\»", "")
text <- stringr::str_replace_all(text, "\\’", "\\\\'")
The text was updated successfully, but these errors were encountered:
judith-bourque
changed the title
Replace non-ASCII characters with ASCII in clessnverse::translate_text()
Replace non-ASCII characters with unicode escapes in clessnverse::translate_text()Apr 8, 2023
Issue
Source code
The text was updated successfully, but these errors were encountered: