Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svg
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-18 22:05:49 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-18 22:05:49 (GMT)
commit350f379a2009e13a3a6baa3af20f9737f7607d01 (patch)
tree7bd7d32beb2a36ec5d693fd29a034860949d93e9 /svg
parent59ca3a4b4a1bce4ee5a55ffeb561cc0d8bb69bd9 (diff)
height width
Diffstat (limited to 'svg')
-rwxr-xr-x[-rw-r--r--]svg/and.py0
-rwxr-xr-x[-rw-r--r--]svg/arc.py0
-rwxr-xr-x[-rw-r--r--]svg/back.py0
-rwxr-xr-x[-rw-r--r--]svg/bottompos.py0
-rwxr-xr-x[-rw-r--r--]svg/box1.py0
-rwxr-xr-x[-rw-r--r--]svg/box2.py0
-rwxr-xr-x[-rw-r--r--]svg/clean.py0
-rwxr-xr-x[-rw-r--r--]svg/clearheap.py0
-rwxr-xr-x[-rw-r--r--]svg/color.py0
-rwxr-xr-x[-rw-r--r--]svg/fillscreen.py0
-rwxr-xr-x[-rw-r--r--]svg/flowgroup.py0
-rwxr-xr-x[-rw-r--r--]svg/forever.py0
-rwxr-xr-x[-rw-r--r--]svg/forward.py0
-rwxr-xr-x[-rw-r--r--]svg/hat1.py0
-rwxr-xr-x[-rw-r--r--]svg/hat2.py0
-rwxr-xr-x[-rw-r--r--]svg/heading.py0
-rwxr-xr-xsvg/height.py105
-rwxr-xr-x[-rw-r--r--]svg/hideblocks.py0
-rwxr-xr-x[-rw-r--r--]svg/if.py0
-rwxr-xr-x[-rw-r--r--]svg/ifelse.py0
-rwxr-xr-x[-rw-r--r--]svg/kbinput.py0
-rwxr-xr-x[-rw-r--r--]svg/keyboard.py0
-rwxr-xr-x[-rw-r--r--]svg/left.py0
-rwxr-xr-x[-rw-r--r--]svg/leftpos.py0
-rwxr-xr-x[-rw-r--r--]svg/makesvg.py4
-rwxr-xr-x[-rw-r--r--]svg/myblocksgroup.py0
-rwxr-xr-x[-rw-r--r--]svg/not.py0
-rwxr-xr-x[-rw-r--r--]svg/numbersgroup.py0
-rwxr-xr-x[-rw-r--r--]svg/or.py0
-rwxr-xr-x[-rw-r--r--]svg/pendown.py0
-rwxr-xr-x[-rw-r--r--]svg/pengroup.py0
-rwxr-xr-x[-rw-r--r--]svg/pensize.py0
-rwxr-xr-x[-rw-r--r--]svg/penup.py0
-rwxr-xr-x[-rw-r--r--]svg/pop.py0
-rwxr-xr-x[-rw-r--r--]svg/print.py0
-rwxr-xr-x[-rw-r--r--]svg/printheap.py0
-rwxr-xr-x[-rw-r--r--]svg/push.py0
-rwxr-xr-x[-rw-r--r--]svg/random.py0
-rwxr-xr-x[-rw-r--r--]svg/remainder.py0
-rwxr-xr-x[-rw-r--r--]svg/remainder2.py0
-rwxr-xr-x[-rw-r--r--]svg/repeat.py0
-rwxr-xr-x[-rw-r--r--]svg/right.py0
-rwxr-xr-x[-rw-r--r--]svg/rightpos.py0
-rwxr-xr-x[-rw-r--r--]svg/scale.py0
-rwxr-xr-x[-rw-r--r--]svg/sensorsgroup.py0
-rwxr-xr-x[-rw-r--r--]svg/setcolor.py0
-rwxr-xr-x[-rw-r--r--]svg/seth.py0
-rwxr-xr-x[-rw-r--r--]svg/setpensize.py0
-rwxr-xr-x[-rw-r--r--]svg/setscale.py0
-rwxr-xr-x[-rw-r--r--]svg/setshade.py0
-rwxr-xr-x[-rw-r--r--]svg/settextcolor.py0
-rwxr-xr-x[-rw-r--r--]svg/settextsize.py0
-rwxr-xr-x[-rw-r--r--]svg/setxy.py0
-rwxr-xr-x[-rw-r--r--]svg/shade.py0
-rwxr-xr-x[-rw-r--r--]svg/show.py0
-rwxr-xr-x[-rw-r--r--]svg/sound.py0
-rwxr-xr-x[-rw-r--r--]svg/stack1.py0
-rwxr-xr-x[-rw-r--r--]svg/stack2.py0
-rwxr-xr-x[-rw-r--r--]svg/start.py0
-rwxr-xr-x[-rw-r--r--]svg/stopstack.py0
-rwxr-xr-x[-rw-r--r--]svg/storein.py0
-rwxr-xr-x[-rw-r--r--]svg/storeinbox1.py0
-rwxr-xr-x[-rw-r--r--]svg/storeinbox2.py0
-rwxr-xr-x[-rw-r--r--]svg/templatesgroup.py0
-rwxr-xr-x[-rw-r--r--]svg/textcolor.py0
-rwxr-xr-x[-rw-r--r--]svg/textsize.py0
-rwxr-xr-x[-rw-r--r--]svg/toppos.py0
-rwxr-xr-x[-rw-r--r--]svg/turtlegroup.py0
-rwxr-xr-x[-rw-r--r--]svg/wait.py0
-rwxr-xr-xsvg/width.py104
-rwxr-xr-x[-rw-r--r--]svg/xcor.py0
-rwxr-xr-x[-rw-r--r--]svg/ycor.py0
72 files changed, 211 insertions, 2 deletions
diff --git a/svg/and.py b/svg/and.py
index 17352c9..17352c9 100644..100755
--- a/svg/and.py
+++ b/svg/and.py
diff --git a/svg/arc.py b/svg/arc.py
index a256b6a..a256b6a 100644..100755
--- a/svg/arc.py
+++ b/svg/arc.py
diff --git a/svg/back.py b/svg/back.py
index 3cd67d2..3cd67d2 100644..100755
--- a/svg/back.py
+++ b/svg/back.py
diff --git a/svg/bottompos.py b/svg/bottompos.py
index c166441..c166441 100644..100755
--- a/svg/bottompos.py
+++ b/svg/bottompos.py
diff --git a/svg/box1.py b/svg/box1.py
index 0fbdfef..0fbdfef 100644..100755
--- a/svg/box1.py
+++ b/svg/box1.py
diff --git a/svg/box2.py b/svg/box2.py
index 357f922..357f922 100644..100755
--- a/svg/box2.py
+++ b/svg/box2.py
diff --git a/svg/clean.py b/svg/clean.py
index 1847c46..1847c46 100644..100755
--- a/svg/clean.py
+++ b/svg/clean.py
diff --git a/svg/clearheap.py b/svg/clearheap.py
index 65a6101..65a6101 100644..100755
--- a/svg/clearheap.py
+++ b/svg/clearheap.py
diff --git a/svg/color.py b/svg/color.py
index cbfd74a..cbfd74a 100644..100755
--- a/svg/color.py
+++ b/svg/color.py
diff --git a/svg/fillscreen.py b/svg/fillscreen.py
index 4f4b249..4f4b249 100644..100755
--- a/svg/fillscreen.py
+++ b/svg/fillscreen.py
diff --git a/svg/flowgroup.py b/svg/flowgroup.py
index 8b70b44..8b70b44 100644..100755
--- a/svg/flowgroup.py
+++ b/svg/flowgroup.py
diff --git a/svg/forever.py b/svg/forever.py
index 4961b3c..4961b3c 100644..100755
--- a/svg/forever.py
+++ b/svg/forever.py
diff --git a/svg/forward.py b/svg/forward.py
index 5a5cb8e..5a5cb8e 100644..100755
--- a/svg/forward.py
+++ b/svg/forward.py
diff --git a/svg/hat1.py b/svg/hat1.py
index f1bc124..f1bc124 100644..100755
--- a/svg/hat1.py
+++ b/svg/hat1.py
diff --git a/svg/hat2.py b/svg/hat2.py
index 23d64e7..23d64e7 100644..100755
--- a/svg/hat2.py
+++ b/svg/hat2.py
diff --git a/svg/heading.py b/svg/heading.py
index b5e546a..b5e546a 100644..100755
--- a/svg/heading.py
+++ b/svg/heading.py
diff --git a/svg/height.py b/svg/height.py
new file mode 100755
index 0000000..ec919a3
--- /dev/null
+++ b/svg/height.py
@@ -0,0 +1,105 @@
+#!/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 = "vres"
+ 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 = _("height")
+ mygroup = "sensors"
+
+ print mystring
+
+ data0 = \
+"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \
+<!-- Created with Inkscape (http://www.inkscape.org/) --> \n \
+<svg \n \
+ xmlns:svg=\"http://www.w3.org/2000/svg\" \n \
+ xmlns=\"http://www.w3.org/2000/svg\" \n \
+ xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \
+ version=\"1.0\" \n \
+ width=\"105\" \n \
+ height=\"21\" \n \
+ id=\"svg2\"> \n \
+ <defs \n \
+ id=\"defs4\"> \n \
+ <linearGradient \n \
+ id=\"linearGradient3166\"> \n \
+ <stop \n \
+ id=\"stop3168\" \n \
+ style=\"stop-color:#ffffff;stop-opacity:1\" \n \
+ offset=\"0\" /> \n \
+ <stop \n \
+ id=\"stop3170\" \n \
+ style=\"stop-color:#ff0000;stop-opacity:1\" \n \
+ offset=\"1\" /> \n \
+ </linearGradient> \n \
+ <linearGradient \n \
+ x1=\"0\" \n \
+ y1=\"0\" \n \
+ x2=\"104\" \n \
+ y2=\"21\" \n \
+ id=\"linearGradient3172\" \n \
+ xlink:href=\"#linearGradient3166\" \n \
+ gradientUnits=\"userSpaceOnUse\" /> \n \
+ </defs> \n \
+ <path \n \
+ d=\"M 1,0.5 L 6,0.5 L 6,4.5 L 13,4.5 L 13,0.5 L 104.5,0.5 L 104.5,20.5 L 13,20.5 L 13,16.5 L 6,16.5 L 6,20.5 L 1,20.5 L 1,0.5 z\" \n \
+ id=\"path10\" \n \
+ style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a00000;stroke-width:2;stroke-opacity:1\" /> \n \
+ <text \n \
+ id=\"text12\" \n \
+ style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \
+ <tspan \n \
+ x=\"52\" \n \
+ y=\"15.5\" \n \
+ id=\"tspan14\" \n \
+ style=\"font-size:16px\">"
+
+ data1 = \
+"</tspan> \n \
+ </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()
diff --git a/svg/hideblocks.py b/svg/hideblocks.py
index 908434a..908434a 100644..100755
--- a/svg/hideblocks.py
+++ b/svg/hideblocks.py
diff --git a/svg/if.py b/svg/if.py
index 3f9cd30..3f9cd30 100644..100755
--- a/svg/if.py
+++ b/svg/if.py
diff --git a/svg/ifelse.py b/svg/ifelse.py
index 7fdfb17..7fdfb17 100644..100755
--- a/svg/ifelse.py
+++ b/svg/ifelse.py
diff --git a/svg/kbinput.py b/svg/kbinput.py
index d1f284a..d1f284a 100644..100755
--- a/svg/kbinput.py
+++ b/svg/kbinput.py
diff --git a/svg/keyboard.py b/svg/keyboard.py
index 27b1761..27b1761 100644..100755
--- a/svg/keyboard.py
+++ b/svg/keyboard.py
diff --git a/svg/left.py b/svg/left.py
index 81590f4..81590f4 100644..100755
--- a/svg/left.py
+++ b/svg/left.py
diff --git a/svg/leftpos.py b/svg/leftpos.py
index 47a3063..47a3063 100644..100755
--- a/svg/leftpos.py
+++ b/svg/leftpos.py
diff --git a/svg/makesvg.py b/svg/makesvg.py
index 69cb7ce..ba70d81 100644..100755
--- a/svg/makesvg.py
+++ b/svg/makesvg.py
@@ -44,8 +44,8 @@ def main():
"hat1.py", \
"hat2.py", \
"heading.py", \
+ "height.py", \
"hideblocks.py", \
- "hres.py", \
"ifelse.py", \
"if.py", \
"kbinput.py", \
@@ -95,8 +95,8 @@ def main():
"textsize.py", \
"toppos.py", \
"turtlegroup.py", \
- "vres.py", \
"wait.py", \
+ "width.py", \
"xcor.py", \
"ycor.py" ]
diff --git a/svg/myblocksgroup.py b/svg/myblocksgroup.py
index 176ada0..176ada0 100644..100755
--- a/svg/myblocksgroup.py
+++ b/svg/myblocksgroup.py
diff --git a/svg/not.py b/svg/not.py
index 80743cf..80743cf 100644..100755
--- a/svg/not.py
+++ b/svg/not.py
diff --git a/svg/numbersgroup.py b/svg/numbersgroup.py
index 024a87f..024a87f 100644..100755
--- a/svg/numbersgroup.py
+++ b/svg/numbersgroup.py
diff --git a/svg/or.py b/svg/or.py
index 90b33c7..90b33c7 100644..100755
--- a/svg/or.py
+++ b/svg/or.py
diff --git a/svg/pendown.py b/svg/pendown.py
index 3987ef4..3987ef4 100644..100755
--- a/svg/pendown.py
+++ b/svg/pendown.py
diff --git a/svg/pengroup.py b/svg/pengroup.py
index 88069d5..88069d5 100644..100755
--- a/svg/pengroup.py
+++ b/svg/pengroup.py
diff --git a/svg/pensize.py b/svg/pensize.py
index 82d8c60..82d8c60 100644..100755
--- a/svg/pensize.py
+++ b/svg/pensize.py
diff --git a/svg/penup.py b/svg/penup.py
index e5d1268..e5d1268 100644..100755
--- a/svg/penup.py
+++ b/svg/penup.py
diff --git a/svg/pop.py b/svg/pop.py
index d1474aa..d1474aa 100644..100755
--- a/svg/pop.py
+++ b/svg/pop.py
diff --git a/svg/print.py b/svg/print.py
index 8bda1dc..8bda1dc 100644..100755
--- a/svg/print.py
+++ b/svg/print.py
diff --git a/svg/printheap.py b/svg/printheap.py
index 66991b0..66991b0 100644..100755
--- a/svg/printheap.py
+++ b/svg/printheap.py
diff --git a/svg/push.py b/svg/push.py
index 63cac84..63cac84 100644..100755
--- a/svg/push.py
+++ b/svg/push.py
diff --git a/svg/random.py b/svg/random.py
index e06a785..e06a785 100644..100755
--- a/svg/random.py
+++ b/svg/random.py
diff --git a/svg/remainder.py b/svg/remainder.py
index 7e1d1cf..7e1d1cf 100644..100755
--- a/svg/remainder.py
+++ b/svg/remainder.py
diff --git a/svg/remainder2.py b/svg/remainder2.py
index 4151d46..4151d46 100644..100755
--- a/svg/remainder2.py
+++ b/svg/remainder2.py
diff --git a/svg/repeat.py b/svg/repeat.py
index 5310b19..5310b19 100644..100755
--- a/svg/repeat.py
+++ b/svg/repeat.py
diff --git a/svg/right.py b/svg/right.py
index cbc113c..cbc113c 100644..100755
--- a/svg/right.py
+++ b/svg/right.py
diff --git a/svg/rightpos.py b/svg/rightpos.py
index b942e13..b942e13 100644..100755
--- a/svg/rightpos.py
+++ b/svg/rightpos.py
diff --git a/svg/scale.py b/svg/scale.py
index 954cd77..954cd77 100644..100755
--- a/svg/scale.py
+++ b/svg/scale.py
diff --git a/svg/sensorsgroup.py b/svg/sensorsgroup.py
index 6df6fda..6df6fda 100644..100755
--- a/svg/sensorsgroup.py
+++ b/svg/sensorsgroup.py
diff --git a/svg/setcolor.py b/svg/setcolor.py
index 60ff3d6..60ff3d6 100644..100755
--- a/svg/setcolor.py
+++ b/svg/setcolor.py
diff --git a/svg/seth.py b/svg/seth.py
index fd55458..fd55458 100644..100755
--- a/svg/seth.py
+++ b/svg/seth.py
diff --git a/svg/setpensize.py b/svg/setpensize.py
index 9c06fab..9c06fab 100644..100755
--- a/svg/setpensize.py
+++ b/svg/setpensize.py
diff --git a/svg/setscale.py b/svg/setscale.py
index cf9d9cd..cf9d9cd 100644..100755
--- a/svg/setscale.py
+++ b/svg/setscale.py
diff --git a/svg/setshade.py b/svg/setshade.py
index 127fd49..127fd49 100644..100755
--- a/svg/setshade.py
+++ b/svg/setshade.py
diff --git a/svg/settextcolor.py b/svg/settextcolor.py
index ce3ab56..ce3ab56 100644..100755
--- a/svg/settextcolor.py
+++ b/svg/settextcolor.py
diff --git a/svg/settextsize.py b/svg/settextsize.py
index 1f2481e..1f2481e 100644..100755
--- a/svg/settextsize.py
+++ b/svg/settextsize.py
diff --git a/svg/setxy.py b/svg/setxy.py
index 09ee18e..09ee18e 100644..100755
--- a/svg/setxy.py
+++ b/svg/setxy.py
diff --git a/svg/shade.py b/svg/shade.py
index f5bf107..f5bf107 100644..100755
--- a/svg/shade.py
+++ b/svg/shade.py
diff --git a/svg/show.py b/svg/show.py
index e767555..e767555 100644..100755
--- a/svg/show.py
+++ b/svg/show.py
diff --git a/svg/sound.py b/svg/sound.py
index 4a509da..4a509da 100644..100755
--- a/svg/sound.py
+++ b/svg/sound.py
diff --git a/svg/stack1.py b/svg/stack1.py
index 7368953..7368953 100644..100755
--- a/svg/stack1.py
+++ b/svg/stack1.py
diff --git a/svg/stack2.py b/svg/stack2.py
index 28cfb1f..28cfb1f 100644..100755
--- a/svg/stack2.py
+++ b/svg/stack2.py
diff --git a/svg/start.py b/svg/start.py
index fc61d94..fc61d94 100644..100755
--- a/svg/start.py
+++ b/svg/start.py
diff --git a/svg/stopstack.py b/svg/stopstack.py
index d4a9f22..d4a9f22 100644..100755
--- a/svg/stopstack.py
+++ b/svg/stopstack.py
diff --git a/svg/storein.py b/svg/storein.py
index 4975aa7..4975aa7 100644..100755
--- a/svg/storein.py
+++ b/svg/storein.py
diff --git a/svg/storeinbox1.py b/svg/storeinbox1.py
index 9631cd1..9631cd1 100644..100755
--- a/svg/storeinbox1.py
+++ b/svg/storeinbox1.py
diff --git a/svg/storeinbox2.py b/svg/storeinbox2.py
index 8c6f667..8c6f667 100644..100755
--- a/svg/storeinbox2.py
+++ b/svg/storeinbox2.py
diff --git a/svg/templatesgroup.py b/svg/templatesgroup.py
index 5638ef9..5638ef9 100644..100755
--- a/svg/templatesgroup.py
+++ b/svg/templatesgroup.py
diff --git a/svg/textcolor.py b/svg/textcolor.py
index 9d8bcb9..9d8bcb9 100644..100755
--- a/svg/textcolor.py
+++ b/svg/textcolor.py
diff --git a/svg/textsize.py b/svg/textsize.py
index 0a68a6f..0a68a6f 100644..100755
--- a/svg/textsize.py
+++ b/svg/textsize.py
diff --git a/svg/toppos.py b/svg/toppos.py
index 69860b4..69860b4 100644..100755
--- a/svg/toppos.py
+++ b/svg/toppos.py
diff --git a/svg/turtlegroup.py b/svg/turtlegroup.py
index e932648..e932648 100644..100755
--- a/svg/turtlegroup.py
+++ b/svg/turtlegroup.py
diff --git a/svg/wait.py b/svg/wait.py
index 08c2bd5..08c2bd5 100644..100755
--- a/svg/wait.py
+++ b/svg/wait.py
diff --git a/svg/width.py b/svg/width.py
new file mode 100755
index 0000000..12f73ca
--- /dev/null
+++ b/svg/width.py
@@ -0,0 +1,104 @@
+#!/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 = "hres"
+ 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 = _("width")
+ mygroup = "sensors"
+
+ print mystring
+ data0 = \
+"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \
+<!-- Created with Inkscape (http://www.inkscape.org/) --> \n \
+<svg \n \
+ xmlns:svg=\"http://www.w3.org/2000/svg\" \n \
+ xmlns=\"http://www.w3.org/2000/svg\" \n \
+ xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \
+ version=\"1.0\" \n \
+ width=\"105\" \n \
+ height=\"21\" \n \
+ id=\"svg2\"> \n \
+ <defs \n \
+ id=\"defs4\"> \n \
+ <linearGradient \n \
+ id=\"linearGradient3166\"> \n \
+ <stop \n \
+ id=\"stop3168\" \n \
+ style=\"stop-color:#ffffff;stop-opacity:1\" \n \
+ offset=\"0\" /> \n \
+ <stop \n \
+ id=\"stop3170\" \n \
+ style=\"stop-color:#ff0000;stop-opacity:1\" \n \
+ offset=\"1\" /> \n \
+ </linearGradient> \n \
+ <linearGradient \n \
+ x1=\"0\" \n \
+ y1=\"0\" \n \
+ x2=\"104\" \n \
+ y2=\"21\" \n \
+ id=\"linearGradient3172\" \n \
+ xlink:href=\"#linearGradient3166\" \n \
+ gradientUnits=\"userSpaceOnUse\" /> \n \
+ </defs> \n \
+ <path \n \
+ d=\"M 1,0.5 L 6,0.5 L 6,4.5 L 13,4.5 L 13,0.5 L 104.5,0.5 L 104.5,20.5 L 13,20.5 L 13,16.5 L 6,16.5 L 6,20.5 L 1,20.5 L 1,0.5 z\" \n \
+ id=\"path10\" \n \
+ style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a00000;stroke-width:2;stroke-opacity:1\" /> \n \
+ <text \n \
+ id=\"text12\" \n \
+ style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \
+ <tspan \n \
+ x=\"52\" \n \
+ y=\"15.5\" \n \
+ id=\"tspan14\" \n \
+ style=\"font-size:16px\">"
+
+ data1 = \
+"</tspan> \n \
+ </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()
diff --git a/svg/xcor.py b/svg/xcor.py
index 24203c6..24203c6 100644..100755
--- a/svg/xcor.py
+++ b/svg/xcor.py
diff --git a/svg/ycor.py b/svg/ycor.py
index 16e3ff4..16e3ff4 100644..100755
--- a/svg/ycor.py
+++ b/svg/ycor.py