Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svg/remainder.py
diff options
context:
space:
mode:
Diffstat (limited to 'svg/remainder.py')
-rwxr-xr-xsvg/remainder.py99
1 files changed, 0 insertions, 99 deletions
diff --git a/svg/remainder.py b/svg/remainder.py
deleted file mode 100755
index 7e1d1cf..0000000
--- a/svg/remainder.py
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-#Copyright (c) 2009, Sugar Labs
-
-#Permission is hereby granted, free of charge, to any person obtaining a copy
-#of this software and associated documentation files (the "Software"), to deal
-#in the Software without restriction, including without limitation the rights
-#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-#copies of the Software, and to permit persons to whom the Software is
-#furnished to do so, subject to the following conditions:
-
-#The above copyright notice and this permission notice shall be included in
-#all copies or substantial portions of the Software.
-
-#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-#THE SOFTWARE.
-
-import sys
-import os
-import os.path
-import gettext
-
-def main():
-
- myname = "remainder"
- if len(sys.argv) != 2:
- print "Error: Usage is " + myname + ".py lang"
- return
-
- t = gettext.translation("org.laptop.TurtleArtActivity", "../locale", languages=[sys.argv[1]])
- _ = t.ugettext
- t.install()
-
- mystring = _("mod")
- mygroup = "numbers"
-
- print mystring
-
- data0 = \
-"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \
-<svg \n \
- xmlns=\"http://www.w3.org/2000/svg\" \n \
- xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \
- width=\"64\" \n \
- height=\"37\" \n \
- version=\"1.0\"> \n \
- <defs> \n \
- <linearGradient \n \
- id=\"linearGradient3166\"> \n \
- <stop \n \
- style=\"stop-color:#ffffff;stop-opacity:1;\" \n \
- offset=\"0\" \n \
- id=\"stop3168\" /> \n \
- <stop \n \
- style=\"stop-color:#ff00ff;stop-opacity:1;\" \n \
- offset=\"1\" \n \
- id=\"stop3170\" /> \n \
- </linearGradient> \n \
- <linearGradient \n \
- inkscape:collect=\"always\" \n \
- xlink:href=\"#linearGradient3166\" \n \
- id=\"linearGradient3165\" \n \
- x1=\"0\" \n \
- y1=\"18.5\" \n \
- x2=\"52.5\" \n \
- y2=\"18.5\" \n \
- gradientUnits=\"userSpaceOnUse\" /> \n \
- </defs> \n \
- <path \n \
- style=\"fill:url(#linearGradient3165);fill-opacity:1;stroke:#a000a0;stroke-width:1.5px;stroke-opacity:1\" \n \
- d=\"M 0.5,0.5 L 63.5,0.5 L 63.5,9.5 L 59.5,9.5 L 59.5,6.5 L 50,6.5 L 50,29.5 L 59.5,29.5 L 59.5,26.5 L 63.5,26.5 L 63.5,36.5 L 0.5,36.5 L 0.5,29.5 L 12.5,29.5 L 12.5,6.5 L 0.5,6.5 L 0.5,0.5 z\" /> \n \
- <text \n \
- style=\"font-size:14px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \
- <tspan \n \
- x=\"32\" \n \
- y=\"24\" \n \
- style=\"font-size:14px\">"
-
- data1 = \
-"</tspan></text> \n \
-</svg> \n"
-
-
-
- FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w")
- FILE.write(data0)
- FILE.write(mystring.encode("utf-8"))
- FILE.write(data1)
- FILE.close()
- return
-
-if __name__ == "__main__":
- main()