Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 246 → Rev 253

/tsimapiak/parsenum.py
103,6 → 103,15
#other numbers
notbase = False
for n in range(len(BASE)):
if numin.startswith(BASE[n] + u"vozazam"):
outoct += (n + 1) * (10 ** 5)
outdec += (n + 1) * (8 ** 5)
if numin[len(BASE[n]) + 6:].startswith(u"mrr") or numin[len(BASE[n]) + 6:].startswith(u"me"):
numin = numin[len(BASE[n]) + 6:]
else:
numin = numin[len(BASE[n]) + 7:]
notbase = True
for n in range(len(BASE)):
if numin.startswith(BASE[n] + u"zazam"):
outoct += (n + 1) * (10 ** 4)
outdec += (n + 1) * (8 ** 4)
/cliapp/README
0,0 → 1,0
This app is only for use on the server.
/cliapp/tsimapiakcli.py
0,0 → 1,35
#!/usr/bin/env python
# This file is part of Tsim Apiak.
#
# Tsim Apiak is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licence as published by
# the Free Software Foundation, either version 3 of the Licence, or
# (at your option) any later version.
#
# In addition to this, you must also comply with clause 4 of the
# Apache Licence, version 2.0, concerning attribution. Where there
# is a contradiction between the two licences, the GPL
# takes preference.
#
# Tsim Apiak is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Tsim Apiak. If not, see <http://www.gnu.org/licenses/>.
 
from tsimapiak import translate
import sys
 
for line in sys.stdin:
try:
line = line.decode("utf-8")
except:
line = line.decode("iso-8859-1")
translated = []
for word in translate.translatesent(line, "eng"):
translated.append(word["translated"])
translated = " | ".join(translated)
print translated
 
Property changes:
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ircbot/bot.py
===================================================================
--- ircbot/bot.py (revision 246)
+++ ircbot/bot.py (revision 253)
@@ -1,16 +1,24 @@
#! /usr/bin/env python
+# This file is part of Tsim Apiak.
#
-# Example program using ircbot.py.
+# Tsim Apiak is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public Licence as published by
+# the Free Software Foundation, either version 3 of the Licence, or
+# (at your option) any later version.
#
-# Joel Rosdahl
+# In addition to this, you must also comply with clause 4 of the
+# Apache Licence, version 2.0, concerning attribution. Where there
+# is a contradiction between the two licences, the GPL
+# takes preference.
+#
+# Tsim Apiak is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Tsim Apiak. If not, see .#
-"""A simple example bot.
-
-This is an example bot that uses the SingleServerIRCBot class from
-ircbot.py. The bot enters a channel and listens for commands in
-private messages and channel traffic. Commands in channel messages
-are given by prefixing the text by the bot name followed by a colon."""
-
from ircbot import SingleServerIRCBot
from irclib import nm_to_n
from tsimapiak import translate