[Tux4kids-commits] r1576 - tuxtype/trunk/data/scripts

Matthew Trey treymd-guest at alioth.debian.org
Tue Oct 6 21:14:13 UTC 2009


Author: treymd-guest
Date: 2009-10-06 21:14:12 +0000 (Tue, 06 Oct 2009)
New Revision: 1576

Added:
   tuxtype/trunk/data/scripts/sed-linux.rules
   tuxtype/trunk/data/scripts/sed-linux.sh
   tuxtype/trunk/data/scripts/sed-windows.rules
   tuxtype/trunk/data/scripts/sed-windows.sh
Modified:
   tuxtype/trunk/data/scripts/Makefile.am
Log:
Temporary fix for TTF/Pango disparity, added a few sed scripts to edit scripts at build time

Modified: tuxtype/trunk/data/scripts/Makefile.am
===================================================================
--- tuxtype/trunk/data/scripts/Makefile.am	2009-10-06 16:07:28 UTC (rev 1575)
+++ tuxtype/trunk/data/scripts/Makefile.am	2009-10-06 21:14:12 UTC (rev 1576)
@@ -3,6 +3,16 @@
 
 scriptsdir = $(pkgdatadir)/scripts
 
+if BUILD_MINGW32
+  TEXT_KLUDGE=./sed-windows.sh
+else
+  TEXT_KLUDGE=./sed-linux.sh
+endif
+
+
+all-am:
+	${TEXT_KLUDGE}
+
 dist_scripts_DATA = projectInfo.xml \
   cascade.xml \
   laser.xml \

Added: tuxtype/trunk/data/scripts/sed-linux.rules
===================================================================
--- tuxtype/trunk/data/scripts/sed-linux.rules	                        (rev 0)
+++ tuxtype/trunk/data/scripts/sed-linux.rules	2009-10-06 21:14:12 UTC (rev 1576)
@@ -0,0 +1,45 @@
+s/<text color=\"#000000\" x=\"100\" y=\"273\">A<\/text>/<text color=\"#000000\" x=\"100\" y=\"280\">A<\/text>/g
+s/<text color=\"#000000\" x=\"130\" y=\"273\">S<\/text>/<text color=\"#000000\" x=\"130\" y=\"280\">S<\/text>/g
+s/<text color=\"#000000\" x=\"160\" y=\"273\">D<\/text>/<text color=\"#000000\" x=\"160\" y=\"280\">D<\/text>/g
+s/<text color=\"#000000\" x=\"190\" y=\"273\">F<\/text>/<text color=\"#000000\" x=\"190\" y=\"280\">F<\/text>/g
+s/<text color=\"#000000\" x=\"220\" y=\"273\">G<\/text>/<text color=\"#000000\" x=\"220\" y=\"280\">G<\/text>/g
+s/<text color=\"#000000\" x=\"250\" y=\"273\">H<\/text>/<text color=\"#000000\" x=\"250\" y=\"280\">H<\/text>/g
+s/<text color=\"#000000\" x=\"285\" y=\"273\">J<\/text>/<text color=\"#000000\" x=\"285\" y=\"280\">J<\/text>/g
+s/<text color=\"#000000\" x=\"315\" y=\"273\">K<\/text>/<text color=\"#000000\" x=\"315\" y=\"280\">K<\/text>/g
+s/<text color=\"#000000\" x=\"345\" y=\"273\">L<\/text>/<text color=\"#000000\" x=\"345\" y=\"280\">L<\/text>/g
+s/<text color=\"#000000\" x=\"385\" y=\"273\">;<\/text>/<text color=\"#000000\" x=\"385\" y=\"280\">;<\/text>/g
+s/<text color=\"#000000\" x=\"415\" y=\"273\">'<\/text>/<text color=\"#000000\" x=\"415\" y=\"280\">'<\/text>/g
+s/<text color=\"#000000\" x=\"90\" y=\"243\">Q<\/text>/<text color=\"#000000\" x=\"90\" y=\"250\">Q<\/text>/g
+s/<text color=\"#000000\" x=\"118\" y=\"243\">W<\/text>/<text color=\"#000000\" x=\"118\" y=\"250\">W<\/text>/g
+s/<text color=\"#000000\" x=\"152\" y=\"243\">E<\/text>/<text color=\"#000000\" x=\"152\" y=\"250\">E<\/text>/g
+s/<text color=\"#000000\" x=\"183\" y=\"243\">R<\/text>/<text color=\"#000000\" x=\"183\" y=\"250\">R<\/text>/g
+s/<text color=\"#000000\" x=\"212\" y=\"243\">T<\/text>/<text color=\"#000000\" x=\"212\" y=\"250\">T<\/text>/g
+s/<text color=\"#000000\" x=\"244\" y=\"243\">Y<\/text>/<text color=\"#000000\" x=\"244\" y=\"250\">Y<\/text>/g
+s/<text color=\"#000000\" x=\"273\" y=\"243\">U<\/text>/<text color=\"#000000\" x=\"273\" y=\"250\">U<\/text>/g
+s/<text color=\"#000000\" x=\"306\" y=\"243\">I<\/text>/<text color=\"#000000\" x=\"306\" y=\"250\">I<\/text>/g
+s/<text color=\"#000000\" x=\"334\" y=\"243\">O<\/text>/<text color=\"#000000\" x=\"334\" y=\"250\">O<\/text>/g
+s/<text color=\"#000000\" x=\"365\" y=\"243\">P<\/text>/<text color=\"#000000\" x=\"365\" y=\"250\">P<\/text>/g
+s/<text color=\"#000000\" x=\"395\" y=\"243\">\[<\/text>/<text color=\"#000000\" x=\"395\" y=\"250\">\[<\/text>/g
+s/<text color=\"#000000\" x=\"425\" y=\"243\">]<\/text>/<text color=\"#000000\" x=\"425\" y=\"250\">]<\/text>/g
+s/<text color=\"#000000\" x=\"110\" y=\"303\">Z<\/text>/<text color=\"#000000\" x=\"110\" y=\"310\">Z<\/text>/g
+s/<text color=\"#000000\" x=\"142\" y=\"303\">X<\/text>/<text color=\"#000000\" x=\"142\" y=\"310\">X<\/text>/g
+s/<text color=\"#000000\" x=\"170\" y=\"303\">C<\/text>/<text color=\"#000000\" x=\"170\" y=\"310\">C<\/text>/g
+s/<text color=\"#000000\" x=\"202\" y=\"303\">V<\/text>/<text color=\"#000000\" x=\"202\" y=\"310\">V<\/text>/g
+s/<text color=\"#000000\" x=\"232\" y=\"303\">B<\/text>/<text color=\"#000000\" x=\"232\" y=\"310\">B<\/text>/g
+s/<text color=\"#000000\" x=\"262\" y=\"303\">N<\/text>/<text color=\"#000000\" x=\"262\" y=\"310\">N<\/text>/g
+s/<text color=\"#000000\" x=\"292\" y=\"303\">M<\/text>/<text color=\"#000000\" x=\"292\" y=\"310\">M<\/text>/g
+s/<text color=\"#000000\" x=\"330\" y=\"303\">,<\/text>/<text color=\"#000000\" x=\"330\" y=\"310\">,<\/text>/g
+s/<text color=\"#000000\" x=\"360\" y=\"303\">.<\/text>/<text color=\"#000000\" x=\"360\" y=\"310\">.<\/text>/g
+s/<text color=\"#000000\" x=\"387\" y=\"303\">\/<\/text>/<text color=\"#000000\" x=\"387\" y=\"310\">\/<\/text>/g
+s/<text color=\"#000000\" x=\"85\" y=\"213\">1<\/text>/<text color=\"#000000\" x=\"85\" y=\"220\">1<\/text>/g
+s/<text color=\"#000000\" x=\"115\" y=\"213\">2<\/text>/<text color=\"#000000\" x=\"115\" y=\"220\">2<\/text>/g
+s/<text color=\"#000000\" x=\"145\" y=\"213\">3<\/text>/<text color=\"#000000\" x=\"145\" y=\"220\">3<\/text>/g
+s/<text color=\"#000000\" x=\"175\" y=\"213\">4<\/text>/<text color=\"#000000\" x=\"175\" y=\"220\">4<\/text>/g
+s/<text color=\"#000000\" x=\"205\" y=\"213\">5<\/text>/<text color=\"#000000\" x=\"205\" y=\"220\">5<\/text>/g
+s/<text color=\"#000000\" x=\"235\" y=\"213\">6<\/text>/<text color=\"#000000\" x=\"235\" y=\"220\">6<\/text>/g
+s/<text color=\"#000000\" x=\"265\" y=\"213\">7<\/text>/<text color=\"#000000\" x=\"265\" y=\"220\">7<\/text>/g
+s/<text color=\"#000000\" x=\"295\" y=\"213\">8<\/text>/<text color=\"#000000\" x=\"295\" y=\"220\">8<\/text>/g
+s/<text color=\"#000000\" x=\"325\" y=\"213\">9<\/text>/<text color=\"#000000\" x=\"325\" y=\"220\">9<\/text>/g
+s/<text color=\"#000000\" x=\"355\" y=\"213\">0<\/text>/<text color=\"#000000\" x=\"355\" y=\"220\">0<\/text>/g
+s/<text color=\"#000000\" x=\"390\" y=\"213\">-<\/text>/<text color=\"#000000\" x=\"390\" y=\"220\">-<\/text>/g
+s/<text color=\"#000000\" x=\"420\" y=\"213\">=<\/text>/<text color=\"#000000\" x=\"420\" y=\"220\">=<\/text>/g

Added: tuxtype/trunk/data/scripts/sed-linux.sh
===================================================================
--- tuxtype/trunk/data/scripts/sed-linux.sh	                        (rev 0)
+++ tuxtype/trunk/data/scripts/sed-linux.sh	2009-10-06 21:14:12 UTC (rev 1576)
@@ -0,0 +1,14 @@
+#!/bin/bash
+# This is a quick kludge to get the x,y coordinates right in the xml scripts
+# this file resets the coordinates in case you previously built a windows distribution
+# both files may be removed once SDL_Pango is working in the windows cross-build
+
+echo -e "Editing lesson scripts for a non-windows build...\n"
+
+touch fixed-linux
+
+sed -f sed-linux.rules -i *
+
+# Don't break the build if something went wrong!
+exit 0
+


Property changes on: tuxtype/trunk/data/scripts/sed-linux.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: tuxtype/trunk/data/scripts/sed-windows.rules
===================================================================
--- tuxtype/trunk/data/scripts/sed-windows.rules	                        (rev 0)
+++ tuxtype/trunk/data/scripts/sed-windows.rules	2009-10-06 21:14:12 UTC (rev 1576)
@@ -0,0 +1,45 @@
+s/<text color=\"#000000\" x=\"100\" y=\"280\">A<\/text>/<text color=\"#000000\" x=\"100\" y=\"273\">A<\/text>/g
+s/<text color=\"#000000\" x=\"130\" y=\"280\">S<\/text>/<text color=\"#000000\" x=\"130\" y=\"273\">S<\/text>/g
+s/<text color=\"#000000\" x=\"160\" y=\"280\">D<\/text>/<text color=\"#000000\" x=\"160\" y=\"273\">D<\/text>/g
+s/<text color=\"#000000\" x=\"190\" y=\"280\">F<\/text>/<text color=\"#000000\" x=\"190\" y=\"273\">F<\/text>/g
+s/<text color=\"#000000\" x=\"220\" y=\"280\">G<\/text>/<text color=\"#000000\" x=\"220\" y=\"273\">G<\/text>/g
+s/<text color=\"#000000\" x=\"250\" y=\"280\">H<\/text>/<text color=\"#000000\" x=\"250\" y=\"273\">H<\/text>/g
+s/<text color=\"#000000\" x=\"285\" y=\"280\">J<\/text>/<text color=\"#000000\" x=\"285\" y=\"273\">J<\/text>/g
+s/<text color=\"#000000\" x=\"315\" y=\"280\">K<\/text>/<text color=\"#000000\" x=\"315\" y=\"273\">K<\/text>/g
+s/<text color=\"#000000\" x=\"345\" y=\"280\">L<\/text>/<text color=\"#000000\" x=\"345\" y=\"273\">L<\/text>/g
+s/<text color=\"#000000\" x=\"385\" y=\"280\">;<\/text>/<text color=\"#000000\" x=\"385\" y=\"273\">;<\/text>/g
+s/<text color=\"#000000\" x=\"415\" y=\"280\">'<\/text>/<text color=\"#000000\" x=\"415\" y=\"280\">'<\/text>/g
+s/<text color=\"#000000\" x=\"90\" y=\"250\">Q<\/text>/<text color=\"#000000\" x=\"90\" y=\"243\">Q<\/text>/g
+s/<text color=\"#000000\" x=\"118\" y=\"250\">W<\/text>/<text color=\"#000000\" x=\"118\" y=\"243\">W<\/text>/g
+s/<text color=\"#000000\" x=\"152\" y=\"250\">E<\/text>/<text color=\"#000000\" x=\"152\" y=\"243\">E<\/text>/g
+s/<text color=\"#000000\" x=\"183\" y=\"250\">R<\/text>/<text color=\"#000000\" x=\"183\" y=\"243\">R<\/text>/g
+s/<text color=\"#000000\" x=\"212\" y=\"250\">T<\/text>/<text color=\"#000000\" x=\"212\" y=\"243\">T<\/text>/g
+s/<text color=\"#000000\" x=\"244\" y=\"250\">Y<\/text>/<text color=\"#000000\" x=\"244\" y=\"243\">Y<\/text>/g
+s/<text color=\"#000000\" x=\"273\" y=\"250\">U<\/text>/<text color=\"#000000\" x=\"273\" y=\"243\">U<\/text>/g
+s/<text color=\"#000000\" x=\"306\" y=\"250\">I<\/text>/<text color=\"#000000\" x=\"306\" y=\"243\">I<\/text>/g
+s/<text color=\"#000000\" x=\"334\" y=\"250\">O<\/text>/<text color=\"#000000\" x=\"334\" y=\"243\">O<\/text>/g
+s/<text color=\"#000000\" x=\"365\" y=\"250\">P<\/text>/<text color=\"#000000\" x=\"365\" y=\"243\">P<\/text>/g
+s/<text color=\"#000000\" x=\"395\" y=\"250\">\[<\/text>/<text color=\"#000000\" x=\"395\" y=\"240\">\[<\/text>/g
+s/<text color=\"#000000\" x=\"425\" y=\"250\">]<\/text>/<text color=\"#000000\" x=\"425\" y=\"240\">]<\/text>/g
+s/<text color=\"#000000\" x=\"110\" y=\"310\">Z<\/text>/<text color=\"#000000\" x=\"110\" y=\"303\">Z<\/text>/g
+s/<text color=\"#000000\" x=\"142\" y=\"310\">X<\/text>/<text color=\"#000000\" x=\"142\" y=\"303\">X<\/text>/g
+s/<text color=\"#000000\" x=\"170\" y=\"310\">C<\/text>/<text color=\"#000000\" x=\"170\" y=\"303\">C<\/text>/g
+s/<text color=\"#000000\" x=\"202\" y=\"310\">V<\/text>/<text color=\"#000000\" x=\"202\" y=\"303\">V<\/text>/g
+s/<text color=\"#000000\" x=\"232\" y=\"310\">B<\/text>/<text color=\"#000000\" x=\"232\" y=\"303\">B<\/text>/g
+s/<text color=\"#000000\" x=\"262\" y=\"310\">N<\/text>/<text color=\"#000000\" x=\"262\" y=\"303\">N<\/text>/g
+s/<text color=\"#000000\" x=\"292\" y=\"310\">M<\/text>/<text color=\"#000000\" x=\"292\" y=\"303\">M<\/text>/g
+s/<text color=\"#000000\" x=\"330\" y=\"310\">,<\/text>/<text color=\"#000000\" x=\"330\" y=\"303\">,<\/text>/g
+s/<text color=\"#000000\" x=\"360\" y=\"310\">.<\/text>/<text color=\"#000000\" x=\"360\" y=\"303\">.<\/text>/g
+s/<text color=\"#000000\" x=\"387\" y=\"310\">\/<\/text>/<text color=\"#000000\" x=\"387\" y=\"303\">\/<\/text>/g
+s/<text color=\"#000000\" x=\"85\" y=\"220\">1<\/text>/<text color=\"#000000\" x=\"85\" y=\"213\">1<\/text>/g
+s/<text color=\"#000000\" x=\"115\" y=\"220\">2<\/text>/<text color=\"#000000\" x=\"115\" y=\"213\">2<\/text>/g
+s/<text color=\"#000000\" x=\"145\" y=\"220\">3<\/text>/<text color=\"#000000\" x=\"145\" y=\"213\">3<\/text>/g
+s/<text color=\"#000000\" x=\"175\" y=\"220\">4<\/text>/<text color=\"#000000\" x=\"175\" y=\"213\">4<\/text>/g
+s/<text color=\"#000000\" x=\"205\" y=\"220\">5<\/text>/<text color=\"#000000\" x=\"205\" y=\"213\">5<\/text>/g
+s/<text color=\"#000000\" x=\"235\" y=\"220\">6<\/text>/<text color=\"#000000\" x=\"235\" y=\"213\">6<\/text>/g
+s/<text color=\"#000000\" x=\"265\" y=\"220\">7<\/text>/<text color=\"#000000\" x=\"265\" y=\"213\">7<\/text>/g
+s/<text color=\"#000000\" x=\"295\" y=\"220\">8<\/text>/<text color=\"#000000\" x=\"295\" y=\"213\">8<\/text>/g
+s/<text color=\"#000000\" x=\"325\" y=\"220\">9<\/text>/<text color=\"#000000\" x=\"325\" y=\"213\">9<\/text>/g
+s/<text color=\"#000000\" x=\"355\" y=\"220\">0<\/text>/<text color=\"#000000\" x=\"355\" y=\"213\">0<\/text>/g
+s/<text color=\"#000000\" x=\"390\" y=\"220\">-<\/text>/<text color=\"#000000\" x=\"390\" y=\"213\">-<\/text>/g
+s/<text color=\"#000000\" x=\"420\" y=\"220\">=<\/text>/<text color=\"#000000\" x=\"420\" y=\"213\">=<\/text>/g

Added: tuxtype/trunk/data/scripts/sed-windows.sh
===================================================================
--- tuxtype/trunk/data/scripts/sed-windows.sh	                        (rev 0)
+++ tuxtype/trunk/data/scripts/sed-windows.sh	2009-10-06 21:14:12 UTC (rev 1576)
@@ -0,0 +1,11 @@
+#!/bin/bash
+# This is a quick kludge to get the x,y coordinates right in the xml scripts
+# it can be removed once SDL_Pango is working in the windows crossbuild
+
+echo -e "Editing lesson scripts for a windows build...\n"
+
+sed -f sed-windows.rules -i *
+
+# Don't break the build if something went wrong!
+exit 0
+


Property changes on: tuxtype/trunk/data/scripts/sed-windows.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Tux4kids-commits mailing list