summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-06-23 14:43:31 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-08-05 12:36:03 -0400
commitadebbe3856b4aee39c0c7af902c1dea847dd6d7c (patch)
treef2ef0c90de10168809d45db687057695c5685bce
parentfc74dc12b1ff3c43e240e1a713316ce1bf525d61 (diff)
nls: restructure charts as a single article with sections
Looks more like a real article with a toc rather than individual web pages. Looks nicer in pdf. Each locale is a "section" rather than an "article". Using XInclude to aggregate xml source files gets you the toc for free. The single document is over 600 pages while there were 62 separate documents previously. FOP version 1.0 is required to handle missing character like capital sharp s. Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--nls/Makefile.am3
-rwxr-xr-xnls/compose-chart.pl19
2 files changed, 11 insertions, 11 deletions
diff --git a/nls/Makefile.am b/nls/Makefile.am
index cabaf40e..94019a7a 100644
--- a/nls/Makefile.am
+++ b/nls/Makefile.am
@@ -129,7 +129,7 @@ TESTS_ENVIRONMENT = $(PERL)
TESTS = $(srcdir)/compose-check.pl
COMPOSE_CHARTS = $(locales:%=%/Compose.xml)
-doc_sources += $(locales:%=Compose/%.xml)
+nodist_noinst_DATA = $(locales:%=Compose/%.xml)
CLEANFILES += $(COMPOSE_CHARTS) $(doc_sources)
XMLTO_FLAGS += -o $(@D)
@@ -139,6 +139,7 @@ XMLTO_FLAGS += -o $(@D)
--locale="$(@D)" --output="$@" $<
Compose/%.xml: %/Compose.xml
+ @$(MKDIR_P) $(@D)
$(AM_V_GEN)cp $< $@
endif HAVE_PERL
diff --git a/nls/compose-chart.pl b/nls/compose-chart.pl
index c901e705..053c8607 100755
--- a/nls/compose-chart.pl
+++ b/nls/compose-chart.pl
@@ -83,13 +83,13 @@ if ($make_index) {
q(<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"),
q( "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">),
q(<article id="compose-index">),
- q(<simplesect>),
- q(<title>Xlib Compose Key Charts</title>),
- q(<simplelist type='horiz' columns='3'>),
- ( map { qq(<member><ulink url="$_.html">$_</ulink></member>) }
+ q( <articleinfo>),
+ q( <title>Xlib Compose Key Charts</title>),
+ q( </articleinfo>),
+ ( map { qq( <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="$_.xml">\
+ <xi:fallback><section><title>$_</title><para></para></section></xi:fallback>\
+ </xi:include>) }
@ARGV ),
- q(</simplelist>),
- q(</simplesect>),
q(</article>),
"\n"
);
@@ -210,10 +210,9 @@ sub make_compose_chart {
print $OUTPUT
join ("\n",
qq(<?xml version="1.0" encoding="$charset" ?>),
- q(<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"),
+ q(<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"),
q( "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">),
- qq(<article id="$locale_name">),
- q(<simplesect>),
+ qq(<section id="$locale_name">),
qq(<title>Xlib Compose Keys for $locale_name</title>),
q(<para>Applications using Xlib input handling should recognize),
q( these compose key sequences in locales using the),
@@ -290,7 +289,7 @@ sub make_compose_chart {
qq(This compose table defines no sequences of its own.),
qq(</emphasis></para>\n);
}
- print $OUTPUT "</simplesect>\n</article>\n";
+ print $OUTPUT "</section>\n";
close $OUTPUT or die "Couldn't write $output_filename: $!";