- Notifications
You must be signed in to change notification settings - Fork1
🇬🇷 🇬🇧 Translate any text into Greeklish, print on stdout, write to file/s.
License
xtonousou/grklsh
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Greeklish, a portmanteau of the words Greek and English, also known as Grenglish, Latinoellinika/Λατινοελληνικά or ASCII Greek, is the Greek language written using the Latin alphabet.

grklsh
is a small script written inPython 2 that translates any text into Greeklish. It reads from stdin or from the arguments and prints on stdout or writes to files.
- Type andEnter translation
- File translation
You only needgit
and of coursepython2
$ git clone https://github.com/xtonousou/grklsh.git$cd grklsh/$ sudo python2 -m pip install -r requirements.txt
You can read thisguide
- Type andEnter translation
- Greek ➝ Greeklishdoes not require internet connection
- Any language ➝ Greeklishrequires internet connection
- File translation
- Any language files ➝ New files in Greeklishrequires internet connection
- Any language files ➝ New files in Greeklish (PARTIALLY)requires internet connection
- Files with Greek characters ➝ New files in Greeklishdoes not require internet connection
- Files with Greek characters ➝ New files in Greeklish (PARTIALLY)does not require internet connection
You just have to type,
$ grklsh.py
You need to put the-t
or--translate
argument first like this,
$ grklsh.py -t
OK, this one is a bit tricky 😏
You have to put the-t
or--translate
and-w
or--write
arguments before each filename
The following example will show you how to use this feature,
$ grklsh.py -t -w file1
This will generate the translated filefile1.grklsh
If you want to translate multiple files at once,It doesn't matter the order of the arguments
$ grklsh.py -t -w file1 -w -t file2 -t -w file3
This one, will generate three translated files:file1.grklsh
,file2.grklsh
andfile3.grklsh
In this case, you have to do it like this,
$ grklsh.py -w -t file1 -w file2 -t file3 -t -w file4 file5
Well, this example will generate a translated filefile1.grklsh
and a converted (Greek ➝ Greeklish) filefile2.grklsh
, print the filefile3
translated, generate a translated filefile4.grklsh
and print the converted (Greek ➝ Greeklish) filefile5
😁
You have to put the-w
or--write
argument before each filename
The example below shows how to translate a file into Greeklish and generate a filefile1.grklsh
which contains the translated text
$ grklsh.py -w file1
If you want to convert multiple files at once,
$ grklsh.py -w file1 -w file2 -w file3
This will generate three files:file1.grklsh
,file2.grklsh
andfile3.grklsh
which contain the translated text of each file passed as argument
Hmmm? 😕
You can use the functionality of printing the translated text on stdout and the functionality of writing to files simultaneously
The example below shows the implementation of the above,
$ grklsh.py -w file1 file2 -w file3 -w file4
This will print on stdout the translated text of the filefile2
but it will also generate three files:file1.grklsh
,file3.grklsh
andfile4.grklsh
which contain the translated text of each file
- nfldb by BurntSushi for his awesome wiki
All notable changes to this project will be documented inthis file
Copyright (c)2017 bySotirios M. Roussis. Some rights reserved.
grklsh
is under the terms of the MIT License, following all clarifications stated in thelicense file
About
🇬🇷 🇬🇧 Translate any text into Greeklish, print on stdout, write to file/s.