From 4469355c710350b650395670676ea7d15dba35cf Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 23 Jun 2007 01:02:16 +0000 Subject: [PATCH] Experiment over; removed gentext copy. --- xsl/gentext/.cvsignore | 2 - xsl/gentext/Makefile | 85 -- xsl/gentext/README | 53 -- xsl/gentext/dsssl/dsssl.dsl | 71 -- xsl/gentext/dtd/l10n.dtd | 24 - xsl/gentext/locale/Auditlocale.pl | 123 --- xsl/gentext/locale/README | 228 ----- xsl/gentext/locale/af.xml | 490 ----------- xsl/gentext/locale/am.xml | 1200 -------------------------- xsl/gentext/locale/ar.xml | 539 ------------ xsl/gentext/locale/az.xml | 641 -------------- xsl/gentext/locale/bg.xml | 729 ---------------- xsl/gentext/locale/bn.xml | 556 ------------ xsl/gentext/locale/bs.xml | 622 -------------- xsl/gentext/locale/ca.xml | 490 ----------- xsl/gentext/locale/cs.xml | 755 ---------------- xsl/gentext/locale/cy.xml | 1215 -------------------------- xsl/gentext/locale/da.xml | 608 ------------- xsl/gentext/locale/de.xml | 638 -------------- xsl/gentext/locale/el.xml | 485 ----------- xsl/gentext/locale/en.xml | 1323 ---------------------------- xsl/gentext/locale/eo.xml | 1330 ----------------------------- xsl/gentext/locale/es.xml | 563 ------------ xsl/gentext/locale/et.xml | 489 ----------- xsl/gentext/locale/eu.xml | 487 ----------- xsl/gentext/locale/fa.xml | 664 -------------- xsl/gentext/locale/fi.xml | 613 ------------- xsl/gentext/locale/fr.xml | 648 -------------- xsl/gentext/locale/ga.xml | 1199 -------------------------- xsl/gentext/locale/gl.xml | 561 ------------ xsl/gentext/locale/gu.xml | 578 ------------- xsl/gentext/locale/he.xml | 488 ----------- xsl/gentext/locale/hi.xml | 578 ------------- xsl/gentext/locale/hr.xml | 554 ------------ xsl/gentext/locale/hu.xml | 488 ----------- xsl/gentext/locale/id.xml | 490 ----------- xsl/gentext/locale/it.xml | 555 ------------ xsl/gentext/locale/ja.xml | 494 ----------- xsl/gentext/locale/kn.xml | 1199 -------------------------- xsl/gentext/locale/ko.xml | 497 ----------- xsl/gentext/locale/la.xml | 539 ------------ xsl/gentext/locale/lt.xml | 646 -------------- xsl/gentext/locale/mn.xml | 740 ---------------- xsl/gentext/locale/nl.xml | 489 ----------- xsl/gentext/locale/nn.xml | 497 ----------- xsl/gentext/locale/no.xml | 489 ----------- xsl/gentext/locale/or.xml | 1199 -------------------------- xsl/gentext/locale/pa.xml | 578 ------------- xsl/gentext/locale/pl.xml | 488 ----------- xsl/gentext/locale/pt.xml | 509 ----------- xsl/gentext/locale/pt_br.xml | 490 ----------- xsl/gentext/locale/ro.xml | 493 ----------- xsl/gentext/locale/ru.xml | 697 --------------- xsl/gentext/locale/sk.xml | 541 ------------ xsl/gentext/locale/sl.xml | 489 ----------- xsl/gentext/locale/sq.xml | 574 ------------- xsl/gentext/locale/sr.xml | 717 ---------------- xsl/gentext/locale/sr_Latn.xml | 674 --------------- xsl/gentext/locale/sv.xml | 596 ------------- xsl/gentext/locale/ta.xml | 581 ------------- xsl/gentext/locale/th.xml | 499 ----------- xsl/gentext/locale/tl.xml | 1199 -------------------------- xsl/gentext/locale/tr.xml | 631 -------------- xsl/gentext/locale/uk.xml | 519 ----------- xsl/gentext/locale/vi.xml | 486 ----------- xsl/gentext/locale/xh.xml | 489 ----------- xsl/gentext/locale/zh_cn.xml | 616 ------------- xsl/gentext/locale/zh_tw.xml | 487 ----------- xsl/gentext/xsl/dsssl.xsl | 59 -- xsl/gentext/xsl/xsl.xsl | 229 ----- 70 files changed, 40592 deletions(-) delete mode 100644 xsl/gentext/.cvsignore delete mode 100644 xsl/gentext/Makefile delete mode 100644 xsl/gentext/README delete mode 100644 xsl/gentext/dsssl/dsssl.dsl delete mode 100644 xsl/gentext/dtd/l10n.dtd delete mode 100755 xsl/gentext/locale/Auditlocale.pl delete mode 100644 xsl/gentext/locale/README delete mode 100644 xsl/gentext/locale/af.xml delete mode 100644 xsl/gentext/locale/am.xml delete mode 100644 xsl/gentext/locale/ar.xml delete mode 100644 xsl/gentext/locale/az.xml delete mode 100644 xsl/gentext/locale/bg.xml delete mode 100644 xsl/gentext/locale/bn.xml delete mode 100644 xsl/gentext/locale/bs.xml delete mode 100644 xsl/gentext/locale/ca.xml delete mode 100644 xsl/gentext/locale/cs.xml delete mode 100644 xsl/gentext/locale/cy.xml delete mode 100644 xsl/gentext/locale/da.xml delete mode 100644 xsl/gentext/locale/de.xml delete mode 100644 xsl/gentext/locale/el.xml delete mode 100644 xsl/gentext/locale/en.xml delete mode 100755 xsl/gentext/locale/eo.xml delete mode 100644 xsl/gentext/locale/es.xml delete mode 100644 xsl/gentext/locale/et.xml delete mode 100644 xsl/gentext/locale/eu.xml delete mode 100644 xsl/gentext/locale/fa.xml delete mode 100644 xsl/gentext/locale/fi.xml delete mode 100644 xsl/gentext/locale/fr.xml delete mode 100644 xsl/gentext/locale/ga.xml delete mode 100644 xsl/gentext/locale/gl.xml delete mode 100644 xsl/gentext/locale/gu.xml delete mode 100644 xsl/gentext/locale/he.xml delete mode 100644 xsl/gentext/locale/hi.xml delete mode 100644 xsl/gentext/locale/hr.xml delete mode 100644 xsl/gentext/locale/hu.xml delete mode 100644 xsl/gentext/locale/id.xml delete mode 100644 xsl/gentext/locale/it.xml delete mode 100644 xsl/gentext/locale/ja.xml delete mode 100644 xsl/gentext/locale/kn.xml delete mode 100644 xsl/gentext/locale/ko.xml delete mode 100644 xsl/gentext/locale/la.xml delete mode 100644 xsl/gentext/locale/lt.xml delete mode 100644 xsl/gentext/locale/mn.xml delete mode 100644 xsl/gentext/locale/nl.xml delete mode 100644 xsl/gentext/locale/nn.xml delete mode 100644 xsl/gentext/locale/no.xml delete mode 100644 xsl/gentext/locale/or.xml delete mode 100644 xsl/gentext/locale/pa.xml delete mode 100644 xsl/gentext/locale/pl.xml delete mode 100644 xsl/gentext/locale/pt.xml delete mode 100644 xsl/gentext/locale/pt_br.xml delete mode 100644 xsl/gentext/locale/ro.xml delete mode 100644 xsl/gentext/locale/ru.xml delete mode 100644 xsl/gentext/locale/sk.xml delete mode 100644 xsl/gentext/locale/sl.xml delete mode 100644 xsl/gentext/locale/sq.xml delete mode 100644 xsl/gentext/locale/sr.xml delete mode 100644 xsl/gentext/locale/sr_Latn.xml delete mode 100644 xsl/gentext/locale/sv.xml delete mode 100644 xsl/gentext/locale/ta.xml delete mode 100644 xsl/gentext/locale/th.xml delete mode 100644 xsl/gentext/locale/tl.xml delete mode 100644 xsl/gentext/locale/tr.xml delete mode 100644 xsl/gentext/locale/uk.xml delete mode 100644 xsl/gentext/locale/vi.xml delete mode 100644 xsl/gentext/locale/xh.xml delete mode 100644 xsl/gentext/locale/zh_cn.xml delete mode 100644 xsl/gentext/locale/zh_tw.xml delete mode 100644 xsl/gentext/xsl/dsssl.xsl delete mode 100644 xsl/gentext/xsl/xsl.xsl diff --git a/xsl/gentext/.cvsignore b/xsl/gentext/.cvsignore deleted file mode 100644 index 0cc4b7aa1..000000000 --- a/xsl/gentext/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -dbl1*.ent -*.xml diff --git a/xsl/gentext/Makefile b/xsl/gentext/Makefile deleted file mode 100644 index f464068cf..000000000 --- a/xsl/gentext/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -XSLT=../buildtools/saxon -XJPARSE=../buildtools/xjparse - -SOURCES=af.xml am.xml az.xml bg.xml bn.xml bs.xml ca.xml cs.xml cy.xml da.xml de.xml el.xml \ - en.xml es.xml et.xml fa.xml fi.xml fr.xml ga.xml gu.xml hi.xml hu.xml id.xml it.xml \ - ja.xml kn.xml ko.xml lt.xml mn.xml nl.xml no.xml or.xml pa.xml pl.xml pt.xml \ - pt_br.xml ro.xml ru.xml sk.xml sl.xml sq.xml sr.xml sr_Latn.xml sv.xml ta.xml tl.xml \ - tr.xml zh_cn.xml zh_tw.xml - -DSSSLENT=dbl1af.ent ddbl1am.ent bl1az.ent dbl1bg.ent dbl1bn.ent dbl1bs.ent dbl1ca.ent dbl1cs.ent \ - dbl1cy.ent dbl1da.ent dbl1de.ent dbl1el.ent dbl1en.ent dbl1es.ent dbl1et.ent dbl1fa.ent \ - dbl1fi.ent dbl1fr.ent dblga.ent dblgu.ent dbl1hi.ent dbl1hu.ent dbl1id.ent dbl1it.ent \ - dbl1ja.ent dbl1kn.ent dbl1ko.ent dbl1lt.ent dbl1mn.ent dbl1nl.ent dbl1no.ent dbl1or.ent \ - dbl1pa.ent \ dbl1pl.ent dbl1pt.ent dbl1ptbr.ent dbl1ro.ent dbl1ru.ent dbl1sk.ent \ - dbl1sl.ent dbl1sq.ent dbl1sr.ent dbl1srLatn.ent dbl1sv.ent dbl1ta.ent dbl1tl.ent \ - dbl1zhcn.ent dbl1zhtw.ent - -all: - @echo "" - @echo Choose a target: dsssl-files, xsl-files, or clean - @echo "" - -xsl-files: $(SOURCES) - -dsssl-files: $(DSSSLENT) - -dbl1af.ent: locale/af.xml -dbl1am.ent: locale/am.xml -dbl1az.ent: locale/az.xml -dbl1bg.ent: locale/bg.xml -dbl1bn.ent: locale/bn.xml -dbl1bs.ent: locale/bs.xml -dbl1ca.ent: locale/ca.xml -dbl1cs.ent: locale/cs.xml -dbl1cy.ent: locale/cy.xml -dbl1da.ent: locale/da.xml -dbl1de.ent: locale/de.xml -dbl1el.ent: locale/el.xml -dbl1en.ent: locale/en.xml -dbl1es.ent: locale/es.xml -dbl1et.ent: locale/et.xml -dbl1fa.ent: locale/fa.xml -dbl1fi.ent: locale/fi.xml -dbl1fr.ent: locale/fr.xml -dbl1ga.ent: locale/ga.xml -dbl1gu.ent: locale/gu.xml -dbl1hi.ent: locale/hi.xml -dbl1hu.ent: locale/hu.xml -dbl1id.ent: locale/id.xml -dbl1it.ent: locale/it.xml -dbl1ja.ent: locale/ja.xml -dbl1kn.ent: locale/kn.xml -dbl1ko.ent: locale/ko.xml -dbl1lt.ent: locale/lt.xml -dbl1lt.ent: locale/mn.xml -dbl1nl.ent: locale/nl.xml -dbl1no.ent: locale/no.xml -dbl1or.ent: locale/or.xml -dbl1pa.ent: locale/pa.xml -dbl1pl.ent: locale/pl.xml -dbl1pt.ent: locale/pt.xml -dbl1ptbr.ent: locale/pt_br.xml -dbl1ro.ent: locale/ro.xml -dbl1ru.ent: locale/ru.xml -dbl1sk.ent: locale/sk.xml -dbl1sl.ent: locale/sl.xml -dbl1sq.ent: locale/sq.xml -dbl1sr.ent: locale/sr.xml -dbl1srLatn.ent: locale/sr_Latn.xml -dbl1sv.ent: locale/sv.xml -dbl1ta.ent: locale/ta.xml -dbl1tl.ent: locale/tl.xml -dbl1zhcn.ent: locale/zh_cn.xml -dbl1zhtw.ent: locale/zh_tw.xml - -%.xml: locale/%.xml - $(XJPARSE) -w $< - $(XSLT) locale/en.xml xsl/xsl.xsl $@ locale.file=$@ - -%.ent: - $(XJPARSE) -w $< - $(XSLT) $< xsl/dsssl.xsl $@ - -clean: - rm -f *.ent *.xml diff --git a/xsl/gentext/README b/xsl/gentext/README deleted file mode 100644 index 1553c57aa..000000000 --- a/xsl/gentext/README +++ /dev/null @@ -1,53 +0,0 @@ -DocBook gentext ---------------- - -These files form the common sources for the DSSSL and XSL stylesheet -localizations. - -COPYRIGHT ---------- - -Copyright (C) 2001 Norman Walsh - -Ironically, assertion of copyright is done to make it *easier* to -distribute these stylesheets. (At least one organization, Software in -the Public Interest, requires an explicit copyright statement in order -to redistribute the software.) - -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. - -Except as contained in this notice, the names of individuals credited -with contribution to this software shall not be used in advertising or -otherwise to promote the sale, use or other dealings in this Software -without prior written authorization from the individuals in question. - -Any project derived from this Software that is publically distributed -will be identified with a different name and the version strings in -any derived Software will be changed so that no possibility of -confusion between the derived package and this Software will exist. - -Warranty --------- - -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 NORMAN WALSH OR ANY OTHER CONTRIBUTOR 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. - -Contacting the Authors ----------------------- - -These stylesheets are maintained as part of the Open DocBook Repository -at SourceForge: http://sourceforge.net/projects/docbook/ diff --git a/xsl/gentext/dsssl/dsssl.dsl b/xsl/gentext/dsssl/dsssl.dsl deleted file mode 100644 index b9955efb9..000000000 --- a/xsl/gentext/dsssl/dsssl.dsl +++ /dev/null @@ -1,71 +0,0 @@ - - - - -]> - - - - - -;; This stylesheet would work, except that files like ../locale/ca.xml -;; have a doctype declaration but no DTD and Jade doesn't like that. - -;; $Id$ - -(declare-flow-object-class formatting-instruction - "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") - -(define debug - (external-procedure "UNREGISTERED::James Clark//Procedure::debug")) - -(root - (make sequence - - (make formatting-instruction - data: "<!-- This file is generated automatically. -->") - &RE; - (make formatting-instruction - data: "<!-- Do not edit this file by hand! -->") - &RE; - (make formatting-instruction - data: "<!-- See http://docbook.sourceforge.net/ -->") - &RE; - &RE; - - (process-children))) - -(element locale - (process-node-list (select-elements (children (current-node)) "gentext"))) - -(element gentext - (make sequence - (make formatting-instruction - data: "<!ENTITY ") - (literal (attribute-string "key")) - (if (< (string-length (attribute-string "key")) 15) ␣) - (if (< (string-length (attribute-string "key")) 14) ␣) - (if (< (string-length (attribute-string "key")) 13) ␣) - (if (< (string-length (attribute-string "key")) 12) ␣) - (if (< (string-length (attribute-string "key")) 11) ␣) - (if (< (string-length (attribute-string "key")) 10) ␣) - (if (< (string-length (attribute-string "key")) 9) ␣) - (if (< (string-length (attribute-string "key")) 8) ␣) - (if (< (string-length (attribute-string "key")) 7) ␣) - (if (< (string-length (attribute-string "key")) 6) ␣) - (if (< (string-length (attribute-string "key")) 5) ␣) - (if (< (string-length (attribute-string "key")) 4) ␣) - (if (< (string-length (attribute-string "key")) 3) ␣) - (if (< (string-length (attribute-string "key")) 2) ␣) - (if (< (string-length (attribute-string "key")) 1) ␣) - (make formatting-instruction data: "\"") - (make formatting-instruction data: (attribute-string "text")) - (make formatting-instruction data: "\">") - &RE; - )) - - - - diff --git a/xsl/gentext/dtd/l10n.dtd b/xsl/gentext/dtd/l10n.dtd deleted file mode 100644 index 1eccea8a8..000000000 --- a/xsl/gentext/dtd/l10n.dtd +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - diff --git a/xsl/gentext/locale/Auditlocale.pl b/xsl/gentext/locale/Auditlocale.pl deleted file mode 100755 index f62e8cad3..000000000 --- a/xsl/gentext/locale/Auditlocale.pl +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/perl - -# Script to compare the English locale file to any -# or all other locale files to see what is missing -# or extra. - -$USAGE = "\n$0 ??.xml [...] - - where ??.xml is a non-English locale file. - Report written to standard output showing what - templates are missing or extra. - You can feed it more than one, or *.xml for all. - -"; - -if ( scalar(@ARGV) < 1 ) { - print "$USAGE"; - exit 0; -} - -# Treat file as single line -local $/; -undef $/; - -open MASTER, "; - -close MASTER; - -my %mastertemplate; -my @mastergentext; -my @masterdingbat; -my @contexts; - -while ( $master =~ /(.*?)|gs ) { - my $context = $1; - my $templates = $2; - push @contexts, $context; - - while ( $templates =~ m|(.*?)|gs ) { - $mastertemplate{$context}{$1} = $2; - } -} - -for $inputfile ( @ARGV ) { - local $/; - undef $/; - my @gentext; - my @dingbat; - my %template; - open INPUT, "<$inputfile"; - my $input = ; - close INPUT; - - while( $input =~ /(.*?)|gs ) { - my $context = $1; - my $templates = $2; - - while ( $templates =~ m|(.*?)|gs ) { - $template{$context}{$1} = $2; - } - } - - - - print "###########################################\n"; - print "### $inputfile \n"; - print "###########################################\n"; - # scan through master to see if missing in the other - print "=========================== gentext \n"; - foreach my $name ( @mastergentext ) { - unless ( grep /^$name$/, @gentext ) { - print "Missing gentext $name\n"; - } - } - print "=========================== dingbat \n"; - foreach my $name ( @masterdingbat ) { - unless ( grep /^$name$/, @dingbat ) { - print "Missing dingbat $name\n"; - } - } - foreach my $context (@contexts) { - print "=========================== context $context \n"; - foreach my $name ( keys %{ $mastertemplate{$context} } ) { - unless ( $template{$context}{$name} ) { - print "Missing template $name = $mastertemplate{$context}{$name}\n"; - } - } - foreach my $name ( keys %{ $template{$context} } ) { - unless ( $mastertemplate{$context}{$name} ) { - print "Extra template not in master $name = $template{$context}{$name}\n"; - } - } - } - # scan through other to see if missing in master - foreach my $name ( @gentext ) { - unless ( grep /^$name$/, @mastergentext ) { - print "Extra gentext not in master: $name\n"; - } - } - foreach my $name ( @dingbat ) { - unless ( grep /^$name$/, @masterdingbat ) { - print "Extra dingbat not in master: $name\n"; - } - } -} diff --git a/xsl/gentext/locale/README b/xsl/gentext/locale/README deleted file mode 100644 index 346e6dec2..000000000 --- a/xsl/gentext/locale/README +++ /dev/null @@ -1,228 +0,0 @@ -README for DocBook locale files - -$Id$ - -This README explains how to create, change, and -contribute locale files for use with DocBook. - -------------------------------------------------------- -CREATING OR CHANGING A LOCALE FILE -------------------------------------------------------- -If you want to contribute a locale file for a language -that is not in the current distribution, copy the -en.xml file from here: - - https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/gentext/locale/en.xml - -If you want to make changes to an existing locale file, -copy the appropriate locale file from: - - https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/gentext/locale/ - -The main parts of the file that you need to translate are: - - - The 'text' attribute of and - elements. - - - The "datetime-full" and "datetime-abbrev" parts - (translators often overlook those because they are - near the end of the file) - -You may also want to translate parts of he element -content of the