From adebbe3856b4aee39c0c7af902c1dea847dd6d7c Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Thu, 23 Jun 2011 14:43:31 -0400 Subject: [PATCH] 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 Signed-off-by: Gaetan Nadon --- nls/Makefile.am | 3 ++- nls/compose-chart.pl | 19 +++++++++---------- 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(), q(
), - q(), - q(Xlib Compose Key Charts), - q(), - ( map { qq($_) } + q( ), + q( Xlib Compose Key Charts), + q( ), + ( map { qq( \ +
$_
\ +
) } @ARGV ), - q(
), - q(
), q(
), "\n" ); @@ -210,10 +210,9 @@ sub make_compose_chart { print $OUTPUT join ("\n", qq(), - q(), - qq(
), - q(), + qq(
), qq(Xlib Compose Keys for $locale_name), q(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(\n); } - print $OUTPUT "\n
\n"; + print $OUTPUT "\n"; close $OUTPUT or die "Couldn't write $output_filename: $!";