Skip to content

Commit

Permalink
Added 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xtonousou committed Jun 28, 2017
1 parent 622f309 commit 8d8cde0
Show file tree
Hide file tree
Showing 5 changed files with 233 additions and 146 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.1.0] - 2017-06-28
### Added
* Colored messages e.g. warnings, errors and successful operations
* At the end of the stdout
* Translation (any language) into greeklish for files
* Translation (any language) into greeklish for files (partially)
* Dictionary addition: **colors**

### Changed
* Markdown files
* **Fixed** some issues due to `KeyboardInterrupt`, `ImportError` and `IOError`

### Removed
* PEP8 warnings and errors

## [1.0.2] - 2017-06-26
### Added
* Exceptions to handle import errors and different Operating Systems
* Dictionary {'…': '...'}
* Dictionary `{'…': '...'}`
* WINDOWS_INSTALLATION.md

### Removed
* PEP8 warnings and errors

### Changed
* Dictionary {'θ':'th' => 'θ':'8', 'ξ':'ks' => 'ξ':'3', '·': '-' => '·': ';'}
* Dictionary `{'θ':'th' => 'θ':'8', 'ξ':'ks' => 'ξ':'3', '·': '-' => '·': ';'}`
* README.md

## [1.0.1] - 2017-06-24
Expand Down
190 changes: 107 additions & 83 deletions dictionaries.py
Original file line number Diff line number Diff line change
@@ -1,93 +1,117 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Description .: Dictionary library for grklsh.py
# Author ......: Sotirios M. Roussis aka. xtonousou <xtonousou@gmail.com>
# Date ........: 20170626
# Date ........: 20170628


"""
Dictionary library for grklsh.py
"""


def get_char_dict():
"""
Returns char dictionary
@return char_dict: Greek <-> Greeklish character dictionary
"""

char_dict = {
'Ά': 'A',
'Α': 'A',
'ά': 'a',
'α': 'a',
'Έ': 'E',
'Ε': 'E',
'έ': 'e',
'ε': 'e',
'Ή': 'H',
'Η': 'H',
'ή': 'h',
'η': 'h',
'Ϊ': 'I',
'Ί': 'I',
'Ι': 'I',
'ΐ': 'i',
'ϊ': 'i',
'ί': 'i',
'ι': 'i',
'Ό': 'O',
'Ο': 'O',
'ό': 'o',
'ο': 'o',
'Ϋ': 'Y',
'Ύ': 'Y',
'Υ': 'Y',
'ΰ': 'y',
'ϋ': 'y',
'ύ': 'y',
'υ': 'y',
'Ώ': 'W',
'Ω': 'W',
'ώ': 'w',
'ω': 'w',
'Β': 'B',
'β': 'b',
'Γ': 'G',
'γ': 'g',
'Δ': 'D',
'δ': 'd',
'Ζ': 'Z',
'ζ': 'z',
'Θ': '8',
'θ': '8',
'Κ': 'K',
'κ': 'k',
'Λ': 'L',
'λ': 'l',
'Μ': 'M',
'μ': 'm',
'Ν': 'N',
'ν': 'n',
'Ξ': '3',
'ξ': '3',
'Π': 'P',
'π': 'p',
'Ρ': 'R',
'ρ': 'r',
'Σ': 'S',
'σ': 's',
'ς': 's',
'Τ': 'T',
'τ': 't',
'Φ': 'F',
'φ': 'f',
'Χ': 'X',
'χ': 'x',
'Ψ': 'Ps',
'ψ': 'ps',
';': '?',
'·': ';',
'«': '<<',
'»': '>>',
'…': '...'
}

return char_dict


"""
Returns all dictionaries
def get_color_dict():
"""
Returns colors dictionary
@return char_dict: Greek <-> Greeklish character dictionary
"""
@return color_dict: dictionary containing all available colors
"""

char_dict = {
'Ά': 'A',
'Α': 'A',
'ά': 'a',
'α': 'a',
'Έ': 'E',
'Ε': 'E',
'έ': 'e',
'ε': 'e',
'Ή': 'H',
'Η': 'H',
'ή': 'h',
'η': 'h',
'Ϊ': 'I',
'Ί': 'I',
'Ι': 'I',
'ΐ': 'i',
'ϊ': 'i',
'ί': 'i',
'ι': 'i',
'Ό': 'O',
'Ο': 'O',
'ό': 'o',
'ο': 'o',
'Ϋ': 'Y',
'Ύ': 'Y',
'Υ': 'Y',
'ΰ': 'y',
'ϋ': 'y',
'ύ': 'y',
'υ': 'y',
'Ώ': 'W',
'Ω': 'W',
'ώ': 'w',
'ω': 'w',
'Β': 'B',
'β': 'b',
'Γ': 'G',
'γ': 'g',
'Δ': 'D',
'δ': 'd',
'Ζ': 'Z',
'ζ': 'z',
'Θ': '8',
'θ': '8',
'Κ': 'K',
'κ': 'k',
'Λ': 'L',
'λ': 'l',
'Μ': 'M',
'μ': 'm',
'Ν': 'N',
'ν': 'n',
'Ξ': '3',
'ξ': '3',
'Π': 'P',
'π': 'p',
'Ρ': 'R',
'ρ': 'r',
'Σ': 'S',
'σ': 's',
'ς': 's',
'Τ': 'T',
'τ': 't',
'Φ': 'F',
'φ': 'f',
'Χ': 'X',
'χ': 'x',
'Ψ': 'Ps',
'ψ': 'ps',
';': '?',
'·': ';',
'«': '<<',
'»': '>>',
'…': '...'
}
color_dict = {
'HEADER': '\033[95m',
'OKBLUE': '\033[94m',
'OKGREEN': '\033[92m',
'WARNING': '\033[93m',
'FAIL': '\033[91m',
'ENDC': '\033[0m',
'BOLD': '\033[1m',
'UNDERLINE': '\033[4m'
}

return char_dict
return color_dict
Loading

0 comments on commit 8d8cde0

Please sign in to comment.