From 4eba582ca8530afdcc4345f8d85d1bc161465fda Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=A1bor=20K=C3=B6vesd=C3=A1n?= Date: Thu, 23 Aug 2012 16:55:27 +0000 Subject: [PATCH] - Convert the test files to DocBook Slides 5.0 --- slides/tests/dbgentext.xml | 89 ++++++++++++------------- slides/tests/dbhtml-dir-test/.gitignore | 2 - slides/tests/dbhtml-dir.xml | 88 ++++++++++++------------ slides/tests/minimal.xml | 22 +++--- slides/tests/test-full.xml | 34 +++++----- slides/tests/test.xml | 46 ++++++------- slides/tests/testcust.xml | 18 ++--- slides/tests/testfull.xml | 18 ++--- slides/tests/tr-862918.xml | 28 +++++--- 9 files changed, 174 insertions(+), 171 deletions(-) delete mode 100644 slides/tests/dbhtml-dir-test/.gitignore diff --git a/slides/tests/dbgentext.xml b/slides/tests/dbgentext.xml index 81fbd5e60..2122b2683 100644 --- a/slides/tests/dbgentext.xml +++ b/slides/tests/dbgentext.xml @@ -1,14 +1,13 @@ - - - + + Supporting Localized Generated Text Generated Text - NormanWalsh + NormanWalsh Sunday, 08 Apr 2001 XSLTUK-01 @@ -19,26 +18,26 @@ Version TEST 2001 Sun Microsystems, Inc. - + -Introduction - - + Say something pithy in the introduction - + -This is the introductory slide - +Introduction -The Problem +This is the introductory slide + -This is on the foilgroup slide. +The Problem - + Remember to describe the use-caess - + + +This is on the foilgroup slide. -Generated Text +Generated Text Semantic markup often omits text that can be generated automatically @@ -49,9 +48,9 @@ naturally Generated text is locale-specific - + -An Example +An Example An obvious, common example is chapter title markup. Consider: Chapitre 3. Some Title - + - -A Solution + +A Solution -The Old Solution +The Old Solution Replace this @@ -100,10 +99,10 @@ naturally ]]> - + -Generated from Localization Data -L10N Data +Generated from Localization Data +L10N Data Where the generated text for words like Chapter is taken from an independently maintained lookup table: @@ -116,9 +115,9 @@ is taken from an independently maintained lookup table: ... ...]]> - + -Problems +Problems Single-word localization (doesn't support Japanese) @@ -129,12 +128,12 @@ is taken from an independently maintained lookup table: Hard-coded number format - + - -A Better Solution + +A Better Solution -Use Markup Templates +Use Markup Templates Use a lookup function to determine the markup template in addition to the keywords. For example, the markup template lookup @@ -157,9 +156,9 @@ table for a chapter title looks something like this: %s (not shown) are replaced by the lable, title, and subtitle of the component, respectively. - + -The <quote>New</quote> Solution +The <quote>New</quote> Solution Find the template and fill it in: @@ -173,10 +172,10 @@ subtitle of the component, respectively. ]]> - + -Generated from Localization Data -L10N Data +Generated from Localization Data +L10N Data In order to make this work, the localization data is extended: @@ -191,17 +190,17 @@ subtitle of the component, respectively.