cifrado r82 - in trunk: . data package/cifrado/codeurs



Author: bersace
Date: Fri Apr  4 15:56:41 2008
New Revision: 82
URL: http://svn.gnome.org/viewvc/cifrado?rev=82&view=rev

Log:
Ajout du codeurs samouraà et de la police Samourai.


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

Modified: trunk/TODO
==============================================================================
--- trunk/TODO	(original)
+++ trunk/TODO	Fri Apr  4 15:56:41 2008
@@ -11,7 +11,7 @@
 
 * Annuler/refaire
 
-* Polices: Gato/Tic-tac-toe, samouraÃ
+* Polices: samouraÃ
 
 * Carte
 

Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am	(original)
+++ trunk/data/Makefile.am	Fri Apr  4 15:56:41 2008
@@ -82,4 +82,6 @@
 # polices
 
 ttfdir = $(datarootdir)/fonts/truetype/cifrado
-dist_ttf_DATA = tictactoe.ttf
+dist_ttf_DATA = \
+	tictactoe.ttf	\
+	samourai.ttf

Added: trunk/data/samourai.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 15:56:41 2008
@@ -1 +1 @@
-__all__ = ['aucun', 'police', 'tictactoe', 'morse', 'chiffrer', 'polybius', 'inverser', 'roulement', 'caesar', 'vigenere']
+__all__ = ['aucun', 'police', 'tictactoe', 'samourai', 'morse', 'chiffrer', 'polybius', 'inverser', 'roulement', 'caesar', 'vigenere']

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



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