--- lletters-media-0.1.9a.orig/debian/compat +++ lletters-media-0.1.9a/debian/compat @@ -0,0 +1 @@ +4 --- lletters-media-0.1.9a.orig/debian/dirs +++ lletters-media-0.1.9a/debian/dirs @@ -0,0 +1,3 @@ +usr/share/games/lletters/images +usr/share/games/lletters/sounds + --- lletters-media-0.1.9a.orig/debian/copyright +++ lletters-media-0.1.9a/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Gopal Narayanan on +Fri, 6 Apr 2001 13:02:02 -0400. + +It was downloaded from http://lln.sourceforge.net/ + +Upstream Authors: Kirk Ismay, + +Copyright: +GNU GPL version 2. On Debian GNU/Linux systems the text of the GPL can +be found in /usr/share/common-licenses/GPL + --- lletters-media-0.1.9a.orig/debian/README.Debian +++ lletters-media-0.1.9a/debian/README.Debian @@ -0,0 +1,9 @@ +lletters-media for Debian +---------------------- + +The Linux For Kids Project +(http://sourceforge.net/projects/linuxforkids/) has other images and +sounds you might want to use. Install your own images in +/usr/share/games/lletters/images. + + -- Gopal Narayanan , Fri, 6 Apr 2001 13:02:02 -0400 --- lletters-media-0.1.9a.orig/debian/control +++ lletters-media-0.1.9a/debian/control @@ -0,0 +1,26 @@ +Source: lletters-media +Section: games +Priority: optional +Maintainer: Rudy Godoy +Build-Depends: debhelper (>= 4.2.12) +Standards-Version: 3.7.2 + +Package: lletters-media +Architecture: all +Recommends: lletters +Replaces: lletters (<< 0.1.95) +Description: GTK letters-learning game for small children - data files + This is based on author's daughter's (formerly) favorite game, Larry's + Learning Letters and Numbers. This is a Linux replacement, written from + scratch, with many improvements. It was built using the GTK (Gimp + ToolKit) for X. It presently works with 1.0.x and 1.1.x, but images + load faster with the newer library. + . + It is intended for children 2 and up, and is a fun learning game. It + helps younger children learn their letters and numbers, while older + children will improve their spelling, and vocabulary skills. It also + helps them develop important keyboard and mouse skills too. + . + This package installs the images and sounds required by the lletters + package. + --- lletters-media-0.1.9a.orig/debian/rules +++ lletters-media-0.1.9a/debian/rules @@ -0,0 +1,57 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=1 +package=lletters-media + +build: + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. +# -$(MAKE) clean + + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. +# $(MAKE) install DESTDIR=`pwd`/debian/${package} + -cp images/* debian/${package}/usr/share/games/lletters/images/ + -cp sounds/* debian/${package}/usr/share/games/lletters/sounds/ + -cd lang && ./translate-lln-dev.pl table-fr table-es table-pl table-nl + -rm debian/${package}/usr/share/games/lletters/images/Makefile* + -rm debian/${package}/usr/share/games/lletters/sounds/Makefile* + +# Build architecture-independent files here. +binary-indep: install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep +.PHONY: clean binary-indep binary install --- lletters-media-0.1.9a.orig/debian/changelog +++ lletters-media-0.1.9a/debian/changelog @@ -0,0 +1,41 @@ +lletters-media (0.1.9a-4) unstable; urgency=low + + * Creates translated directories symlinks used by new binary + version. + * Bumped standards version to 3.7.2. No changes needed. + * Adds binary-arch target to rules. + + -- Rudy Godoy Mon, 11 Sep 2006 01:52:15 -0500 + +lletters-media (0.1.9a-3) unstable; urgency=low + + * Changed compat to 4. + * Added /lang directory from binary package with scripts to handle + translated tables since they concern to this package. + + -- Rudy Godoy Wed, 14 Jul 2004 08:34:17 -0500 + +lletters-media (0.1.9a-2.1) unstable; urgency=low + + * NMU. + * Add Build-Depends-Indep on debhelper. Closes: #190480. + * Correct spelling error in package description. Closes: #125089. + + -- Daniel Schepler Sat, 2 Aug 2003 18:44:02 -0700 + +lletters-media (0.1.9a-2) unstable; urgency=low + + * Added Replaces: lletters (<< 0.1.95) to prevent install breakage. + Closes: #94284 + + -- Gopal Narayanan Tue, 17 Apr 2001 17:34:02 -0400 + +lletters-media (0.1.9a-1) unstable; urgency=low + + * Initial Release. + + -- Gopal Narayanan Fri, 6 Apr 2001 13:02:02 -0400 + +Local variables: +mode: debian-changelog +End: --- lletters-media-0.1.9a.orig/lang/table-es +++ lletters-media-0.1.9a/lang/table-es @@ -0,0 +1,49 @@ +# Table translation to spanish +# Rudy Godoy + +1One_Apple 1Una_Manzana +2Two_Apples 2Dos_Manzanas +3Three_Apples 3Tres_Manzanas +4Four_Apples 4Cuatro_Manzanas +5Five_Apples 5Cinco_Manzanas +6Six_Apples 6Seis_Manzanas +7Seven_Apples 7Siete_Manzanas +8Eight_Apples 8Ocho_Manzanas +9Nine_Apples 9Nueve_Manzanas + +Angelfish Pez_angel +Ants Hormigas +Apple Manzana +Balloons Pelotas +Butterfly Mariposa +Chicken Pollo +Deer Ciervos +Dog Perro +Eagle Aguila +Frog Sapo +Geese Gansos +Giraffe Jirafa +Goldfish Pez_dorado +Horse Caballo +Indian Indio +Jester Bufón +Kangaroo Canguro +Lizard Lagarto +Moose Alce +Nest Nido +Octopus Pulpo +Owl Buho +Peacock Pavo_real +Penguin Pinguino +Queen Reina +Seal Foca +Squirrel Ardilla +Teddy Peluche +Tiger.1 Tigre.1 +Tiger.2 Tigre.2 +Umbrella Paraguas +Vulture Buitre +Whales Ballena +Wolf Lobo +X-ray Rayos-X +Zebra Cebra --- lletters-media-0.1.9a.orig/lang/table-fr +++ lletters-media-0.1.9a/lang/table-fr @@ -0,0 +1,49 @@ +# Traduction en français +# Stéphane Bortzmeyer + +1One_Apple 1Une_Pomme +2Two_Apples 2Deux_Pommes +3Three_Apples 3Trois_Pommes +4Four_Apples 4Quatre_Pommes +5Five_Apples 5Cinq_Pommes +6Six_Apples 6Six_Pommes +7Seven_Apples 7Sept_Pommes +8Eight_Apples 8Huit_Pommes +9Nine_Apples 9Neuf_Pommes + +Angelfish Poisson-ange +Ants Fourmis +Apple Pomme +Balloons Ballons +Butterfly Papillon +Chicken Poulet +Deer Daim +Dog Chien +Eagle Aigle +Frog Grenouille +Geese Oie +Giraffe Girafe +Goldfish Poisson-or +Horse Cheval +Indian Indien +Jester Fou +Kangaroo Kangourou +Lizard Lézard +Moose Élan +Nest Nid +Octopus Pieuvre +Owl Hibou +Peacock Paon +Penguin Pingouin +Queen Reine +Seal Phoque +Squirrel Écureuil +Teddy Nounours +Tiger.1 Tigre.1 +Tiger.2 Tigre.2 +Umbrella Parapluie +Vulture Vautour +Whales Baleines +Wolf Loup +X-ray Rayons-X +Zebra Zèbre --- lletters-media-0.1.9a.orig/lang/table-nl +++ lletters-media-0.1.9a/lang/table-nl @@ -0,0 +1,48 @@ +# Table translation to nl + +1One_Apple 1één_appel +2Two_Apples 2twee_appelen +3Three_Apples 3drie_appelen +4Four_Apples 4vier_appelen +5Five_Apples 5vijf_appelen +6Six_Apples 6zes_appelen +7Seven_Apples 7zeven_appelen +8Eight_Apples 8acht_appelen +9Nine_Apples 9negen_appelen + +#Angelfish +Ants Mieren +Apple Appel +Balloons Ballons +Butterfly Vlinder +Chicken Kip +Deer Herten +Dog Hond +Eagle Adelaar +Frog Kikker +Geese Ganzen +Giraffe Giraf +#Goldfish +Horse Paard +Indian Indisch +Jester Nar +Kangaroo Kangoeroe +Lizard Hagedis +Moose Amerikaanse_elanden +#Nest +#Octopus +Owl Uil +#Peacock +#Penguin +Queen Koningin +Seal Verbinding +Squirrel Eekhoorn +#Teddy +Tiger.1 Tijger.1 +Tiger.2 Tijger.2 +Umbrella Paraplu +Vulture Gier +Whales Walvissen +#Wolf +X-ray Röntgenstraal +Zebra Gestreept --- lletters-media-0.1.9a.orig/lang/table-pl +++ lletters-media-0.1.9a/lang/table-pl @@ -0,0 +1,74 @@ +# Traduction to polish +# Stéphane Bortzmeyer + +1One_Apple 1Jedno_Jab³ko +2Two_Apples 2Dwa_Jab³ka +3Three_Apples 3Trzy_Jab³ka +4Four_Apples 4Cztery_Jab³ka +5Five_Apples 5Piêæ_Jab³ek +6Six_Apples 6Sze¶æ_Jab³ek +7Seven_Apples 7Siedem_Jab³ek +8Eight_Apples 8Osiem_Jab³ek +9Nine_Apples 9Dziewiêæ_Jab³ek + +# Angelfish Poisson-ange +Ants Mrówki +Apple Jab³ko +Balloons Balony +Bison ¯ubr +Butterfly Motyl +Camera Aparat +Cheese Ser +Chicken Kurczak +Deer Jeleñ +Dog Pies +Eagle Orze³ +Ears Uszy +Electricity Elektryczno¶æ +Forest Las +Frog ¯aba +Geese Gêsi +Giraffe ¯yrafa +# Goldfish Poisson-or +Horse Koñ +# Indian Indien +# Jester Fou +Kangaroo Kangur +Lizard Jaszczurka +# Moose +Needles Ig³y +Nest Gniazdo +Nose Nos +# Octopus Pieuvre +Onion Cebula +Owl Sowa +Peacock Paw +Penguin Pingwin +Plums ¦liwki +Raspberries Maliny +Road Drogi +# Queen Reine +Seal Foka +Shark Rekin +Sky Niebo +Snail ¦limak +Snake W±¿ +Source ¬ród³o +Squirrel Wewiórka +Stork Bocian +Swan £abêd¼ +# Teddy Nounours +Tiger.1 Tygrys.1 +Tiger.2 Tygrys.2 +Toucan Tukan +Turtles ¯ó³w +Umbrella Parasol +# Vulture Vautour +Whales Wieloryb +Wolf Wilk +# X-ray +Zebra Zebra + +# Æ Ciastko +# H +# £ £abêd¼ --- lletters-media-0.1.9a.orig/lang/translate-lln-dev.pl +++ lletters-media-0.1.9a/lang/translate-lln-dev.pl @@ -0,0 +1,106 @@ +#!/usr/bin/perl + +# A simple script to translate the images of Linux Letters and Numbers +# to a local language, in order to let +# the young users learn their language. + +# The syntax of the table is quite simple: +# english-name local-name +# for instance, for French: +# Wolf Loup + +# Copyright Stephane Bortzmeyer . Licence is +# the licence of LLN itself. + +# Known bugs: +# 1) after translation, some letters may be missing, +# 2) Multiple names (Tiger.1 and Tiger.2) are not elegantly supported +# Added by Rudy Godoy +# 3) Accentuated or special characters in names may not be processed correctly +# as it only creates symlinks (filesystem files) + +# Feel free to modify these +# +# This script was modified to fit package development purposes +# DO NOT use it for userland purposes, instead use the one +# which is under /usr/share/doc/lletters/translate-lln.pl +# or in the binary package lletters. - Rudy Godoy. +# +# Where are the actual image files +$bdir = "../debian/lletters-media/usr/share/games/lletters/"; +$imgd = "images"; + +# let's check arguments or environment variable +if (! @ARGV) { + $locale = substr($ENV{'LANG'}, 0, 2); + make_table ($locale); +} else { + $numArgs = $#ARGV +1; + foreach $argnum (0 .. $#ARGV) { + print "$ARGV[$argnum]\n"; + $locale = substr($ARGV[$argnum], -2); + print "locale is: $locale\n"; + make_table ($locale); + } +} + +# creates the table(s) inside +# debian/lletters-media/usr/share/games/lleters/ + +sub make_table { + $locale = $_[0]; + $table = "table-" . $locale; + print "table is: $table\n"; + $localed = $locale . '/' . $imgd; + if (! -e $table) { + die "No such table found ($table) $!"; + } +# first make the LANG directory + $local_dir = $bdir . $locale; + if (! -d $local_dir) { + mkdir $local_dir, 0755 or die "Cannot create $local_dir: $!"; + } else { + print "Directory $local_dir already exists, please remove it before run this script\n"; + return; + } + +# second make the images directory + $local_dir .= "/images"; + if (! -d $local_dir) { + mkdir $local_dir, 0755 or die "Cannot create $local_dir: $!"; + } + +# Do not edit below this point + open (TABLE, "< $table") or die "Cannot open $table: $!"; + while () { + chomp; + $line = $_; + # Skip comments + $line =~ s/#.*$//; + if ($line =~ /^ *$/) { + next; # Skip empty lines + } + ($english, $local) = split ('[ \t]', $line); + $table{$english} = $local; + } + close (TABLE); + + opendir (DIR, "$bdir$imgd") or die "Cannot open $bdir$imgd: $!"; + while ($file = readdir (DIR)) { + $files{$file} = 1; + } + closedir (DIR); + chdir($local_dir); + foreach $file (keys (%files)) { + $basename = $file; + $basename =~ s/\.([a-zA-Z]+)$//; + $type = $1; + if ($table{$basename}) { + symlink (( '../../' . $imgd . '/' . $file), + ( $table{$basename} . ".$type")) or + die "Cannot symlink $table{$basename}.$type to $file: $!"; +# print $table{$basename} . ".$type", " -> ", $file, "\n"; + } + } + chdir('../../../../../../../../lang'); +}