From 5d003d31251807fef9fd7e10d68555a919bed42d Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 28 Sep 2011 18:17:55 +0200 Subject: ukrepl: add space variations --- crypto/bin/ukrepl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/bin/ukrepl') diff --git a/crypto/bin/ukrepl b/crypto/bin/ukrepl index 2dfaabc4..febe2d96 100755 --- a/crypto/bin/ukrepl +++ b/crypto/bin/ukrepl @@ -53,6 +53,11 @@ punctuation_dict = { '(' : u'⟨', ')' : u'⟩', ':' : u'ː', + ' ' : u' ', + # all different spaces, made for perfect trolling + #' ' : u' ', + #' ' : u' ', + #' ' : u'⁠', #'-' : u'‒', #'-' : u'—', #'-' : u'―', -- cgit v1.2.3 From 4f4c63c8c778984d68eaa54f6e3fdbb72f96e82a Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 11 Oct 2011 15:58:26 +0200 Subject: ukrepl: fix utf-8 exception function unicode(unicode-character) throws an exception, return only the ascii character --- crypto/bin/ukrepl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/bin/ukrepl') diff --git a/crypto/bin/ukrepl b/crypto/bin/ukrepl index febe2d96..9b084027 100755 --- a/crypto/bin/ukrepl +++ b/crypto/bin/ukrepl @@ -32,7 +32,7 @@ cyrillic_dict = { } def cyrillic_replace(char): #c - return cyrillic_dict.get(char,unicode(char)) + return cyrillic_dict.get(char,char) historic_latin_dict = { 'B' : u'Ɓ', 'b' : u'ƅ', @@ -45,7 +45,7 @@ historic_latin_dict = { '5' : 'Ƽ' } def historic_latin(char): #H - return historic_latin_dict.get(char,unicode(char)) + return historic_latin_dict.get(char,char) punctuation_dict = { '!' : u'ǃ', '\'': u'’', @@ -71,7 +71,7 @@ punctuation_dict = { } def punctuation(char): #p - return punctuation_dict.get(char,unicode(char)) + return punctuation_dict.get(char,char) def helpme(): print "usage %s [modes]" % sys.argv[0] print "modes:" -- cgit v1.2.3