OSDN Git Service

Added a characterProcessing module, which so far contains a getCharacterDescription...
authorMichael Curran <mick@kulgan.net>
Sun, 3 Apr 2011 23:45:18 +0000 (09:45 +1000)
committerMichael Curran <mick@kulgan.net>
Sun, 3 Apr 2011 23:45:18 +0000 (09:45 +1000)
source/characterProcessing.py [new file with mode: 0644]

diff --git a/source/characterProcessing.py b/source/characterProcessing.py
new file mode 100644 (file)
index 0000000..d3048f1
--- /dev/null
@@ -0,0 +1,19 @@
+#characterProcessing.py\r
+#A part of NonVisual Desktop Access (NVDA)\r
+#URL: http://www.nvda-project.org/\r
+#Copyright (c) 2010-2011 World Light Information Limited and Hong Kong Blind Union.\r
+#This file is covered by the GNU General Public License.\r
+#See the file COPYING for more details.\r
+\r
+def getCharacterDescription(locale,character):\r
+       """\r
+       Finds a description or example for the given character, which makes sence in the given locale.\r
+       @param locale: the locale (language[_COUNTRY]) the description should be for.\r
+       @type locale: string\r
+       @param character: the character  who's description should be retreaved.\r
+       @type character: string\r
+       @return:  the found description for the given character\r
+       @rtype: string\r
+       """\r
+       return %s - %c description"%(locale,character)\r
\ No newline at end of file