pygr2gl – Greek to Greeklish Converter

Inspired by Aggelos greek to greeklish text converter implementation, I decided to write such a text converter in Python. It accepts text either from the stdin or by reading a file specified in the command line. It also auto-detects UTF-8 and ISO8859-7 encodings. Two sample text files are provided in the distribution for testing.

Download:

pygr2gl-0.1.tar.gz

License

This project is released under the terms of the GNU General Public License version 2 or later.

Support

This program is not officially supported. You can still get community support by reporting bugs and asking your questions in the Software Support Forum.

pygr2gl – Greek to Greeklish Converter by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright © 2006 - Some Rights Reserved

George Notaras avatar

About George Notaras

George Notaras is the editor of the G-Loaded Journal, a technical blog about Free and Open-Source Software. George, among other things, is an enthusiast self-taught GNU/Linux system administrator. He has created this web site to share the IT knowledge and experience he has gained over the years with other people. George primarily uses CentOS and Fedora. He has also developed some open-source software projects in his spare time.

4 responses on “pygr2gl – Greek to Greeklish Converter

  1. Aggelos Orfanakos Permalink →

    Nice! The same can be achieved with:

    $ python pygr2gl < my_file.txt
    

    Unless one intends to use pygr2gl on Windows (for which I’m not sure if standard input redirection is supported), is there any other reason you include an option to specify the file in the command-line?

  2. George Notaras Post authorPermalink →

    Actually, I had windows users in mind when adding this feature, but, on the other hand, how many windows users would install a whole programming language in order to run a single script? I think noone :) So, I think this “feature” exists mostly for completeness.

    BTW, I just realized there is an inconsistency. Although it is possible to concatenate many text files and pipe them to the script, eg:

    cat text1 text2 textN | pygr2gl

    It’s not possible to specify multiple files in the command line. So, I need to correct this at some later time.

    Thanks for your comment.

  3. Aggelos Orfanakos Permalink →

    I see.

    You may want to correct my initial comment. I forgot to escape the “less than sign” and part of the code was lost:


    $ python pygr2gl <my_file.txt

  4. George Notaras Post authorPermalink →

    Done. I should have guessed that wordpress had messed the comment up.