"ನಮಸ್ತೆ ಪ್ರಪಂಚ !"
Printing "Hello World" in my mother tongue (Kannada - South Indian language native to worlds IT hub Bengaluru!) using R code.
Recently, as part of my Data Science learning, I was going through a course on Datacamp (https://campus.datacamp.com) named "String Manipulation in R with stringr". This is taught by Charlette Wickham - Part-time Assistant Professor of Statistics at Oregon State University and a sibling of the famous R wizard Hadley Wickham.
In the beginning of the exercises there is a step where we are taught the use of escape character "/" to escape certain characters to be printed. In this exercise, there was a step where we print "Hello World" in Hindi using unicode characters.
"TTAHNN..!!" I hit an idea.....why not "Hello World!" in Kannada language, my mother tongue and the local language of the world's IT hub - Bengaluru(Karnataka, India). Here it goes !
Note : You need R console or R Studio IDE to execute this code and see the printed result !
You would need to help to learn unicode symbols for Kannada characters here - http://www.unicode.org/charts/PDF/U0C80.pdf
I used 'print' command instead of 'writeLines'
[1] "ನಮಸ್ತೆ ಜಗತ್ತೆ"
> print("\u0ca8\u0cae\u0cb8\u0ccd\u0ca4\u0cc6 \u0caa\u0ccd\u0cb0\u0caa\u0c82\u0c9a !")
[1] "ನಮಸ್ತೆ ಪ್ರಪಂಚ !"
Though, this is a very simple code , I think I have hit on some very important future project ideas!!!

Comments
Post a Comment