diff options
Diffstat (limited to 'svg')
-rwxr-xr-x | svg/and.py | 98 | ||||
-rwxr-xr-x | svg/arc.py | 134 | ||||
-rwxr-xr-x | svg/back.py | 102 | ||||
-rwxr-xr-x | svg/bottompos.py | 104 | ||||
-rwxr-xr-x | svg/box1.py | 97 | ||||
-rwxr-xr-x | svg/box2.py | 97 | ||||
-rwxr-xr-x | svg/clean.py | 99 | ||||
-rwxr-xr-x | svg/clearheap.py | 125 | ||||
-rwxr-xr-x | svg/color.py | 97 | ||||
-rwxr-xr-x | svg/fillscreen.py | 144 | ||||
-rwxr-xr-x | svg/flowgroup.py | 515 | ||||
-rwxr-xr-x | svg/forever.py | 123 | ||||
-rwxr-xr-x | svg/forward.py | 102 | ||||
-rwxr-xr-x | svg/hat1.py | 110 | ||||
-rwxr-xr-x | svg/hat2.py | 110 | ||||
-rwxr-xr-x | svg/heading.py | 96 | ||||
-rwxr-xr-x | svg/height.py | 105 | ||||
-rwxr-xr-x | svg/hideblocks.py | 127 | ||||
-rwxr-xr-x | svg/hres.py | 104 | ||||
-rwxr-xr-x | svg/if.py | 109 | ||||
-rwxr-xr-x | svg/ifelse.py | 122 | ||||
-rwxr-xr-x | svg/kbinput.py | 138 | ||||
-rwxr-xr-x | svg/keyboard.py | 106 | ||||
-rwxr-xr-x | svg/left.py | 102 | ||||
-rwxr-xr-x | svg/leftpos.py | 104 | ||||
-rwxr-xr-x | svg/makesvg.py | 124 | ||||
-rwxr-xr-x | svg/myblocksgroup.py | 802 | ||||
-rwxr-xr-x | svg/not.py | 96 | ||||
-rwxr-xr-x | svg/numbersgroup.py | 880 | ||||
-rwxr-xr-x | svg/or.py | 97 | ||||
-rwxr-xr-x | svg/pendown.py | 126 | ||||
-rwxr-xr-x | svg/pengroup.py | 947 | ||||
-rwxr-xr-x | svg/pensize.py | 97 | ||||
-rwxr-xr-x | svg/penup.py | 126 | ||||
-rwxr-xr-x | svg/pop.py | 105 | ||||
-rwxr-xr-x | svg/print.py | 102 | ||||
-rwxr-xr-x | svg/printheap.py | 125 | ||||
-rwxr-xr-x | svg/push.py | 104 | ||||
-rwxr-xr-x | svg/random.py | 135 | ||||
-rwxr-xr-x | svg/remainder.py | 99 | ||||
-rwxr-xr-x | svg/remainder2.py | 154 | ||||
-rwxr-xr-x | svg/repeat.py | 97 | ||||
-rwxr-xr-x | svg/right.py | 102 | ||||
-rwxr-xr-x | svg/rightpos.py | 104 | ||||
-rwxr-xr-x | svg/scale.py | 96 | ||||
-rwxr-xr-x | svg/sensorsgroup.py | 759 | ||||
-rwxr-xr-x | svg/setcolor.py | 135 | ||||
-rwxr-xr-x | svg/seth.py | 130 | ||||
-rwxr-xr-x | svg/setpensize.py | 170 | ||||
-rwxr-xr-x | svg/setscale.py | 130 | ||||
-rwxr-xr-x | svg/setshade.py | 135 | ||||
-rwxr-xr-x | svg/settextcolor.py | 170 | ||||
-rwxr-xr-x | svg/settextsize.py | 170 | ||||
-rwxr-xr-x | svg/setxy.py | 134 | ||||
-rwxr-xr-x | svg/shade.py | 97 | ||||
-rwxr-xr-x | svg/show.py | 130 | ||||
-rwxr-xr-x | svg/sound.py | 315 | ||||
-rwxr-xr-x | svg/stack1.py | 99 | ||||
-rwxr-xr-x | svg/stack2.py | 99 | ||||
-rwxr-xr-x | svg/start.py | 112 | ||||
-rwxr-xr-x | svg/stopstack.py | 107 | ||||
-rwxr-xr-x | svg/storein.py | 114 | ||||
-rwxr-xr-x | svg/storeinbox1.py | 171 | ||||
-rwxr-xr-x | svg/storeinbox2.py | 171 | ||||
-rwxr-xr-x | svg/templatesgroup.py | 860 | ||||
-rwxr-xr-x | svg/textcolor.py | 97 | ||||
-rwxr-xr-x | svg/textsize.py | 97 | ||||
-rwxr-xr-x | svg/toppos.py | 104 | ||||
-rwxr-xr-x | svg/turtlegroup.py | 1059 | ||||
-rwxr-xr-x | svg/vres.py | 105 | ||||
-rwxr-xr-x | svg/wait.py | 103 | ||||
-rwxr-xr-x | svg/width.py | 104 | ||||
-rwxr-xr-x | svg/xcor.py | 96 | ||||
-rwxr-xr-x | svg/ycor.py | 96 |
74 files changed, 0 insertions, 13757 deletions
diff --git a/svg/and.py b/svg/and.py deleted file mode 100755 index 17352c9..0000000 --- a/svg/and.py +++ /dev/null @@ -1,98 +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 -from gettext import gettext as _ - -def main(): - - myname = "and" - 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 = _('and') - 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=\"92\" \n \ - height=\"46\" \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 \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(1.0000896,0,0,0.9890701,0.2458786,0.2513884)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a000a0;stroke-width:1.49184680000000003px;stroke-opacity:1;opacity:1\" \n \ - d=\"M 0.74592343,0.74592343 L 91.754077,0.74592343 L 91.754077,4.2076687 C 91.754077,4.2076687 79.069042,5.9236467 74,9 C 71.203841,10.696962 66.759508,15.097466 65.251702,18 C 64.484155,19.477532 64.087075,21.336249 64.151604,23 C 64.189862,23.986414 64.551215,26.149113 65.051684,27 C 67.351348,30.909843 70.1144,33.659607 74,36 C 78.30402,38.592418 91.754077,41.792331 91.754077,41.792331 L 91.754077,45.254077 L 0.74592343,45.254077 L 0.74592343,41.792331 C 0.74592343,41.792331 14.227222,39.463583 19.247581,36 C 22.495791,33.759036 26.081665,30.711113 27.348298,27 C 27.684138,26.016021 27.779735,23.994457 27.748342,23 C 27.71695,22.005542 27.616888,18.878752 27.248298,18 C 25.790481,14.524428 22.470929,10.998997 19.247581,9 C 14.258161,5.9057523 0.74592343,4.2076687 0.74592343,4.2076687 L 0.74592343,0.74592343 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"46\" \n \ - y=\"29\" \n \ - style=\"font-size:18px\">" - - 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() diff --git a/svg/arc.py b/svg/arc.py deleted file mode 100755 index a256b6a..0000000 --- a/svg/arc.py +++ /dev/null @@ -1,134 +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 = "arc" - 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() - - mystring1 = _("arc") - mystring2 = _("angle") - mystring3 = _("radius") - mygroup = "turtle" - - print mystring1 - print mystring2 - print mystring3 - - 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=\"87\" \n \ - height=\"81\" \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,42.75 L 86.25,42.75 L 86.25,49 L 82.25,49 L 82.25,45.75 L 71.75,45.75\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,70.25 L 86.25,70.25 L 86.25,64.25 L 82.25,64.25 L 82.25,67.25 L 71.75,67.25\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.1,3.5 69.5,5 C 70.9,6.5 73,11 73,11 L 73,67 C 73,67 70.8,70.7 69.5,72 C 68.1,73.5 64,76 64,76 L 47,76 L 47,76 L 47,80 L 27,80 L 27,76 L 10,76 C 10,76 6.0,73.5 4.5,72 C 3.2,70.7 1,67 1,67 L 1,11 C 1,11 3.1,6.5 4.5,5 C 5.9,3.5 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"43\" \n \ - style=\"font-size:16px;\">" - - data1 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"22\" \n \ - style=\"font-size:14px\">" - - data2 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"64\" \n \ - style=\"font-size:14px\">" - - data3 = \ -"</tspan></text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/back.py b/svg/back.py deleted file mode 100755 index 3cd67d2..0000000 --- a/svg/back.py +++ /dev/null @@ -1,102 +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 = "back" - 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 = _("back") - mygroup = "turtle" - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.1,3.5 69.5,5 C 70.9,6.5 73,11 73,11 L 73,30 C 73,30 70.8,33.7 69.5,35 C 68.1,36.5 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9,36.5 4.5,35 C 3.2,33.7 1,30 1,30 L 1,11 C 1,11 3.1,6.5 4.5,5 C 5.9,3.5 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/bottompos.py b/svg/bottompos.py deleted file mode 100755 index c166441..0000000 --- a/svg/bottompos.py +++ /dev/null @@ -1,104 +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 = "bottompos" - 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 = _("bottom") - 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/box1.py b/svg/box1.py deleted file mode 100755 index 0fbdfef..0000000 --- a/svg/box1.py +++ /dev/null @@ -1,97 +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 = "box1" - 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 = _("box 1") - mygroup = "myblocks" - - 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=\"105\" \n \ - height=\"21\"> \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/box2.py b/svg/box2.py deleted file mode 100755 index 357f922..0000000 --- a/svg/box2.py +++ /dev/null @@ -1,97 +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 = "box2" - 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 = _("box 2") - mygroup = "myblocks" - - 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=\"105\" \n \ - height=\"21\"> \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/clean.py b/svg/clean.py deleted file mode 100755 index 1847c46..0000000 --- a/svg/clean.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 = "clean" - 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 = _("clean") - mygroup = "turtle" - - 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=\"74\" \n \ - height=\"44\" \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.1,3.5 69.5,5 C 70.9,6.5 73,11 73,11 L 73,30 C 73,30 70.8,33.7 69.5,35 C 68.1,36.5 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9,36.5 4.5,35 C 3.2,33.7 1,30 1,30 L 1,11 C 1,11 3.1,6.5 4.5,5 C 5.9,3.5 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - 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/clearheap.py b/svg/clearheap.py deleted file mode 100755 index 65a6101..0000000 --- a/svg/clearheap.py +++ /dev/null @@ -1,125 +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 = "clearheap" - 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 = _("empty heap") - mygroup = "sensors" - - 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=\"87\" \n \ - height=\"60\" \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:#ff0000;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c00000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:18px;\">" - - data1c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data2 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - strings = mystring.split(" ",2) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data1c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data2) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/color.py b/svg/color.py deleted file mode 100755 index cbfd74a..0000000 --- a/svg/color.py +++ /dev/null @@ -1,97 +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 = "color" - 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 = _("color") - mygroup = "pen" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \n \ - <defs \n \ - id=\"defs5\"> \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/fillscreen.py b/svg/fillscreen.py deleted file mode 100755 index 4f4b249..0000000 --- a/svg/fillscreen.py +++ /dev/null @@ -1,144 +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 = "fillscreen" - 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() - - mystring1 = _("fill screen") - mystring2 = _("color") - mystring3 = _("shade") - mygroup = "pen" - - print mystring1 - print mystring2 - print mystring3 - - 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=\"87\" \n \ - height=\"81\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,42.75 L 86.25,42.75 L 86.25,49 L 82.25,49 L 82.25,45.75 L 71.75,45.75\" /> \n \ - <path \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,70.25 L 86.25,70.25 L 86.25,64.249999 L 82.25,64.249999 L 82.25,67.249999 L 71.75,67.249999\" /> \n \ - <path \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,67 L 69.5,72 L 64,76 L 47,76 L 47,76 L 47,80 L 27,80 L 27,76 L 10,76 L 4.5,72 L 1,67 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"38\" \n \ - style=\"font-size:16px;\">" - - data1 = \ -"</tspan><tspan \n \ - x=\"37\" \n \ - y=\"54\" \n \ - style=\"font-size:16px;\">" - - data2 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"22\" \n \ - style=\"font-size:14px\">" - - data3 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"66\" \n \ - style=\"font-size:14px\">" - - data4 = \ -"</tspan></text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data1) - if len(strings) == 2: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data2) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data3) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data4) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/flowgroup.py b/svg/flowgroup.py deleted file mode 100755 index 8b70b44..0000000 --- a/svg/flowgroup.py +++ /dev/null @@ -1,515 +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 = "flowgroup" - 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() - - mystring1 = _("Flow") - mystring2 = _("wait") - mystring3 = _("forever") - mystring4 = _("repeat") - mystring5 = _("if") - mystring6 = _("then") - mystring7 = _("else") - mystring8 = _("stop action") - mygroup = "flow" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - - 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=\"145\"\n \ - height=\"500\"\n \ - id=\"svg2\">\n \ - <defs\n \ - id=\"defs4\">\n \ - <linearGradient\n \ - id=\"linearGradient3789\">\n \ - <stop\n \ - id=\"stop3791\"\n \ - style=\"stop-color:#ffffff;stop-opacity:1\"\n \ - offset=\"0\" />\n \ - <stop\n \ - id=\"stop3793\"\n \ - style=\"stop-color:#feb00a;stop-opacity:1\"\n \ - offset=\"1\" />\n \ - </linearGradient>\n \ - <linearGradient\n \ - x1=\"80\"\n \ - y1=\"436\"\n \ - x2=\"129\"\n \ - y2=\"436\"\n \ - id=\"linearGradient4683\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"17\"\n \ - y1=\"382\"\n \ - x2=\"128\"\n \ - y2=\"382\"\n \ - id=\"linearGradient4691\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"16\"\n \ - y1=\"325\"\n \ - x2=\"129\"\n \ - y2=\"325\"\n \ - id=\"linearGradient4699\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"80\"\n \ - y1=\"287\"\n \ - x2=\"130\"\n \ - y2=\"287\"\n \ - id=\"linearGradient4708\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"15\"\n \ - y1=\"233\"\n \ - x2=\"130\"\n \ - y2=\"233\"\n \ - id=\"linearGradient4716\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"15\"\n \ - y1=\"150\"\n \ - x2=\"130\"\n \ - y2=\"150\"\n \ - id=\"linearGradient4724\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"20\"\n \ - y1=\"92\"\n \ - x2=\"125\"\n \ - y2=\"92\"\n \ - id=\"linearGradient4732\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"43\"\n \ - y1=\"51\"\n \ - x2=\"93\"\n \ - y2=\"51\"\n \ - id=\"linearGradient4740\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"80\"\n \ - y1=\"436\"\n \ - x2=\"129\"\n \ - y2=\"436\"\n \ - id=\"linearGradient2502\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"0\"\n \ - y1=\"22\"\n \ - x2=\"74\"\n \ - y2=\"22\"\n \ - id=\"linearGradient3172\"\n \ - xlink:href=\"#linearGradient3166\"\n \ - gradientUnits=\"userSpaceOnUse\" />\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:#feb00a;stop-opacity:1\"\n \ - offset=\"1\" />\n \ - </linearGradient>\n \ - <linearGradient\n \ - x1=\"0\"\n \ - y1=\"22\"\n \ - x2=\"74\"\n \ - y2=\"22\"\n \ - id=\"linearGradient2711\"\n \ - xlink:href=\"#linearGradient3166\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"matrix(0.67,0,0,0.67,80.04495,411.22166)\" />\n \ - <linearGradient\n \ - x1=\"80\"\n \ - y1=\"436\"\n \ - x2=\"129\"\n \ - y2=\"436\"\n \ - id=\"linearGradient3490\"\n \ - xlink:href=\"#linearGradient3789\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(-62.75315,0)\" />\n \ - </defs>\n \ - <path\n \ - d=\"M 0.5,0.5 L 0.5,486.5 L 3.5,493 L 8.5,497 L 15,499.5 L 129,499.5 L 136,497 L 142,492 L 144.5,484 L 144.5,0.5 L 0.5,0.5 z\"\n \ - id=\"path17\"\n \ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-linejoin:miter;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"-29\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect19\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"-28\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect21\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1px;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"-473\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect23\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"-471.5\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect25\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1px;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 79.5,438.375 C 79.5,442.86231 75.750385,446.5 71.125,446.5 C 66.499615,446.5 62.75,442.86231 62.75,438.375 C 62.75,433.88769 66.499615,430.25 71.125,430.25 C 75.750385,430.25 79.5,433.88769 79.5,438.375 L 79.5,438.375 z\"\n \ - transform=\"translate(1.375,47.250977)\"\n \ - id=\"path27\"\n \ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text29\"\n \ - style=\"font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"68\"\n \ - y=\"490\"\n \ - id=\"tspan31\"\n \ - style=\"font-size:12px;font-weight:bold;fill:#ffffff\">X</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text33\"\n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"72.5\"\n \ - y=\"21.5\"\n \ - id=\"tspan35\"\n \ - style=\"font-size:20px\">" - - data1 = \ -"</tspan>\n \ - </text>\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"358\"\n \ - id=\"rect37\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"359\"\n \ - id=\"rect39\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1px;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137.5\"\n \ - height=\"0.14\"\n \ - x=\"4\"\n \ - y=\"360\"\n \ - id=\"rect41\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1px;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 90,40.3 L 101,40.3 L 101,44.3 L 98.4,44.3 L 98.4,42.3 L 91.4,42.3\"\n \ - id=\"path43\"\n \ - style=\"fill:#c18516;fill-opacity:1;stroke:#966711;stroke-width:1px;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 90,58.7 L 101,58.7 L 101,54.7 L 98.4,54.7 L 98.4,56.7 L 91.4,56.7\"\n \ - id=\"path45\"\n \ - style=\"fill:#c18516;fill-opacity:1;stroke:#966711;stroke-width:1px;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 75.416813,36.999284 C 86.084013,36.999284 86.084013,36.999284 86.084013,36.999284 C 86.084013,36.999284 88.838683,38.657069 89.750863,39.666084 C 90.682558,40.696685 92.084313,43.666284 92.084313,43.666284 L 92.084313,56.333584 C 92.084313,56.333584 90.606206,58.796143 89.750863,59.667084 C 88.797775,60.637552 86.084013,62.333884 86.084013,62.333884 L 74.750113,62.333884 L 74.750113,62.333884 L 74.750113,65.000684 L 61.416113,65.000684 L 61.416113,62.333884 L 50.082213,62.333884 C 50.082213,62.333884 47.368451,60.637552 46.415363,59.667084 C 45.56002,58.796143 44.081913,56.333584 44.081913,56.333584 L 44.081913,43.666284 C 44.081913,43.666284 45.483669,40.696685 46.415363,39.666084 C 47.327543,38.657069 50.082213,36.999284 50.082213,36.999284 L 60.749413,36.999284 L 60.749413,40.332784 L 75.416813,40.332784 L 75.416813,36.999284 z\"\n \ - id=\"path47\"\n \ - style=\"fill:url(#linearGradient4740);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text49\"\n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"67\"\n \ - y=\"54\"\n \ - id=\"tspan51\"\n \ - style=\"font-size:10.5px\">" - - data2 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 52.50651,77.818218 C 63.17371,77.818218 63.236319,77.818218 63.236319,77.818218 C 63.236319,77.818218 65.173229,78.495457 65.838818,79.045014 C 66.44769,79.547741 67.391349,81.170331 67.391349,81.170331 L 123.84341,81.485068 L 123.891,89.240796 L 121.55099,89.2381 C 121.55099,89.2381 120.29757,87.789652 119.64925,87.294528 C 118.9423,86.754631 117.0588,85.851826 117.0588,85.851826 L 105.88312,86.028865 L 105.85182,89.211131 L 93.048297,89.262953 L 92.954386,85.746068 L 79.649998,85.985716 C 79.649998,85.985716 77.028777,87.559278 76.112597,88.479284 C 75.129121,89.466868 73.451719,92.287639 73.451719,92.287639 L 73.367112,105.89746 L 27.52283,105.95509 C 27.52283,105.95509 24.391708,104.59925 23.310266,103.57044 C 22.452508,102.75442 21.109001,100.23897 21.109001,100.23897 L 21.17161,84.485218 C 21.17161,84.485218 22.573366,81.515619 23.50506,80.485018 C 24.41724,79.476003 27.17191,77.818218 27.17191,77.818218 L 37.83911,77.818218 L 37.83911,81.151718 L 52.50651,81.151718 L 52.50651,77.818218 z\"\n \ - id=\"path53\"\n \ - style=\"fill:url(#linearGradient4732);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n " - - data2a = \ -" <text\n \ - id=\"text55\"\n \ - style=\"font-size:11px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"47\"\n \ - y=\"96\"\n \ - id=\"tspan57\"\n \ - style=\"font-size:11px\">" - - data2b = \ -" <text\n \ - id=\"text55\"\n \ - style=\"font-size:11px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"47\"\n \ - y=\"90\"\n \ - id=\"tspan57\"\n \ - style=\"font-size:10px\">" - - data2c = \ -"</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text55\"\n \ - style=\"font-size:11px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"47\"\n \ - y=\"102\"\n \ - id=\"tspan57\"\n \ - style=\"font-size:10px\">" - - data3 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 47.49875,118.77264 C 58.16595,118.77264 58.291168,118.77264 58.291168,118.77264 C 58.291168,118.77264 60.228077,119.31441 60.893666,119.86396 C 61.502538,120.36669 62.547725,121.70003 62.547725,121.70003 L 80.83375,121.90308 L 80.83375,125.43964 L 77.845874,125.43964 L 77.676031,123.43954 L 72.16665,123.43954 L 72.16665,138.77364 L 77.707364,138.77364 L 77.74058,136.77354 L 80.83375,136.77354 L 80.83375,145.44064 L 128.83615,145.44064 L 128.83615,153.44104 L 125.2357,153.38351 C 125.2357,153.38351 124.38839,151.78404 123.74008,151.28892 C 123.03313,150.74902 121.50245,150.10754 121.50245,150.10754 L 110.16855,150.10754 L 110.16855,153.44104 L 96.83455,153.44104 L 96.83455,150.10754 L 84.16725,150.10754 C 84.16725,150.10754 81.729429,151.67768 80.914125,152.47367 C 79.925757,153.43864 78.16695,155.67286 78.16695,155.67286 L 78.16695,172.10864 L 65.635735,172.04467 C 65.635735,172.04467 64.327685,175.04114 63.35715,176.01146 C 62.402334,176.96607 59.454117,178.10894 59.454117,178.10894 L 46.83205,178.10894 L 46.83205,180.77574 L 34.16475,180.77574 L 34.16475,178.10894 L 22.780735,178.10894 C 22.780735,178.10894 19.649613,176.83094 18.568171,175.80212 C 17.710413,174.98611 16.16385,172.47065 16.16385,172.47065 L 16.16385,125.30417 C 16.16385,125.30417 17.628215,122.33457 18.559909,121.30397 C 19.472089,120.29495 22.226759,118.77264 22.226759,118.77264 L 32.83135,118.77264 L 32.83135,122.10614 L 47.49875,122.10614 L 47.49875,118.77264 z\"\n \ - id=\"path59\"\n \ - style=\"fill:url(#linearGradient4724);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text61\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"44\"\n \ - y=\"136\"\n \ - id=\"tspan63\"\n \ - style=\"font-size:11px\">" - - data4 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 47.49875,193.59327 C 58.16595,193.59327 58.291168,193.59327 58.291168,193.59327 C 58.291168,193.59327 60.228077,194.13504 60.893666,194.68459 C 61.502538,195.18732 62.446197,196.92677 62.446197,196.92677 L 88.16745,196.92677 L 88.16745,199.83541 C 88.16745,199.83541 79.457707,200.90587 76.322955,202.6477 C 73.623788,204.1475 69.9625,206.54556 68.741575,209.31806 C 67.910373,211.20556 68.002913,214.32311 68.876317,216.19147 C 69.992727,218.57965 73.182145,220.71515 75.506966,221.95813 C 78.856423,223.74893 88.16745,225.28812 88.16745,225.28812 L 88.16745,229.59507 L 124.23283,229.59507 L 127.00542,231.82614 L 128.83615,234.75002 L 128.83615,244.92917 L 125.64182,244.92917 C 125.64182,244.92917 124.79451,243.3297 124.14619,242.83458 C 123.43924,242.29468 121.50245,241.59567 121.50245,241.59567 L 110.16855,241.59567 L 110.16855,244.92917 L 96.83455,244.92917 L 96.83455,241.59567 L 84.16725,241.59567 C 84.16725,241.59567 81.323318,243.12181 80.508014,243.91781 C 79.519645,244.88277 78.16695,247.82769 78.16695,247.82769 L 78.16695,262.93007 L 65.635735,262.8661 C 65.635735,262.8661 64.327685,265.86257 63.35715,266.83289 C 62.402334,267.7875 59.454117,269.07371 59.454117,269.07371 L 46.83205,268.93037 L 46.83205,272.26387 L 34.16475,272.26387 L 34.16475,268.93037 L 22.780735,268.93037 C 22.780735,268.93037 19.649613,267.65237 18.568171,266.62355 C 17.710413,265.80754 16.16385,263.29208 16.16385,263.29208 L 16.16385,200.1248 C 16.16385,200.1248 17.628215,197.1552 18.559909,196.1246 C 19.472089,195.11558 22.226759,193.59327 22.226759,193.59327 L 32.83135,193.59327 L 32.83135,196.92677 L 47.49875,196.92677 L 47.49875,193.59327 z\"\n \ - id=\"path65\"\n \ - style=\"fill:url(#linearGradient4716);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text67\"\n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"39\"\n \ - y=\"212\"\n \ - id=\"tspan69\"\n \ - style=\"font-size:11px\">" - - data5 = \ -"</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text71\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"103\"\n \ - y=\"238.5\"\n \ - id=\"tspan73\"\n \ - style=\"font-size:9px\">" - - data6 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 112.16865,271.51111 C 122.83585,271.51111 122.83585,271.51111 122.83585,271.51111 C 122.83585,271.51111 125.59052,273.16889 126.5027,274.17791 C 127.43439,275.20851 128.83615,278.17811 128.83615,278.17811 L 128.83615,290.17871 L 105.1683,302.84601 C 105.1683,302.84601 80.83375,290.17871 80.83375,290.17871 L 80.83375,278.17811 C 80.83375,278.17811 82.235506,275.20851 83.1672,274.17791 C 84.07938,273.16889 86.83405,271.51111 86.83405,271.51111 L 97.50125,271.51111 L 97.50125,274.84461 L 112.16865,274.84461 L 112.16865,271.51111 z\"\n \ - id=\"path75\"\n \ - style=\"fill:url(#linearGradient4708);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text77\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"105\"\n \ - y=\"283\"\n \ - id=\"tspan79\"\n \ - style=\"font-size:10px\">" - - data7 = \ -"</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text81\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"105\"\n \ - y=\"294\"\n \ - id=\"tspan83\"\n \ - style=\"font-size:10px\">" - - data8 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 36.940888,299.20373 C 44.052711,299.20373 44.136193,299.20373 44.136193,299.20373 C 44.136193,299.20373 45.427531,299.56492 45.871279,299.93131 C 46.277214,300.26648 46.906352,301.42617 46.906352,301.42617 L 64.054711,301.42617 L 64.054711,303.36536 C 64.054711,303.36536 58.247925,304.07904 56.157986,305.24032 C 54.358452,306.24023 51.917471,307.83902 51.10348,309.68744 C 50.549318,310.94584 50.611014,313.02432 51.193312,314.26995 C 51.937623,315.86215 54.064008,317.28588 55.613966,318.11458 C 57.847049,319.30851 64.054711,320.33468 64.054711,320.33468 L 64.054711,323.20613 L 125.93746,323.20613 L 127.78595,324.62589 L 128.95009,326.57524 L 128.95009,333.42937 L 126.87683,333.42937 C 126.87683,333.42937 126.31193,332.29532 125.8797,331.96522 C 125.40838,331.60527 124.11712,331.20693 124.11712,331.20693 L 116.5044,331.20693 L 116.5044,333.42937 L 108.05911,333.42937 L 108.05911,331.20693 L 99.603951,331.20693 C 99.603951,331.20693 97.505568,331.91803 96.848529,332.55436 C 96.068482,333.30981 96.00968,333.27413 95.24339,334.62327 L 95.011478,345.61026 L 90.279556,345.43424 L 90.279556,334.30933 C 90.279556,334.30933 89.296987,333.10246 88.853018,332.67916 C 88.350421,332.19995 86.969296,331.20693 86.969296,331.20693 L 78.722845,331.20693 L 78.722845,333.42937 L 70.277556,333.42937 L 70.277556,331.20693 L 61.387778,331.20693 C 61.387778,331.20693 59.491728,332.22441 58.948165,332.7551 C 58.289219,333.39844 57.387378,335.36182 57.387378,335.36182 L 57.387378,345.43057 L 49.032817,345.38793 C 49.032817,345.38793 48.160739,347.38567 47.513683,348.03259 C 46.877108,348.66902 44.911532,349.52654 44.911532,349.52654 L 36.496399,349.43097 L 36.496399,351.65342 L 28.05111,351.65342 L 28.05111,349.43097 L 20.461387,349.43097 C 20.461387,349.43097 18.373868,348.57893 17.652871,347.89302 C 17.081003,347.34898 16.04991,345.67193 16.04991,345.67193 L 16.04991,303.5583 C 16.04991,303.5583 17.026202,301.57847 17.647362,300.89136 C 18.255513,300.21865 20.092052,299.20373 20.092052,299.20373 L 27.162132,299.20373 L 27.162132,301.42617 L 36.940888,301.42617 L 36.940888,299.20373 z\"\n \ - id=\"path85\"\n \ - style=\"fill:url(#linearGradient4699);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text87\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"32\"\n \ - y=\"314\"\n \ - id=\"tspan89\"\n \ - style=\"font-size:11px\">" - - data9 = \ -"</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text91\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"74\"\n \ - y=\"329\"\n \ - id=\"tspan93\"\n \ - style=\"font-size:6px\">" - - data10 = \ -"</tspan>\n \ - </text>\n \ - <text\n \ - id=\"text95\"\n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"111\"\n \ - y=\"329\"\n \ - id=\"tspan97\"\n \ - style=\"font-size:6px\">" - - data11 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 49.8322,372.80906 C 60.4994,372.80906 59.49935,372.80906 59.49935,372.80906 C 59.49935,372.80906 61.567081,373.4166 62.232671,373.96615 C 62.841543,374.46888 63.8329,376.14256 63.8329,376.14256 L 67.8331,376.14256 L 67.8331,366.80876 L 127.1694,366.80876 L 127.1694,374.14246 L 124.83595,374.14246 C 124.83595,374.14246 123.50523,372.7019 122.8201,372.15446 C 122.01247,371.50913 119.8357,370.80896 119.8357,370.80896 L 109.1685,370.80896 L 109.1685,374.14246 L 96.5012,374.14246 L 96.5012,370.80896 L 83.8339,370.80896 C 83.8339,370.80896 80.63569,372.47259 79.813801,373.30588 C 78.826981,374.30638 77.1669,377.47596 77.1669,377.47596 L 77.1669,397.47696 L 24.4976,397.47696 C 24.4976,397.47696 21.021359,396.46106 19.973726,395.53967 C 18.833507,394.53684 17.8306,391.47666 17.8306,391.47666 L 17.8306,378.50052 C 17.8306,378.50052 19.191494,375.74876 19.968592,374.98808 C 20.940621,374.03658 23.8309,372.80906 23.8309,372.80906 L 34.4981,372.80906 L 34.4981,376.14256 L 49.8322,376.14256 L 49.8322,372.80906 z\"\n \ - id=\"path99\"\n \ - style=\"fill:url(#linearGradient4691);fill-opacity:1;stroke:#a97513;stroke-width:1px;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 49.4155,411.64166 C 60.0827,411.64166 60.0827,411.64166 60.0827,411.64166 C 60.0827,411.64166 62.83737,413.29944 63.74955,414.30846 C 64.68124,415.33906 66.083,418.30866 66.083,418.30866 L 66.083,450.97696 C 66.083,450.97696 64.60489,453.43952 63.74955,454.31046 C 62.79646,455.28093 60.0827,456.97726 60.0827,456.97726 L 48.7488,456.97726 L 48.7488,456.97726 L 48.7488,459.64406 L 35.4148,459.64406 L 35.4148,456.97726 L 24.0809,456.97726 C 24.0809,456.97726 21.367138,455.28093 20.41405,454.31046 C 19.558707,453.43952 18.0806,450.97696 18.0806,450.97696 L 18.0806,418.30866 C 18.0806,418.30866 19.482356,415.33906 20.41405,414.30846 C 21.32623,413.29944 24.0809,411.64166 24.0809,411.64166 L 34.7481,411.64166 L 34.7481,414.97516 L 49.4155,414.97516 L 49.4155,411.64166 z\"\n \ - id=\"path109\"\n \ - style=\"fill:url(#linearGradient3490);fill-opacity:1;stroke:#a97513;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 112.20495,411.89166 C 122.92495,411.89166 122.92495,411.89166 122.92495,411.89166 C 122.92495,411.89166 125.69325,413.55765 126.60995,414.57166 C 127.54626,415.60736 128.95495,418.59166 128.95495,418.59166 L 128.95495,431.32166 C 128.95495,431.32166 127.46953,433.79641 126.60995,434.67166 C 125.65214,435.64693 122.92495,437.35166 122.92495,437.35166 L 111.53495,437.35166 L 111.53495,437.35166 L 111.53495,440.03166 L 98.13495,440.03166 L 98.13495,437.35166 L 86.74495,437.35166 C 86.74495,437.35166 84.017756,435.64693 83.05995,434.67166 C 82.200373,433.79641 80.71495,431.32166 80.71495,431.32166 L 80.71495,418.59166 C 80.71495,418.59166 82.123644,415.60736 83.05995,414.57166 C 83.976645,413.55765 86.74495,411.89166 86.74495,411.89166 L 97.46495,411.89166 L 97.46495,415.24166 L 112.20495,415.24166 L 112.20495,411.89166 z\"\n \ - id=\"path14\"\n \ - style=\"fill:url(#linearGradient2711);fill-opacity:1;stroke:#a97513;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"11.94208\"\n \ - height=\"9.4202003\"\n \ - x=\"98.863907\"\n \ - y=\"424.68732\"\n \ - id=\"rect2483\"\n \ - style=\"fill:#666666;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <path\n \ - d=\"M 101.49433,424.68732 L 101.49433,422.25053 C 101.49433,420.44689 102.95493,418.9883 104.75589,418.9883 C 106.55685,418.9883 108.01678,420.44957 108.01678,422.25053 L 108.01678,424.68732\"\n \ - id=\"path2485\"\n \ - style=\"fill:none;stroke:#666666;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ -</svg>\n" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - strings = mystring3.split(" ",2) - if len(strings) == 1: - FILE.write(data2a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data2b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.write(mystring4.encode("utf-8")) - FILE.write(data4) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data5) - FILE.write(mystring6.encode("utf-8")) - FILE.write(data6) - strings = mystring8.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data7) - if len(strings) == 2: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data8) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data9) - FILE.write(mystring6.encode("utf-8")) - FILE.write(data10) - FILE.write(mystring7.encode("utf-8")) - FILE.write(data11) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/forever.py b/svg/forever.py deleted file mode 100755 index 4961b3c..0000000 --- a/svg/forever.py +++ /dev/null @@ -1,123 +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 = "forever" - 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 = _("forever") - mygroup = "flow" - - 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=\"156\" \n \ - height=\"44\" \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64.093909,1 64.093909,1 C 64.093909,1 66.999128,2.0158072 67.997462,2.8401016 C 68.910724,3.5941544 70.326142,6.0279188 70.326142,6.0279188 L 155,6.5 L 155.07138,18.133011 L 151.56154,18.128966 C 151.56154,18.128966 149.6815,15.956403 148.70907,15.213754 C 147.6487,14.40395 144.8236,13.04981 144.8236,13.04981 L 128.06091,13.315355 L 128.01396,18.088515 L 108.80964,18.166244 L 108.66878,12.891181 L 88.713197,13.250635 C 88.713197,13.250635 85.374202,16.120059 84,17.5 C 82.52486,18.981301 80.5,22.703046 80.5,22.703046 L 80.5,43.116751 L 10.526354,43.203199 C 10.526354,43.203199 5.8299058,41.169544 4.2078237,39.626397 C 2.9212506,38.402433 0.90609137,34.629442 0.90609137,34.629442 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n" - - data1 = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\" > \n \ - <tspan \n \ - x=\"39\" \n \ - y=\"28\" \n \ - style=\"font-size:18px;\">" - - data1a = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\" > \n \ - <tspan \n \ - x=\"39\" \n \ - y=\"20\" \n \ - style=\"font-size:18px;\">" - - data2a = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\" > \n \ - <tspan \n \ - x=\"39\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data3 = \ -"</tspan></text> \n \ -</svg> \n" - - strings = mystring.split(" ",2) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - if len(strings) == 1: - FILE.write(data1) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2a) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/forward.py b/svg/forward.py deleted file mode 100755 index 5a5cb8e..0000000 --- a/svg/forward.py +++ /dev/null @@ -1,102 +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 = "forward" - 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 = _("forward") - mygroup = "turtle" - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/hat1.py b/svg/hat1.py deleted file mode 100755 index e0e4ba9..0000000 --- a/svg/hat1.py +++ /dev/null @@ -1,110 +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 = "hat1" - 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() - - # TRANS: Please use "action 1" to indicate an action is invoked - mystring = _("stack 1") - mygroup = "myblocks" - - 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=\"99\" \n \ - height=\"56\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(12.5,12)\" /> \n \ - <inkscape:perspective \n \ - id=\"perspective2472\" \n \ - inkscape:persp3d-origin=\"372.04724 : 350.78739 : 1\" \n \ - inkscape:vp_z=\"744.09448 : 526.18109 : 1\" \n \ - inkscape:vp_y=\"0 : 1000 : 0\" \n \ - inkscape:vp_x=\"0 : 526.18109 : 1\" \n \ - sodipodi:type=\"inkscape:persp3d\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 98.5,28 L 98.5,28 L 59.5,51 L 59.5,51 L 59.5,55 L 39.5,55 L 39.5,51 C 39.5,51 0.5,28 0.5,28 C 0.5,28 49.5,1 49.5,1 C 49.5,1 98.5,28 98.5,28 z\" /> \n \ - <path \n \ - style=\"fill:none;stroke:#606000;stroke-width:1;stroke-opacity:1\" \n \ - d=\"M 39,55.5 L 60,55.5\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"49\" \n \ - y=\"35\" \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/hat2.py b/svg/hat2.py deleted file mode 100755 index e7968fd..0000000 --- a/svg/hat2.py +++ /dev/null @@ -1,110 +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 = "hat2" - 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() - - # TRANS: Please use "action 2" to indicate an action is invoked - mystring = _("stack 2") - mygroup = "myblocks" - - 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=\"99\" \n \ - height=\"56\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(12.5,12)\" /> \n \ - <inkscape:perspective \n \ - id=\"perspective2472\" \n \ - inkscape:persp3d-origin=\"372.04724 : 350.78739 : 1\" \n \ - inkscape:vp_z=\"744.09448 : 526.18109 : 1\" \n \ - inkscape:vp_y=\"0 : 1000 : 0\" \n \ - inkscape:vp_x=\"0 : 526.18109 : 1\" \n \ - sodipodi:type=\"inkscape:persp3d\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 98.5,28 L 98.5,28 L 59.5,51 L 59.5,51 L 59.5,55 L 39.5,55 L 39.5,51 C 39.5,51 0.5,28 0.5,28 C 0.5,28 49.5,1 49.5,1 C 49.5,1 98.5,28 98.5,28 z\" /> \n \ - <path \n \ - style=\"fill:none;stroke:#606000;stroke-width:1;stroke-opacity:1\" \n \ - d=\"M 39,55.5 L 60,55.5\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"49\" \n \ - y=\"35\" \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/heading.py b/svg/heading.py deleted file mode 100755 index b5e546a..0000000 --- a/svg/heading.py +++ /dev/null @@ -1,96 +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 = "heading" - 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 = _("heading") - mygroup = "turtle" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"54\" \n \ - y=\"15.5\" \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/height.py b/svg/height.py deleted file mode 100755 index ec919a3..0000000 --- a/svg/height.py +++ /dev/null @@ -1,105 +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 = "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 deleted file mode 100755 index 908434a..0000000 --- a/svg/hideblocks.py +++ /dev/null @@ -1,127 +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 = "hideblocks" - 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() - - mystring1 = _("hide blocks") - mygroup = "templates" - - print mystring1 - - 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=\"74\" \n \ - height=\"60\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n" - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:18px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/hres.py b/svg/hres.py deleted file mode 100755 index 12f73ca..0000000 --- a/svg/hres.py +++ /dev/null @@ -1,104 +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 = "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/if.py b/svg/if.py deleted file mode 100755 index 3f9cd30..0000000 --- a/svg/if.py +++ /dev/null @@ -1,109 +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 = "if" - 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() - - mystring1 = _("if") - mystring2 = _("then") - mygroup = "flow" - - print mystring1 - print mystring2 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"171\" \n \ - height=\"120\" \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(9.39087e-2,-0.2031988)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1;opacity:1\" \n \ - d=\"M 48,1 C 64,1 64.187817,1 64.187817,1 C 64.187817,1 67.093036,1.8126092 68.09137,2.6369032 C 69.004632,3.3909562 70.42005,6 70.42005,6 L 109,6 L 109,10.362744 C 109,10.362744 95.936038,11.968359 91.234146,14.580971 C 87.185598,16.830552 81.69394,20.427467 79.862644,24.586001 C 78.615904,27.417117 78.754707,32.093211 80.064747,34.895598 C 81.739279,38.477693 86.523166,41.68078 90.010223,43.545156 C 95.034158,46.231233 109,48.539891 109,48.539891 L 109,55 L 163.09536,55 L 167.25404,58.346432 L 170,62.732031 L 170,78 L 165.20874,78 C 165.20874,78 163.93784,75.60092 162.96541,74.858271 C 161.90504,74.048467 159,73 159,73 L 142,73 L 142,78 L 122,78 L 122,73 L 103,73 C 103,73 99.222895,75.806066 98,77 C 96.517521,78.447372 95,82.347563 95,82.347563 L 95,105 L 75.204118,104.90405 C 75.204118,104.90405 73.24214,109.39853 71.78641,110.85394 C 70.354258,112.28578 65.932154,114.215 65.932154,114.215 L 47,114 L 47,119 L 28,119 L 28,114 L 10.924831,114 C 10.924831,114 6.228383,112.0831 4.6063009,110.53995 C 3.3197278,109.31599 1,105.54299 1,105.54299 L 1,10.796801 C 1,10.796801 3.196437,6.3426262 4.5939087,4.7968012 C 5.9621108,3.2833542 10.093909,1 10.093909,1 L 26,1 d L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"34.5\" \n \ - style=\"font-size:24px\">" - - data1 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"132\" \n \ - y=\"68.5\" \n \ - style=\"font-size:14px\">" - - data2 = \ -"</tspan></text> \n \ -</svg> \n" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/ifelse.py b/svg/ifelse.py deleted file mode 100755 index 7fdfb17..0000000 --- a/svg/ifelse.py +++ /dev/null @@ -1,122 +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 = "ifelse" - 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() - - mystring1 = _("if") - mystring2 = _("then") - mystring3 = _("else") - mygroup = "flow" - - print mystring1 - print mystring2 - print mystring3 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"256\" \n \ - height=\"120\" \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(9.39087e-2,-0.2031988)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"opacity:1;fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64.187817,1 64.187817,1 C 64.187817,1 67.093036,1.8126092 68.09137,2.6369032 C 69.004632,3.3909562 70.42005,6 70.42005,6 L 109,6 L 109,10.362744 C 109,10.362744 95.936038,11.968359 91.234146,14.580971 C 87.185598,16.830552 81.69394,20.427467 79.862644,24.586001 C 78.615904,27.417117 78.754707,32.093211 80.064747,34.895598 C 81.739279,38.477693 86.523166,41.68078 90.010223,43.545156 C 95.034158,46.231233 109,48.539891 109,48.539891 L 109,55 L 248.22226,55 L 252.38094,58.194148 L 255,62.579747 L 255,78 L 250.33564,78 C 250.33564,78 249.06474,75.448636 248.09231,74.705987 C 247.03194,73.896183 244.1269,73 244.1269,73 L 227,73 L 227,78 L 208,78 L 208,73 L 188.97779,73 C 188.97779,73 184.47819,75.568409 183,77 C 181.24507,78.699599 181.72398,77.650743 180,80.685997 L 180,105.40425 L 168,105.00825 L 168,79.979695 C 168,79.979695 165.78944,77.264522 164.79061,76.312183 C 163.65988,75.234075 160.55266,73 160.55266,73 L 142,73 L 142,78 L 123,78 L 123,73 L 103,73 C 103,73 99.222895,75.806066 98,77 C 96.517521,78.447372 95,82.347563 95,82.347563 L 95,105 L 75.204118,104.90405 C 75.204118,104.90405 73.24214,109.39853 71.78641,110.85394 C 70.354258,112.28578 65.932154,114.215 65.932154,114.215 L 47,114 L 47,119 L 28,119 L 28,114 L 10.924831,114 C 10.924831,114 6.228383,112.0831 4.6063009,110.53995 C 3.3197278,109.31599 1,105.54299 1,105.54299 L 1,10.796801 C 1,10.796801 3.196437,6.3426262 4.5939087,4.7968012 C 5.9621108,3.2833542 10.093909,1 10.093909,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"34.5\" \n \ - style=\"font-size:24px\">" - - data1 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"132\" \n \ - y=\"68.5\" \n \ - style=\"font-size:14px\">" - - data2 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"216\" \n \ - y=\"68.5\" \n \ - style=\"font-size:14px\">" - - data3 = \ -"</tspan></text> \n \ -</svg>" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/kbinput.py b/svg/kbinput.py deleted file mode 100755 index d1f284a..0000000 --- a/svg/kbinput.py +++ /dev/null @@ -1,138 +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 = "kbinput" - 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() - - mystring1 = _("read key") - mygroup = "sensors" - - print mystring1 - - 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=\"87\" \n \ - height=\"60\" \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=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - id=\"linearGradient3172\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" \n \ - id=\"path10\" \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c00000;stroke-width:2;stroke-opacity:1\" /> \n " - - data1a = \ -" <text \n \ - id=\"text12\" \n \ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - id=\"tspan14\" \n \ - style=\"font-size:18px\">" - - data1b = \ -" <text \n \ - id=\"text12\" \n \ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - id=\"tspan14\" \n \ - style=\"font-size:18px\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - id=\"text16\" \n \ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - id=\"tspan18\" \n \ - style=\"font-size:18px\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/keyboard.py b/svg/keyboard.py deleted file mode 100755 index 27b1761..0000000 --- a/svg/keyboard.py +++ /dev/null @@ -1,106 +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 = "keyboard" - 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 = _("keyboard") - mygroup = "sensors" - - s = mystring - slower = s.lower() - print slower - 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=\"54\" \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(slower.encode("utf-8")) - FILE.write(data1) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/left.py b/svg/left.py deleted file mode 100755 index 81590f4..0000000 --- a/svg/left.py +++ /dev/null @@ -1,102 +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 = "left" - 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 = _("left") - mygroup = "turtle" - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/leftpos.py b/svg/leftpos.py deleted file mode 100755 index 47a3063..0000000 --- a/svg/leftpos.py +++ /dev/null @@ -1,104 +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 = "leftpos" - 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 = _("left") - 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/makesvg.py b/svg/makesvg.py deleted file mode 100755 index ba70d81..0000000 --- a/svg/makesvg.py +++ /dev/null @@ -1,124 +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 - -def main(): - - py = [ \ - "and.py", \ - "arc.py", \ - "back.py", \ - "bottompos.py", \ - "box1.py", \ - "box2.py", \ - "clean.py", \ - "clearheap.py", \ - "color.py", \ - "fillscreen.py", \ - "flowgroup.py", \ - "forever.py", \ - "forward.py", \ - "hat1.py", \ - "hat2.py", \ - "heading.py", \ - "height.py", \ - "hideblocks.py", \ - "ifelse.py", \ - "if.py", \ - "kbinput.py", \ - "keyboard.py", \ - "left.py", \ - "leftpos.py", \ - "myblocksgroup.py", \ - "not.py", \ - "numbersgroup.py", \ - "or.py", \ - "pendown.py", \ - "pengroup.py", \ - "pensize.py", \ - "penup.py", \ - "pop.py", \ - "printheap.py", \ - "print.py", \ - "push.py", \ - "random.py", \ - "remainder2.py", \ - "remainder.py", \ - "repeat.py", \ - "right.py", \ - "rightpos.py", \ - "scale.py", \ - "sensorsgroup.py", \ - "setcolor.py", \ - "seth.py", \ - "setpensize.py", \ - "setscale.py", \ - "setshade.py", \ - "settextcolor.py", \ - "settextsize.py", \ - "setxy.py", \ - "shade.py", \ - "show.py", \ - "sound.py", \ - "stack1.py", \ - "stack2.py", \ - "start.py", \ - "stopstack.py", \ - "storein.py", \ - "storeinbox1.py", \ - "storeinbox2.py", \ - "templatesgroup.py", \ - "textcolor.py", \ - "textsize.py", \ - "toppos.py", \ - "turtlegroup.py", \ - "wait.py", \ - "width.py", \ - "xcor.py", \ - "ycor.py" ] - - if len(sys.argv) != 2: - print "Error: Usage is makesvg.py lang" - return - - try: - FILE = open(os.path.join("../images", sys.argv[1], "turtle", \ - "forward.svg"), "r") - FILE.close() - except: - # start from a copy of the en images - print "os.system(" + "cp -r ../images/en ../image/" + sys.argv[1] + ")" - os.system("cp -r ../images/en ../images/" + sys.argv[1]) - # make a copy of the samples directory too - # os.system("cp -r ../samples/en ../samples/" + sys.argv[1]) - - # run the scripts to generate the language-specific files - for p in py: - print "building: " + p - os.system("python " + p + " " + sys.argv[1]) - -if __name__ == "__main__": - main() diff --git a/svg/myblocksgroup.py b/svg/myblocksgroup.py deleted file mode 100755 index 67a6c38..0000000 --- a/svg/myblocksgroup.py +++ /dev/null @@ -1,802 +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 = "myblocksgroup" - 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() - - mystring1 = _("My Blocks") - # TRANS: Please use "action 1" to indicate an action is invoked - mystring2 = _("stack 1") - # TRANS: Please use "action 2" to indicate an action is invoked - mystring3 = _("stack 2") - mystring4 = _("store in box 1") - mystring5 = _("box 1") - mystring6 = _("store in box 2") - mystring7 = _("box 2") - mystring8 = _("name") - mystring9 = _("start") - mygroup = "myblocks" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - print mystring9 - - 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=\"145\" \n \ - height=\"500\" \n \ - id=\"svg2\"> \n \ - <defs \n \ - id=\"defs92\"> \n \ - <linearGradient \n \ - id=\"linearGradient3239\"> \n \ - <stop \n \ - id=\"stop3241\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop3243\" \n \ - style=\"stop-color:#ffff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"47.499626\" \n \ - y1=\"46.558704\" \n \ - x2=\"97.500374\" \n \ - y2=\"46.558704\" \n \ - id=\"linearGradient3245\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,4.441294)\" /> \n \ - <linearGradient \n \ - x1=\"3.8948069\" \n \ - y1=\"74.402542\" \n \ - x2=\"70.231407\" \n \ - y2=\"74.402542\" \n \ - id=\"linearGradient3253\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,17.83573)\" /> \n \ - <linearGradient \n \ - x1=\"81.979385\" \n \ - y1=\"74.402542\" \n \ - x2=\"130.98178\" \n \ - y2=\"74.402542\" \n \ - id=\"linearGradient3261\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,17.83573)\" /> \n \ - <linearGradient \n \ - x1=\"3.8948069\" \n \ - y1=\"115.66337\" \n \ - x2=\"70.231407\" \n \ - y2=\"115.66337\" \n \ - id=\"linearGradient3269\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,17.83573)\" /> \n \ - <linearGradient \n \ - x1=\"81.979385\" \n \ - y1=\"115.66337\" \n \ - x2=\"130.98178\" \n \ - y2=\"115.66337\" \n \ - id=\"linearGradient3277\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,17.83573)\" /> \n \ - <linearGradient \n \ - x1=\"35.25\" \n \ - y1=\"145.67612\" \n \ - x2=\"109.75\" \n \ - y2=\"145.67612\" \n \ - id=\"linearGradient3285\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,41.9838)\" /> \n \ - <linearGradient \n \ - x1=\"40\" \n \ - y1=\"180.0162\" \n \ - x2=\"105\" \n \ - y2=\"180.0162\" \n \ - id=\"linearGradient3293\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,41.9838)\" /> \n \ - <linearGradient \n \ - x1=\"7.6595821\" \n \ - y1=\"226.22649\" \n \ - x2=\"56.661983\" \n \ - y2=\"226.22649\" \n \ - id=\"linearGradient3301\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"70.022545\" \n \ - y1=\"226.22649\" \n \ - x2=\"140.026\" \n \ - y2=\"226.22649\" \n \ - id=\"linearGradient3309\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"7.6595821\" \n \ - y1=\"272.65366\" \n \ - x2=\"56.661983\" \n \ - y2=\"272.65366\" \n \ - id=\"linearGradient3317\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"70.022545\" \n \ - y1=\"272.65366\" \n \ - x2=\"140.026\" \n \ - y2=\"272.65366\" \n \ - id=\"linearGradient3325\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"37.0625\" \n \ - y1=\"311.59515\" \n \ - x2=\"102.0625\" \n \ - y2=\"311.59515\" \n \ - id=\"linearGradient3333\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"36.24942\" \n \ - y1=\"341.4375\" \n \ - x2=\"100.37442\" \n \ - y2=\"341.4375\" \n \ - id=\"linearGradient3341\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"37.495003\" \n \ - y1=\"367.91702\" \n \ - x2=\"107.84001\" \n \ - y2=\"367.91702\" \n \ - id=\"linearGradient3349\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0,64.88299)\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3357\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3359\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3361\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3363\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3365\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3367\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3371\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-1.571244,4.74717)\" /> \n \ - <linearGradient \n \ - x1=\"9.8133535\" \n \ - y1=\"399.42288\" \n \ - x2=\"67.875931\" \n \ - y2=\"399.42288\" \n \ - id=\"linearGradient3374\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-1.571244,4.74717)\" /> \n \ - <linearGradient \n \ - x1=\"64.812042\" \n \ - y1=\"396.17004\" \n \ - x2=\"134.81549\" \n \ - y2=\"396.17004\" \n \ - id=\"linearGradient3385\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"64.812042\" \n \ - y1=\"396.17004\" \n \ - x2=\"134.81549\" \n \ - y2=\"396.17004\" \n \ - id=\"linearGradient3387\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"64.812042\" \n \ - y1=\"396.17004\" \n \ - x2=\"134.81549\" \n \ - y2=\"396.17004\" \n \ - id=\"linearGradient3389\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"64.812042\" \n \ - y1=\"396.17004\" \n \ - x2=\"134.81549\" \n \ - y2=\"396.17004\" \n \ - id=\"linearGradient3393\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(5.210508,8)\" /> \n \ - <linearGradient \n \ - x1=\"64.812042\" \n \ - y1=\"396.17004\" \n \ - x2=\"134.81549\" \n \ - y2=\"396.17004\" \n \ - id=\"linearGradient3396\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(5.210508,8)\" /> \n \ - <linearGradient \n \ - x1=\"8.2421103\" \n \ - y1=\"444.33197\" \n \ - x2=\"57.244511\" \n \ - y2=\"444.33197\" \n \ - id=\"linearGradient3404\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"81.979385\" \n \ - y1=\"444.33197\" \n \ - x2=\"130.9818\" \n \ - y2=\"444.33197\" \n \ - id=\"linearGradient3412\" \n \ - xlink:href=\"#linearGradient3239\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 0.4344301,0.5 L 0.37211997,486.41023 L 3.4959793,493.14297 L 8.369839,497.1072 L 15.031388,499.50288 L 128.8563,499.50288 L 135.70478,496.93866 L 141.65403,492.04729 L 144.37788,483.79171 L 144.41557,0.5 L 0.4344301,0.5 z\" \n \ - id=\"path23\" \n \ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"123.5\" \n \ - height=\"0.14\" \n \ - x=\"10.691486\" \n \ - y=\"249.35913\" \n \ - id=\"rect25\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"123.5\" \n \ - height=\"0.14\" \n \ - x=\"10.691486\" \n \ - y=\"250.49942\" \n \ - id=\"rect27\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"123.5\" \n \ - height=\"0.14\" \n \ - x=\"10.691486\" \n \ - y=\"251.49832\" \n \ - id=\"rect29\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.5\" \n \ - height=\"0.14\" \n \ - x=\"3.7153397\" \n \ - y=\"-28.931932\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect31\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.5\" \n \ - height=\"0.14\" \n \ - x=\"3.7153397\" \n \ - y=\"-27.815523\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect33\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.5\" \n \ - height=\"0.14\" \n \ - x=\"3.7153397\" \n \ - y=\"-468.77127\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect35\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.5\" \n \ - height=\"0.14\" \n \ - x=\"3.7153397\" \n \ - y=\"-467.43195\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect37\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 79.5,438.375 C 79.5,442.86231 75.750385,446.5 71.125,446.5 C 66.499615,446.5 62.75,442.86231 62.75,438.375 C 62.75,433.88769 66.499615,430.25 71.125,430.25 C 75.750385,430.25 79.5,433.88769 79.5,438.375 L 79.5,438.375 z\" \n \ - transform=\"translate(1.375,47.250977)\" \n \ - id=\"path39\" \n \ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - id=\"text41\" \n \ - style=\"font-size:12px;font-weight:bold;text-align:center;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"490\" \n \ - style=\"font-size:12px\">X</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"21\" \n \ - id=\"tspan47\" \n \ - style=\"font-size:20px\">" - - data1 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 69.731407,92.23827 L 69.731407,92.23827 L 43.730107,107.57237 L 43.730107,107.57237 L 43.730107,110.23917 L 30.396107,110.23917 L 30.396107,107.57237 C 30.396107,107.57237 4.3948068,92.23827 4.3948068,92.23827 C 4.3948068,92.23827 37.063107,74.23737 37.063107,74.23737 C 37.063107,74.23737 69.731407,92.23827 69.731407,92.23827 z\" \n \ - id=\"path49\" \n \ - style=\"fill:url(#linearGradient3253);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"96\" \n \ - id=\"tspan53\" \n \ - style=\"font-size:11px\">" - - data2 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 113.81428,78.23757 C 124.48148,78.23757 124.48148,78.23757 124.48148,78.23757 C 124.48148,78.23757 127.23615,79.895355 128.14833,80.90437 C 129.08003,81.934971 130.48178,84.90457 130.48178,84.90457 L 130.48178,97.57187 C 130.48178,97.57187 129.00368,100.03443 128.14833,100.90537 C 127.19525,101.87584 124.48148,103.57217 124.48148,103.57217 L 113.14758,103.57217 L 113.14758,103.57217 L 113.14758,106.23897 L 99.813583,106.23897 L 99.813583,103.57217 L 88.479683,103.57217 C 88.479683,103.57217 85.765921,101.87584 84.812833,100.90537 C 83.95749,100.03443 82.479383,97.57187 82.479383,97.57187 L 82.479383,84.90457 C 82.479383,84.90457 83.881139,81.934971 84.812833,80.90437 C 85.725013,79.895355 88.479683,78.23757 88.479683,78.23757 L 99.146883,78.23757 L 99.146883,81.57107 L 113.81428,81.57107 L 113.81428,78.23757 z\" \n \ - id=\"path55\" \n \ - style=\"fill:url(#linearGradient3261);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"107\" \n \ - y=\"94\" \n \ - id=\"tspan59\" \n \ - style=\"font-size:11px\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 69.731407,133.4991 L 69.731407,133.4991 L 43.730107,148.8332 L 43.730107,148.8332 L 43.730107,151.5 L 30.396107,151.5 L 30.396107,148.8332 C 30.396107,148.8332 4.3948068,133.4991 4.3948068,133.4991 C 4.3948068,133.4991 37.063107,115.4982 37.063107,115.4982 C 37.063107,115.4982 69.731407,133.4991 69.731407,133.4991 z\" \n \ - id=\"path61\" \n \ - style=\"fill:url(#linearGradient3269);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"137\" \n \ - id=\"tspan65\" \n \ - style=\"font-size:11px\">" - - data4 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 113.81428,119.4984 C 124.48148,119.4984 124.48148,119.4984 124.48148,119.4984 C 124.48148,119.4984 127.23615,121.15619 128.14833,122.1652 C 129.08003,123.1958 130.48178,126.1654 130.48178,126.1654 L 130.48178,138.8327 C 130.48178,138.8327 129.00368,141.29526 128.14833,142.1662 C 127.19525,143.13667 124.48148,144.833 124.48148,144.833 L 113.14758,144.833 L 113.14758,144.833 L 113.14758,147.4998 L 99.813583,147.4998 L 99.813583,144.833 L 88.479683,144.833 C 88.479683,144.833 85.765921,143.13667 84.812833,142.1662 C 83.95749,141.29526 82.479383,138.8327 82.479383,138.8327 L 82.479383,126.1654 C 82.479383,126.1654 83.881139,123.1958 84.812833,122.1652 C 85.725013,121.15619 88.479683,119.4984 88.479683,119.4984 L 99.146883,119.4984 L 99.146883,122.8319 L 113.81428,122.8319 L 113.81428,119.4984 z\" \n \ - id=\"path67\" \n \ - style=\"fill:url(#linearGradient3277);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"107\" \n \ - y=\"137\" \n \ - id=\"tspan71\" \n \ - style=\"font-size:11px\">" - - data5 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 72.25,169.40992 L 35.75,187.65992 L 67.25,203.90992 L 67.25,205.90992 L 77.25,205.90992 L 77.25,203.90992 L 109.25,187.65992 L 72.25,169.40992 z\" \n \ - id=\"path6722\" \n \ - style=\"fill:url(#linearGradient3285);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 78,211.5 C 86,211.5 100,211.5 100,211.5 C 100,211.5 102.0659,212.74328 102.75,213.5 C 103.44873,214.27291 104.5,216.5 104.5,216.5 L 104.5,226 C 104.5,226 103.39147,227.84683 102.75,228.5 C 102.03522,229.22781 100,230.5 100,230.5 L 77.5,230.5 L 77.5,230.5 L 77.5,232.5 L 67.5,232.5 L 67.5,230.5 L 45,230.5 C 45,230.5 42.96478,229.22781 42.25,228.5 C 41.608525,227.84683 40.5,226 40.5,226 L 40.5,216.5 C 40.5,216.5 41.551264,214.27291 42.25,213.5 C 42.934101,212.74328 45,211.5 45,211.5 L 67,211.5 L 67,214 L 78,214 L 78,211.5 z\" \n \ - id=\"path10\" \n \ - style=\"fill:url(#linearGradient3293);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 54.161882,280.9423 L 65.162432,280.9423 L 65.162432,284.9425 L 62.495632,284.9425 L 62.495632,282.9424 L 55.495282,282.9424\" \n \ - id=\"path87\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.00004995;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 54.161882,299.27655 L 65.162432,299.27655 L 65.162432,295.27635 L 62.495632,295.27635 L 62.495632,297.27645 L 55.495282,297.27645\" \n \ - id=\"path89\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.00004995;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 39.494482,271.77517 C 50.161682,271.77517 50.161682,271.77517 50.161682,271.77517 L 53.828532,274.44197 L 56.161982,278.44217 L 56.161982,301.10997 L 53.828532,305.11017 L 50.161682,307.77697 L 38.827782,307.77697 L 38.827782,307.77697 L 38.827782,310.44377 L 25.493782,310.44377 L 25.493782,307.77697 L 14.159882,307.77697 L 10.493032,305.11017 L 8.1595819,301.10997 L 8.1595819,278.44217 L 10.493032,274.44197 L 14.159882,271.77517 L 24.827082,271.77517 L 24.827082,275.10867 L 39.494482,275.10867 L 39.494482,271.77517 z\" \n \ - id=\"path91\" \n \ - style=\"fill:url(#linearGradient3301);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n" - - data6a = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"294\" \n \ - id=\"tspan95\" \n \ - style=\"font-size:11px\">" - - data6b = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"288\" \n \ - id=\"tspan95\" \n \ - style=\"font-size:10.5px\">" - - data6c = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"284\" \n \ - id=\"tspan95\" \n \ - style=\"font-size:10px\">" - - data7b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"300\" \n \ - id=\"tspan99\" \n \ - style=\"font-size:10.5px\">" - - data7c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"294\" \n \ - id=\"tspan99\" \n \ - style=\"font-size:10px\">" - - data8c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"304\" \n \ - id=\"tspan99\" \n \ - style=\"font-size:10px\">" - - data9 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 70.522547,284.44247 L 73.856047,284.44247 L 73.856047,287.10927 L 78.522947,287.10927 L 78.522947,284.44247 L 139.526,284.44247 L 139.526,297.77647 L 78.522947,297.77647 L 78.522947,295.10967 L 73.856047,295.10967 L 73.856047,297.77647 L 70.522547,297.77647 L 70.522547,284.44247 z\" \n \ - id=\"path101\" \n \ - style=\"fill:url(#linearGradient3309);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"106\" \n \ - y=\"294\" \n \ - id=\"tspan105\" \n \ - style=\"font-size:11px\">" - - data10 = \ -"</tspan> \n \ - </text> \n \ - <g \n \ - transform=\"matrix(0.6667,0,0,0.6667,7.4928819,323.36927)\" \n \ - id=\"g107\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - id=\"path109\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - id=\"path111\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - d=\"M 39.494482,318.20235 C 50.161682,318.20235 50.161682,318.20235 50.161682,318.20235 L 53.828532,320.86915 L 56.161982,324.86935 L 56.161982,347.53715 L 53.828532,351.53735 L 50.161682,354.20415 L 38.827782,354.20415 L 38.827782,354.20415 L 38.827782,356.87095 L 25.493782,356.87095 L 25.493782,354.20415 L 14.159882,354.20415 L 10.493032,351.53735 L 8.1595819,347.53715 L 8.1595819,324.86935 L 10.493032,320.86915 L 14.159882,318.20235 L 24.827082,318.20235 L 24.827082,321.53585 L 39.494482,321.53585 L 39.494482,318.20235 z\" \n \ - id=\"path113\" \n \ - style=\"fill:url(#linearGradient3317);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n" - - data11a = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"341\" \n \ - id=\"tspan117\" \n \ - style=\"font-size:11px\">" - - data11b = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"335\" \n \ - id=\"tspan117\" \n \ - style=\"font-size:10.5px\">" - - data11c = \ -" <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"330\" \n \ - id=\"tspan117\" \n \ - style=\"font-size:10px\">" - - data12b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"347\" \n \ - id=\"tspan121\" \n \ - style=\"font-size:10.5px\">" - - data12c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"340\" \n \ - id=\"tspan121\" \n \ - style=\"font-size:10px\">" - - data13c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"350\" \n \ - id=\"tspan121\" \n \ - style=\"font-size:10px\">" - - data14 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 70.522547,330.86965 L 73.856047,330.86965 L 73.856047,333.53645 L 78.522947,333.53645 L 78.522947,330.86965 L 139.526,330.86965 L 139.526,344.20365 L 78.522947,344.20365 L 78.522947,341.53685 L 73.856047,341.53685 L 73.856047,344.20365 L 70.522547,344.20365 L 70.522547,330.86965 z\" \n \ - id=\"path123\" \n \ - style=\"fill:url(#linearGradient3325);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"106\" \n \ - y=\"341\" \n \ - id=\"tspan127\" \n \ - style=\"font-size:11px\">" - - data15 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 99.4375,368.60313 L 107.6875,368.60313 L 107.6875,371.60313 L 105.6875,371.60313 L 105.6875,370.10313 L 100.4375,370.10313\" \n \ - id=\"path2493\" \n \ - style=\"fill:#e0e000;fill-opacity:1;stroke:#a08000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 99.4375,382.35313 L 107.6875,382.35313 L 107.6875,379.35313 L 105.6875,379.35313 L 105.6875,380.85313 L 100.4375,380.85313\" \n \ - id=\"path2495\" \n \ - style=\"fill:#e0e000;fill-opacity:1;stroke:#908000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 75.0625,365.97813 C 83.0625,365.97813 97.0625,365.97813 97.0625,365.97813 C 97.0625,365.97813 99.1284,367.22141 99.8125,367.97813 C 100.51123,368.75104 101.5625,370.97813 101.5625,370.97813 L 101.5625,380.47813 C 101.5625,380.47813 100.45397,382.32496 99.8125,382.97813 C 99.09772,383.70594 97.0625,384.97813 97.0625,384.97813 L 74.5625,384.97813 L 74.5625,384.97813 L 74.5625,386.97813 L 64.5625,386.97813 L 64.5625,384.97813 L 42.0625,384.97813 C 42.0625,384.97813 40.02728,383.70594 39.3125,382.97813 C 38.671025,382.32496 37.5625,380.47813 37.5625,380.47813 L 37.5625,370.97813 C 37.5625,370.97813 38.613764,368.75104 39.3125,367.97813 C 39.996601,367.22141 42.0625,365.97813 42.0625,365.97813 L 64.0625,365.97813 L 64.0625,368.47813 L 75.0625,368.47813 L 75.0625,365.97813 z\" \n \ - id=\"path3067\" \n \ - style=\"fill:url(#linearGradient3333);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 43.524995,371.68299 L 46.024995,371.68299 L 46.024995,373.68299 L 49.524995,373.68299 L 49.524995,371.68299 L 95.275005,371.68299 L 95.275005,381.68299 L 49.524995,381.68299 L 49.524995,379.68299 L 46.024995,379.68299 L 46.024995,381.68299 L 43.524995,381.68299 L 43.524995,371.68299 z\" \n \ - id=\"path3478\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 46.749995,216.9838 L 49.249995,216.9838 L 49.249995,218.9838 L 52.749995,218.9838 L 52.749995,216.9838 L 98.5,216.9838 L 98.5,226.9838 L 52.749995,226.9838 L 52.749995,224.9838 L 49.249995,224.9838 L 49.249995,226.9838 L 46.749995,226.9838 L 46.749995,216.9838 z\" \n \ - id=\"path3491\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 46.124998,182.3588 L 48.624998,182.3588 L 48.624998,184.3588 L 52.124998,184.3588 L 52.124998,182.3588 L 97.875,182.3588 L 97.875,192.3588 L 52.124998,192.3588 L 52.124998,190.3588 L 48.624998,190.3588 L 48.624998,192.3588 L 46.124998,192.3588 L 46.124998,182.3588 z\" \n \ - id=\"path3499\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 37.995002,426.1 L 41.345002,426.1 L 41.345002,428.78 L 46.035002,428.78 L 46.035002,426.1 L 107.34001,426.1 L 107.34001,439.5 L 46.035002,439.5 L 46.035002,436.82 L 41.345002,436.82 L 41.345002,439.5 L 37.995002,439.5 L 37.995002,426.1 z\" \n \ - id=\"path2709\" \n \ - style=\"fill:url(#linearGradient3349);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"437\" \n \ - id=\"tspan155\" \n \ - style=\"font-size:11px\">" - - data16 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 42.749422,398.75799 L 42.749422,403.25799 L 39.374422,403.25799 L 39.374422,401.25799 L 36.749422,401.25799 L 36.749422,411.25799 L 39.374422,411.25799 L 39.374422,409.25799 L 42.749422,409.25799 L 42.749422,413.88299 L 99.874422,413.75799 L 99.874422,398.75799 L 42.749422,398.75799 z\" \n \ - id=\"path2718\" \n \ - style=\"fill:url(#linearGradient3341);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 45.874422,401.25799 L 48.374422,401.25799 L 48.374422,403.25799 L 51.874422,403.25799 L 51.874422,401.25799 L 97.624427,401.25799 L 97.624427,411.25799 L 51.874422,411.25799 L 51.874422,409.25799 L 48.374422,409.25799 L 48.374422,411.25799 L 45.874422,411.25799 L 45.874422,401.25799 z\" \n \ - id=\"path2720\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 97,50 C 97.09921,56.79081 77.5,62.5 77.5,62.5 L 77.5,62.5 L 77.5,64.5 L 67.5,64.5 L 67.5,62.5 C 67.5,62.5 47.90079,56.79081 48,50 C 48.12259,41.60893 64.10804,37.5 72.5,37.5 C 80.89196,37.5 96.87741,41.60893 97,50 z\" \n \ - id=\"path2715\" \n \ - style=\"fill:url(#linearGradient3245);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"53.5\" \n \ - id=\"tspan89\" \n \ - style=\"font-size:11px\">" - - data17 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data3) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data4) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data5) - strings = mystring4.split(" ",3) - if len(strings) == 1: - FILE.write(data6a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data6b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data7b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data6c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data7c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data8c) - FILE.write(strings[2].encode("utf-8")) - if len(strings) == 4: - FILE.write(" " + strings[3].encode("utf-8")) - FILE.write(data9) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data10) - strings = mystring6.split(" ",3) - if len(strings) == 1: - FILE.write(data11a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data11b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data12b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data11c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data12c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data13c) - FILE.write(strings[2].encode("utf-8")) - if len(strings) == 4: - FILE.write(" " + strings[3].encode("utf-8")) - FILE.write(data14) - FILE.write(mystring7.encode("utf-8")) - FILE.write(data15) - FILE.write(mystring8.encode("utf-8")) - FILE.write(data16) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data17) - FILE.close() - return - -if __name__ == "__main__": - main() - - diff --git a/svg/not.py b/svg/not.py deleted file mode 100755 index 80743cf..0000000 --- a/svg/not.py +++ /dev/null @@ -1,96 +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 = "not" - 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 = _("not") - 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=\"82\" \n \ - height=\"45\" \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 \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"81\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);stroke:#a000a0;stroke-width:1.50000000000000000;stroke-opacity:1;fill-opacity:1;opacity:1\" \n \ - d=\"M 81.5,0.5 L 52.184836,1.0946482 C 48.067642,1.1781641 41.389663,1.6361149 37.299849,2.1174546 C 33.873939,2.5206579 29.222297,3.248216 25.862124,4.028389 C 22.692508,4.7643181 18.365568,5.5610531 15.36737,6.8255165 C 13.084928,7.788116 9.844096,8.9699361 7.8592915,10.452059 C 6.3063049,11.611728 4.4309072,13.439472 3.2387792,14.967684 C 2.4840103,15.935237 1.6096745,17.352305 1.1777379,18.500898 C 0.80137523,19.50171 0.5007638,20.93076 0.5,22 C 0.49928515,23.000722 0.81886695,24.324532 1.1296286,25.27578 C 1.4937185,26.390267 2.1370867,27.841955 2.8000171,28.808994 C 3.7185158,30.14884 5.2539783,31.729416 6.5314467,32.73286 C 8.1587459,34.011095 10.035683,35.507397 11.918817,36.365182 C 14.32795,37.462564 17.712344,38.523245 20.256311,39.255638 C 22.654562,39.94608 31.841463,41.630103 34.839679,41.950768 L 54,44 L 81.5,44.5 L 81.5,41.5 C 81.5,41.5 77.395011,40.863389 75.669659,40.433376 C 73.739724,39.952375 68.641131,39.216464 65.189353,36.764503 C 65.189353,36.764503 60.564346,34.279867 59.187108,32.894525 C 57.956771,31.656948 56.397781,29.312001 55.648115,27.736143 C 54.949896,26.26843 54.555327,23.752729 54.566595,22.12744 C 54.5795,20.266029 55.406924,17.791597 56.341871,16.181973 C 57.423539,14.319752 59.589033,12.29889 61.299148,10.989929 C 63.279802,9.4738913 66.304312,7.9855935 68.603232,7.0179533 C 70.547739,6.1994893 73.287879,5.4998596 75.324226,4.9482432 C 77.161021,4.4506826 81.5,4 81.5,4 L 81.5,0.5\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"32\" \n \ - y=\"28\" \n \ - style=\"font-size:18\">" - - 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() diff --git a/svg/numbersgroup.py b/svg/numbersgroup.py deleted file mode 100755 index 024a87f..0000000 --- a/svg/numbersgroup.py +++ /dev/null @@ -1,880 +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 = "numbersgroup" - 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() - - mystring1 = _("Numbers") - mystring2 = _("random") - mystring3 = _("and") - mystring4 = _("or") - mystring5 = _("not") - mystring6 = _("print") - mystring7 = _("number") - mystring8 = _("min") - mystring9 = _("max") - mystring10 = _("mod") - mygroup = "numbers" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - print mystring9 - print mystring10 - - 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=\"145\" \n \ - height=\"500\" \n \ - id=\"svg2\"> \n \ - <defs \n \ - id=\"defs94\"> \n \ - <linearGradient \n \ - id=\"linearGradient3405\"> \n \ - <stop \n \ - id=\"stop3407\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop3409\" \n \ - style=\"stop-color:#ffff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - id=\"linearGradient3241\"> \n \ - <stop \n \ - id=\"stop3243\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop3245\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"37.499828\" \n \ - y1=\"41.5\" \n \ - x2=\"107.50017\" \n \ - y2=\"41.5\" \n \ - id=\"linearGradient3247\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"20.764166\" \n \ - y1=\"80.032402\" \n \ - x2=\"47.264164\" \n \ - y2=\"80.032402\" \n \ - id=\"linearGradient3255\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"86.115639\" \n \ - y1=\"80.032402\" \n \ - x2=\"122.24064\" \n \ - y2=\"80.032402\" \n \ - id=\"linearGradient3263\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"20.764162\" \n \ - y1=\"121.53331\" \n \ - x2=\"47.264164\" \n \ - y2=\"121.53331\" \n \ - id=\"linearGradient3271\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"86.115639\" \n \ - y1=\"121.53331\" \n \ - x2=\"122.24064\" \n \ - y2=\"121.53331\" \n \ - id=\"linearGradient3279\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"15.95166\" \n \ - y1=\"163.03423\" \n \ - x2=\"52.07666\" \n \ - y2=\"163.03423\" \n \ - id=\"linearGradient3287\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"79.511383\" \n \ - y1=\"168.49895\" \n \ - x2=\"116.8449\" \n \ - y2=\"168.49895\" \n \ - id=\"linearGradient3295\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"79.511383\" \n \ - y1=\"168.49895\" \n \ - x2=\"116.8449\" \n \ - y2=\"168.49895\" \n \ - id=\"linearGradient3297\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"79.511383\" \n \ - y1=\"168.49895\" \n \ - x2=\"116.8449\" \n \ - y2=\"168.49895\" \n \ - id=\"linearGradient3299\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"79.511383\" \n \ - y1=\"168.49895\" \n \ - x2=\"116.8449\" \n \ - y2=\"168.49895\" \n \ - id=\"linearGradient3301\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"79.511383\" \n \ - y1=\"168.49895\" \n \ - x2=\"116.8449\" \n \ - y2=\"168.49895\" \n \ - id=\"linearGradient3307\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(6,-5.464714)\" /> \n \ - <linearGradient \n \ - x1=\"10.111029\" \n \ - y1=\"240.50002\" \n \ - x2=\"134.88898\" \n \ - y2=\"240.50002\" \n \ - id=\"linearGradient3315\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"1.0548444\" \n \ - y1=\"277\" \n \ - x2=\"143.94516\" \n \ - y2=\"277\" \n \ - id=\"linearGradient3323\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"1.0548444\" \n \ - y1=\"304.5\" \n \ - x2=\"143.94516\" \n \ - y2=\"304.5\" \n \ - id=\"linearGradient3331\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"1.0548444\" \n \ - y1=\"332\" \n \ - x2=\"143.94516\" \n \ - y2=\"332\" \n \ - id=\"linearGradient3339\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"8.1665154\" \n \ - y1=\"372\" \n \ - x2=\"69.833488\" \n \ - y2=\"372\" \n \ - id=\"linearGradient3347\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"77.666512\" \n \ - y1=\"371.5\" \n \ - x2=\"139.33348\" \n \ - y2=\"371.5\" \n \ - id=\"linearGradient3355\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"12.999865\" \n \ - y1=\"402.5\" \n \ - x2=\"68.000137\" \n \ - y2=\"402.5\" \n \ - id=\"linearGradient3363\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"12.999865\" \n \ - y1=\"402.5\" \n \ - x2=\"68.000137\" \n \ - y2=\"402.5\" \n \ - id=\"linearGradient3365\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"12.999865\" \n \ - y1=\"402.5\" \n \ - x2=\"68.000137\" \n \ - y2=\"402.5\" \n \ - id=\"linearGradient3367\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"12.999865\" \n \ - y1=\"402.5\" \n \ - x2=\"68.000137\" \n \ - y2=\"402.5\" \n \ - id=\"linearGradient3371\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(32,8)\" /> \n \ - <linearGradient \n \ - x1=\"12.999865\" \n \ - y1=\"402.5\" \n \ - x2=\"68.000137\" \n \ - y2=\"402.5\" \n \ - id=\"linearGradient3374\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(32,8)\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3382\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3384\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3386\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3388\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3390\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3394\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-36.520584,50.43926)\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3397\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-36.520584,50.43926)\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3400\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-36.520584,50.43926)\" /> \n \ - <linearGradient \n \ - x1=\"80.020439\" \n \ - y1=\"401.94131\" \n \ - x2=\"138.02074\" \n \ - y2=\"401.94131\" \n \ - id=\"linearGradient3403\" \n \ - xlink:href=\"#linearGradient3241\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(-36.520584,50.43926)\" /> \n \ - <linearGradient \n \ - x1=\"20.764162\" \n \ - y1=\"201.22266\" \n \ - x2=\"47.264164\" \n \ - y2=\"201.22266\" \n \ - id=\"linearGradient3411\" \n \ - xlink:href=\"#linearGradient3405\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - x1=\"90.928139\" \n \ - y1=\"201.22266\" \n \ - x2=\"117.42814\" \n \ - y2=\"201.22266\" \n \ - id=\"linearGradient3419\" \n \ - xlink:href=\"#linearGradient3405\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 0.5594301,0.5 L 0.49711997,486.41023 L 3.6209793,493.14297 L 8.494839,497.1072 L 15.156388,499.50288 L 128.9813,499.50288 L 135.82978,496.93866 L 141.77903,492.04729 L 144.50288,483.79171 L 144.54057,0.5 L 0.5594301,0.5 z\" \n \ - id=\"path25\" \n \ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"221.19794\" \n \ - id=\"rect27\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"222.31435\" \n \ - id=\"rect29\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"223.29239\" \n \ - id=\"rect31\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"55.382996\" \n \ - id=\"rect33\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"56.499405\" \n \ - id=\"rect35\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"57.477448\" \n \ - id=\"rect37\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"-28.931932\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect39\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"-27.815523\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect41\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"-472.77127\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect43\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"-471.43195\" \n \ - transform=\"scale(1,-1)\" \n \ - id=\"rect45\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 79.5,438.375 C 79.5,442.86231 75.750385,446.5 71.125,446.5 C 66.499615,446.5 62.75,442.86231 62.75,438.375 C 62.75,433.88769 66.499615,430.25 71.125,430.25 C 75.750385,430.25 79.5,433.88769 79.5,438.375 L 79.5,438.375 z\" \n \ - transform=\"translate(1.375,47.250977)\" \n \ - id=\"path47\" \n \ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - id=\"text49\" \n \ - style=\"font-size:12px;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold\"> \n \ - <tspan \n \ - x=\"67.879883\" \n \ - y=\"490\" \n \ - id=\"tspan51\" \n \ - style=\"font-size:12px\">X</tspan> \n \ - </text> \n \ - <text \n \ - id=\"text53\" \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"21.5\" \n \ - id=\"tspan2796\" \n \ - style=\"font-size:20px\">" - - data1 = \ -"</tspan> \n \ - </text> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"258.883\" \n \ - id=\"rect56\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"259.99942\" \n \ - id=\"rect58\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"260.97745\" \n \ - id=\"rect60\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"347.883\" \n \ - id=\"rect62\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"348.99939\" \n \ - id=\"rect64\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"349.97745\" \n \ - id=\"rect66\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"429.883\" \n \ - id=\"rect68\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137.56932\" \n \ - height=\"0.13955142\" \n \ - x=\"3.7153397\" \n \ - y=\"430.99939\" \n \ - id=\"rect70\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1.13613331;stroke-opacity:1\" /> \n \ - <rect \n \ - width=\"137\" \n \ - height=\"0.2\" \n \ - x=\"4\" \n \ - y=\"431\" \n \ - id=\"rect72\" \n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 37.99983,34.8333 L 41.33318,34.8333 L 41.33318,37.49998 L 45.99987,37.49998 L 45.99987,34.8333 L 107.00017,34.8333 L 107.00017,48.1667 L 45.99987,48.1667 L 45.99987,45.50002 L 41.33318,45.50002 L 41.33318,48.1667 L 37.99983,48.1667 L 37.99983,34.8333 z\" \n \ - id=\"path74\" \n \ - style=\"fill:url(#linearGradient3247);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 122.3449,151.03208 L 100.67812,151.03208 L 97.986426,152.47502 L 96.340697,154.12075 L 95.011426,156.36544 L 95.011426,158.31578 L 89.956942,158.38161 L 89.956942,156.36544 L 86.011381,156.36544 L 86.011381,169.69884 L 90.011401,169.69884 L 90.011401,167.3655 L 95.011426,167.3655 L 95.011426,172.13991 L 96.276543,173.98313 L 98.975539,175.03639 L 122.3449,174.97056 L 122.3449,168.3655 L 118.79012,168.3655 L 118.79012,170.42835 L 113.19464,170.42835 L 113.01152,155.36544 L 119.01155,155.36544 L 119.01155,157.36545 L 122.3449,157.36545 L 122.3449,151.03208 z\" \n \ - id=\"path106\" \n \ - style=\"fill:url(#linearGradient3307);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <g \n \ - transform=\"translate(1.9359525,12.535286)\" \n \ - id=\"g108\" \n \ - style=\"fill:#000000;fill-opacity:1\"> \n \ - <text \n \ - id=\"text110\" \n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"102\" \n \ - y=\"157\" \n \ - id=\"tspan112\" \n \ - style=\"font-size:16px;fill:#000000;fill-opacity:1\">√</tspan> \n \ - </text> \n \ - </g> \n \ - <path \n \ - d=\"M 125.54364,230.16802 L 20.202678,230.44265 L 18.649745,231.26928 L 17.553556,232.00407 L 16.548717,233.65733 L 16.548717,239.5356 L 13.260151,239.62745 L 13.168802,238.06603 L 10.611029,237.97418 L 10.793727,247.34268 L 13.077453,247.34268 L 13.168802,245.41387 L 16.548717,245.50572 L 16.457368,248.99594 L 17.370858,249.82257 L 18.923792,250.55736 L 129.09073,250.8329 L 128.81668,247.06713 L 134.38897,246.88344 L 134.29762,238.52527 L 129.09073,238.52527 L 128.99938,233.38178 L 127.81184,231.72852 L 125.98486,230.16711 L 125.54364,230.16802 L 125.54364,230.16802\" \n \ - id=\"path114\" \n \ - style=\"fill:url(#linearGradient3315);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 23.057444,238.07932 L 25.310631,238.07932 L 25.310631,240.02538 L 28.465092,240.02538 L 28.465092,238.07932 L 69.698412,238.07932 L 69.698412,247.80963 L 28.465092,247.80963 L 28.465092,245.86356 L 25.310631,245.86356 L 25.310631,247.80963 L 23.057444,247.80963 L 23.057444,238.07932 z\" \n \ - id=\"path116\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 77.813595,238.07932 L 80.066783,238.07932 L 80.066783,240.02538 L 83.221245,240.02538 L 83.221245,238.07932 L 124.45457,238.07932 L 124.45457,247.80963 L 83.221245,247.80963 L 83.221245,245.86356 L 80.066783,245.86356 L 80.066783,247.80963 L 77.813595,247.80963 L 77.813595,238.07932 z\" \n \ - id=\"path118\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"48\" \n \ - id=\"text120\" \n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"237\" \n \ - id=\"tspan122\" \n \ - style=\"font-size:7px\">" - - data2 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 131.00059,323.49992 L 13.110516,323.61103 L 9.9993735,324.49993 L 5.4437723,326.61106 L 2.9993033,328.72219 L 1.7770688,331.05555 L 1.5548444,331.94445 L 1.5548444,333.38891 L 2.4437422,334.94448 L 4.8882111,336.83339 L 7.777129,338.38896 L 10.554935,339.50008 L 13.221628,340.38898 L 131.44504,340.50009 L 135.6673,338.94452 L 139.55623,337.38895 L 142.0007,335.38893 L 143.33404,333.38891 L 143.44516,332.05556 L 142.77848,329.61109 L 140.33401,326.9444 L 137.00065,325.61105 L 134.00062,324.38882 L 131.00059,323.49992 z\" \n \ - id=\"path124\" \n \ - style=\"fill:url(#linearGradient3339);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 15.779593,327.30152 L 18.03278,327.30152 L 18.03278,329.24758 L 21.187242,329.24758 L 21.187242,327.30152 L 62.420561,327.30152 L 62.420561,337.03183 L 21.187242,337.03183 L 21.187242,335.08577 L 18.03278,335.08577 L 18.03278,337.03183 L 15.779593,337.03183 L 15.779593,327.30152 z\" \n \ - id=\"path126\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 82.091416,327.30152 L 84.344603,327.30152 L 84.344603,329.24758 L 87.499066,329.24758 L 87.499066,327.30152 L 128.73239,327.30152 L 128.73239,337.03183 L 87.499066,337.03183 L 87.499066,335.08577 L 84.344603,335.08577 L 84.344603,337.03183 L 82.091416,337.03183 L 82.091416,327.30152 z\" \n \ - id=\"path128\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"14\" \n \ - id=\"text130\" \n \ - style=\"font-size:5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"337\" \n \ - id=\"tspan132\" \n \ - style=\"font-size:14px\">=</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 131.00059,295.99992 L 13.110516,296.11103 L 9.9993735,296.99993 L 5.4437723,299.11106 L 2.9993033,301.22219 L 1.7770688,303.55555 L 1.5548444,304.44445 L 1.5548444,305.88891 L 2.4437422,307.44448 L 4.8882111,309.33339 L 7.777129,310.88896 L 10.554935,312.00008 L 13.221628,312.88898 L 131.44504,313.00009 L 135.6673,311.44452 L 139.55623,309.88895 L 142.0007,307.88893 L 143.33404,305.88891 L 143.44516,304.55556 L 142.77848,302.11109 L 140.33401,299.4444 L 137.00065,298.11105 L 134.00062,296.88882 L 131.00059,295.99992 z\" \n \ - id=\"path134\" \n \ - style=\"fill:url(#linearGradient3331);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 15.779593,299.80152 L 18.03278,299.80152 L 18.03278,301.74758 L 21.187242,301.74758 L 21.187242,299.80152 L 62.420561,299.80152 L 62.420561,309.53183 L 21.187242,309.53183 L 21.187242,307.58577 L 18.03278,307.58577 L 18.03278,309.53183 L 15.779593,309.53183 L 15.779593,299.80152 z\" \n \ - id=\"path136\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 82.091416,299.80152 L 84.344603,299.80152 L 84.344603,301.74758 L 87.499066,301.74758 L 87.499066,299.80152 L 128.73239,299.80152 L 128.73239,309.53183 L 87.499066,309.53183 L 87.499066,307.58577 L 84.344603,307.58577 L 84.344603,309.53183 L 82.091416,309.53183 L 82.091416,299.80152 z\" \n \ - id=\"path138\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"26\" \n \ - id=\"text140\" \n \ - style=\"font-size:5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"309\" \n \ - id=\"tspan142\" \n \ - style=\"font-size:14px\"><</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 131.00059,268.49992 L 13.110516,268.61103 L 9.9993735,269.49993 L 5.4437723,271.61106 L 2.9993033,273.72219 L 1.7770688,276.05555 L 1.5548444,276.94445 L 1.5548444,278.38891 L 2.4437422,279.94448 L 4.8882111,281.83339 L 7.777129,283.38896 L 10.554935,284.50008 L 13.221628,285.38898 L 131.44504,285.50009 L 135.6673,283.94452 L 139.55623,282.38895 L 142.0007,280.38893 L 143.33404,278.38891 L 143.44516,277.05556 L 142.77848,274.61109 L 140.33401,271.9444 L 137.00065,270.61105 L 134.00062,269.38882 L 131.00059,268.49992 z\" \n \ - id=\"path144\" \n \ - style=\"fill:url(#linearGradient3323);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 15.779593,272.30152 L 18.03278,272.30152 L 18.03278,274.24758 L 21.187242,274.24758 L 21.187242,272.30152 L 62.420561,272.30152 L 62.420561,282.03183 L 21.187242,282.03183 L 21.187242,280.08577 L 18.03278,280.08577 L 18.03278,282.03183 L 15.779593,282.03183 L 15.779593,272.30152 z\" \n \ - id=\"path146\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 82.091416,272.30152 L 84.344603,272.30152 L 84.344603,274.24758 L 87.499066,274.24758 L 87.499066,272.30152 L 128.73239,272.30152 L 128.73239,282.03183 L 87.499066,282.03183 L 87.499066,280.08577 L 84.344603,280.08577 L 84.344603,282.03183 L 82.091416,282.03183 L 82.091416,272.30152 z\" \n \ - id=\"path148\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"42\" \n \ - id=\"text150\" \n \ - style=\"font-size:5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"281\" \n \ - id=\"tspan152\" \n \ - style=\"font-size:14px\">></tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 8.666515,356.99992 L 69.333485,356.99992 L 69.333485,359.33327 L 63.66679,359.99994 L 59.66677,361.33328 L 56.666755,362.99995 L 53.333405,365.66663 L 51.66673,368.33331 L 50.933393,371.33333 L 51.533396,374.13334 L 53.00007,377.33336 L 55.333415,379.33337 L 58.666765,381.33338 L 62.000115,382.66672 L 65.6668,383.66672 L 69.333485,384.66673 L 69.333485,387.00007 L 8.666515,387.00007 L 8.666515,384.66673 L 13.333205,383.66672 L 17.866561,382.53339 L 21.66658,380.66671 L 24.33326,378.6667 L 25.999935,376.40002 L 26.99994,373.66667 L 26.99994,371.33333 L 26.866606,369.19999 L 25.999935,367.33331 L 23.999925,364.66663 L 21.266578,362.86662 L 17.799894,361.13328 L 13.66654,359.99994 L 8.666515,359.33327 L 8.666515,356.99992 z\" \n \ - id=\"path154\" \n \ - style=\"fill:url(#linearGradient3347);fill-opacity:1;stroke:#a000a0;stroke-width:1px;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"12\" \n \ - id=\"text156\" \n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"39\" \n \ - y=\"376\" \n \ - id=\"tspan158\" \n \ - style=\"font-size:11px\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 78.166515,356.49992 L 138.83348,356.49992 L 138.83348,358.83327 L 133.16679,359.49994 L 129.16677,360.83328 L 126.16675,362.49995 L 122.8334,365.16663 L 121.16673,367.83331 L 120.43339,370.83333 L 121.0334,373.63334 L 122.50007,376.83336 L 124.83342,378.83337 L 128.16676,380.83338 L 131.50011,382.16672 L 135.1668,383.16672 L 138.83348,384.16673 L 138.83348,386.50007 L 78.166515,386.50007 L 78.166515,384.16673 L 82.833205,383.16672 L 87.366561,382.03339 L 91.16658,380.16671 L 93.83326,378.1667 L 95.499935,375.90002 L 96.49994,373.16667 L 96.49994,370.83333 L 96.366606,368.69999 L 95.499935,366.83331 L 93.499925,364.16663 L 90.766578,362.36662 L 87.299894,360.63328 L 83.16654,359.49994 L 78.166515,358.83327 L 78.166515,356.49992 z\" \n \ - id=\"path160\" \n \ - style=\"fill:url(#linearGradient3355);fill-opacity:1;stroke:#a000a0;stroke-width:1px;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"12\" \n \ - id=\"text162\" \n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"108\" \n \ - y=\"375\" \n \ - id=\"tspan164\" \n \ - style=\"font-size:11px\">" - - data4 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 99.500135,395.83326 L 78.833365,395.83326 L 69.702859,396.44907 L 62.143743,397.72303 L 55.213278,399.78601 L 50.406084,402.468 L 47.325727,405.47844 L 45.951693,407.83392 L 45.499865,410.16667 L 45.919619,412.35053 L 47.033217,414.70602 L 49.52085,417.32195 L 53.508882,419.61136 L 59.067239,421.53834 L 64.471011,422.78601 L 71.035993,424.12797 L 78.833365,425.16674 L 99.500135,425.16674 L 99.500135,423.16674 L 95.613222,422.45565 L 91.400679,421.11754 C 90.25565,420.5941 90.749423,420.81081 88.295954,419.41507 L 84.756944,416.90114 L 82.529748,413.7265 L 81.544442,410.25163 L 82.727965,406.28797 L 86.032833,402.82659 L 90.902247,400.17859 L 95.382932,398.79878 L 99.500135,397.83328 L 99.500135,395.83326\" \n \ - id=\"path166\" \n \ - style=\"fill:url(#linearGradient3374);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"0\" \n \ - y=\"8\" \n \ - id=\"text168\" \n \ - style=\"font-size:8px;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"414\" \n \ - id=\"tspan170\" \n \ - style=\"font-size:11px;fill:#000000;fill-opacity:1\">" - - data5 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 90.000086,441.71384 L 101.00015,441.71384 L 101.00015,445.71386 L 98.333456,445.71386 L 98.333456,443.71385 L 91.333426,443.71385\" \n \ - id=\"path172\" \n \ - style=\"fill:url(#linearGradient3403);fill-opacity:1;stroke:#800080;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 90.000086,460.04726 L 101.00015,460.04726 L 101.00015,456.04724 L 98.333456,456.04724 L 98.333456,458.04726 L 91.333426,458.04726\" \n \ - id=\"path174\" \n \ - style=\"fill:url(#linearGradient3400);fill-opacity:1;stroke:#800080;stroke-width:1;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 75.333346,438.38049 C 86.000066,438.38049 86.000066,438.38049 86.000066,438.38049 L 89.666746,441.04717 L 92.000096,445.04719 L 92.000096,457.71392 L 89.666746,461.04727 L 86.000066,463.71395 L 74.666676,463.71395 L 74.666676,463.71395 L 74.666676,466.38063 L 61.333274,466.38063 L 61.333274,463.71395 L 49.999884,463.71395 L 46.333199,461.04727 L 43.999854,457.71392 L 43.999854,445.04719 L 46.333199,441.04717 L 49.999884,438.38049 L 60.666604,438.38049 L 60.666604,441.71384 L 75.333346,441.71384 L 75.333346,438.38049 z\" \n \ - id=\"path176\" \n \ - style=\"fill:url(#linearGradient3397);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"-0.083335772\" \n \ - y=\"3.8805556\" \n \ - id=\"text178\" \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"69.916664\" \n \ - y=\"454.88055\" \n \ - id=\"tspan180\" \n \ - style=\"font-size:11px;fill:#000000;fill-opacity:1\">" - - data6 = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - id=\"text182\" \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72.5\" \n \ - y=\"46\" \n \ - id=\"tspan184\" \n \ - style=\"font-size:11px\">" - - data7 = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - y=\"48\" \n \ - id=\"text186\" \n \ - style=\"font-size:10.5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"46\" \n \ - y=\"247\" \n \ - id=\"tspan188\" \n \ - style=\"font-size:10.5px\">" - - data8 = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - y=\"48\" \n \ - id=\"text190\" \n \ - style=\"font-size:10px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"100\" \n \ - y=\"247\" \n \ - id=\"tspan192\" \n \ - style=\"font-size:10.5px\">" - - data9 = \ -"</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 35.889163,215.16016 L 46.764163,215.16016 L 46.764163,210.66016 L 44.764163,210.66016 L 44.764163,212.16016 L 40.264163,212.16016 L 40.264163,200.66016 L 44.764163,200.66016 L 44.764163,202.16016 L 46.764163,202.16016 L 46.764163,197.78516 L 40.264163,197.78516 L 26.264163,189.28516 L 24.014163,189.28516 L 24.014163,187.28516 L 21.264163,187.28516 L 21.264163,197.53516 L 24.014163,197.53516 L 24.014163,195.53516 L 26.264163,195.53516 L 35.889163,201.53516 L 35.889163,215.16016 z\" \n \ - id=\"path10\" \n \ - style=\"fill:url(#linearGradient3411);fill-opacity:1;stroke:#a97513;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 106.05314,187.28516 L 116.92814,187.28516 L 116.92814,191.78516 L 114.92814,191.78516 L 114.92814,190.28516 L 110.42814,190.28516 L 110.42814,201.78516 L 114.92814,201.78516 L 114.92814,200.28516 L 116.92814,200.28516 L 116.92814,204.66016 L 110.42814,204.66016 L 96.428141,213.16016 L 94.178141,213.16016 L 94.178141,215.16016 L 91.428141,215.16016 L 91.428141,204.91016 L 94.178141,204.91016 L 94.178141,206.91016 L 96.428141,206.91016 L 106.05314,200.91016 L 106.05314,187.28516 z\" \n \ - id=\"path2796\" \n \ - style=\"fill:url(#linearGradient3419);fill-opacity:1;stroke:#a97513;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 26.264165,62.7824 L 46.764165,62.7824 L 46.764165,67.2824 L 44.764165,67.2824 L 44.764165,65.7824 L 40.264165,65.7824 L 40.264165,77.2824 L 44.764165,77.2824 L 44.764165,75.7824 L 46.764165,75.7824 L 46.764165,83.7824 L 44.764165,83.7824 L 44.764165,82.2824 L 40.264165,82.2824 L 40.264165,93.8869 L 44.764165,93.8869 L 44.764165,92.2824 L 46.764165,92.2824 L 46.764165,97.2824 L 26.264165,97.2824 L 26.264165,83.0324 L 24.014165,83.0324 L 24.014165,85.0324 L 21.264165,85.0324 L 21.264165,74.7824 L 24.014165,74.7824 L 24.014165,76.7824 L 26.264165,76.7824 L 26.264165,62.7824 z\" \n \ - id=\"path3132\" \n \ - style=\"fill:url(#linearGradient3255);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"21.014164\" \n \ - y=\"70.794121\" \n \ - id=\"text3134\" \n \ - style=\"font-size:6px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"34.014164\" \n \ - y=\"83.794121\" \n \ - id=\"tspan3136\" \n \ - style=\"font-size:11px\">+</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 26.264163,104.28331 L 46.764163,104.28331 L 46.764163,108.78331 L 44.764163,108.78331 L 44.764163,107.28331 L 40.264163,107.28331 L 40.264163,118.78331 L 44.764163,118.78331 L 44.764163,117.28331 L 46.764163,117.28331 L 46.764163,125.28331 L 44.764163,125.28331 L 44.764163,123.78331 L 40.264163,123.78331 L 40.264163,135.38781 L 44.764163,135.38781 L 44.764163,133.78331 L 46.764163,133.78331 L 46.764163,138.78331 L 26.264163,138.78331 L 26.264163,124.53331 L 24.014163,124.53331 L 24.014163,126.53331 L 21.264163,126.53331 L 21.264163,116.28331 L 24.014163,116.28331 L 24.014163,118.28331 L 26.264163,118.28331 L 26.264163,104.28331 z\" \n \ - id=\"path3441\" \n \ - style=\"fill:url(#linearGradient3271);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"21.014164\" \n \ - y=\"112.29504\" \n \ - id=\"text3443\" \n \ - style=\"font-size:6px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"34.014164\" \n \ - y=\"125.29504\" \n \ - id=\"tspan3445\" \n \ - style=\"font-size:11px\">x</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 91.61564,62.7824 L 112.24064,62.7824 L 112.24064,67.2824 L 110.11564,67.2824 L 110.11564,65.7824 L 105.61564,65.7824 L 105.61564,77.2824 L 110.11564,77.2824 L 110.11564,75.7824 L 112.24064,75.7824 L 112.24064,79.7824 L 121.74064,79.7824 L 121.74064,83.7824 L 119.74064,83.7824 L 119.74064,82.2824 L 115.24064,82.2824 L 115.24064,93.8869 L 119.74064,93.8869 L 119.74064,92.2824 L 121.74064,92.2824 L 121.74064,97.2824 L 91.61564,97.2824 L 91.61564,83.0324 L 89.36564,83.0324 L 89.36564,85.0324 L 86.61564,85.0324 L 86.61564,74.7824 L 89.36564,74.7824 L 89.36564,76.7824 L 91.61564,76.7824 L 91.61564,62.7824 z\" \n \ - id=\"path4413\" \n \ - style=\"fill:url(#linearGradient3263);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"90.365639\" \n \ - y=\"70.794121\" \n \ - id=\"text4415\" \n \ - style=\"font-size:6px;text-align:center;text-anchor:middle;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"103.36564\" \n \ - y=\"91.407402\" \n \ - id=\"tspan4417\" \n \ - style=\"font-size:11px;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none\">–</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 91.61564,104.28331 L 112.24064,104.28331 L 112.24064,108.78331 L 110.11564,108.78331 L 110.11564,107.28331 L 105.61564,107.28331 L 105.61564,118.78331 L 110.11564,118.78331 L 110.11564,117.28331 L 112.24064,117.28331 L 112.24064,121.28331 L 121.74064,121.28331 L 121.74064,125.28331 L 119.74064,125.28331 L 119.74064,123.78331 L 115.24064,123.78331 L 115.24064,135.38781 L 119.74064,135.38781 L 119.74064,133.78331 L 121.74064,133.78331 L 121.74064,138.78331 L 91.61564,138.78331 L 91.61564,124.53332 L 89.36564,124.53332 L 89.36564,126.53332 L 86.61564,126.53332 L 86.61564,116.28331 L 89.36564,116.28331 L 89.36564,118.28331 L 91.61564,118.28331 L 91.61564,104.28331 z\" \n \ - id=\"path4435\" \n \ - style=\"fill:url(#linearGradient3279);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"90.365639\" \n \ - y=\"112.29504\" \n \ - id=\"text4437\" \n \ - style=\"font-size:6px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"103.36564\" \n \ - y=\"132.90833\" \n \ - id=\"tspan4439\" \n \ - style=\"font-size:11px\">/</tspan> \n \ - </text> \n \ - <path \n \ - d=\"M 21.45166,145.78423 L 42.07666,145.78423 L 42.07666,150.28423 L 39.95166,150.28423 L 39.95166,148.78423 L 35.45166,148.78423 L 35.45166,160.28423 L 39.95166,160.28423 L 39.95166,158.78423 L 42.07666,158.78423 L 42.07666,162.78423 L 51.57666,162.78423 L 51.57666,166.78423 L 49.57666,166.78423 L 49.57666,165.28423 L 45.07666,165.28423 L 45.07666,176.88873 L 49.57666,176.88873 L 49.57666,175.28423 L 51.57666,175.28423 L 51.57666,180.28423 L 21.45166,180.28423 L 21.45166,166.03423 L 19.20166,166.03423 L 19.20166,168.03423 L 16.45166,168.03423 L 16.45166,157.78423 L 19.20166,157.78423 L 19.20166,159.78423 L 21.45166,159.78423 L 21.45166,145.78423 z\" \n \ - id=\"path4445\" \n \ - style=\"fill:url(#linearGradient3287);fill-opacity:1;stroke:#a000a0;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"20.449238\" \n \ - y=\"153.79596\" \n \ - id=\"text4447\" \n \ - style=\"font-size:6px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"33.449238\" \n \ - y=\"174.40924\" \n \ - id=\"tspan4449\" \n \ - style=\"font-size:10px\">" - - data10 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data3) - FILE.write(mystring4.encode("utf-8")) - FILE.write(data4) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data5) - FILE.write(mystring6.encode("utf-8")) - FILE.write(data6) - FILE.write(mystring7.encode("utf-8")) - FILE.write(data7) - FILE.write(mystring8.encode("utf-8")) - FILE.write(data8) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data9) - FILE.write(mystring10.encode("utf-8")) - FILE.write(data10) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/or.py b/svg/or.py deleted file mode 100755 index 90b33c7..0000000 --- a/svg/or.py +++ /dev/null @@ -1,97 +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 = "or" - 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 = _("or") - 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=\"92\" \n \ - height=\"46\" \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 \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(1.0000896,0,0,0.9890701,0.2458786,0.2513884)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a000a0;stroke-width:1.49184680000000003px;stroke-opacity:1;opacity:1\" \n \ - d=\"M 0.74592343,0.74592343 L 91.754077,0.74592343 L 91.754077,4.2076687 C 91.754077,4.2076687 79.069042,5.9236467 74,9 C 71.203841,10.696962 66.759508,15.097466 65.251702,18 C 64.484155,19.477532 64.087075,21.336249 64.151604,23 C 64.189862,23.986414 64.551215,26.149113 65.051684,27 C 67.351348,30.909843 70.1144,33.659607 74,36 C 78.30402,38.592418 91.754077,41.792331 91.754077,41.792331 L 91.754077,45.254077 L 0.74592343,45.254077 L 0.74592343,41.792331 C 0.74592343,41.792331 14.227222,39.463583 19.247581,36 C 22.495791,33.759036 26.081665,30.711113 27.348298,27 C 27.684138,26.016021 27.779735,23.994457 27.748342,23 C 27.71695,22.005542 27.616888,18.878752 27.248298,18 C 25.790481,14.524428 22.470929,10.998997 19.247581,9 C 14.258161,5.9057523 0.74592343,4.2076687 0.74592343,4.2076687 L 0.74592343,0.74592343 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"46\" \n \ - y=\"29\" \n \ - style=\"font-size:18px\">" - - 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() diff --git a/svg/pendown.py b/svg/pendown.py deleted file mode 100755 index 3987ef4..0000000 --- a/svg/pendown.py +++ /dev/null @@ -1,126 +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 = "pendown" - 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() - - mystring1 = _("pen down") - mygroup = "pen" - - print mystring1 - - 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=\"74\" \n \ - height=\"44\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,30 L 69.5,35 L 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 L 4.5,35 L 1,30 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"19\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"33\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/pengroup.py b/svg/pengroup.py deleted file mode 100755 index e435dd1..0000000 --- a/svg/pengroup.py +++ /dev/null @@ -1,947 +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 = "pengroup" - 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() - - mystring1 = _("Pen") - mystring2 = _("pen up") - mystring3 = _("pen down") - mystring4 = _("set pen size") - mystring5 = _("set color") - mystring6 = _("set shade") - mystring7 = _("fill screen") - mystring8 = _("pen size") - mystring9 = _("color") - mystring10 = _("shade") - mystring11 = _("set text size") - # mystring12 = _("set text color") - # mystring13 = _("text color") - mystring14 = _("text size") - mygroup = "pen" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - print mystring9 - print mystring10 - print mystring11 - # print mystring12 - # print mystring13 - print mystring14 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n\ -<!-- Created with Inkscape (http://www.inkscape.org/) -->\n\ -\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=\"145\"\n\ - height=\"500\"\n\ - id=\"svg2\">\n\ - <defs\n\ - id=\"defs4\">\n\ - <linearGradient\n\ - id=\"linearGradient3876\">\n\ - <stop\n\ - id=\"stop3878\"\n\ - style=\"stop-color:#ffffff;stop-opacity:1\"\n\ - offset=\"0\" />\n\ - <stop\n\ - id=\"stop3880\"\n\ - style=\"stop-color:#00ffff;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"18\"\n\ - y1=\"48\"\n\ - x2=\"67\"\n\ - y2=\"48\"\n\ - id=\"linearGradient4830\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"77\"\n\ - y1=\"48\"\n\ - x2=\"126\"\n\ - y2=\"48\"\n\ - id=\"linearGradient4838\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"95\"\n\ - x2=\"92\"\n\ - y2=\"95\"\n\ - id=\"linearGradient4846\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"147\"\n\ - x2=\"92\"\n\ - y2=\"147\"\n\ - id=\"linearGradient4854\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient4862\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"258\"\n\ - x2=\"92\"\n\ - y2=\"258\"\n\ - id=\"linearGradient4870\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"312\"\n\ - x2=\"107\"\n\ - y2=\"312\"\n\ - id=\"linearGradient4878\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,65)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient4886\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,61)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"362\"\n\ - x2=\"107\"\n\ - y2=\"362\"\n\ - id=\"linearGradient4894\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,57)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2501\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,95)\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"95\"\n\ - x2=\"92\"\n\ - y2=\"95\"\n\ - id=\"linearGradient2560\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"147\"\n\ - x2=\"92\"\n\ - y2=\"147\"\n\ - id=\"linearGradient2562\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2580\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2582\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2584\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,95)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2598\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"362\"\n\ - x2=\"107\"\n\ - y2=\"362\"\n\ - id=\"linearGradient2600\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"362\"\n\ - x2=\"107\"\n\ - y2=\"362\"\n\ - id=\"linearGradient2627\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2629\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"362\"\n\ - x2=\"107\"\n\ - y2=\"362\"\n\ - id=\"linearGradient2631\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2633\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2521\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2523\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2530\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"199\"\n\ - x2=\"92\"\n\ - y2=\"199\"\n\ - id=\"linearGradient2539\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"337\"\n\ - x2=\"107\"\n\ - y2=\"337\"\n\ - id=\"linearGradient2633-4\"\n\ - xlink:href=\"#linearGradient3876-7\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - id=\"linearGradient3876-7\">\n\ - <stop\n\ - id=\"stop3878-6\"\n\ - style=\"stop-color:#ffffff;stop-opacity:1\"\n\ - offset=\"0\" />\n\ - <stop\n\ - id=\"stop3880-5\"\n\ - style=\"stop-color:#00ffff;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"77\"\n\ - y1=\"48\"\n\ - x2=\"126\"\n\ - y2=\"48\"\n\ - id=\"linearGradient4087\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(2.054342,4)\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"95\"\n\ - x2=\"92\"\n\ - y2=\"95\"\n\ - id=\"linearGradient4096\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-33.8333,-2)\" />\n\ - <linearGradient\n\ - x1=\"18\"\n\ - y1=\"48\"\n\ - x2=\"67\"\n\ - y2=\"48\"\n\ - id=\"linearGradient4105\"\n\ - xlink:href=\"#linearGradient3876\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-8,4)\" />\n\ - </defs>\n\ - <path\n\ - d=\"m 0.5,0.5 0,485.5 3.1,6 4.9,4 6.7,3 113.8,0 6.8,-3 6,-4 2.7,-6 0,-485.5 -144,0 z\"\n\ - id=\"path32\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-29\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect40\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-27.799999\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect42\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-474.79999\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect44\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-473.5\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect46\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 80.9,486.4 c 0,4.5 -3.8,8.1 -8.4,8.1 -4.6,0 -8.4,-4.41 -8.4,-8.1 0,-4.5 3.8,-8.1 8.4,-8.1 4.6,0 8.4,3.6 8.4,8.1 l 0,0 z\"\n\ - id=\"path48\"\n\ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text50\"\n\ - style=\"font-size:12px;font-weight:bold;fill:#ffffff;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"491\"\n\ - id=\"tspan52\"\n\ - style=\"font-size:12px;font-weight:bold;fill:#ffffff\">X</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text54\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"21\"\n\ - id=\"tspan56\"\n\ - style=\"font-size:20px\">" - - data1 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"m 42,38 c 10,0 10,0 10,0 0,0 2.932088,1.720414 4,3 0.95517,1.144497 2,4 2,4 l 0,12 c 0,0 -0.945907,2.945907 -2,4 -1.054093,1.054093 -4,2 -4,2 l -11,0 0,0 0,3 -13,0 0,-3 -12,0 c 0,0 -2.126911,-1.17407 -3,-2 -1.210756,-1.145359 -3,-4 -3,-4 l 0,-12 c 0,0 1.419631,-2.919267 2.470149,-4.132463 C 13.462488,39.721531 16,38 16,38 l 11,0 0,3 15,0 0,-3 z\"\n\ - id=\"path60\"\n\ - style=\"fill:url(#linearGradient4105);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"-8\"\n\ - y=\"4\"\n\ - id=\"text49\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"35\"\n\ - y=\"49\"\n\ - id=\"tspan63\"\n\ - style=\"font-size:10px\">" - - data2 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - x=\"-8\"\n\ - y=\"4\"\n\ - id=\"text65\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"35\"\n\ - y=\"59\"\n\ - id=\"tspan67\"\n\ - style=\"font-size:10px\">" - - data3 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"m 111.05434,38 c 11,0 11,0 11,0 0,0 2.45058,1.535538 3.39739,2.602612 C 126.58219,41.876671 128.05434,45 128.05434,45 l 0,12 c 0,0 -1.78924,2.854641 -3,4 -0.87309,0.82593 -3,2 -3,2 l -12,0 0,0 0,3 -12.999998,0 0,-3 -11,0 c 0,0 -2.945907,-0.945907 -4,-2 -1.054093,-1.054093 -2,-4 -2,-4 l 0,-12 2,-4 4,-3 10,0 0,3 14.999998,0 0,-3 z\"\n\ - id=\"path71\"\n\ - style=\"fill:url(#linearGradient4087);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none\" />\n\ - <text\n\ - x=\"2.054342\"\n\ - y=\"4\"\n\ - id=\"text55\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"103.05434\"\n\ - y=\"49\"\n\ - id=\"tspan74\"\n\ - style=\"font-size:10px\">" - - data4 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - x=\"2.054342\"\n\ - y=\"4\"\n\ - id=\"text76\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"103.05434\"\n\ - y=\"59\"\n\ - id=\"tspan78\"\n\ - style=\"font-size:10px\">" - - data5 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"m 56.1667,83 11,0 0,4 -3,0 0,-2 -7,0\"\n\ - id=\"path82\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.00004995;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 56.1667,101 11,0 0,-4 -3,0 0,2 -7,0\"\n\ - id=\"path84\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.00004995;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 41.1667,74 c 11,0 11,0 11,0 0,0 2.126911,1.17407 3,2 1.210756,1.145359 3,4 3,4 l 0,23 c 0,0 -1.643072,3.27076 -2.735075,4.52985 C 54.50503,108.59822 52.1667,110 52.1667,110 l -12,0 0,0 0,2 -13,0 0,-2 -11,0 c 0,0 -2.932088,-1.72041 -4,-3 -0.95517,-1.1445 -2,-4 -2,-4 l 0,-23 c 0,0 0.945907,-2.945907 2,-4 1.054093,-1.054093 4,-2 4,-2 l 10,0 0,3 15,0 0,-3 z\"\n\ - id=\"path86\"\n\ - style=\"fill:url(#linearGradient4096);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none\" />\n\ - <text\n\ - x=\"-33.833302\"\n\ - y=\"-2\"\n\ - id=\"text88\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"34.166698\"\n\ - y=\"87\"\n\ - id=\"tspan90\"\n\ - style=\"font-size:10px\">" - - data6 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - x=\"-33.833302\"\n\ - y=\"-2\"\n\ - id=\"text69\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"34.166698\"\n\ - y=\"96\"\n\ - id=\"tspan93\"\n\ - style=\"font-size:10px\">" - - data7 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - x=\"-33.833302\"\n\ - y=\"-2\"\n\ - id=\"text95\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"34.166698\"\n\ - y=\"106\"\n\ - id=\"tspan97\"\n\ - style=\"font-size:10px\">" - - data8 = \ -"</tspan>\n\ - </text>\n\ - <g\n\ - transform=\"translate(-34,-8)\"\n\ - id=\"g99\">\n\ - <path\n\ - d=\"m 90,137 11,0 0,4 -3,0 0,-2 -7,0\"\n\ - id=\"path101\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 90,155 11,0 0,-4 -3,0 0,2 -7,0\"\n\ - id=\"path103\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 75,128 c 11,0 11,0 11,0 0,0 2.126911,1.17407 3,2 1.210756,1.14536 3,4 3,4 l 0,23 c 0,0 -1.378146,3.1383 -2.470149,4.39739 C 88.603256,162.46576 86,164 86,164 l -12,0 0,0 0,2 -13,0 0,-2 -11,0 c 0,0 -2.932088,-1.72041 -4,-3 -0.95517,-1.1445 -2,-4 -2,-4 l 0,-23 c 0,0 0.945907,-2.94591 2,-4 1.054093,-1.05409 4,-2 4,-2 l 10,0 0,3 15,0 0,-3 z\"\n\ - id=\"path105\"\n\ - style=\"fill:url(#linearGradient2562);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text79\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"145\"\n\ - id=\"tspan108\"\n\ - style=\"font-size:11px\">" - - data9 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text83\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"158\"\n\ - id=\"tspan111\"\n\ - style=\"font-size:11px\">" - - data10 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(35.887642,-42)\"\n\ - id=\"g113\">\n\ - <path\n\ - d=\"m 90,171 11,0 0,4 -3,0 0,-2 -7,0\"\n\ - id=\"path115\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 90,189 11,0 0,-4 -3,0 0,2 -7,0\"\n\ - id=\"path117\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 75,162 c 11,0 11,0 11,0 0,0 2.656762,1.439 3.529851,2.26493 C 90.740607,165.41029 92,168 92,168 l 0,23 c 0,0 -1.245683,3.40322 -2.337686,4.66231 C 88.735719,196.73068 86,198 86,198 l -12,0 0,0 0,2 -13,0 0,-2 -11,0 c 0,0 -2.932088,-1.72041 -4,-3 -0.95517,-1.1445 -2,-4 -2,-4 l 0,-23 c 0,0 0.945907,-2.94591 2,-4 1.054093,-1.05409 4,-2 4,-2 l 10,0 0,3 15,0 0,-3 z\"\n\ - id=\"path119\"\n\ - style=\"fill:url(#linearGradient2539);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text93\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"177\"\n\ - id=\"tspan95\"\n\ - style=\"font-size:11px\">" - - data11 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text97\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"190\"\n\ - id=\"tspan99\"\n\ - style=\"font-size:11px\">" - - data12 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(0,-66)\"\n\ - id=\"g125\">\n\ - <path\n\ - d=\"m 89,260 11,0 0,4 -2,0 0,-2 -7,0\"\n\ - id=\"path127\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 89,278 11,0 0,-4 -2,0 0,2 -7,0\"\n\ - id=\"path129\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 90,235 11,0 0,4 -3,0 0,-2 -7,0\"\n\ - id=\"path131\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 90,253 11,0 0,-4 -3,0 0,2 -7,0\"\n\ - id=\"path133\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 75,232 c 11,0 11,0 11,0 l 3,2 3,4 0,38 -3,3 -3,3 -12,0 0,0 0,2 -13,0 0,-2 -11,0 -4,-3 -2,-3 0,-38 2,-4 4,-2 10,0 0,3 15,0 0,-3 z\"\n\ - id=\"path135\"\n\ - style=\"fill:url(#linearGradient4870);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text111\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"255\"\n\ - id=\"tspan113\"\n\ - style=\"font-size:11px\">" - - data13 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text115\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"268\"\n\ - id=\"tspan117\"\n\ - style=\"font-size:11px\">" - - data14 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text119\"\n\ - style=\"font-size:12px;text-align:end;text-anchor:end;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"91\"\n\ - y=\"243\"\n\ - id=\"tspan121\"\n\ - style=\"font-size:8px\">" - - data15 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text123\"\n\ - style=\"font-size:12px;text-align:end;text-anchor:end;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"91\"\n\ - y=\"277\"\n\ - id=\"tspan125\"\n\ - style=\"font-size:8px\">" - - data16 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(0,-136)\"\n\ - id=\"g145\">\n\ - <path\n\ - d=\"m 37,372 4,0 0,2 4,0 0,-2 62,0 0,13 -62,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path147\"\n\ - style=\"fill:url(#linearGradient4878);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"4\"\n\ - y=\"65\"\n\ - id=\"text149\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"76\"\n\ - y=\"381\"\n\ - id=\"tspan151\"\n\ - style=\"font-size:10.5px\">" - - data17 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(0,-136)\"\n\ - id=\"g153\">\n\ - <path\n\ - d=\"m 37,393 4,0 0,2 4,0 0,-2 62,0 0,13 -62,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155\"\n\ - style=\"fill:url(#linearGradient2633);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"4\"\n\ - y=\"61\"\n\ - id=\"text157\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"76\"\n\ - y=\"402\"\n\ - id=\"tspan159\"\n\ - style=\"font-size:10.5px\">" - - data18 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(0,-135)\"\n\ - id=\"g161\">\n\ - <path\n\ - d=\"m 37,413 4,0 0,3 4,0 0,-3 62,0 0,14 -62,0 0,-3 -4,0 0,3 -4,0 0,-14 z\"\n\ - id=\"path163\"\n\ - style=\"fill:url(#linearGradient2631);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"4\"\n\ - y=\"57\"\n\ - id=\"text165\"\n\ - style=\"font-size:10px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"76\"\n\ - y=\"423\"\n\ - id=\"tspan167\"\n\ - style=\"font-size:10.5px\">" - - data19 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(35.887642,-226.1667)\"\n\ - id=\"g169\">\n\ - <path\n\ - d=\"m 90,309 11,0 0,4 -2,0 0,-2 -8,0\"\n\ - id=\"path171\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none\" />\n\ - <path\n\ - d=\"m 90,327 11,0 0,-4 -2,0 0,2 -8,0\"\n\ - id=\"path173\"\n\ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none\" />\n\ - <path\n\ - d=\"m 75,300 c 11,0 11,0 11,0 0,0 2.945907,0.94591 4,2 1.054093,1.05409 2,4 2,4 l 0,23 c 0,0 -1.04483,2.8555 -2,4 -1.067912,1.27959 -4,3 -4,3 l -11,0 0,0 0,3 -14,0 0,-3 -11,0 c 0,0 -2.932088,-1.72041 -4,-3 -0.95517,-1.1445 -2,-4 -2,-4 l 0,-23 c 0,0 0.945907,-2.94591 2,-4 1.054093,-1.05409 4,-2 4,-2 l 11,0 0,3 14,0 0,-3 z\"\n\ - id=\"path175\"\n\ - style=\"fill:url(#linearGradient2584);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none\" />\n\ - <text\n\ - id=\"text177\"\n\ - style=\"font-size:10px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"314\"\n\ - id=\"tspan179\"\n\ - style=\"font-size:10.5px\">" - - data20 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text181\"\n\ - style=\"font-size:10.5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"323\"\n\ - id=\"tspan183\"\n\ - style=\"font-size:10.5px\">" - - data21 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text185\"\n\ - style=\"font-size:10.5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"332\"\n\ - id=\"tspan187\"\n\ - style=\"font-size:10.5px\">" - - data22 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(0,-156)\"\n\ - id=\"g217\">\n\ - <path\n\ - d=\"m 37,456 4,0 0,3 4,0 0,-3 62,0 0,14 -62,0 0,-3 -4,0 0,3 -4,0 0,-14 z\"\n\ - id=\"path219\"\n\ - style=\"fill:url(#linearGradient2627);fill-opacity:1;stroke:#00a0a0;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text221\"\n\ - style=\"font-size:10.5px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"76\"\n\ - y=\"466\"\n\ - id=\"tspan223\"\n\ - style=\"font-size:10.5px\">" - - data23 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <path\n\ - d=\"m 37.5,371.92597 4,0 0,2 4,0 0,-2 62,0 0,13 -62,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9\"\n\ - style=\"fill:#ffff00;fill-opacity:1;stroke:#ffff00;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.499995,391.09974 4,0 0,2 4,0 0,-2 62.000015,0 0,13 -62.000015,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-4\"\n\ - style=\"fill:#00ff00;fill-opacity:1;stroke:#00ff00;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.499995,411.12887 4,0 0,2 4,0 0,-2 62.000015,0 0,13 -62.000015,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-5\"\n\ - style=\"fill:#00ffff;fill-opacity:1;stroke:#00ffff;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.499995,430.30264 4,0 0,2 4,0 0,-2 62.000015,0 0,13 -62.000015,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-4-2\"\n\ - style=\"fill:#0000ff;fill-opacity:1;stroke:#0000ff;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.499995,450.84918 4,0 0,2 4,0 0,-2 62.000015,0 0,13 -62.000015,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-47\"\n\ - style=\"fill:#ff00ff;fill-opacity:1;stroke:#ff00ff;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.5,331.07232 4,0 0,2 4,0 0,-2 62,0 0,13 -62,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-4-0\"\n\ - style=\"fill:#ff0000;fill-opacity:1;stroke:#ff0000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"m 37.5,351.10145 4,0 0,2 4,0 0,-2 62,0 0,13 -62,0 0,-3 -4,0 0,3 -4,0 0,-13 z\"\n\ - id=\"path155-9-5-7\"\n\ - style=\"fill:#ff8000;fill-opacity:1;stroke:#ff8000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-323.66998\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect40-8\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-322.47\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect42-6\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-226.66998\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect40-8-9\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-225.47\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect42-6-2\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ -</svg>\n" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - strings = mystring2.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - strings = mystring3.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data4) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data5) - strings = mystring4.split(" ",3) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data6) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data7) - if len(strings) > 2: - FILE.write(strings[2].encode("utf-8")) - FILE.write(data8) - strings = mystring5.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data9) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data10) - strings = mystring6.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data11) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data12) - strings = mystring7.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data13) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data14) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data15) - FILE.write(mystring10.encode("utf-8")) - FILE.write(data16) - FILE.write(mystring8.encode("utf-8")) - FILE.write(data17) - FILE.write(mystring14.encode("utf-8")) - FILE.write(data18) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data19) - strings = mystring11.split(" ",3) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data20) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data21) - if len(strings) > 2: - FILE.write(strings[2].encode("utf-8")) - FILE.write(data22) - FILE.write(mystring10.encode("utf-8")) - FILE.write(data23) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/pensize.py b/svg/pensize.py deleted file mode 100755 index 82d8c60..0000000 --- a/svg/pensize.py +++ /dev/null @@ -1,97 +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 = "pensize" - 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 = _("pen size") - mygroup = "pen" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \n \ - <defs \n \ - id=\"defs5\"> \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"56\" \n \ - y=\"15.5\" \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/penup.py b/svg/penup.py deleted file mode 100755 index e5d1268..0000000 --- a/svg/penup.py +++ /dev/null @@ -1,126 +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 = "penup" - 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() - - mystring1 = _("pen up") - mygroup = "pen" - - print mystring1 - - 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=\"74\" \n \ - height=\"44\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,30 L 69.5,35 L 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 L 4.5,35 L 1,30 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"19\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"33\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/pop.py b/svg/pop.py deleted file mode 100755 index d1474aa..0000000 --- a/svg/pop.py +++ /dev/null @@ -1,105 +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 = "pop" - 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 = _("pop") - 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/print.py b/svg/print.py deleted file mode 100755 index 8bda1dc..0000000 --- a/svg/print.py +++ /dev/null @@ -1,102 +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 = "print" - 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 = _("print") - 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=\"87\" \n \ - height=\"44\"> \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 \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#e000e0;fill-opacity:1;stroke:#800080;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#e000e0;fill-opacity:1;stroke:#800080;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a000a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:16px;;font-family:Bitstream Vera Sans\">" - - 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/printheap.py b/svg/printheap.py deleted file mode 100755 index 66991b0..0000000 --- a/svg/printheap.py +++ /dev/null @@ -1,125 +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 = "printheap" - 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 = _("show heap") - mygroup = "sensors" - - 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=\"87\" \n \ - height=\"60\" \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:#ff0000;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c00000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:18px;\">" - - data1c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data2 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - strings = mystring.split(" ",2) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data1c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data2) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/push.py b/svg/push.py deleted file mode 100755 index 63cac84..0000000 --- a/svg/push.py +++ /dev/null @@ -1,104 +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 = "push" - 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 = _("push") - mygroup = "sensors" - - 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=\"87\" \n \ - height=\"44\"> \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:#ff0000;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a00000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:16px;;font-family:Bitstream Vera Sans\">" - - 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/random.py b/svg/random.py deleted file mode 100755 index e06a785..0000000 --- a/svg/random.py +++ /dev/null @@ -1,135 +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 = "random" - 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 = _("random") - 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=\"280\" \n \ - height=\"48\" \n \ - version=\"1.0\"> \n \ - <defs> \n \ - <linearGradient \n \ - inkscape:collect=\"always\" \n \ - id=\"linearGradient3164\"> \n \ - <stop \n \ - style=\"stop-color:#ffffff;stop-opacity:1;\" \n \ - offset=\"0\" \n \ - id=\"stop3166\" /> \n \ - <stop \n \ - style=\"stop-color:#ff00ff;stop-opacity:0;\" \n \ - offset=\"1\" \n \ - id=\"stop3168\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - inkscape:collect=\"always\" \n \ - xlink:href=\"#linearGradient3164\" \n \ - id=\"linearGradient3170\" \n \ - x1=\"0\" \n \ - y1=\"19.625\" \n \ - x2=\"320.75\" \n \ - y2=\"19.625\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - y2=\"21\" \n \ - x2=\"104\" \n \ - y1=\"0\" \n \ - x1=\"0\" \n \ - id=\"linearGradient3172\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientTransform=\"matrix(1.0139238,0,0,1.0946487,31.741439,7.7561892)\" /> \n \ - <linearGradient \n \ - id=\"linearGradient3166\"> \n \ - <stop \n \ - id=\"stop3259\" \n \ - offset=\"0\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1;\" /> \n \ - <stop \n \ - id=\"stop3170\" \n \ - offset=\"1\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:1;\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - inkscape:collect=\"always\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3258\" \n \ - x1=\"0.11728395\" \n \ - y1=\"24.646091\" \n \ - x2=\"279.92386\" \n \ - y2=\"24.646091\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(0.9988917,0,0,1.0043477,0.1346121,-0.7532427)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3258);fill-opacity:1;stroke:#a000a0;stroke-width:1.50242388;stroke-opacity:1\" \n \ - d=\"M 259.347,0.75327866 L 22.332204,0.5 C 22.332204,0.5 18.149147,2.8777213 16.783263,4.2670459 C 15.698976,5.3699403 14.110875,8.604136 14.110875,8.604136 L 14.110875,21.830113 L 6.7116766,22.036769 L 6.5061433,18.523618 L 0.5,18.316963 L 0.5,39.395864 L 6.3006101,39.395864 L 6.5061433,35.056091 L 14.110875,35.262746 L 13.905341,43.11567 C 13.905341,43.11567 15.512344,45.123208 16.372196,45.798617 C 17.202851,46.451092 19.45474,47.5 19.45474,47.5 L 267,47.5 L 267,38.775896 L 279.5,38.362584 L 279.5,19.556898 L 267,19.556898 L 267,7.9841684 C 267,7.9841684 265.35487,5.2704925 264.4504,4.2643623 C 263.36589,3.0579557 260.33973,0.75121216 260.33973,0.75121216 L 259.347,0.75327866 L 259.347,0.5\" /> \n \ - <path \n \ - d=\"M 28.755364,18.553513 L 33.824984,18.553513 L 33.824984,22.932108 L 40.922451,22.932108 L 40.922451,18.553513 L 133.69649,18.553513 L 133.69649,40.446487 L 40.922451,40.446487 L 40.922451,36.067892 L 33.824984,36.067892 L 33.824984,40.446487 L 28.755364,40.446487 L 28.755364,18.553513 z\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 151.95547,18.553513 L 157.02509,18.553513 L 157.02509,22.932108 L 164.12256,22.932108 L 164.12256,18.553513 L 256,18.553513 L 256,40.446487 L 164.12256,40.446487 L 164.12256,36.067892 L 157.02509,36.067892 L 157.02509,40.446487 L 151.95547,40.446487 L 151.95547,18.553513 z\" \n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a000a0;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"140\" \n \ - y=\"15.5\" \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() 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() diff --git a/svg/remainder2.py b/svg/remainder2.py deleted file mode 100755 index 4151d46..0000000 --- a/svg/remainder2.py +++ /dev/null @@ -1,154 +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 = "remainder2" - 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 \ -<!-- 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=\"71.75\" \n \ - height=\"70.5\" \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:#ff00ff;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"-0.25\" \n \ - y1=\"18.5\" \n \ - x2=\"52.25\" \n \ - y2=\"18.5\" \n \ - id=\"linearGradient3173\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \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 \ - gradientTransform=\"translate(-0.2720588,8.0000002)\" /> \n \ - <linearGradient \n \ - id=\"linearGradient2480\"> \n \ - <stop \n \ - id=\"stop2482\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop2484\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"-0.25\" \n \ - y1=\"18.5\" \n \ - x2=\"52.25\" \n \ - y2=\"18.5\" \n \ - id=\"linearGradient2490\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(1.78e-7,29.691177)\" /> \n \ - <linearGradient \n \ - x1=\"-0.25\" \n \ - y1=\"18.5\" \n \ - x2=\"52.25\" \n \ - y2=\"18.5\" \n \ - id=\"linearGradient2493\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(8.8e-8,33.25)\" /> \n \ - <linearGradient \n \ - x1=\"-0.25\" \n \ - y1=\"18.5\" \n \ - x2=\"52.25\" \n \ - y2=\"18.5\" \n \ - id=\"linearGradient2495\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(0.25,0.25)\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 10.75,0.75 L 52,0.75 L 52,9.75 L 47.75,9.75 L 47.75,6.75 L 38.75,6.75 L 38.75,29.75 L 47.75,29.75 L 47.75,26.75 L 52,26.75 L 52,34.75 L 71,34.75 L 71,42.75 L 67,42.75 L 67,39.75 L 58,39.75 L 58,62.959 L 67,62.959 L 67,59.75 L 71,59.75 L 71,69.75 L 10.75,69.75 L 10.75,41.25 L 6.25,41.25 L 6.25,45.25 L 0.75,45.25 L 0.75,24.75 L 6.25,24.75 L 6.25,28.75 L 10.75,28.75 L 10.75,0.75 z\" \n \ - id=\"path10\" \n \ - style=\"fill:url(#linearGradient2495);fill-opacity:1;stroke:#a000a0;stroke-width:1.5px;stroke-opacity:1\" /> \n \ - <text \n \ - x=\"8.25\" \n \ - y=\"16.773438\" \n \ - id=\"text12\" \n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"34.25\" \n \ - y=\"58\" \n \ - id=\"tspan14\" \n \ - style=\"font-size:18px\">" - - 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/repeat.py b/svg/repeat.py deleted file mode 100755 index 5310b19..0000000 --- a/svg/repeat.py +++ /dev/null @@ -1,97 +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 = "repeat" - 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 = _("repeat") - mygroup = "flow" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"170\" \n \ - height=\"95\" \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(9.39087e-2,-0.2031988)\" /> \n \ - </defs> \n \ - <path \n \ - style=\"opacity:1;fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64.187817,1 64.187817,1 C 64.187817,1 67.093036,1.8126092 68.09137,2.6369032 C 69.004632,3.3909562 70.572334,5.3908629 70.572334,5.3908629 L 98,5.6954315 L 98,11 L 93.51841,11 L 93.263659,8 L 85,8 L 85,31 L 93.310656,31 L 93.360477,28 L 98,28 L 98,41 L 170,41 L 170,53 L 164.5996,52.913706 C 164.5996,52.913706 163.3287,50.514626 162.35627,49.771977 C 161.2959,48.962173 159,48 159,48 L 142,48 L 142,53 L 122,53 L 122,48 L 103,48 C 103,48 99.722895,50.806066 98.5,52 C 97.017521,53.447372 95,56.347563 95,56.347563 L 95,81 L 75.204118,80.90405 C 75.204118,80.90405 73.24214,85.39853 71.78641,86.85394 C 70.354258,88.28578 65.932154,90 65.932154,90 L 47,90 L 47,94 L 28,94 L 28,90 L 10.924831,90 C 10.924831,90 6.228383,88.0831 4.6063009,86.53995 C 3.3197278,85.31599 1,81.54299 1,81.54299 L 1,10.796801 C 1,10.796801 3.196437,6.3426262 4.5939087,4.7968012 C 5.9621108,3.2833542 10.093909,1 10.093909,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\" \n \ - id=\"text2553\"><tspan \n \ - x=\"37\" \n \ - y=\"27.5\" \n \ - style=\"font-size:18px;\">" - - 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() diff --git a/svg/right.py b/svg/right.py deleted file mode 100755 index cbc113c..0000000 --- a/svg/right.py +++ /dev/null @@ -1,102 +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 = "right" - 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 = _("right") - mygroup = "turtle" - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/rightpos.py b/svg/rightpos.py deleted file mode 100755 index b942e13..0000000 --- a/svg/rightpos.py +++ /dev/null @@ -1,104 +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 = "rightpos" - 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 = _("right") - 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/scale.py b/svg/scale.py deleted file mode 100755 index 954cd77..0000000 --- a/svg/scale.py +++ /dev/null @@ -1,96 +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 = "scale" - 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 = _("scale") - mygroup = "turtle" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"54\" \n \ - y=\"15.5\" \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/sensorsgroup.py b/svg/sensorsgroup.py deleted file mode 100755 index 6df6fda..0000000 --- a/svg/sensorsgroup.py +++ /dev/null @@ -1,759 +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 = "sensorsgroup" - 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() - - mystring1 = _("Extras") - mystring2 = _("read key") - mystring3 = _("keyboard") - mystring4 = _("width") - mystring5 = _("height") - mystring6 = _("pop") - mystring7 = _("show heap") - mystring8 = _("empty heap") - mystring9 = _("push") - mystring10 = _("left") - mystring11 = _("top") - mystring12 = _("right") - mystring13 = _("bottom") - mygroup = "sensors" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - print mystring9 - print mystring10 - print mystring11 - print mystring12 - print mystring13 - - - 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=\"145\"\n\ - height=\"500\"\n\ - id=\"svg2\">\n\ - <defs\n\ - id=\"defs4\">\n\ - <linearGradient\n\ - id=\"linearGradient3712\">\n\ - <stop\n\ - id=\"stop3714\"\n\ - style=\"stop-color:#ffffff;stop-opacity:1\"\n\ - offset=\"0\" />\n\ - <stop\n\ - id=\"stop3716\"\n\ - style=\"stop-color:#ff0000;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"69\"\n\ - y1=\"226\"\n\ - x2=\"140\"\n\ - y2=\"226\"\n\ - id=\"linearGradient2431\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524281,-133.82775)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3208\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,47.71,36.248183)\" />\n\ - <linearGradient\n\ - x1=\"69\"\n\ - y1=\"226\"\n\ - x2=\"140\"\n\ - y2=\"226\"\n\ - id=\"linearGradient2505\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524278,106.11408)\" />\n\ - <linearGradient\n\ - x1=\"69.85585\"\n\ - y1=\"226.65366\"\n\ - x2=\"140.1927\"\n\ - y2=\"226.65366\"\n\ - id=\"linearGradient2507\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524276,132.44905)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient2513\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.5,0,0,0.5,34.0625,146.60834)\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3199\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3209\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3213\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3219\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3222\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"34.0625\"\n\ - y1=\"156.60834\"\n\ - x2=\"110.9375\"\n\ - y2=\"156.60834\"\n\ - id=\"linearGradient3225\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3318\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,15.710001,283.04264)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3320\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,77.710001,282.90001)\" />\n\ - <linearGradient\n\ - x1=\"69\"\n\ - y1=\"226\"\n\ - x2=\"140\"\n\ - y2=\"226\"\n\ - id=\"linearGradient3322\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-33.02428,30.4667)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3452\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,43.3125,226.87273)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3338\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,43.33,112.19)\" />\n\ - <linearGradient\n\ - x1=\"69\"\n\ - y1=\"226\"\n\ - x2=\"140\"\n\ - y2=\"226\"\n\ - id=\"linearGradient3510\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524279,130.83345)\" />\n\ - <linearGradient\n\ - x1=\"69.85585\"\n\ - y1=\"226.65366\"\n\ - x2=\"140.1927\"\n\ - y2=\"226.65366\"\n\ - id=\"linearGradient3512\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524276,196.22361)\" />\n\ - <linearGradient\n\ - x1=\"69\"\n\ - y1=\"226\"\n\ - x2=\"140\"\n\ - y2=\"226\"\n\ - id=\"linearGradient3514\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524279,174.35571)\" />\n\ - <linearGradient\n\ - x1=\"69.85585\"\n\ - y1=\"226.65366\"\n\ - x2=\"140.1927\"\n\ - y2=\"226.65366\"\n\ - id=\"linearGradient3516\"\n\ - xlink:href=\"#linearGradient3712\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-32.524276,152.70135)\" />\n\ - </defs>\n\ - <path\n\ - d=\"M 0.4344301,0.5 L 0.37211997,486.41023 L 3.4959793,493.14297 L 8.369839,497.1072 L 15.031388,499.50288 L 128.8563,499.50288 L 135.70478,496.93866 L 141.65403,492.04729 L 144.37788,483.79171 L 144.41557,0.5 L 0.4344301,0.5 z\"\n\ - id=\"path23\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1px;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 79.5,438.375 C 79.5,442.86231 75.750385,446.5 71.125,446.5 C 66.499615,446.5 62.75,442.86231 62.75,438.375 C 62.75,433.88769 66.499615,430.25 71.125,430.25 C 75.750385,430.25 79.5,433.88769 79.5,438.375 L 79.5,438.375 z\"\n\ - transform=\"translate(1.375,47.250977)\"\n\ - id=\"path39\"\n\ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text41\"\n\ - style=\"font-size:12px;font-variant:normal;font-weight:bold;text-align:start;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-opacity:1;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"490\"\n\ - id=\"tspan43\"\n\ - style=\"font-size:12px\">X</tspan>\n\ - </text>\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-28.9\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect15\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-27.8\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect17\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-340.7\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect19\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-339.4\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect4001\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text28\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"21.5\"\n\ - id=\"tspan30\"\n\ - style=\"font-size:20px\">" - - data1 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 79.87,36.918183 C 90.59,36.918183 90.59,36.918183 90.59,36.918183 L 94.275,39.598183 L 96.62,43.618183 L 96.62,66.398183 L 94.275,70.418183 L 90.59,73.098183 L 79.2,73.098183 L 79.2,73.098183 L 79.2,75.778183 L 65.8,75.778183 L 65.8,73.098183 L 54.41,73.098183 L 50.725,70.418183 L 48.38,66.398183 L 48.38,43.618183 L 50.725,39.598183 L 54.41,36.918183 L 65.13,36.918183 L 65.13,40.268183 L 79.87,40.268183 L 79.87,36.918183 z\"\n\ - id=\"path10\"\n\ - style=\"fill:url(#linearGradient3208);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:8.03999996px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n " - - data2a = \ -"<tspan\n\ - x=\"72.\"\n\ - y=\"60.\"\n\ - id=\"tspan14\"\n\ - style=\"font-size:12.06000042px\">" - - data2b = \ -"<tspan\n\ - x=\"72.\"\n\ - y=\"54.\"\n\ - id=\"tspan14\"\n\ - style=\"font-size:12.06000042px\">" - - data3b = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - style=\"font-size:8.03999996px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.\"\n\ - y=\"67.\"\n\ - id=\"tspan18\"\n\ - style=\"font-size:12.06000042px\">" - - data4 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 37.998269,86.158913 L 41.33177,86.158913 L 41.33177,88.825713 L 45.998669,88.825713 L 45.998669,86.158913 L 107.00173,86.158913 L 107.00173,99.492913 L 45.998669,99.492913 L 45.998669,96.826113 L 41.33177,96.826113 L 41.33177,99.492913 L 37.998269,99.492913 L 37.998269,86.158913 z\"\n\ - id=\"path2425\"\n\ - style=\"fill:url(#linearGradient2431);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"96.\"\n\ - id=\"tspan2429\"\n\ - style=\"font-size:11px\">" - - data5 = \ -"</tspan>\n\ - </text>\n\ - <g\n\ - transform=\"translate(-1e-6,111.5)\"\n\ - id=\"g2492\">\n\ - <path\n\ - d=\"M 37.998272,326.10074 L 41.331772,326.10074 L 41.331772,328.76753 L 45.998672,328.76753 L 45.998672,326.10074 L 107.00173,326.10074 L 107.00173,339.43473 L 45.998672,339.43473 L 45.998672,336.76793 L 41.331772,336.76793 L 41.331772,339.43473 L 37.998272,339.43473 L 37.998272,326.10074 z\"\n\ - id=\"path2435\"\n\ - style=\"fill:url(#linearGradient2505);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.\"\n\ - y=\"336\"\n\ - id=\"tspan2439\"\n\ - style=\"font-size:11px\">" - - data6 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(-5e-7,105.9)\"\n\ - id=\"g2497\">\n\ - <path\n\ - d=\"M 37.998271,352.4357 L 41.331771,352.4357 L 41.331771,355.1025 L 45.998671,355.1025 L 45.998671,352.4357 L 107.00173,352.4357 L 107.00173,365.7697 L 45.998671,365.7697 L 45.998671,363.1029 L 41.331771,363.1029 L 41.331771,365.7697 L 37.998271,365.7697 L 37.998271,352.4357 z\"\n\ - id=\"path2429\"\n\ - style=\"fill:url(#linearGradient2507);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"362.\"\n\ - id=\"tspan2433\"\n\ - style=\"font-size:11px\">" - - data7 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-108.\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect2656\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-107.\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect2658\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 102.1875,149.98334 L 110.4375,149.98334 L 110.4375,152.98334 L 108.4375,152.98334 L 108.4375,151.48334 L 103.1875,151.48334\"\n\ - id=\"path2493\"\n\ - style=\"fill:url(#linearGradient3225);fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 102.1875,163.73334 L 110.4375,163.73334 L 110.4375,160.73334 L 108.4375,160.73334 L 108.4375,162.23334 L 103.1875,162.23334\"\n\ - id=\"path2495\"\n\ - style=\"fill:url(#linearGradient3222);fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 63.3125,147.10834 C 71.3125,147.10834 99.8125,147.10834 99.8125,147.10834 C 99.8125,147.10834 101.8784,148.35162 102.5625,149.10834 C 103.26124,149.88125 104.3125,152.10834 104.3125,152.10834 L 104.3125,161.60834 C 104.3125,161.60834 103.20397,163.45517 102.5625,164.10834 C 101.84772,164.83615 99.8125,166.10834 99.8125,166.10834 L 63.3125,166.10834 L 63.3125,166.10834 L 53.3125,166.10834 L 44.8125,166.10834 C 44.8125,166.10834 42.777281,165.22627 42.0625,164.49846 C 41.421025,163.84529 40.3125,162.60834 40.3125,162.60834 L 40.181985,160.60834 L 36.8125,160.60834 L 36.8125,162.60834 L 34.5625,162.60834 L 34.5625,152.60834 L 36.8125,152.60834 L 36.8125,154.60834 L 40.3125,154.60834 L 40.3125,152.10834 C 40.3125,152.10834 41.363764,149.88125 42.0625,149.10834 C 42.746601,148.35162 44.8125,147.10834 44.8125,147.10834 L 53.3125,147.10834 L 63.3125,147.10834 z\"\n\ - id=\"path2653\"\n\ - style=\"fill:url(#linearGradient3219);fill-opacity:1;stroke:#a00000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 46.3125,152.60834 L 48.8125,152.60834 L 48.8125,154.60834 L 52.3125,154.60834 L 52.3125,152.60834 L 98.062505,152.60834 L 98.062505,162.60834 L 52.3125,162.60834 L 52.3125,160.60834 L 48.8125,160.60834 L 48.8125,162.60834 L 46.3125,162.60834 L 46.3125,152.60834 z\"\n\ - id=\"path9\"\n\ - style=\"fill:#ffffff;fill-opacity:1;stroke:#a00000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"160.7\"\n\ - id=\"tspan2696\"\n\ - style=\"font-size:11px;fill:#000000;fill-opacity:1\">x</tspan>\n\ - </text>\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-219.6\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect3247\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.75\"\n\ - y=\"-218.\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect3249\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <g\n\ - transform=\"translate(0,14)\"\n\ - id=\"g3283\">\n\ - <path\n\ - d=\"M 37.498269,250.45337 L 40.83177,250.45337 L 40.83177,253.12016 L 45.498669,253.12016 L 45.498669,250.45337 L 106.50173,250.45337 L 106.50173,263.78737 L 45.498669,263.78737 L 45.498669,261.12056 L 40.83177,261.12056 L 40.83177,263.78737 L 37.498269,263.78737 L 37.498269,250.45337 z\"\n\ - id=\"path3261\"\n\ - style=\"fill:url(#linearGradient3322);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"260\"\n\ - id=\"tspan3265\"\n\ - style=\"font-size:11px\">" - - data8 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(1,4)\"\n\ - id=\"g3304\">\n\ - <g\n\ - transform=\"translate(0,-0.14263)\"\n\ - id=\"g3288\">\n\ - <path\n\ - d=\"M 47.87,283.71263 C 58.590001,283.71263 58.590001,283.71263 58.590001,283.71263 L 62.275001,286.39263 L 64.620001,290.41264 L 64.620001,313.19263 L 62.275001,317.21263 L 58.590001,319.89263 L 47.200001,319.89263 L 47.200001,319.89263 L 47.200001,322.57263 L 33.8,322.57263 L 33.8,319.89263 L 22.41,319.89263 L 18.725001,317.21263 L 16.38,313.19263 L 16.38,290.41264 L 18.725001,286.39263 L 22.41,283.71263 L 33.13,283.71263 L 33.13,287.06264 L 47.87,287.06264 L 47.87,283.71263 z\"\n\ - id=\"path3251\"\n\ - style=\"fill:url(#linearGradient3318);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n" - - data9a = \ -" <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"40\"\n\ - y=\"307\"\n\ - id=\"tspan3255\"\n\ - style=\"font-size:12px\">" - - data9b = \ -" <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"40\"\n\ - y=\"301\"\n\ - id=\"tspan3255\"\n\ - style=\"font-size:12px\">" - - data10b = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"40\"\n\ - y=\"313.8\"\n\ - id=\"tspan3259\"\n\ - style=\"font-size:12px\">" - - data11 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - id=\"g3295\">\n\ - <path\n\ - d=\"M 109.87,283.57 C 120.59,283.57 120.59,283.57 120.59,283.57 L 124.275,286.25 L 126.62,290.27001 L 126.62,313.05 L 124.275,317.07 L 120.59,319.75 L 109.2,319.75 L 109.2,319.75 L 109.2,322.43 L 95.8,322.43 L 95.8,319.75 L 84.41,319.75 L 80.725001,317.07 L 78.38,313.05 L 78.38,290.27001 L 80.725001,286.25 L 84.41,283.57 L 95.13,283.57 L 95.13,286.92001 L 109.87,286.92001 L 109.87,283.57 z\"\n\ - id=\"path3271\"\n\ - style=\"fill:url(#linearGradient3320);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n" - - data12a = \ -" <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"102\"\n\ - y=\"307\"\n\ - id=\"tspan3275\"\n\ - style=\"font-size:12px\">" - - data12b = \ -" <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"102\"\n\ - y=\"301\"\n\ - id=\"tspan3275\"\n\ - style=\"font-size:12px\">" - - data13b = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"102\"\n\ - y=\"314\"\n\ - id=\"tspan3279\"\n\ - style=\"font-size:12px\">" - - data14 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - </g>\n\ - <path\n\ - d=\"M 90.2125,230.89273 L 101.2675,230.89273 L 101.2675,234.91273 L 98.5875,234.91273 L 98.5875,232.90273 L 91.5525,232.90273\"\n\ - id=\"path3422\"\n\ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 90.2125,249.31773 L 101.2675,249.31773 L 101.2675,245.29773 L 98.5875,245.29773 L 98.5875,247.30773 L 91.5525,247.30773\"\n\ - id=\"path3424\"\n\ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 75.4725,227.54273 C 86.1925,227.54273 86.1925,227.54273 86.1925,227.54273 C 86.1925,227.54273 88.960805,229.20872 89.8775,230.22273 C 90.813806,231.25843 92.2225,234.24273 92.2225,234.24273 L 92.2225,246.97273 C 92.2225,246.97273 90.737077,249.44748 89.8775,250.32273 C 88.919695,251.298 86.1925,253.00273 86.1925,253.00273 L 74.8025,253.00273 L 74.8025,253.00273 L 74.8025,255.68273 L 61.4025,255.68273 L 61.4025,253.00273 L 50.0125,253.00273 C 50.0125,253.00273 47.285306,251.298 46.3275,250.32273 C 45.467923,249.44748 43.9825,246.97273 43.9825,246.97273 L 43.9825,234.24273 C 43.9825,234.24273 45.391194,231.25843 46.3275,230.22273 C 47.244195,229.20872 50.0125,227.54273 50.0125,227.54273 L 60.7325,227.54273 L 60.7325,230.89273 L 75.4725,230.89273 L 75.4725,227.54273 z\"\n\ - id=\"path3426\"\n\ - style=\"fill:url(#linearGradient3452);fill-opacity:1;stroke:#c00000;stroke-width:1.33000004;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"244\"\n\ - id=\"tspan3430\"\n\ - style=\"font-size:12px;font-family:Bitstream Vera Sans\">" - - data15 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 90.23,116.21 L 101.285,116.21 L 101.285,120.23 L 98.605,120.23 L 98.605,118.22 L 91.57,118.22\"\n\ - id=\"path2561\"\n\ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 90.23,134.635 L 101.285,134.635 L 101.285,130.615 L 98.605,130.615 L 98.605,132.625 L 91.57,132.625\"\n\ - id=\"path12\"\n\ - style=\"fill:#e00000;fill-opacity:1;stroke:#800000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 75.49,112.86 C 86.21,112.86 86.21,112.86 86.21,112.86 C 86.21,112.86 88.978305,114.52599 89.895,115.54 C 90.831306,116.5757 92.24,119.56 92.24,119.56 L 92.24,132.29 C 92.24,132.29 90.754576,134.76475 89.895,135.64 C 88.937195,136.61527 86.21,138.32 86.21,138.32 L 74.82,138.32 L 74.82,138.32 L 74.82,141 L 61.42,141 L 61.42,138.32 L 50.03,138.32 C 50.03,138.32 47.302806,136.61527 46.345,135.64 C 45.485423,134.76475 44,132.29 44,132.29 L 44,119.56 C 44,119.56 45.408694,116.5757 46.345,115.54 C 47.261695,114.52599 50.03,112.86 50.03,112.86 L 60.75,112.86 L 60.75,116.21 L 75.49,116.21 L 75.49,112.86 z\"\n\ - id=\"path14\"\n\ - style=\"fill:url(#linearGradient3338);fill-opacity:1;stroke:#a00000;stroke-width:1.29999995;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <g>\n\ - <path\n\ - d=\"M 37.998271,350.82011 L 41.331771,350.82011 L 41.331771,353.4869 L 45.998671,353.4869 L 45.998671,350.82011 L 107.00173,350.82011 L 107.00173,364.1541 L 45.998671,364.1541 L 45.998671,361.4873 L 41.331771,361.4873 L 41.331771,364.1541 L 37.998271,364.1541 L 37.998271,350.82011 z\"\n\ - id=\"path2476\"\n\ - style=\"fill:url(#linearGradient3510);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"360.5\"\n\ - id=\"tspan2480\"\n\ - style=\"font-size:11px\">" - - data16 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g>\n\ - <path\n\ - d=\"M 37.998271,372.688 L 41.33177,372.688 L 41.33177,375.3548 L 45.998671,375.3548 L 45.998671,372.688 L 107.00173,372.688 L 107.00173,386.022 L 45.998671,386.022 L 45.998671,383.3552 L 41.33177,383.3552 L 41.33177,386.022 L 37.998271,386.022 L 37.998271,372.688 z\"\n\ - id=\"path2484\"\n\ - style=\"fill:url(#linearGradient3516);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"382.5\"\n\ - id=\"tspan2488\"\n\ - style=\"font-size:11px\">" - - data17 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g>\n\ - <path\n\ - d=\"M 37.998271,394.34238 L 41.331771,394.34238 L 41.331771,397.00916 L 45.998671,397.00916 L 45.998671,394.34238 L 107.00173,394.34238 L 107.00173,407.67636 L 45.998671,407.67636 L 45.998671,405.00956 L 41.331771,405.00956 L 41.331771,407.67636 L 37.998271,407.67636 L 37.998271,394.34238 z\"\n\ - id=\"path2496\"\n\ - style=\"fill:url(#linearGradient3514);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"404.25\"\n\ - id=\"tspan2500\"\n\ - style=\"font-size:11px\">" - - data18 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g>\n\ - <path\n\ - d=\"M 37.998271,416.21026 L 41.33177,416.21026 L 41.33177,418.87707 L 45.998671,418.87707 L 45.998671,416.21026 L 107.00173,416.21026 L 107.00173,429.54426 L 45.998671,429.54426 L 45.998671,426.87747 L 41.33177,426.87747 L 41.33177,429.54426 L 37.998271,429.54426 L 37.998271,416.21026 z\"\n\ - id=\"path2504\"\n\ - style=\"fill:url(#linearGradient3512);fill-opacity:1;stroke:#c00000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72.5\"\n\ - y=\"425.5\"\n\ - id=\"tspan2508\"\n\ - style=\"font-size:11px\">" - - data19 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"matrix(0.75,0,0,0.75,41.2,104.5)\">\n\ - <path\n\ - d=\"M 36.900421,42.139076 C 40.57847,42.139076 46.040263,40.559298 46.040263,35.912927 C 46.040263,30.744416 41.284228,30.266809 39.311914,29.743556 C 37.131988,29.298791 35.679932,28.678125 35.592711,27.820324 C 35.443451,26.349651 36.303997,25.776856 38.016489,25.776856 C 38.016489,25.776856 42.090107,27.816428 45.550716,26.188778 C 46.526124,25.730654 48.273013,23.590328 48.273013,22.114088 C 48.273013,20.637291 42.633706,18.930597 40.922443,18.930597 C 39.209951,18.930597 37.753595,21.072036 37.753595,21.072036 C 34.32984,21.072036 30.90547,24.02563 30.90547,26.979224 C 30.90547,29.932261 34.181195,32.242365 38.096339,32.886411 C 39.916323,33.147481 41.438401,34.122178 41.092586,35.913483 C 40.81188,37.368014 39.252947,38.867077 35.956953,38.867077 C 33.345219,38.867077 27.787605,38.745171 26.900033,36.596495 C 26.329407,35.212659 27.003225,33.699123 27.859471,33.699123 L 27.842886,33.610059 C 26.97067,33.522108 24.435101,33.699123 24.435101,36.65216 C 24.434487,40.438505 30.051681,42.139076 36.900421,42.139076 z\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 45.550102,26.189335 C 43.938959,26.029576 41.489383,25.076031 40.963596,23.39383\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n\ - <circle\n\ - cx=\"35.8\"\n\ - cy=\"10.96\"\n\ - r=\"1.67\"\n\ - transform=\"matrix(0.6,0,0,0.6,19.4,15.1)\"\n\ - id=\"circle2478\"\n\ - style=\"fill:#000000;fill-opacity:1;stroke-width:3.4;stroke-miterlimit:4;stroke-dasharray:none\" />\n\ - </g>\n\ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - strings = mystring2.split(" ",2) - if len(strings) == 1: - FILE.write(data2a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data2b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data3b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data4) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data5) - FILE.write(mystring4.encode("utf-8")) - FILE.write(data6) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data7) - FILE.write(mystring6.encode("utf-8")) - FILE.write(data8) - strings = mystring7.split(" ",2) - if len(strings) == 1: - FILE.write(data9a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data9b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data10b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data11) - strings = mystring8.split(" ",2) - if len(strings) == 1: - FILE.write(data12a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data12b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data13b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data14) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data15) - FILE.write(mystring10.encode("utf-8")) - FILE.write(data16) - FILE.write(mystring11.encode("utf-8")) - FILE.write(data17) - FILE.write(mystring12.encode("utf-8")) - FILE.write(data18) - FILE.write(mystring13.encode("utf-8")) - FILE.write(data19) - FILE.close() - return - -if __name__ == "__main__": - main() - - diff --git a/svg/setcolor.py b/svg/setcolor.py deleted file mode 100755 index 60ff3d6..0000000 --- a/svg/setcolor.py +++ /dev/null @@ -1,135 +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 = "setcolor" - 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() - - mystring1 = _("set color") - mygroup = "pen" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns:svg=\"http://www.w3.org/2000/svg\" \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"87\" \n \ - height=\"60\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/seth.py b/svg/seth.py deleted file mode 100755 index fd55458..0000000 --- a/svg/seth.py +++ /dev/null @@ -1,130 +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 = "seth" - 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() - - mystring1 = _("set heading") - mygroup = "turtle" - - print _(mystring1) - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"33\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/setpensize.py b/svg/setpensize.py deleted file mode 100755 index 9c06fab..0000000 --- a/svg/setpensize.py +++ /dev/null @@ -1,170 +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 = "setpensize" - 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() - - mystring1 = _("set pen size") - mygroup = "pen" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns:svg=\"http://www.w3.org/2000/svg\" \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"87\" \n \ - height=\"60\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1c = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data2c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:16px;\">" - - data3c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"50\" \n \ - style=\"font-size:16px;\">" - - data4 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data1c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3c) - FILE.write(strings[2].encode("utf-8")) - FILE.write(data4) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/setscale.py b/svg/setscale.py deleted file mode 100755 index cf9d9cd..0000000 --- a/svg/setscale.py +++ /dev/null @@ -1,130 +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 = "setscale" - 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() - - mystring1 = _("set scale") - mygroup = "turtle" - - print _(mystring1) - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"33\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/setshade.py b/svg/setshade.py deleted file mode 100755 index 127fd49..0000000 --- a/svg/setshade.py +++ /dev/null @@ -1,135 +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 = "setshade" - 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() - - mystring1 = _("set shade") - mygroup = "pen" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns:svg=\"http://www.w3.org/2000/svg\" \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"87\" \n \ - height=\"60\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/settextcolor.py b/svg/settextcolor.py deleted file mode 100755 index ce3ab56..0000000 --- a/svg/settextcolor.py +++ /dev/null @@ -1,170 +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 = "settextcolor" - 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() - - mystring1 = _("set text color") - mygroup = "pen" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns:svg=\"http://www.w3.org/2000/svg\" \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"87\" \n \ - height=\"60\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1c = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data2c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:16px;\">" - - data3c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"50\" \n \ - style=\"font-size:16px;\">" - - data4 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data1c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3c) - FILE.write(strings[2].encode("utf-8")) - FILE.write(data4) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/settextsize.py b/svg/settextsize.py deleted file mode 100755 index 1f2481e..0000000 --- a/svg/settextsize.py +++ /dev/null @@ -1,170 +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 = "settextsize" - 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() - - mystring1 = _("set text size") - mygroup = "pen" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns:svg=\"http://www.w3.org/2000/svg\" \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"87\" \n \ - height=\"60\" \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#00e0e0;fill-opacity:1;stroke:#008080;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1c = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:18px;\">" - - data2c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:16px;\">" - - data3c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"50\" \n \ - style=\"font-size:16px;\">" - - data4 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data1c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3c) - FILE.write(strings[2].encode("utf-8")) - FILE.write(data4) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/setxy.py b/svg/setxy.py deleted file mode 100755 index 09ee18e..0000000 --- a/svg/setxy.py +++ /dev/null @@ -1,134 +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 = "setxy" - 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() - - mystring1 = _("set xy") - mystring2 = _("x") - mystring3 = _("y") - mygroup = "turtle" - - print mystring1 - print mystring2 - print mystring3 - - 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=\"87\" \n \ - height=\"81\" \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,42.75 L 86.25,42.75 L 86.25,49 L 82.25,49 L 82.25,45.75 L 71.75,45.75\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 69.75,70.25 L 86.25,70.25 L 86.25,64.249999 L 82.25,64.249999 L 82.25,67.249999 L 71.75,67.249999\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,67 C 73,67 70.78295,70.693654 69.5,72 C 68.07044,73.455629 64,76 64,76 L 47,76 L 47,76 L 47,80 L 27,80 L 27,76 L 10,76 C 10,76 5.9295605,73.455629 4.5,72 C 3.2170498,70.693654 1,67 1,67 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"43\" \n \ - style=\"font-size:16px;\">" - - data1 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"22\" \n \ - style=\"font-size:14px\">" - - data2 = \ -"</tspan></text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:end;text-align:end;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"68\" \n \ - y=\"64\" \n \ - style=\"font-size:14px\">" - - data3 = \ -"</tspan></text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/shade.py b/svg/shade.py deleted file mode 100755 index f5bf107..0000000 --- a/svg/shade.py +++ /dev/null @@ -1,97 +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 = "shade" - 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 = _("shade") - mygroup = "pen" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \n \ - <defs \n \ - id=\"defs5\"> \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/show.py b/svg/show.py deleted file mode 100755 index e767555..0000000 --- a/svg/show.py +++ /dev/null @@ -1,130 +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 = "show" - 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() - - mystring1 = _("show") - mygroup = "turtle" - - print _(mystring1) - - 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=\"87\" \n \ - height=\"44\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1.50000000000000000;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - data1a = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"20\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"33\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n " - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - strings = mystring1.split(" ",2) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/sound.py b/svg/sound.py deleted file mode 100755 index 4a509da..0000000 --- a/svg/sound.py +++ /dev/null @@ -1,315 +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 = "sound" - 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() - - mystring1 = _("sound") - mygroup = "templates" - - print mystring1 - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<!-- Created with Inkscape (http://www.inkscape.org/) --> \n \ -<svg \n \ - xmlns:dc=\"http://purl.org/dc/elements/1.1/\" \n \ - xmlns:cc=\"http://creativecommons.org/ns#\" \n \ - xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" \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 \ - xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" \n \ - xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" \n \ - version=\"1.0\" \n \ - width=\"137\" \n \ - height=\"55\" \n \ - id=\"svg2\" \n \ - sodipodi:version=\"0.32\" \n \ - inkscape:version=\"0.46\" \n \ - sodipodi:docname=\"template5.svg\" \n \ - inkscape:output_extension=\"org.inkscape.output.svg.inkscape\"> \n \ - <metadata \n \ - id=\"metadata36\"> \n \ - <rdf:RDF> \n \ - <cc:Work \n \ - rdf:about=\"\"> \n \ - <dc:format>image/svg+xml</dc:format> \n \ - <dc:type \n \ - rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" /> \n \ - </cc:Work> \n \ - </rdf:RDF> \n \ - </metadata> \n \ - <sodipodi:namedview \n \ - inkscape:window-height=\"975\" \n \ - inkscape:window-width=\"1680\" \n \ - inkscape:pageshadow=\"2\" \n \ - inkscape:pageopacity=\"0.0\" \n \ - guidetolerance=\"10.0\" \n \ - gridtolerance=\"10.0\" \n \ - objecttolerance=\"10.0\" \n \ - borderopacity=\"1.0\" \n \ - bordercolor=\"#666666\" \n \ - pagecolor=\"#ffffff\" \n \ - id=\"base\" \n \ - showgrid=\"false\" \n \ - inkscape:zoom=\"3.9708029\" \n \ - inkscape:cx=\"36.894301\" \n \ - inkscape:cy=\"27.5\" \n \ - inkscape:window-x=\"0\" \n \ - inkscape:window-y=\"25\" \n \ - inkscape:current-layer=\"svg2\" /> \n \ - <defs \n \ - id=\"defs5\"> \n \ - <inkscape:perspective \n \ - sodipodi:type=\"inkscape:persp3d\" \n \ - inkscape:vp_x=\"0 : 27.5 : 1\" \n \ - inkscape:vp_y=\"0 : 1000 : 0\" \n \ - inkscape:vp_z=\"137 : 27.5 : 1\" \n \ - inkscape:persp3d-origin=\"68.5 : 18.333333 : 1\" \n \ - id=\"perspective38\" /> \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:#ffff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0.94254935\" \n \ - y1=\"-31.669659\" \n \ - x2=\"104.37702\" \n \ - y2=\"20.434471\" \n \ - id=\"linearGradient3172\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(0.7083638,0,0,1.0012565,0.1338084,32.632067)\" /> \n \ - <linearGradient \n \ - id=\"linearGradient4342\"> \n \ - <stop \n \ - id=\"stop3259\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop4345\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - id=\"linearGradient4340\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(1.0139238,0,0,1.0946487,31.741439,7.7561892)\" /> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"19.625\" \n \ - x2=\"320.75\" \n \ - y2=\"19.625\" \n \ - id=\"linearGradient3170\" \n \ - xlink:href=\"#linearGradient3164\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - id=\"linearGradient3164\"> \n \ - <stop \n \ - id=\"stop3166\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop4336\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:0\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"66.800423\" \n \ - y1=\"23.707363\" \n \ - x2=\"203.4543\" \n \ - y2=\"23.237999\" \n \ - id=\"linearGradient4362\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(0.9988658,0,0,1.0058014,-66.475849,-58.253309)\" /> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - id=\"linearGradient4488\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - id=\"linearGradient4482\"> \n \ - <stop \n \ - id=\"stop4484\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop4486\" \n \ - style=\"stop-color:#ff00ff;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - id=\"linearGradient2512\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - id=\"linearGradient2506\"> \n \ - <stop \n \ - id=\"stop2508\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop2510\" \n \ - style=\"stop-color:#00ff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - id=\"linearGradient3383\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - <linearGradient \n \ - id=\"linearGradient3377\"> \n \ - <stop \n \ - id=\"stop3379\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop3381\" \n \ - style=\"stop-color:#00ff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0.94254935\" \n \ - y1=\"-31.669659\" \n \ - x2=\"94.577461\" \n \ - y2=\"20.434471\" \n \ - id=\"linearGradient2541\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(0.7750554,0,0,0.9997979,0.8784441,32.623865)\" /> \n \ - <linearGradient \n \ - id=\"linearGradient2535\"> \n \ - <stop \n \ - id=\"stop2537\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1\" \n \ - offset=\"0\" /> \n \ - <stop \n \ - id=\"stop2539\" \n \ - style=\"stop-color:#ffff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - y2=\"22\" \n \ - x2=\"74\" \n \ - y1=\"22\" \n \ - x1=\"0\" \n \ - id=\"linearGradient2529\" \n \ - xlink:href=\"#linearGradient3166\" /> \n \ - <linearGradient \n \ - id=\"linearGradient2523\"> \n \ - <stop \n \ - id=\"stop2525\" \n \ - offset=\"0\" \n \ - style=\"stop-color:#ffffff;stop-opacity:1;\" /> \n \ - <stop \n \ - id=\"stop2527\" \n \ - offset=\"1\" \n \ - style=\"stop-color:#ffff00;stop-opacity:1;\" /> \n \ - </linearGradient> \n \ - <inkscape:perspective \n \ - id=\"perspective2520\" \n \ - inkscape:persp3d-origin=\"43.5 : 20 : 1\" \n \ - inkscape:vp_z=\"87 : 30 : 1\" \n \ - inkscape:vp_y=\"0 : 1000 : 0\" \n \ - inkscape:vp_x=\"0 : 30 : 1\" \n \ - sodipodi:type=\"inkscape:persp3d\" /> \n \ - <linearGradient \n \ - inkscape:collect=\"always\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient2543\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"matrix(0.7083638,0,0,1.0012565,-21.252221,77.527288)\" \n \ - x1=\"0.94254935\" \n \ - y1=\"-31.669659\" \n \ - x2=\"104.37702\" \n \ - y2=\"20.434471\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 63.5,0.75 L 47.75,0.75 L 47.75,4.75 L 25.75,4.75 L 25.75,0.75 L 10,0.75 C 10,0.75 6.1158487,1.358664 4.75,2.75 C 3.665741,3.85449 1,6.75 1,6.75 L 1,43.99 C 1,43.99 1.6401315,47.31861 2.4999613,47.995 C 3.3305948,48.64842 6.999845,50.25 6.999845,50.25 L 27,50.25 L 27,54 L 47,54 L 47,50.25 L 126.99673,50.25 L 127,38.75 L 136,38.75 L 136,33.25 L 127,33.25 L 127,24.25 L 136,24.25 L 136,18.75 L 127,18.75 L 127,6.75 L 69,6.75 L 66.463507,2.75 L 63.5,0.75 z\" \n \ - id=\"path2480\" \n \ - style=\"opacity:1;fill:url(#linearGradient4362);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" /> \n \ - <text \n \ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\" \n \ - id=\"text2509\" \n \ - x=\"31.82959\" \n \ - y=\"7.2104545\"> \n \ - <tspan \n \ - x=\"68.82959\" \n \ - y=\"34.210449\" \n \ - style=\"font-size:18px\" \n \ - id=\"tspan2511\">" - - 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(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/stack1.py b/svg/stack1.py deleted file mode 100755 index f030dec..0000000 --- a/svg/stack1.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 = "stack1" - 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() - - # TRANS: Please use "action 1" to indicate an action is invoked - mystring = _("stack 1") - mygroup = "myblocks" - - 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=\"74\" \n \ - height=\"44\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/stack2.py b/svg/stack2.py deleted file mode 100755 index b37eb4e..0000000 --- a/svg/stack2.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 = "stack2" - 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() - - # TRANS: Please use "action 2" to indicate an action is invoked - mystring = _("stack 2") - mygroup = "myblocks" - - 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=\"74\" \n \ - height=\"44\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/start.py b/svg/start.py deleted file mode 100755 index fc61d94..0000000 --- a/svg/start.py +++ /dev/null @@ -1,112 +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 = "start" - 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 = _("start") - mygroup = "myblocks" - - 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:xlink=\"http://www.w3.org/1999/xlink\" \n \ - version=\"1.0\" \n \ - width=\"99\" \n \ - height=\"56\" \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:#ffff00;stop-opacity:1\" \n \ - offset=\"1\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - id=\"linearGradient3172\" \n \ - xlink:href=\"#linearGradient3166\" \n \ - gradientUnits=\"userSpaceOnUse\" \n \ - gradientTransform=\"translate(12.5,12)\" /> \n \ - <perspective \n \ - type=\"inkscape:persp3d\" \n \ - vp_x=\"0 : 526.18109 : 1\" \n \ - vp_y=\"0 : 1000 : 0\" \n \ - vp_z=\"744.09448 : 526.18109 : 1\" \n \ - persp3d-origin=\"372.04724 : 350.78739 : 1\" \n \ - id=\"perspective2472\" /> \n \ - </defs> \n \ - <path \n \ - d=\"M 98.5,26 C 98.698425,39.581628 59.5,51 59.5,51 L 59.5,51 L 59.5,55 L 39.5,55 L 39.5,51 C 39.5,51 0.30157465,39.581628 0.5,26 C 0.74518415,9.21787 32.716079,1 49.5,1 C 66.283921,1 98.254816,9.21787 98.5,26 z\" \n \ - id=\"path10\" \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" /> \n \ - <text \n \ - y=\"-0.80810547\" \n \ - id=\"text14\" \n \ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"49\" \n \ - y=\"34.191895\" \n \ - id=\"tspan16\" \n \ - style=\"font-size:18px\">" - - 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/stopstack.py b/svg/stopstack.py deleted file mode 100755 index d4a9f22..0000000 --- a/svg/stopstack.py +++ /dev/null @@ -1,107 +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 = "stopstack" - 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 = _("stop action") - mygroup = "flow" - - print mystring - - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - width=\"74\" \n \ - height=\"49\" \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,29 L 37.5,48 C 37.5,48 1,29 1,29 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - sodipodi:role=\"line\" \n \ - x=\"37\" \n \ - y=\"17.5\" \n \ - style=\"font-size:14px;text-anchor:middle\">" - - data1 = \ -"</tspan><tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:14px;text-anchor:middle\">" - - data2 = \ -"</tspan></text> \n \ -</svg> \n" - - strings = mystring.split(" ",2) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data1) - if len(strings) == 2: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data2) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/storein.py b/svg/storein.py deleted file mode 100755 index 30df035..0000000 --- a/svg/storein.py +++ /dev/null @@ -1,114 +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 = "storein" - 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 = _("store in") - mygroup = "myblocks" - - 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=\"142\"\n\ - height=\"60\"\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:#ffff00;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"128\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3172\"\n\ - xlink:href=\"#linearGradient3166\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - </defs>\n\ - <g\n\ - transform=\"translate(60,54)\">\n\ - <path\n\ - d=\"M 64.871323,-38.92647 L 81.371323,-38.92647 L 81.371323,-32.92647 L 77.371323,-32.92647 L 77.371323,-35.92647 L 66.871323,-35.92647\"\n\ - style=\"fill:#e0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 64.871323,-11.42647 L 81.371323,-11.42647 L 81.371323,-17.42647 L 77.371323,-17.42647 L 77.371323,-14.42647 L 66.871323,-14.42647\"\n\ - style=\"fill:#e0e000;fill-opacity:1;stroke:#908000;stroke-width:1.5;stroke-opacity:1\" />\n\ - </g>\n\ - <path\n\ - d=\"M 47,1 C 63,1 120,1 120,1 C 120,1 124.1318,3.4865526 125.5,5 C 126.89747,6.5458243 129,11 129,11 L 129,46 C 129,46 126.78295,49.693654 125.5,51 C 124.07044,52.455629 120,55 120,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 C 10,55 5.9295605,52.455629 4.5,51 C 3.2170498,49.693654 1,46 1,46 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 27,1 L 27,6 L 47,6 L 47,1 z\"\n\ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 13,28 L 18,28 L 18,32 L 24.999999,32 L 24.999999,28 L 116.50001,28 L 116.50001,48 L 24.999999,48 L 24.999999,44 L 18,44 L 18,48 L 13,48 L 13,28 z\"\n\ - style=\"fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2;stroke-opacity:1\" />\n\ - <text\n\ - style=\"font-size:18px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"65\"\n\ - y=\"24\"\n\ - style=\"font-size:18px\">" - - data1 = \ -"</tspan> \n\ - </text> \n\ -</svg> \n" - - strings = mystring.split(" ",3) - 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/storeinbox1.py b/svg/storeinbox1.py deleted file mode 100755 index 9631cd1..0000000 --- a/svg/storeinbox1.py +++ /dev/null @@ -1,171 +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 = "storeinbox1" - 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 = _("store in box 1") - mygroup = "myblocks" - - 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=\"87\" \n \ - height=\"60\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:16px;\">" - - data1c = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"22\" \n \ - style=\"font-size:16px;\">" - - data2c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:16px;\">" - - data3c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"48\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - strings = mystring.split(" ",3) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data1c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3c) - FILE.write(strings[2].encode("utf-8")) - if len(strings) == 4: - FILE.write(" " + strings[3].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/storeinbox2.py b/svg/storeinbox2.py deleted file mode 100755 index 8c6f667..0000000 --- a/svg/storeinbox2.py +++ /dev/null @@ -1,171 +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 = "storeinbox2" - 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 = _("store in box 2") - mygroup = "myblocks" - - 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=\"87\" \n \ - height=\"60\" \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:#ffff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <g \n \ - transform=\"translate(0,8.75)\"> \n \ - <path \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - <path \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" \n \ - style=\"fill:#f0e000;fill-opacity:1;stroke:#a08000;stroke-width:1.5;stroke-opacity:1\" /> \n \ - </g> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#c0a000;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 L 69.5,5 L 73,11 L 73,45 L 69.5,51 L 64,55 L 47,55 L 47,55 L 47,59 L 27,59 L 27,55 L 10,55 L 4.5,51 L 1,45 L 1,11 L 4.5,5 L 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n " - - data1a = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"36\" \n \ - style=\"font-size:18px;\">" - - data1b = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"27\" \n \ - style=\"font-size:16px;\">" - - data2b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"46\" \n \ - style=\"font-size:16px;\">" - - data1c = \ -" <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"22\" \n \ - style=\"font-size:16px;\">" - - data2c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"35\" \n \ - style=\"font-size:16px;\">" - - data3c = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"48\" \n \ - style=\"font-size:16px;\">" - - data3 = \ -"</tspan> \n \ - </text> \n \ -</svg> \n" - - strings = mystring.split(" ",3) - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") - FILE.write(data0) - if len(strings) == 1: - FILE.write(data1a) - FILE.write(strings[0].encode("utf-8")) - elif len(strings) == 2: - FILE.write(data1b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2b) - FILE.write(strings[1].encode("utf-8")) - else: - FILE.write(data1c) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data2c) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data3c) - FILE.write(strings[2].encode("utf-8")) - if len(strings) == 4: - FILE.write(" " + strings[3].encode("utf-8")) - FILE.write(data3) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/templatesgroup.py b/svg/templatesgroup.py deleted file mode 100755 index 5638ef9..0000000 --- a/svg/templatesgroup.py +++ /dev/null @@ -1,860 +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 = "templatesgroup" - 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() - - mystring1 = _("Templates") - mystring2 = _("hide blocks") - mygroup = "templates" - - print mystring1 - print mystring2 - - - 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=\"145\"\n \ - height=\"500\"\n \ - id=\"svg2\">\n \ - <defs\n \ - id=\"defs4\">\n \ - <linearGradient\n \ - id=\"linearGradient3245\">\n \ - <stop\n \ - id=\"stop3247\"\n \ - style=\"stop-color:#ffffff;stop-opacity:1\"\n \ - offset=\"0\" />\n \ - <stop\n \ - id=\"stop3249\"\n \ - style=\"stop-color:#ffff00;stop-opacity:0\"\n \ - offset=\"1\" />\n \ - </linearGradient>\n \ - <linearGradient\n \ - x1=\"47\"\n \ - y1=\"445\"\n \ - x2=\"97\"\n \ - y2=\"445\"\n \ - id=\"linearGradient3291\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"11\"\n \ - y1=\"109\"\n \ - x2=\"63\"\n \ - y2=\"109\"\n \ - id=\"linearGradient3251\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"4\"\n \ - y1=\"188\"\n \ - x2=\"70\"\n \ - y2=\"188\"\n \ - id=\"linearGradient3259\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"13\"\n \ - y1=\"270\"\n \ - x2=\"61\"\n \ - y2=\"270\"\n \ - id=\"linearGradient3267\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"75\"\n \ - y1=\"188\"\n \ - x2=\"141\"\n \ - y2=\"188\"\n \ - id=\"linearGradient3323\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"82\"\n \ - y1=\"248\"\n \ - x2=\"134\"\n \ - y2=\"248\"\n \ - id=\"linearGradient3315\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"12\"\n \ - y1=\"392\"\n \ - x2=\"80\"\n \ - y2=\"392\"\n \ - id=\"linearGradient3275\"\n \ - xlink:href=\"#linearGradient3245\" />\n \ - <linearGradient\n \ - x1=\"47\"\n \ - y1=\"52\"\n \ - x2=\"97\"\n \ - y2=\"52\"\n \ - id=\"linearGradient3283\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"82\"\n \ - y1=\"392\"\n \ - x2=\"132\"\n \ - y2=\"392\"\n \ - id=\"linearGradient3307\"\n \ - xlink:href=\"#linearGradient3245\" />\n \ - <linearGradient\n \ - x1=\"0\"\n \ - y1=\"-31\"\n \ - x2=\"104\"\n \ - y2=\"20\"\n \ - id=\"linearGradient3172\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"0\"\n \ - y1=\"-31\"\n \ - x2=\"104\"\n \ - y2=\"20\"\n \ - id=\"linearGradient2698\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"82\"\n \ - y1=\"119\"\n \ - x2=\"134\"\n \ - y2=\"119\"\n \ - id=\"linearGradient3331\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"47\"\n \ - y1=\"52\"\n \ - x2=\"97\"\n \ - y2=\"52\"\n \ - id=\"linearGradient2803\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"47.393524\"\n \ - y1=\"52.893875\"\n \ - x2=\"97.606476\"\n \ - y2=\"52.893875\"\n \ - id=\"linearGradient2686\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(-39.41375,0)\" />\n \ - <linearGradient\n \ - x1=\"82.928017\"\n \ - y1=\"119.21875\"\n \ - x2=\"134.55301\"\n \ - y2=\"119.21875\"\n \ - id=\"linearGradient2684\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"0.94254935\"\n \ - y1=\"-31.669659\"\n \ - x2=\"104.37702\"\n \ - y2=\"20.434471\"\n \ - id=\"linearGradient2682\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"matrix(0.7083638,0,0,1.0012565,0.1338084,32.632067)\" />\n \ - <linearGradient\n \ - x1=\"0.94254935\"\n \ - y1=\"-31.669659\"\n \ - x2=\"104.37702\"\n \ - y2=\"20.434471\"\n \ - id=\"linearGradient2680\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"matrix(0.7083638,0,0,1.0012565,0.1338084,32.632067)\" />\n \ - <linearGradient\n \ - x1=\"82.356911\"\n \ - y1=\"392.34818\"\n \ - x2=\"132.61295\"\n \ - y2=\"392.34818\"\n \ - id=\"linearGradient2678\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"47.393524\"\n \ - y1=\"52.893875\"\n \ - x2=\"97.606476\"\n \ - y2=\"52.893875\"\n \ - id=\"linearGradient2676\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(-39.41375,0)\" />\n \ - <linearGradient\n \ - x1=\"12.124999\"\n \ - y1=\"392.34818\"\n \ - x2=\"80.875\"\n \ - y2=\"392.34818\"\n \ - id=\"linearGradient2674\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"82.928009\"\n \ - y1=\"248.60938\"\n \ - x2=\"134.55301\"\n \ - y2=\"248.60938\"\n \ - id=\"linearGradient2672\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"75.990517\"\n \ - y1=\"188.5\"\n \ - x2=\"141.49051\"\n \ - y2=\"188.5\"\n \ - id=\"linearGradient2670\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"13.33134\"\n \ - y1=\"270.5\"\n \ - x2=\"61.206341\"\n \ - y2=\"270.5\"\n \ - id=\"linearGradient2668\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"4.5188398\"\n \ - y1=\"188.5\"\n \ - x2=\"70.018837\"\n \ - y2=\"188.5\"\n \ - id=\"linearGradient2666\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"11.45634\"\n \ - y1=\"109.14062\"\n \ - x2=\"63.081341\"\n \ - y2=\"109.14062\"\n \ - id=\"linearGradient2664\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\"\n \ - gradientTransform=\"translate(0,94)\" />\n \ - <linearGradient\n \ - x1=\"47.715\"\n \ - y1=\"445.94196\"\n \ - x2=\"97.284996\"\n \ - y2=\"445.94196\"\n \ - id=\"linearGradient2662\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - id=\"linearGradient2656\">\n \ - <stop\n \ - id=\"stop2658\"\n \ - style=\"stop-color:#ffffff;stop-opacity:1\"\n \ - offset=\"0\" />\n \ - <stop\n \ - id=\"stop2660\"\n \ - style=\"stop-color:#ffff00;stop-opacity:0\"\n \ - offset=\"1\" />\n \ - </linearGradient>\n \ - <linearGradient\n \ - x1=\"47.393524\"\n \ - y1=\"54.202423\"\n \ - x2=\"97.606476\"\n \ - y2=\"54.202423\"\n \ - id=\"linearGradient3338\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"47.415104\"\n \ - y1=\"99.202805\"\n \ - x2=\"97.584892\"\n \ - y2=\"99.202805\"\n \ - id=\"linearGradient3372\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - <linearGradient\n \ - x1=\"47.269257\"\n \ - y1=\"146.11281\"\n \ - x2=\"97.730743\"\n \ - y2=\"146.11281\"\n \ - id=\"linearGradient3388\"\n \ - xlink:href=\"#linearGradient3245\"\n \ - gradientUnits=\"userSpaceOnUse\" />\n \ - </defs>\n \ - <path\n \ - d=\"M 0.5,0.5 L 0.5,486 C 1.5,488.5 2.5,490.5 3.5,493 C 5,494.5 6.5,495.5 8.5,497 C 10.5,497.5 13,498.5 15,499 L 129,499 C 131,498.5 133.5,497.5 135.5,497 C 137.5,495.5 139.5,494.5 141.5,493 C 142.5,490.5 143.5,488.5 144.5,486 L 144.5,0.5 L 0.5,0.5 z\"\n \ - id=\"path22\"\n \ - style=\"fill:#ffd000;fill-opacity:1;fill-rule:evenodd;stroke:#e0a000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"173\"\n \ - id=\"rect3987\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#e0a000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"174\"\n \ - id=\"rect3989\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#fff080;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"175\"\n \ - id=\"rect3991\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffc4;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137\"\n \ - height=\"0.14\"\n \ - x=\"3\"\n \ - y=\"-28\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect3993\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#e0a000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137\"\n \ - height=\"0.14\"\n \ - x=\"3\"\n \ - y=\"-27\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect3995\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#fff080;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137\"\n \ - height=\"0.14\"\n \ - x=\"3\"\n \ - y=\"-474\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect3999\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#e0a000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"137\"\n \ - height=\"0.14\"\n \ - x=\"3\"\n \ - y=\"-473\"\n \ - transform=\"scale(1,-1)\"\n \ - id=\"rect4001\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#fff080;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 80,487 C 80,491 77,495 72,495 C 67,495 64,491 64,487 C 64,482 67,479 72,479 C 77,479 80,482 80,487 L 80,487 z\"\n \ - id=\"path4003\"\n \ - style=\"fill:#ff4040;fill-opacity:1;fill-rule:nonzero;stroke:#ff4040;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <text\n \ - id=\"text32\"\n \ - xml:space=\"preserve\"\n \ - style=\"font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold\"><tspan\n \ - x=\"67\"\n \ - y=\"491\"\n \ - id=\"tspan4007\"\n \ - style=\"font-size:12px;font-weight:bold;fill:#ffffff;font-family:Bitstream Vera Sans\">X</tspan></text>\n \ - <text\n \ - id=\"text35\"\n \ - style=\"font-size:12px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"22\"\n \ - y=\"21\"\n \ - id=\"tspan2796\"\n \ - style=\"font-size:20px\">" - - data1 = \ -"</tspan>\n \ - </text>\n \ - <path\n \ - d=\"M 79,426 C 90,426 90,426 90,426 L 94,429 L 96,433 L 96,455 L 94,460 L 90,462 L 79,462 L 79,462 L 79,465 L 65,465 L 65,462 L 54,462 L 50,460 L 48,455 L 48,433 L 50,429 L 54,426 L 65,426 L 65,429 L 79,429 L 79,426 z\"\n \ - id=\"path2714\"\n \ - style=\"fill:url(#linearGradient3291);fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n " - - data2a = \ -" <text\n \ - id=\"text39\"\n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"72\"\n \ - y=\"449\"\n \ - id=\"tspan2718\"\n \ - style=\"font-size:12px\">" - - data2b = \ -" <text\n \ - id=\"text42\"\n \ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n \ - <tspan\n \ - x=\"72\"\n \ - y=\"443\"\n \ - id=\"tspan2722\"\n \ - style=\"font-size:12px\">" - - data3b = \ -"</tspan> \n \ - </text> \n \ - <text \n \ - style=\"font-size:12.06000042px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"72\" \n \ - y=\"456\" \n \ - id=\"tspan2722\" \n \ - style=\"font-size:12px\">" - - data4 = \ -"</tspan>\n \ - </text>\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"415\"\n \ - id=\"rect3434\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#e0a000;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"416\"\n \ - id=\"rect3436\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#fff080;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <rect\n \ - width=\"123\"\n \ - height=\"0.14\"\n \ - x=\"10\"\n \ - y=\"417\"\n \ - id=\"rect3438\"\n \ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffc4;stroke-width:1;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 35,182 L 29,182 L 29,184 L 21,184 L 21,182 L 15,182 C 15,182 13,183 13,183 C 12,184 11,186 11,186 L 11,220 C 11,220 12,221 12,221 C 12,221 14,222 14,222 L 21,222 L 21,224 L 29,224 L 29,222 L 62,222 L 62,183 L 37,183 L 36,183 L 35,182 z\"\n \ - id=\"path4158\"\n \ - style=\"fill:url(#linearGradient3251);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 15,199 L 43,199 L 43,219 L 15,219 L 15,199 z\"\n \ - id=\"path4162\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <polygon\n \ - points=\"10,6 31,6 43,18 43,48 10,48 10,6 \"\n \ - transform=\"matrix(0.375,0,0,0.375,42.63809,197.40725)\"\n \ - id=\"polygon2963\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:2.66666675;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:2.66666675;stroke-miterlimit:4;stroke-dasharray:none\"\n \ - points=\"43,18 31,18 31,6 \"\n \ - id=\"polyline2965\"\n \ - transform=\"matrix(0.375,0,0,0.375,42.63809,197.40725)\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"49\"\n \ - x2=\"56\"\n \ - y1=\"207\"\n \ - y2=\"207\"\n \ - id=\"line2967\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"49\"\n \ - x2=\"56\"\n \ - y1=\"209.5\"\n \ - y2=\"209.5\"\n \ - id=\"line2969\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"49\"\n \ - x2=\"56\"\n \ - y1=\"212\"\n \ - y2=\"212\"\n \ - id=\"line2971\" />\n \ - <path\n \ - d=\"M 28,251 L 22,251 L 22,253 L 14,253 L 14,251 L 8,251 C 8,251 6,252 6,253 C 6,253 5,255 5,255 L 5,309 C 5,309 5,311 5,311 C 5,311 7,312 7,312 L 14,312 L 14,313 L 22,313 L 22,312 L 69,312 L 69,253 L 30,253 L 29,252 L 28,251 z\"\n \ - id=\"path4390\"\n \ - style=\"fill:url(#linearGradient3259);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 8,268 L 36,268 L 36,288 L 8,288 L 8,268 z\"\n \ - id=\"path4394\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 38,268 L 66,268 L 66,288 L 38,288 L 38,268 z\"\n \ - id=\"path2418\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <polygon\n \ - points=\"10,6 31,6 43,18 43,48 10,48 10,6 \"\n \ - transform=\"matrix(0.375,0,0,0.375,4.95059,289.5635)\"\n \ - id=\"polygon4402\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:2.66666675;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:2.66666675;stroke-miterlimit:4;stroke-dasharray:none\"\n \ - points=\"43,18 31,18 31,6 \"\n \ - id=\"polyline4404\"\n \ - transform=\"matrix(0.375,0,0,0.375,4.95059,289.5635)\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"11\"\n \ - x2=\"18\"\n \ - y1=\"299\"\n \ - y2=\"299\"\n \ - id=\"line4406\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"11\"\n \ - x2=\"18\"\n \ - y1=\"301.5\"\n \ - y2=\"301.5\"\n \ - id=\"line4408\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"11\"\n \ - x2=\"18\"\n \ - y1=\"304\"\n \ - y2=\"304\"\n \ - id=\"line4410\" />\n \ - <polygon\n \ - points=\"10,6 31,6 43,18 43,48 10,48 10,6 \"\n \ - transform=\"matrix(0.375,0,0,0.375,34.95059,289.5635)\"\n \ - id=\"polygon2582\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\"\n \ - points=\"43,18 31,18 31,6 \"\n \ - id=\"polyline2584\"\n \ - transform=\"matrix(0.375,0,0,0.375,34.95059,289.5635)\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"41\"\n \ - x2=\"48\"\n \ - y1=\"299\"\n \ - y2=\"299\"\n \ - id=\"line2586\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"41\"\n \ - x2=\"48\"\n \ - y1=\"301.5\"\n \ - y2=\"301.5\"\n \ - id=\"line2588\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"41\"\n \ - x2=\"48\"\n \ - y1=\"304\"\n \ - y2=\"304\"\n \ - id=\"line2590\" />\n \ - <path\n \ - d=\"M 37,321 L 31,321 L 31,323 L 23,323 L 23,321 L 17,321 C 17,321 15,322 15,323 C 14,323 13,325 13,325 L 13,403 C 13,403 14,404 14,405 C 14,405 16,406 16,406 L 23,406 L 23,407 L 31,407 L 31,406 L 60,406 L 60,323 L 39,323 L 38,322 L 37,321 z\"\n \ - id=\"path4690\"\n \ - style=\"fill:url(#linearGradient3267);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 106,182 L 100,182 L 100,184 L 92,184 L 92,182 L 86,182 C 86,182 85,183 84,183 C 84,184 83,186 83,186 L 83,240 C 83,240 83,241 83,241 C 84,242 85,242 85,242 L 93,242 L 93,244 L 100,244 L 100,242 L 134,242 L 134,183 L 108,183 L 107,183 L 106,182 z\"\n \ - id=\"path5171\"\n \ - style=\"fill:url(#linearGradient3331);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 87,199 L 114,199 L 114,219 L 87,219 L 87,199 z\"\n \ - id=\"path5175\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <polygon\n \ - points=\"10,6 31,6 43,18 43,48 10,48 10,6 \"\n \ - transform=\"matrix(0.375,0,0,0.375,114.10977,197.40724)\"\n \ - id=\"polygon5183\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\"\n \ - points=\"43,18 31,18 31,6 \"\n \ - id=\"polyline5185\"\n \ - transform=\"matrix(0.375,0,0,0.375,114.10977,197.40724)\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"207\"\n \ - y2=\"207\"\n \ - id=\"line5187\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"209.5\"\n \ - y2=\"209.5\"\n \ - id=\"line5189\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"212\"\n \ - y2=\"212\"\n \ - id=\"line5191\" />\n \ - <path\n \ - d=\"M 87,220 L 114,220 L 114,240 L 87,240 L 87,220 z\"\n \ - id=\"path2425\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <polygon\n \ - points=\"10,6 31,6 43,18 43,48 10,48 10,6 \"\n \ - transform=\"matrix(0.375,0,0,0.375,113.96295,219.10807)\"\n \ - id=\"polygon2433\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none\"\n \ - points=\"43,18 31,18 31,6 \"\n \ - id=\"polyline2435\"\n \ - transform=\"matrix(0.375,0,0,0.375,113.96295,219.10807)\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"228\"\n \ - y2=\"228\"\n \ - id=\"line2437\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"231\"\n \ - y2=\"231\"\n \ - id=\"line2439\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"120\"\n \ - x2=\"127\"\n \ - y1=\"234\"\n \ - y2=\"234\"\n \ - id=\"line2441\" />\n \ - <path\n \ - d=\"M 99,251 L 94,251 L 94,253 L 85,253 L 85,251 L 79,251 C 79,251 78,252 77,253 C 77,253 76,255 76,255 L 76,309 C 76,309 76,310 77,311 C 77,311 78,311 78,311 L 86,311 L 86,313 L 93,313 L 93,311 L 140,311 L 140,253 L 101,253 L 101,252 L 99,251 z\"\n \ - id=\"path5376\"\n \ - style=\"fill:url(#linearGradient3323);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 80,268 L 107,268 L 107,288 L 80,288 L 80,268 z\"\n \ - id=\"path5380\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 110,268 L 137,268 L 137,288 L 110,288 L 110,268 z\"\n \ - id=\"path5382\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 80,290 L 107,290 L 107,309 L 80,309 L 80,290 z\"\n \ - id=\"path2410\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 110,290 L 137,290 L 137,309 L 110,309 L 110,290 z\"\n \ - id=\"path2412\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 106,321 L 100,321 L 100,323 L 92,323 L 92,321 L 86,321 C 86,321 85,322 84,323 C 84,323 83,325 83,325 L 83,359 C 83,359 83,360 83,361 C 84,361 85,362 85,362 L 93,362 L 93,363 L 100,363 L 100,362 L 134,362 L 134,323 L 108,323 L 107,322 L 106,321 z\"\n \ - id=\"path3036\"\n \ - style=\"fill:url(#linearGradient3315);fill-opacity:1;fill-rule:evenodd;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 87,338 L 114,338 L 114,358 L 87,358 L 87,338 z\"\n \ - id=\"path3040\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 87,187 L 89,187 L 89,188 L 91,188 L 91,187 L 122,187 L 122,194 L 91,194 L 91,192 L 89,192 L 89,194 L 87,194 L 87,187 z\"\n \ - id=\"path9\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,385 L 19,385 L 19,387 L 21,387 L 21,385 L 52,385 L 52,392 L 21,392 L 21,391 L 19,391 L 19,392 L 17,392 L 17,385 z\"\n \ - id=\"path3323\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,376 L 19,376 L 19,377 L 21,377 L 21,376 L 52,376 L 52,382 L 21,382 L 21,381 L 19,381 L 19,382 L 17,382 L 17,376 z\"\n \ - id=\"path3325\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,366 L 19,366 L 19,367 L 21,367 L 21,366 L 52,366 L 52,372 L 21,372 L 21,371 L 19,371 L 19,372 L 17,372 L 17,366 z\"\n \ - id=\"path3327\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,356 L 19,356 L 19,357 L 21,357 L 21,356 L 52,356 L 52,363 L 21,363 L 21,361 L 19,361 L 19,363 L 17,363 L 17,356 z\"\n \ - id=\"path3329\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,336 L 19,336 L 19,338 L 21,338 L 21,336 L 52,336 L 52,343 L 21,343 L 21,342 L 19,342 L 19,343 L 17,343 L 17,336 z\"\n \ - id=\"path3331\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 8,257 L 10,257 L 10,258 L 12,258 L 12,257 L 43,257 L 43,264 L 12,264 L 12,262 L 10,262 L 10,264 L 8,264 L 8,257 z\"\n \ - id=\"path3333\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 15,187 L 17,187 L 17,188 L 19,188 L 19,187 L 50,187 L 50,194 L 19,194 L 19,192 L 17,192 L 17,194 L 15,194 L 15,187 z\"\n \ - id=\"path3335\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 80,257 L 82,257 L 82,258 L 84,258 L 84,257 L 115,257 L 115,264 L 84,264 L 84,262 L 82,262 L 82,264 L 80,264 L 80,257 z\"\n \ - id=\"path3337\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,327 L 19,327 L 19,328 L 21,328 L 21,327 L 52,327 L 52,333 L 21,333 L 21,332 L 19,332 L 19,333 L 17,333 L 17,327 z\"\n \ - id=\"path3339\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,395 L 19,395 L 19,396 L 21,396 L 21,395 L 52,395 L 52,402 L 21,402 L 21,400 L 19,400 L 19,402 L 17,402 L 17,395 z\"\n \ - id=\"path3341\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 17,346 L 19,346 L 19,348 L 21,348 L 21,346 L 52,346 L 52,353 L 21,353 L 21,352 L 19,352 L 19,353 L 17,353 L 17,346 z\"\n \ - id=\"path3343\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 87,327 L 88,327 L 88,328 L 91,328 L 91,327 L 121,327 L 121,334 L 91,334 L 91,332 L 88,332 L 88,334 L 87,334 L 87,327 z\"\n \ - id=\"path3345\"\n \ - style=\"fill:#ffffff;fill-opacity:1;stroke:#c0a000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 48.060226,36.763001 L 96.939774,36.763001 L 96.939774,71.641849 L 48.060226,71.641849 L 48.060226,36.763001 z\"\n \ - id=\"path2685\"\n \ - style=\"fill:url(#linearGradient3338);fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1.33340001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 82.12025,62.556689 C 82.12025,63.812189 81.35625,64.722189 79.95425,64.722189 L 65.22575,64.722189 L 65.22575,43.222189 L 79.95475,43.222189 C 81.02975,43.222189 82.12075,44.299189 82.12075,45.387189 L 82.12025,62.556689 L 82.12025,62.556689 z\"\n \ - id=\"path3155\"\n \ - style=\"fill:#ffffff;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <line\n \ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\"\n \ - x1=\"69.85775\"\n \ - x2=\"69.85775\"\n \ - y1=\"43.282688\"\n \ - y2=\"64.662689\"\n \ - id=\"line3157\" />\n \ - <path\n \ - d=\"M 62.87925,47.454189 C 62.87925,47.454189 63.92125,47.801689 64.96425,47.801689 C 66.00725,47.801689 67.05075,47.454189 67.05075,47.454189\"\n \ - id=\"path3159\"\n \ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 62.87925,54.232689 C 62.87925,54.232689 63.83525,54.580189 65.05175,54.580189 C 66.26825,54.580189 67.05125,54.232689 67.05125,54.232689\"\n \ - id=\"path3161\"\n \ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 62.87925,60.838189 C 62.87925,60.838189 63.74725,61.185689 65.13825,61.185689 C 66.52875,61.185689 67.05075,60.838189 67.05075,60.838189\"\n \ - id=\"path3163\"\n \ - style=\"fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 47.939255,128.58707 L 97.060745,128.58707 L 97.060745,163.63855 L 47.939255,163.63855 L 47.939255,128.58707 z\"\n \ - id=\"path2608\"\n \ - style=\"fill:url(#linearGradient3388);fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1.34000003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 62.115,160.18281 L 62.115,132.04281 L 76.185,132.04281 L 82.885,139.41281 L 82.885,160.18281 L 62.115,160.18281 z\"\n \ - id=\"path3199\"\n \ - style=\"fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#00000f;stroke-width:2.34500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.94117647\" />\n \ - <path\n \ - d=\"M 67.6425,148.79281 C 77.3575,148.79281 77.3575,148.79281 77.3575,148.79281\"\n \ - id=\"path2611\"\n \ - style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.34499979;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 67.6425,152.81281 C 77.3575,152.81281 77.3575,152.81281 77.3575,152.81281\"\n \ - id=\"path3165\"\n \ - style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.34499979;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 67.6425,144.77281 C 77.3575,144.77281 77.3575,144.77281 77.3575,144.77281\"\n \ - id=\"path3167\"\n \ - style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.34499979;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 75.3475,132.54531 L 75.3475,139.41281 L 81.7125,139.41281\"\n \ - id=\"path2615\"\n \ - style=\"fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2.34500003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <path\n \ - d=\"M 48.004895,81.702594 L 96.995105,81.702594 L 96.995105,116.70301 L 48.004895,116.70301 L 48.004895,81.702594 z\"\n \ - id=\"path2688\"\n \ - style=\"fill:url(#linearGradient3372);fill-opacity:1;fill-rule:nonzero;stroke:#c0a000;stroke-width:1.17957962;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1\" />\n \ - <g\n \ - transform=\"matrix(0.67,0,0,0.67,54.118645,80.777134)\"\n \ - id=\"g2758\"\n \ - style=\"display:inline\">\n \ - <g\n \ - id=\"g2760\">\n \ - <polygon\n \ - points=\"10.932,6.088 31.874,6.088 43.818,18.027 43.818,48.914 10.932,48.914 10.932,6.088 \"\n \ - id=\"polygon2762\"\n \ - style=\"fill:#ffffff;stroke:#010101;stroke-width:3.5\" />\n \ - <polyline\n \ - style=\"fill:none;stroke:#010101;stroke-width:3.5\"\n \ - points=\"43.818,18.027 31.874,18.027 31.874,6.088 \"\n \ - id=\"polyline2764\" />\n \ - </g>\n \ - </g>\n \ - <path\n \ - d=\"M 73.096395,107.37412 C 72.754025,106.39793 70.945695,106.65521 70.141695,107.32722 C 68.533695,108.67325 69.857615,110.27254 71.698775,109.52281 C 72.746655,109.09535 73.438095,108.35165 73.096395,107.37412 z\"\n \ - id=\"path2766\"\n \ - style=\"fill:#010101;stroke:#010101;stroke-width:2.34500003;display:inline\" />\n \ - <line\n \ - style=\"fill:none;stroke:#010101;stroke-width:1.50750005;display:inline\"\n \ - display=\"inline\"\n \ - x1=\"73.509117\"\n \ - x2=\"73.509117\"\n \ - y1=\"107.44715\"\n \ - y2=\"98.845024\"\n \ - id=\"line2768\" />\n \ - <polygon\n \ - points=\"35.047,25.036 27.838,28.595 27.838,24.728 35.047,21.166 35.047,25.036 \"\n \ - transform=\"matrix(0.67,0,0,0.67,54.118645,80.777134)\"\n \ - id=\"polygon2770\"\n \ - style=\"fill:#010101;display:inline\" />\n \ -</svg>" - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - strings = mystring2.split(" ",2) - if len(strings) == 1: - FILE.write(data2a) - FILE.write(strings[0].encode("utf-8")) - else: - FILE.write(data2b) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data3b) - FILE.write(strings[1].encode("utf-8")) - FILE.write(data4) - FILE.close() - return - -if __name__ == "__main__": - main() - diff --git a/svg/textcolor.py b/svg/textcolor.py deleted file mode 100755 index 9d8bcb9..0000000 --- a/svg/textcolor.py +++ /dev/null @@ -1,97 +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 = "textcolor" - 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 = _("text color") - mygroup = "pen" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \n \ - <defs \n \ - id=\"defs5\"> \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/textsize.py b/svg/textsize.py deleted file mode 100755 index 0a68a6f..0000000 --- a/svg/textsize.py +++ /dev/null @@ -1,97 +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 = "textsize" - 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 = _("text size") - mygroup = "pen" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \n \ - <defs \n \ - id=\"defs5\"> \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:#00ffff;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a0a0;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:16px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"52\" \n \ - y=\"15.5\" \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/toppos.py b/svg/toppos.py deleted file mode 100755 index 69860b4..0000000 --- a/svg/toppos.py +++ /dev/null @@ -1,104 +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 = "toppos" - 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 = _("top") - 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/turtlegroup.py b/svg/turtlegroup.py deleted file mode 100755 index e932648..0000000 --- a/svg/turtlegroup.py +++ /dev/null @@ -1,1059 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -#Copyright (c) 2009, Walter Bender - -#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 = "turtlegroup" - 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() - - mystring1 = _("clean") - mystring2 = _("forward") - mystring3 = _("back") - mystring4 = _("left") - mystring5 = _("right") - mystring6 = _("arc") - mystring7 = _("angle") - mystring8 = _("radius") - mystring9 = _("set xy") - mystring10 = _("x") - mystring11 = _("y") - mystring12 = _("set heading") - mystring13 = _("xcor") - mystring14 = _("ycor") - mystring15 = _("heading") - mystring16 = _("Turtle") - mystring17 = _("show") - mystring18 = _("set scale") - mystring19 = _("name") - mygroup = "turtle" - - print mystring1 - print mystring2 - print mystring3 - print mystring4 - print mystring5 - print mystring6 - print mystring7 - print mystring8 - print mystring9 - print mystring10 - print mystring11 - print mystring12 - print mystring13 - print mystring14 - print mystring15 - print mystring16 - print mystring17 - print mystring18 - print mystring19 - - 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=\"145\"\n\ - height=\"500\"\n\ - id=\"svg2\">\n\ - <defs\n\ - id=\"defs103\">\n\ - <linearGradient\n\ - id=\"linearGradient3250\">\n\ - <stop\n\ - id=\"stop3252\"\n\ - style=\"stop-color:#ffffff;stop-opacity:1\"\n\ - offset=\"0\" />\n\ - <stop\n\ - id=\"stop3254\"\n\ - style=\"stop-color:#00ff00;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3256\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3258\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3260\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3264\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"22\"\n\ - x2=\"74\"\n\ - y2=\"22\"\n\ - id=\"linearGradient3267\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"7\"\n\ - y1=\"90\"\n\ - x2=\"56\"\n\ - y2=\"90\"\n\ - id=\"linearGradient3333\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"7\"\n\ - y1=\"130\"\n\ - x2=\"56\"\n\ - y2=\"130\"\n\ - id=\"linearGradient3341\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"90\"\n\ - x2=\"128\"\n\ - y2=\"90\"\n\ - id=\"linearGradient3349\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"130\"\n\ - x2=\"128\"\n\ - y2=\"130\"\n\ - id=\"linearGradient3357\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"43\"\n\ - y1=\"181\"\n\ - x2=\"92\"\n\ - y2=\"181\"\n\ - id=\"linearGradient3365\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"7\"\n\ - y1=\"251\"\n\ - x2=\"56\"\n\ - y2=\"251\"\n\ - id=\"linearGradient3373\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3381\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"6\"\n\ - y1=\"303\"\n\ - x2=\"72\"\n\ - y2=\"303\"\n\ - id=\"linearGradient3389\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"89\"\n\ - y1=\"314\"\n\ - x2=\"137\"\n\ - y2=\"314\"\n\ - id=\"linearGradient3397\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"359\"\n\ - x2=\"107\"\n\ - y2=\"359\"\n\ - id=\"linearGradient3405\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,26)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"382\"\n\ - x2=\"107\"\n\ - y2=\"382\"\n\ - id=\"linearGradient3413\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,26)\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"406\"\n\ - x2=\"107\"\n\ - y2=\"406\"\n\ - id=\"linearGradient3421\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(0,26)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient2505\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient2519\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"406\"\n\ - x2=\"107\"\n\ - y2=\"406\"\n\ - id=\"linearGradient2527\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"0\"\n\ - x2=\"100\"\n\ - y2=\"66\"\n\ - id=\"linearGradient3172\"\n\ - xlink:href=\"#linearGradient3166\"\n\ - gradientUnits=\"userSpaceOnUse\" />\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:#00ff00;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"0\"\n\ - x2=\"100\"\n\ - y2=\"20\"\n\ - id=\"linearGradient2707\"\n\ - xlink:href=\"#linearGradient3166\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.7,0,0,1.,0.1,32)\" />\n\ - <linearGradient\n\ - id=\"linearGradient2701\">\n\ - <stop\n\ - id=\"stop2703\"\n\ - style=\"stop-color:#ffffff;stop-opacity:1\"\n\ - offset=\"0\" />\n\ - <stop\n\ - id=\"stop2705\"\n\ - style=\"stop-color:#ffff00;stop-opacity:1\"\n\ - offset=\"1\" />\n\ - </linearGradient>\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient2732\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"0\"\n\ - x2=\"100\"\n\ - y2=\"66\"\n\ - id=\"linearGradient2736\"\n\ - xlink:href=\"#linearGradient3166\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,60,321)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"0\"\n\ - x2=\"100\"\n\ - y2=\"66\"\n\ - id=\"linearGradient3552\"\n\ - xlink:href=\"#linearGradient3166\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,60,321)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3554\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\" />\n\ - <linearGradient\n\ - x1=\"37\"\n\ - y1=\"359\"\n\ - x2=\"107\"\n\ - y2=\"359\"\n\ - id=\"linearGradient2696\"\n\ - xlink:href=\"#linearGradient2701\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(26.1,-84.4)\" />\n\ - <linearGradient\n\ - x1=\"0\"\n\ - y1=\"0\"\n\ - x2=\"100\"\n\ - y2=\"66\"\n\ - id=\"linearGradient2711\"\n\ - xlink:href=\"#linearGradient2701\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"matrix(0.67,0,0,0.67,63.4,348)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3486\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-65.6,64.2)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3495\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-66.6,99)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3502\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-65.5,133)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3533\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-66.6,99)\" />\n\ - <linearGradient\n\ - x1=\"79\"\n\ - y1=\"238\"\n\ - x2=\"128\"\n\ - y2=\"238\"\n\ - id=\"linearGradient3535\"\n\ - xlink:href=\"#linearGradient3250\"\n\ - gradientUnits=\"userSpaceOnUse\"\n\ - gradientTransform=\"translate(-65.6,64.2)\" />\n\ - </defs>\n\ - <path\n\ - d=\"M 0.58809792,0.55108212 L 0.52581012,484.98977 L 3.6485499,492.43821 L 8.520663,496.82385 L 15.179825,499.47419 L 128.96395,499.47419 L 135.80997,496.63739 L 141.75709,491.22606 L 144.47996,482.0929 L 144.51764,0.52581012 L 0.58809792,0.55108212 z\"\n\ - id=\"path30\"\n\ - style=\"fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137\"\n\ - height=\"0\"\n\ - x=\"3.7\"\n\ - y=\"213\"\n\ - id=\"rect32\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"214.3\"\n\ - id=\"rect34\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"215\"\n\ - id=\"rect36\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" />\n\ - <g\n\ - id=\"g2681\">\n\ - <rect\n\ - width=\"138.11\"\n\ - height=\"0.11000219\"\n\ - x=\"3.4449987\"\n\ - y=\"65.445\"\n\ - id=\"rect38\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:0.88999784;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.5\"\n\ - y=\"66.360001\"\n\ - id=\"rect40\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"138.11032\"\n\ - height=\"0.11032366\"\n\ - x=\"3.444838\"\n\ - y=\"67.444839\"\n\ - id=\"rect42\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:0.88967633;stroke-opacity:1\" />\n\ - </g>\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-26.9\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect44\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-25.799999\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect46\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-472.70001\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect48\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"-471.39999\"\n\ - transform=\"scale(1,-1)\"\n\ - id=\"rect50\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 134,491 C 134,492 133,493 132,493 C 131,493 131,492 131,491 C 131,491 131,490 132,490 C 133,490 134,491 134,491 z\"\n\ - id=\"path58\"\n\ - style=\"fill:#fff080;fill-opacity:1;stroke:none;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 80,485 C 80,490 77,493 72,493 C 67,493 64,490 64,485 C 64,481 67,477 72,477 C 77,477 80,481 80,485 L 80,485 z\"\n\ - id=\"path60\"\n\ - style=\"fill:#ff4040;fill-opacity:1;stroke:#ff4040;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text54\"\n\ - style=\"font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"489\"\n\ - id=\"tspan56\"\n\ - style=\"font-size:12px;font-weight:bold;fill:#ffffff;font-family:Bitstream Vera Sans\">X</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 79,32 C 90,32 90,32 90,32 L 94,35 L 96,39 L 96,52 L 94,55 L 90,58 L 79,58 L 79,58 L 79,60 L 65,60 L 65,58 L 54,58 L 50,55 L 48,52 L 48,39 L 50,35 L 54,32 L 65,32 L 65,36 L 79,36 L 79,32 z\"\n\ - id=\"path59\"\n\ - style=\"fill:url(#linearGradient3267);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text61\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"49\"\n\ - id=\"tspan63\"\n\ - style=\"font-size:12px\">" - - data1 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 54,77 L 65,77 L 65,81 L 62,81 L 62,79 L 55,79\"\n\ - id=\"path65\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 54,95 L 65,95 L 65,91 L 62,91 L 62,93 L 55,93\"\n\ - id=\"path67\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 39,73 C 50,73 50,73 50,73 L 53,76 L 56,80 L 56,93 L 53,96 L 50,99 L 38,99 L 38,99 L 38,101 L 25,101 L 25,99 L 14,99 L 10,96 L 8,93 L 8,80 L 10,76 L 14,73 L 24,73 L 24,77 L 39,77 L 39,73 z\"\n\ - id=\"path69\"\n\ - style=\"fill:url(#linearGradient3333);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text71\"\n\ - style=\"font-size:8.00004005px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"32\"\n\ - y=\"90\"\n\ - id=\"tspan73\"\n\ - style=\"font-size:12px\">" - - data2 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 126,77 L 137,77 L 137,81 L 134,81 L 134,79 L 127,79\"\n\ - id=\"path75\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 126,95 L 137,95 L 137,91 L 134,91 L 134,93 L 127,93\"\n\ - id=\"path77\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 111,73 C 122,73 122,73 122,73 L 125,76 L 128,80 L 128,93 L 125,96 L 122,99 L 110,99 L 110,99 L 110,101 L 97,101 L 97,99 L 86,99 L 82,96 L 80,93 L 80,80 L 82,76 L 86,73 L 96,73 L 96,77 L 111,77 L 111,73 z\"\n\ - id=\"path79\"\n\ - style=\"fill:url(#linearGradient3349);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text81\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"104\"\n\ - y=\"90\"\n\ - id=\"tspan83\"\n\ - style=\"font-size:12px\">" - - data3 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 54,117 L 65,117 L 65,121 L 62,121 L 62,119 L 55,119\"\n\ - id=\"path85\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 54,136 L 65,136 L 65,132 L 62,132 L 62,134 L 55,134\"\n\ - id=\"path87\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 39,114 C 50,114 50,114 50,114 L 53,117 L 56,121 L 56,133 L 53,137 L 50,139 L 38,139 L 38,139 L 38,142 L 25,142 L 25,139 L 14,139 L 10,137 L 8,133 L 8,121 L 10,117 L 14,114 L 24,114 L 24,117 L 39,117 L 39,114 z\"\n\ - id=\"path89\"\n\ - style=\"fill:url(#linearGradient3341);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text91\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"32\"\n\ - y=\"131\"\n\ - id=\"tspan93\"\n\ - style=\"font-size:12px\">" - - data4 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 126,117 L 137,117 L 137,121 L 134,121 L 134,119 L 127,119\"\n\ - id=\"path112\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 126,136 L 137,136 L 137,132 L 134,132 L 134,134 L 127,134\"\n\ - id=\"path96\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 111,114 C 122,114 122,114 122,114 L 125,117 L 128,121 L 128,133 L 125,137 L 122,139 L 110,139 L 110,139 L 110,142 L 97,142 L 97,139 L 86,139 L 82,137 L 80,133 L 80,121 L 82,117 L 86,114 L 96,114 L 96,117 L 111,117 L 111,114 z\"\n\ - id=\"path98\"\n\ - style=\"fill:url(#linearGradient3357);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text100\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"104\"\n\ - y=\"131\"\n\ - id=\"tspan102\"\n\ - style=\"font-size:12px\">" - - data5 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 89,181 L 100,181 L 100,185 L 98,185 L 98,183 L 91,183\"\n\ - id=\"path104\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 89,199 L 100,199 L 100,195 L 98,195 L 98,197 L 91,197\"\n\ - id=\"path106\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 90,156 L 101,156 L 101,160 L 98,160 L 98,158 L 91,158\"\n\ - id=\"path108\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 90,174 L 101,174 L 101,170 L 98,170 L 98,172 L 91,172\"\n\ - id=\"path130\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 75,153 C 86,153 86,153 86,153 L 89,155 L 92,159 L 92,197 L 89,200 L 86,203 L 74,203 L 74,203 L 74,205 L 61,205 L 61,203 L 50,203 L 46,200 L 44,197 L 44,159 L 46,155 L 50,153 L 60,153 L 60,156 L 75,156 L 75,153 z\"\n\ - id=\"path111\"\n\ - style=\"fill:url(#linearGradient3365);fill-opacity:1;stroke:#00a000;stroke-width:1.33334005;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text113\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"68\"\n\ - y=\"181\"\n\ - id=\"tspan136\"\n\ - style=\"font-size:12px\">" - - data6 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text116\"\n\ - style=\"font-size:8px;text-align:end;text-anchor:end;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"90\"\n\ - y=\"167\"\n\ - id=\"tspan118\"\n\ - style=\"font-size:9px\">" - - data7 = \ -"</tspan>\n\ - <tspan\n\ - x=\"90\"\n\ - y=\"196\"\n\ - id=\"tspan120\"\n\ - style=\"font-size:9px\">" - - data8 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 53,250 L 64,250 L 64,254 L 62,254 L 62,252 L 55,252\"\n\ - id=\"path122\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 53,268 L 64,268 L 64,264 L 62,264 L 62,266 L 55,266\"\n\ - id=\"path124\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 54,225 L 65,225 L 65,229 L 62,229 L 62,227 L 55,227\"\n\ - id=\"path126\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 54,244 L 65,244 L 65,240 L 62,240 L 62,242 L 55,242\"\n\ - id=\"path128\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 39,222 C 50,222 50,222 50,222 L 53,225 L 56,229 L 56,266 L 53,269 L 50,272 L 38,272 L 38,272 L 38,275 L 25,275 L 25,272 L 14,272 L 10,269 L 8,266 L 8,229 L 10,225 L 14,222 L 24,222 L 24,225 L 39,225 L 39,222 z\"\n\ - id=\"path131\"\n\ - style=\"fill:url(#linearGradient3373);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text133\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"32\"\n\ - y=\"250\"\n\ - id=\"tspan158\"\n\ - style=\"font-size:12px\">" - - data9 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text136\"\n\ - style=\"font-size:9px;text-align:end;text-anchor:end;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"54\"\n\ - y=\"236\"\n\ - id=\"tspan138\"\n\ - style=\"font-size:9px\">" - - data10 = \ -"</tspan>\n\ - <tspan\n\ - x=\"54\"\n\ - y=\"265\"\n\ - id=\"tspan140\"\n\ - style=\"font-size:9px\">" - - data11 = \ -"</tspan>\n\ - </text>\n\ - <g\n\ - transform=\"translate(0,-2)\"\n\ - id=\"g142\">\n\ - <path\n\ - d=\"M 126,227 L 137.08348,227 L 137,231 L 134,231 L 134,229 L 127,229\"\n\ - id=\"path144\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 126,246 L 137,246 L 137,242 L 134,242 L 134,244 L 127,244\"\n\ - id=\"path146\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 111,224 C 122,224 122,224 122,224 L 125,227 L 128,231 L 128,243 L 125,247 L 122,250 L 110,250 L 110,250 L 110,252 L 97,252 L 97,250 L 86,250 L 82,247 L 80,243 L 80,231 L 82,227 L 86,224 L 96,224 L 96,227 L 111,227 L 111,224 z\"\n\ - id=\"path148\"\n\ - style=\"fill:url(#linearGradient3381);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - id=\"text150\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"104\"\n\ - y=\"241\"\n\ - id=\"tspan152\"\n\ - style=\"font-size:12px\">" - - data12 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <path\n\ - d=\"M 38,405 L 41,405 L 41,408 L 46,408 L 46,405 L 107,405 L 107,419 L 46,419 L 46,416 L 41,416 L 41,419 L 38,419 L 38,405 z\"\n\ - id=\"path154\"\n\ - style=\"fill:url(#linearGradient3405);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - y=\"26\"\n\ - id=\"text156\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"416\"\n\ - id=\"tspan159\"\n\ - style=\"font-size:10.5px\">" - - data13 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 38,429 L 41,429 L 41,432 L 46,432 L 46,429 L 107,429 L 107,443 L 46,443 L 46,440 L 41,440 L 41,443 L 38,443 L 38,429 z\"\n\ - id=\"path161\"\n\ - style=\"fill:url(#linearGradient3413);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - y=\"26\"\n\ - id=\"text163\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"439\"\n\ - id=\"tspan165\"\n\ - style=\"font-size:10.5px\">" - - data14 = \ -"</tspan>\n\ - </text>\n\ - <path\n\ - d=\"M 38,453 L 41,453 L 41,456 L 46,456 L 46,453 L 107,453 L 107,467 L 46,467 L 46,464 L 41,464 L 41,467 L 38,467 L 38,453 z\"\n\ - id=\"path167\"\n\ - style=\"fill:url(#linearGradient3421);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - y=\"26\"\n\ - id=\"text169\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"463\"\n\ - id=\"tspan171\"\n\ - style=\"font-size:10.5px\">" - - data15 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - id=\"text173\"\n\ - style=\"font-size:12px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"72\"\n\ - y=\"19\"\n\ - id=\"tspan175\"\n\ - style=\"font-size:20px\">" - - data16 = \ -"</tspan>\n\ - </text>\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"280.60001\"\n\ - id=\"rect177\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"281.70001\"\n\ - id=\"rect179\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"282.60001\"\n\ - id=\"rect181\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"398.5\"\n\ - id=\"rect183\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#e0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"399.60001\"\n\ - id=\"rect185\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#fff080;stroke-width:1;stroke-opacity:1\" />\n\ - <rect\n\ - width=\"137.5\"\n\ - height=\"0.14\"\n\ - x=\"3.7\"\n\ - y=\"400.60001\"\n\ - id=\"rect187\"\n\ - style=\"opacity:1;fill:#ffd000;fill-opacity:1;stroke:#ffffc4;stroke-width:1;stroke-opacity:1\" />\n\ - <g\n\ - transform=\"translate(0.1,0)\"\n\ - id=\"g3515\">\n\ - <path\n\ - d=\"M 60.4,293.2 L 71.4,293.2 L 71.4,297.2 L 68.4,297.2 L 68.4,295.2 L 61.4,295.2\"\n\ - id=\"path191\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 60.4,310.2 L 71.4,310.2 L 71.4,306.2 L 68.4,306.2 L 68.4,308.2 L 61.4,308.2\"\n\ - id=\"path193\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 45.4,288.2 C 56.4,288.2 56.4,288.2 56.4,288.2 L 59.4,291.2 L 62.4,295.2 L 62.4,307.2 L 59.4,311.2 L 56.4,314.2 L 44.4,314.2 L 44.4,314.2 L 44.4,316.2 L 31.4,316.2 L 31.4,314.2 L 20.4,314.2 L 16.4,311.2 L 14.4,307.2 L 14.4,295.2 L 16.4,291.2 L 20.4,288.2 L 30.4,288.2 L 30.4,291.2 L 45.4,291.2 L 45.4,288.2 z\"\n\ - id=\"path195\"\n\ - style=\"fill:url(#linearGradient3535);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"-65.599998\"\n\ - y=\"64.199997\"\n\ - id=\"text197\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"38.400002\"\n\ - y=\"305.20001\"\n\ - id=\"tspan199\"\n\ - style=\"font-size:12px\">" - - data17 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <g\n\ - transform=\"translate(1.1,-0.4000015)\"\n\ - id=\"g3506\">\n\ - <path\n\ - d=\"M 59.4,328 L 70.4,328 L 70.4,332 L 67.4,332 L 67.4,330 L 60.4,330\"\n\ - id=\"path203\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 59.4,345 L 70.4,345 L 70.4,341 L 67.4,341 L 67.4,343 L 60.4,343\"\n\ - id=\"path205\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 44.4,323 C 55.4,323 55.4,323 55.4,323 L 58.4,326 L 61.4,330 L 61.4,342 L 58.4,346 L 55.4,349 L 43.4,349 L 43.4,349 L 43.4,351 L 30.4,351 L 30.4,349 L 19.4,349 L 15.4,346 L 13.4,342 L 13.4,330 L 15.4,326 L 19.4,323 L 29.4,323 L 29.4,326 L 44.4,326 L 44.4,323 z\"\n\ - id=\"path207\"\n\ - style=\"fill:url(#linearGradient3533);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"-66.599998\"\n\ - y=\"99\"\n\ - id=\"text209\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"37.400002\"\n\ - y=\"335\"\n\ - id=\"tspan211\"\n\ - style=\"font-size:12px\">" - - data18 = \ -"</tspan>\n\ - </text>\n\ - <text\n\ - x=\"-66.599998\"\n\ - y=\"99\"\n\ - id=\"text213\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"37.400002\"\n\ - y=\"345\"\n\ - id=\"tspan215\"\n\ - style=\"font-size:12px\">" - - data19 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <path\n\ - d=\"M 64.07,364.3575 L 67.42,364.3575 L 67.42,366.87 L 72.11,366.87 L 72.11,349.45 L 129.73,349.45 L 129.73,392.33 L 72.11,392.33 L 72.11,373.905 L 67.42,373.905 L 67.42,376.585 L 64.07,376.585 L 64.07,364.3575 z\"\n\ - id=\"path224\"\n\ - style=\"fill:url(#linearGradient2711);fill-opacity:1;fill-rule:nonzero;stroke:#a0a000;stroke-width:1.34000003;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1\" />\n\ - <g\n\ - transform=\"matrix(0.75,0,0,0.75,80.7745,350.9375)\"\n\ - id=\"activity-journal\"\n\ - style=\"stroke:#000000;stroke-opacity:1;display:block\">\n\ - <path\n\ - d=\"M 45.866,44.669 C 45.866,47.18 44.338,49 41.534,49 L 12.077,49 L 12.077,6 L 41.535,6 C 43.685,6 45.867,8.154 45.867,10.33 L 45.866,44.669 L 45.866,44.669 z\"\n\ - id=\"path2458\"\n\ - style=\"fill:#ffffff;stroke:#000000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1\" />\n\ - <line\n\ - id=\"line2460\"\n\ - y2=\"48.881001\"\n\ - y1=\"6.1209998\"\n\ - x2=\"21.341\"\n\ - x1=\"21.341\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 7.384,14.464 C 7.384,14.464 9.468,15.159 11.554,15.159 C 13.64,15.159 15.727,14.464 15.727,14.464\"\n\ - id=\"path2462\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 7.384,28.021 C 7.384,28.021 9.296,28.716 11.729,28.716 C 14.162,28.716 15.728,28.021 15.728,28.021\"\n\ - id=\"path2464\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 7.384,41.232 C 7.384,41.232 9.12,41.927 11.902,41.927 C 14.683,41.927 15.727,41.232 15.727,41.232\"\n\ - id=\"path2466\"\n\ - style=\"fill:none;stroke:#000000;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1\" />\n\ - </g>\n\ - <g\n\ - id=\"g3522\">\n\ - <path\n\ - d=\"M 60.5,362 L 71.5,362 L 71.5,366 L 68.5,366 L 68.5,364 L 61.5,364\"\n\ - id=\"path2722\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 60.5,379 L 71.5,379 L 71.5,375 L 68.5,375 L 68.5,377 L 61.5,377\"\n\ - id=\"path2724\"\n\ - style=\"fill:#00e000;fill-opacity:1;stroke:#008000;stroke-width:1;stroke-opacity:1\" />\n\ - <path\n\ - d=\"M 45.5,357 C 56.5,357 56.5,357 56.5,357 L 59.5,360 L 62.5,364 L 62.5,376 L 59.5,380 L 56.5,383 L 44.5,383 L 44.5,383 L 44.5,385 L 31.5,385 L 31.5,383 L 20.5,383 L 16.5,380 L 14.5,376 L 14.5,364 L 16.5,360 L 20.5,357 L 30.5,357 L 30.5,360 L 45.5,360 L 45.5,357 z\"\n\ - id=\"path2726\"\n\ - style=\"fill:url(#linearGradient3502);fill-opacity:1;stroke:#00a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"-65.5\"\n\ - y=\"133\"\n\ - id=\"text2728\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"38.5\"\n\ - y=\"374\"\n\ - id=\"tspan2730\"\n\ - style=\"font-size:12px\">" - - data20 = \ -"</tspan>\n\ - </text>\n\ - </g>\n\ - <path\n\ - d=\"M 64.1,294.6 L 67.1,294.6 L 67.1,297.6 L 72.1,297.6 L 72.1,294.6 L 133.1,294.6 L 133.1,308.6 L 72.1,308.6 L 72.1,305.6 L 67.1,305.6 L 67.1,308.6 L 64.1,308.6 L 64.1,294.6 z\"\n\ - id=\"path2694\"\n\ - style=\"fill:url(#linearGradient2696);fill-opacity:1;stroke:#a0a000;stroke-width:1;stroke-opacity:1\" />\n\ - <text\n\ - x=\"28.000002\"\n\ - y=\"-131.10329\"\n\ - id=\"text3529\"\n\ - style=\"font-size:8px;text-align:center;text-anchor:middle;font-family:Bitstream Vera Sans\">\n\ - <tspan\n\ - x=\"100.00002\"\n\ - y=\"305.89673\"\n\ - id=\"tspan3531\"\n\ - style=\"font-size:10.5px\">" - - data21 = \ -"</tspan>\n\ - </text>\n\ -</svg>" - - - FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") - FILE.write(data0) - FILE.write(mystring1.encode("utf-8")) - FILE.write(data1) - FILE.write(mystring2.encode("utf-8")) - FILE.write(data2) - FILE.write(mystring3.encode("utf-8")) - FILE.write(data3) - FILE.write(mystring4.encode("utf-8")) - FILE.write(data4) - FILE.write(mystring5.encode("utf-8")) - FILE.write(data5) - FILE.write(mystring6.encode("utf-8")) - FILE.write(data6) - FILE.write(mystring7.encode("utf-8")) - FILE.write(data7) - FILE.write(mystring8.encode("utf-8")) - FILE.write(data8) - FILE.write(mystring9.encode("utf-8")) - FILE.write(data9) - FILE.write(mystring10.encode("utf-8")) - FILE.write(data10) - FILE.write(mystring11.encode("utf-8")) - FILE.write(data11) - FILE.write(mystring12.encode("utf-8")) - FILE.write(data12) - FILE.write(mystring13.encode("utf-8")) - FILE.write(data13) - FILE.write(mystring14.encode("utf-8")) - FILE.write(data14) - FILE.write(mystring15.encode("utf-8")) - FILE.write(data15) - FILE.write(mystring16.encode("utf-8")) - FILE.write(data16) - FILE.write(mystring17.encode("utf-8")) - FILE.write(data17) - strings = mystring18.split(" ",2) - FILE.write(strings[0].encode("utf-8")) - FILE.write(data18) - if len(strings) > 1: - FILE.write(strings[1].encode("utf-8")) - FILE.write(data19) - FILE.write(mystring17.encode("utf-8")) - FILE.write(data20) - FILE.write(mystring19.encode("utf-8")) - FILE.write(data21) - FILE.close() - return - -if __name__ == "__main__": - main() diff --git a/svg/vres.py b/svg/vres.py deleted file mode 100755 index ec919a3..0000000 --- a/svg/vres.py +++ /dev/null @@ -1,105 +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 = "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/wait.py b/svg/wait.py deleted file mode 100755 index 08c2bd5..0000000 --- a/svg/wait.py +++ /dev/null @@ -1,103 +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 = "wait" - 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 = _("wait") - mygroup = "flow" - - 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=\"87\" \n \ - height=\"44\"> \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:#feb00a;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"22\" \n \ - x2=\"74\" \n \ - y2=\"22\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:#c18516;fill-opacity:1;stroke:#966711;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,6 L 86.5,6 L 86.5,12 L 82.5,12 L 82.5,9 L 72,9\" /> \n \ - <path \n \ - style=\"fill:#c18516;fill-opacity:1;stroke:#966711;stroke-width:1.5;stroke-opacity:1\" \n \ - d=\"M 70,33.5 L 86.5,33.5 L 86.5,27.5 L 82.5,27.5 L 82.5,30.5 L 72,30.5\" /> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#a97513;stroke-width:2;stroke-opacity:1\" \n \ - d=\"M 48,1 C 64,1 64,1 64,1 C 64,1 68.131798,3.4865526 69.5,5 C 70.897472,6.5458243 73,11 73,11 L 73,30 C 73,30 70.78295,33.693654 69.5,35 C 68.07044,36.455629 64,39 64,39 L 47,39 L 47,39 L 47,43 L 27,43 L 27,39 L 10,39 C 10,39 5.9295605,36.455629 4.5,35 C 3.2170498,33.693654 1,30 1,30 L 1,11 C 1,11 3.1025283,6.5458243 4.5,5 C 5.8682021,3.4865526 10,1 10,1 L 26,1 L 26,6 L 48,6 L 48,1 z\" /> \n \ - <text \n \ - style=\"font-size:18px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"37\" \n \ - y=\"26\" \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/width.py b/svg/width.py deleted file mode 100755 index 12f73ca..0000000 --- a/svg/width.py +++ /dev/null @@ -1,104 +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 = "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 deleted file mode 100755 index 24203c6..0000000 --- a/svg/xcor.py +++ /dev/null @@ -1,96 +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 = "xcor" - 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 = _("xcor") - mygroup = "turtle" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"54\" \n \ - y=\"15.5\" \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/ycor.py b/svg/ycor.py deleted file mode 100755 index 16e3ff4..0000000 --- a/svg/ycor.py +++ /dev/null @@ -1,96 +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 = "ycor" - 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 = _("ycor") - mygroup = "turtle" - - print mystring - - data0 = \ -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n \ -<svg \n \ - xmlns=\"http://www.w3.org/2000/svg\" \n \ - xmlns:xlink=\"http://www.w3.org/1999/xlink\" \n \ - width=\"105\" \n \ - height=\"21\"> \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:#00ff00;stop-opacity:1;\" \n \ - offset=\"1\" \n \ - id=\"stop3170\" /> \n \ - </linearGradient> \n \ - <linearGradient \n \ - xlink:href=\"#linearGradient3166\" \n \ - id=\"linearGradient3172\" \n \ - x1=\"0\" \n \ - y1=\"0\" \n \ - x2=\"104\" \n \ - y2=\"21\" \n \ - gradientUnits=\"userSpaceOnUse\" /> \n \ - </defs> \n \ - <path \n \ - style=\"fill:url(#linearGradient3172);fill-opacity:1;stroke:#00a000;stroke-width:2;stroke-opacity:1\" \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 \ - <text \n \ - style=\"font-size:12px;text-anchor:middle;text-align:center;font-family:Bitstream Vera Sans\"> \n \ - <tspan \n \ - x=\"54\" \n \ - y=\"15.5\" \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() |