cifrado r85 - in trunk: data package/cifrado/codeurs



Author: bersace
Date: Fri Apr  4 16:02:36 2008
New Revision: 85
URL: http://svn.gnome.org/viewvc/cifrado?rev=85&view=rev

Log:
Ajout du braille.


Added:
   trunk/data/braille.ttf   (contents, props changed)
   trunk/package/cifrado/codeurs/braille.py
Modified:
   trunk/data/Makefile.am
   trunk/package/cifrado/codeurs/__init__.py

Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am	(original)
+++ trunk/data/Makefile.am	Fri Apr  4 16:02:36 2008
@@ -84,4 +84,5 @@
 ttfdir = $(datarootdir)/fonts/truetype/cifrado
 dist_ttf_DATA = \
 	tictactoe.ttf	\
-	samourai.ttf
+	samourai.ttf	\
+	braille.ttf

Added: trunk/data/braille.ttf
==============================================================================
Binary file. No diff available.

Modified: trunk/package/cifrado/codeurs/__init__.py
==============================================================================
--- trunk/package/cifrado/codeurs/__init__.py	(original)
+++ trunk/package/cifrado/codeurs/__init__.py	Fri Apr  4 16:02:36 2008
@@ -1 +1,3 @@
-__all__ = ['aucun', 'police', 'morpion', 'samourai', 'morse', 'chiffrer', 'polybius', 'inverser', 'roulement', 'caesar', 'vigenere']
+__all__ = ['aucun',                                             # nul
+           'police', 'morpion', 'samourai', 'braille', 'morse', # simple
+           'chiffrer', 'polybius', 'inverser', 'roulement', 'caesar', 'vigenere'] # balaise

Added: trunk/package/cifrado/codeurs/braille.py
==============================================================================
--- (empty file)
+++ trunk/package/cifrado/codeurs/braille.py	Fri Apr  4 16:02:36 2008
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+
+# Cifrado - Chiffrer et imprimer les messages de grand-jeu
+# Copyright  2006-2007 Ãtienne Bersac â Tous droits rÃservÃs.
+
+from    ..      import    codeur
+
+def     charger(node):
+    return Codeur()
+
+class Codeur(codeur.Codeur):
+    nom = 'Braille'
+
+    def convertir(self, text):
+        return self.strip_special_chars(text)
+
+    def get_police(self):
+        return 'Braille 16'
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]