From 243531e4a3950870b0ba081a113120ad3b003ecb Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Sun, 5 Jul 2009 04:58:48 +0000 Subject: [PATCH 1/9] change split() to preg_split(), deprecated in php 5.3 --- libs/plugins/function.fetch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.fetch.php b/libs/plugins/function.fetch.php index 81b1bfc6..d72c7b1f 100644 --- a/libs/plugins/function.fetch.php +++ b/libs/plugins/function.fetch.php @@ -181,12 +181,12 @@ function smarty_function_fetch($params, &$smarty) $content .= fgets($fp,4096); } fclose($fp); - $csplit = split("\r\n\r\n",$content,2); + $csplit = preg_split("!\r\n\r\n!",$content,2); $content = $csplit[1]; if(!empty($params['assign_headers'])) { - $smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); + $smarty->assign($params['assign_headers'],preg_split("!\r\n!",$csplit[0])); } } } else { From 29fefe388c630435ecd429ad8a4302babe4a2cfb Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Tue, 18 Aug 2009 16:25:07 +0000 Subject: [PATCH 2/9] add outputfilters to see also list --- .../advanced-features/advanced-features-postfilters.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/programmers/advanced-features/advanced-features-postfilters.xml b/docs/en/programmers/advanced-features/advanced-features-postfilters.xml index 5003a0ec..8e4ab861 100644 --- a/docs/en/programmers/advanced-features/advanced-features-postfilters.xml +++ b/docs/en/programmers/advanced-features/advanced-features-postfilters.xml @@ -46,7 +46,8 @@ $smarty->display('index.tpl'); See also register_postfilter(), - prefilters + prefilters, + outputfilters, and load_filter(). From 5d2ed61c31f3069e8ce11d0c73533eae92ee1f41 Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Tue, 17 Nov 2009 01:29:01 +0000 Subject: [PATCH 3/9] Revert delimiter code change --- libs/plugins/function.cycle.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/plugins/function.cycle.php b/libs/plugins/function.cycle.php index fe78bb87..cbf21028 100644 --- a/libs/plugins/function.cycle.php +++ b/libs/plugins/function.cycle.php @@ -63,7 +63,11 @@ function smarty_function_cycle($params, &$smarty) $cycle_vars[$name]['values'] = $params['values']; } - $cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ','; + if (isset($delimiter)) { + $cycle_vars[$name]['delimiter'] = $delimiter; + } elseif (!isset($cycle_vars[$name]['delimiter'])) { + $cycle_vars[$name]['delimiter'] = ','; + } if(is_array($cycle_vars[$name]['values'])) { $cycle_array = $cycle_vars[$name]['values']; From 7d42f5efb9c5c69c700ac4a7064d50e68da75f2d Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Tue, 17 Nov 2009 20:20:17 +0000 Subject: [PATCH 4/9] - bugfix cycle plugin --- libs/plugins/function.cycle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.cycle.php b/libs/plugins/function.cycle.php index cbf21028..80378b7f 100644 --- a/libs/plugins/function.cycle.php +++ b/libs/plugins/function.cycle.php @@ -63,8 +63,8 @@ function smarty_function_cycle($params, &$smarty) $cycle_vars[$name]['values'] = $params['values']; } - if (isset($delimiter)) { - $cycle_vars[$name]['delimiter'] = $delimiter; + if (isset($params['delimiter'])) { + $cycle_vars[$name]['delimiter'] = $params['delimiter']; } elseif (!isset($cycle_vars[$name]['delimiter'])) { $cycle_vars[$name]['delimiter'] = ','; } From abf692eaf7b283425a8ef2cd0d9e7bc65a5d5cc6 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sat, 17 Apr 2010 10:19:47 +0000 Subject: [PATCH 5/9] - fixed security hole in {math} plugin --- ChangeLog | 4 ++++ libs/plugins/function.math.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a078fcb..941d83ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-04-17 Uwe Tews + + * Fixed security hole in {math} plugin + 2007-09-27 TAKAGI Masahiro * docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml: diff --git a/libs/plugins/function.math.php b/libs/plugins/function.math.php index bb78dac2..6575e060 100644 --- a/libs/plugins/function.math.php +++ b/libs/plugins/function.math.php @@ -37,7 +37,7 @@ function smarty_function_math($params, &$smarty) } // match all vars in equation, make sure all are passed - preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]+)!",$equation, $match); + preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]*)!",$equation, $match); $allowed_funcs = array('int','abs','ceil','cos','exp','floor','log','log10', 'max','min','pi','pow','rand','round','sin','sqrt','srand','tan'); @@ -82,4 +82,4 @@ function smarty_function_math($params, &$smarty) /* vim: set expandtab: */ -?> +?> \ No newline at end of file From a2e69a04e7ba9c7ca385f7c42829acda3557d2ea Mon Sep 17 00:00:00 2001 From: matakagi Date: Thu, 29 Jul 2010 08:47:24 +0000 Subject: [PATCH 6/9] sync with en. --- .../language-builtin-functions/language-function-if.xml | 4 ++-- .../advanced-features/advanced-features-postfilters.xml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/ja/designers/language-builtin-functions/language-function-if.xml b/docs/ja/designers/language-builtin-functions/language-function-if.xml index 7364d4cd..8fba32b4 100644 --- a/docs/ja/designers/language-builtin-functions/language-function-if.xml +++ b/docs/ja/designers/language-builtin-functions/language-function-if.xml @@ -1,6 +1,6 @@ - + {if},{elseif},{else} @@ -236,7 +236,7 @@ {* 何かを行います *} {/if} -{if is_array($foo) && count($foo) > 0) +{if is_array($foo) && count($foo) > 0} {* foreach ループを実行します *} {/if} ]]> diff --git a/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml b/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml index 8c1735de..45cdf47b 100644 --- a/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml +++ b/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml @@ -1,6 +1,6 @@ - + ポストフィルタ @@ -46,7 +46,8 @@ $smarty->display('index.tpl'); register_postfilter()、 - プリフィルタ + プリフィルタ、 + アウトプットフィルタ および load_filter() も参照してください。 From 7dc58993ad25d404334025274ea0cbfda1b7c4ce Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Fri, 12 Nov 2010 01:26:25 +0000 Subject: [PATCH 7/9] move smarty 2 trunk to branch area From b67c7082a749dff5af90a280b73daed0fb093eef Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Mon, 24 Sep 2012 20:05:15 +0000 Subject: [PATCH 8/9] - escape Smarty error messages to avoid possible script execution --- ChangeLog | 5 +++++ libs/Smarty.class.php | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 941d83ec..55da923a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-09-24 Uwe Tews + + * Fixed escape Smarty error messages to avoid possible script execution + + 2010-04-17 Uwe Tews * Fixed security hole in {math} plugin diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 3c3448db..ab70d210 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -20,7 +20,7 @@ * * For questions, help, comments, discussion, etc., please join the * Smarty mailing list. Send a blank e-mail to - * smarty-discussion-subscribe@googlegroups.com + * smarty-discussion-subscribe@googlegroups.com * * @link http://www.smarty.net/ * @copyright 2001-2005 New Digital Group, Inc. @@ -1058,7 +1058,7 @@ class Smarty } else { // var non-existant, return valid reference $_tmp = null; - return $_tmp; + return $_tmp; } } @@ -1090,7 +1090,8 @@ class Smarty */ function trigger_error($error_msg, $error_type = E_USER_WARNING) { - trigger_error("Smarty error: $error_msg", $error_type); + $msg = htmlentities($error_msg); + trigger_error("Smarty error: $msg", $error_type); } @@ -1117,7 +1118,7 @@ class Smarty function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) { static $_cache_info = array(); - + $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) ? $this->error_reporting : error_reporting() & ~E_NOTICE); @@ -1933,10 +1934,10 @@ class Smarty { return eval($code); } - + /** * Extracts the filter name from the given callback - * + * * @param callback $function * @return string */ @@ -1951,7 +1952,7 @@ class Smarty return $function; } } - + /**#@-*/ } From 1594e0892473e90d29427ec6619b555caebda8f1 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Fri, 31 Oct 2014 01:02:41 +0100 Subject: [PATCH 9/9] delete unneeded --- docs/.cvsignore | 11 - docs/Makefile.in | 75 - docs/README | 43 - docs/TODO | 55 - docs/chm/.cvsignore | 3 - docs/chm/README | 97 - docs/chm/chm_settings.php | 157 - docs/chm/common.php | 75 - docs/chm/make_chm.bat | 54 - docs/chm/make_chm.php | 219 - docs/chm/make_chm_fancy.php | 131 - docs/chm/make_chm_spc.gif | Bin 43 -> 0 bytes docs/chm/make_chm_style.css | 57 - docs/configure.in | 428 - docs/de/appendixes/bugs.xml | 30 - docs/de/appendixes/resources.xml | 33 - docs/de/appendixes/tips.xml | 426 - docs/de/appendixes/troubleshooting.xml | 77 - docs/de/bookinfo.xml | 47 - .../designers/chapter-debugging-console.xml | 73 - docs/de/designers/config-files.xml | 110 - docs/de/designers/language-basic-syntax.xml | 46 - .../language-escaping.xml | 92 - .../language-basic-syntax/language-math.xml | 54 - .../language-syntax-attributes.xml | 64 - .../language-syntax-comments.xml | 68 - .../language-syntax-functions.xml | 76 - .../language-syntax-quotes.xml | 57 - .../language-syntax-variables.xml | 75 - .../designers/language-builtin-functions.xml | 43 - .../language-function-capture.xml | 129 - .../language-function-config-load.xml | 180 - .../language-function-foreach.xml | 235 - .../language-function-if.xml | 253 - .../language-function-include-php.xml | 138 - .../language-function-include.xml | 163 - .../language-function-insert.xml | 146 - .../language-function-ldelim.xml | 81 - .../language-function-literal.xml | 62 - .../language-function-php.xml | 75 - .../language-function-section.xml | 782 -- .../language-function-strip.xml | 84 - .../language-combining-modifiers.xml | 72 - .../designers/language-custom-functions.xml | 49 - .../language-function-assign.xml | 140 - .../language-function-counter.xml | 124 - .../language-function-cycle.xml | 150 - .../language-function-debug.xml | 64 - .../language-function-eval.xml | 128 - .../language-function-fetch.xml | 117 - .../language-function-html-checkboxes.xml | 170 - .../language-function-html-image.xml | 157 - .../language-function-html-options.xml | 210 - .../language-function-html-radios.xml | 191 - .../language-function-html-select-date.xml | 322 - .../language-function-html-select-time.xml | 324 - .../language-function-html-table.xml | 146 - .../language-function-mailto.xml | 142 - .../language-function-math.xml | 152 - .../language-function-popup-init.xml | 50 - .../language-function-popup.xml | 412 - .../language-function-textformat.xml | 252 - docs/de/designers/language-modifiers.xml | 120 - .../language-modifier-capitalize.xml | 94 - .../language-modifier-cat.xml | 84 - .../language-modifier-count-characters.xml | 71 - .../language-modifier-count-paragraphs.xml | 43 - .../language-modifier-count-sentences.xml | 41 - .../language-modifier-count-words.xml | 41 - .../language-modifier-date-format.xml | 160 - .../language-modifier-default.xml | 69 - .../language-modifier-escape.xml | 108 - .../language-modifier-indent.xml | 111 - .../language-modifier-lower.xml | 40 - .../language-modifier-nl2br.xml | 59 - .../language-modifier-regex-replace.xml | 77 - .../language-modifier-replace.xml | 77 - .../language-modifier-spacify.xml | 71 - .../language-modifier-string-format.xml | 70 - .../language-modifier-strip-tags.xml | 88 - .../language-modifier-strip.xml | 52 - .../language-modifier-truncate.xml | 97 - .../language-modifier-upper.xml | 40 - .../language-modifier-wordwrap.xml | 109 - docs/de/designers/language-variables.xml | 56 - .../language-assigned-variables.xml | 201 - .../language-config-variables.xml | 52 - .../language-variables-smarty.xml | 171 - docs/de/getting-started.xml | 656 -- docs/de/language-defs.ent | 6 - docs/de/language-snippets.ent | 29 - docs/de/livedocs.ent | 7 - docs/de/preface.xml | 86 - docs/de/programmers/advanced-features.xml | 34 - .../advanced-features-objects.xml | 130 - .../advanced-features-outputfilters.xml | 67 - .../advanced-features-postfilters.xml | 64 - .../advanced-features-prefilters.xml | 68 - .../section-template-cache-handler-func.xml | 164 - .../advanced-features/template-resources.xml | 229 - docs/de/programmers/api-functions.xml | 66 - .../api-functions/api-append-by-ref.xml | 66 - .../programmers/api-functions/api-append.xml | 62 - .../api-functions/api-assign-by-ref.xml | 63 - .../programmers/api-functions/api-assign.xml | 61 - .../api-functions/api-clear-all-assign.xml | 50 - .../api-functions/api-clear-all-cache.xml | 52 - .../api-functions/api-clear-assign.xml | 53 - .../api-functions/api-clear-cache.xml | 63 - .../api-functions/api-clear-compiled-tpl.xml | 57 - .../api-functions/api-clear-config.xml | 53 - .../api-functions/api-config-load.xml | 61 - .../programmers/api-functions/api-display.xml | 111 - .../programmers/api-functions/api-fetch.xml | 93 - .../api-functions/api-get-config-vars.xml | 56 - .../api-get-registered-object.xml | 57 - .../api-functions/api-get-template-vars.xml | 56 - .../api-functions/api-is-cached.xml | 84 - .../api-functions/api-load-filter.xml | 57 - .../api-functions/api-register-block.xml | 83 - .../api-register-compiler-function.xml | 52 - .../api-functions/api-register-function.xml | 76 - .../api-functions/api-register-modifier.xml | 64 - .../api-functions/api-register-object.xml | 44 - .../api-register-outputfilter.xml | 48 - .../api-functions/api-register-postfilter.xml | 47 - .../api-functions/api-register-prefilter.xml | 47 - .../api-functions/api-register-resource.xml | 69 - .../api-functions/api-template-exists.xml | 40 - .../api-functions/api-trigger-error.xml | 44 - .../api-functions/api-unregister-block.xml | 40 - .../api-unregister-compiler-function.xml | 40 - .../api-functions/api-unregister-function.xml | 51 - .../api-functions/api-unregister-modifier.xml | 52 - .../api-functions/api-unregister-object.xml | 39 - .../api-unregister-outputfilter.xml | 39 - .../api-unregister-postfilter.xml | 39 - .../api-unregister-prefilter.xml | 39 - .../api-functions/api-unregister-resource.xml | 50 - docs/de/programmers/api-variables.xml | 62 - .../variable-autoload-filters.xml | 52 - .../api-variables/variable-cache-dir.xml | 65 - .../variable-cache-handler-func.xml | 32 - .../api-variables/variable-cache-lifetime.xml | 53 - .../variable-cache-modified-check.xml | 43 - .../api-variables/variable-caching.xml | 65 - .../api-variables/variable-compile-check.xml | 51 - .../api-variables/variable-compile-dir.xml | 56 - .../api-variables/variable-compile-id.xml | 71 - .../api-variables/variable-compiler-class.xml | 31 - .../variable-config-booleanize.xml | 29 - .../api-variables/variable-config-dir.xml | 41 - .../variable-config-fix-newlines.xml | 29 - .../variable-config-overwrite.xml | 85 - .../variable-config-read-hidden.xml | 35 - .../api-variables/variable-debug-tpl.xml | 38 - .../api-variables/variable-debugging-ctrl.xml | 37 - .../api-variables/variable-debugging.xml | 50 - .../variable-default-modifiers.xml | 34 - .../variable-default-resource-type.xml | 33 - ...variable-default-template-handler-func.xml | 30 - .../variable-error-reporting.xml | 42 - .../api-variables/variable-force-compile.xml | 37 - .../api-variables/variable-left-delimiter.xml | 35 - .../api-variables/variable-php-handling.xml | 44 - .../api-variables/variable-plugins-dir.xml | 79 - .../variable-request-use-auto-globals.xml | 37 - .../variable-request-vars-order.xml | 35 - .../variable-right-delimiter.xml | 35 - .../api-variables/variable-secure-dir.xml | 39 - .../variable-security-settings.xml | 72 - .../api-variables/variable-security.xml | 82 - .../api-variables/variable-template-dir.xml | 41 - .../api-variables/variable-trusted-dir.xml | 34 - .../api-variables/variable-use-sub-dirs.xml | 72 - docs/de/programmers/caching.xml | 49 - .../programmers/caching/caching-cacheable.xml | 137 - .../de/programmers/caching/caching-groups.xml | 84 - .../caching/caching-multiple-caches.xml | 130 - .../caching/caching-setting-up.xml | 195 - docs/de/programmers/plugins.xml | 68 - .../plugins/plugins-block-functions.xml | 110 - .../plugins/plugins-compiler-functions.xml | 93 - .../programmers/plugins/plugins-functions.xml | 128 - docs/de/programmers/plugins/plugins-howto.xml | 43 - .../programmers/plugins/plugins-inserts.xml | 74 - .../programmers/plugins/plugins-modifiers.xml | 115 - .../plugins/plugins-naming-conventions.xml | 81 - .../plugins/plugins-outputfilters.xml | 65 - .../plugins-prefilters-postfilters.xml | 104 - .../programmers/plugins/plugins-resources.xml | 156 - .../programmers/plugins/plugins-writing.xml | 53 - docs/de/programmers/smarty-constants.xml | 87 - docs/dsssl/.cvsignore | 1 - docs/dsssl/common.dsl | 358 - docs/dsssl/defaults/catalog | 4 - docs/dsssl/defaults/dsssl.dtd | 134 - docs/dsssl/defaults/fot.dtd | 507 -- docs/dsssl/defaults/style-sheet.dtd | 76 - docs/dsssl/docbook/BUGS | 35 - docs/dsssl/docbook/PHPDOC-NOTE | 14 - docs/dsssl/docbook/README | 91 - docs/dsssl/docbook/VERSION | 1 - docs/dsssl/docbook/catalog | 17 - docs/dsssl/docbook/common/ChangeLog | 112 - docs/dsssl/docbook/common/catalog | 36 - docs/dsssl/docbook/common/cs-hack.pl | 8 - docs/dsssl/docbook/common/dbcommon.dsl | 1904 ---- docs/dsssl/docbook/common/dbl10n.dsl | 1521 ---- docs/dsssl/docbook/common/dbl10n.ent | 351 - docs/dsssl/docbook/common/dbl10n.pl | 55 - docs/dsssl/docbook/common/dbl10n.template | 281 - docs/dsssl/docbook/common/dbl1af.dsl | 440 - docs/dsssl/docbook/common/dbl1af.ent | 149 - docs/dsssl/docbook/common/dbl1ca.dsl | 443 - docs/dsssl/docbook/common/dbl1ca.ent | 148 - docs/dsssl/docbook/common/dbl1cs.dsl | 443 - docs/dsssl/docbook/common/dbl1cs.ent | 155 - docs/dsssl/docbook/common/dbl1da.dsl | 432 - docs/dsssl/docbook/common/dbl1da.ent | 160 - docs/dsssl/docbook/common/dbl1de.dsl | 445 - docs/dsssl/docbook/common/dbl1de.ent | 151 - docs/dsssl/docbook/common/dbl1el.dsl | 445 - docs/dsssl/docbook/common/dbl1el.ent | 146 - docs/dsssl/docbook/common/dbl1en.dsl | 444 - docs/dsssl/docbook/common/dbl1en.ent | 160 - docs/dsssl/docbook/common/dbl1es.dsl | 434 - docs/dsssl/docbook/common/dbl1es.ent | 150 - docs/dsssl/docbook/common/dbl1et.dsl | 444 - docs/dsssl/docbook/common/dbl1et.ent | 146 - docs/dsssl/docbook/common/dbl1eu.dsl | 444 - docs/dsssl/docbook/common/dbl1eu.ent | 155 - docs/dsssl/docbook/common/dbl1fi.dsl | 444 - docs/dsssl/docbook/common/dbl1fi.ent | 146 - docs/dsssl/docbook/common/dbl1fr.dsl | 436 - docs/dsssl/docbook/common/dbl1fr.ent | 155 - docs/dsssl/docbook/common/dbl1he.ent | 157 - docs/dsssl/docbook/common/dbl1hu.dsl | 447 - docs/dsssl/docbook/common/dbl1hu.ent | 146 - docs/dsssl/docbook/common/dbl1id.dsl | 608 -- docs/dsssl/docbook/common/dbl1id.ent | 148 - docs/dsssl/docbook/common/dbl1it.dsl | 471 - docs/dsssl/docbook/common/dbl1it.ent | 157 - docs/dsssl/docbook/common/dbl1ja.dsl | 445 - docs/dsssl/docbook/common/dbl1ja.ent | 157 - docs/dsssl/docbook/common/dbl1ko.dsl | 455 - docs/dsssl/docbook/common/dbl1ko.ent | 145 - docs/dsssl/docbook/common/dbl1nl.dsl | 440 - docs/dsssl/docbook/common/dbl1nl.ent | 147 - docs/dsssl/docbook/common/dbl1nn.dsl | 445 - docs/dsssl/docbook/common/dbl1nn.ent | 152 - docs/dsssl/docbook/common/dbl1no.dsl | 437 - docs/dsssl/docbook/common/dbl1no.ent | 146 - docs/dsssl/docbook/common/dbl1null.dsl | 12 - docs/dsssl/docbook/common/dbl1pl.dsl | 434 - docs/dsssl/docbook/common/dbl1pl.ent | 138 - docs/dsssl/docbook/common/dbl1pt.dsl | 433 - docs/dsssl/docbook/common/dbl1pt.ent | 148 - docs/dsssl/docbook/common/dbl1ptbr.dsl | 434 - docs/dsssl/docbook/common/dbl1ptbr.ent | 148 - docs/dsssl/docbook/common/dbl1ro.dsl | 434 - docs/dsssl/docbook/common/dbl1ro.ent | 146 - docs/dsssl/docbook/common/dbl1ru.dsl | 446 - docs/dsssl/docbook/common/dbl1ru.ent | 175 - docs/dsssl/docbook/common/dbl1sk.dsl | 442 - docs/dsssl/docbook/common/dbl1sk.ent | 146 - docs/dsssl/docbook/common/dbl1sl.dsl | 446 - docs/dsssl/docbook/common/dbl1sl.ent | 157 - docs/dsssl/docbook/common/dbl1sr.dsl | 446 - docs/dsssl/docbook/common/dbl1sr.ent | 146 - docs/dsssl/docbook/common/dbl1sv.dsl | 448 - docs/dsssl/docbook/common/dbl1sv.ent | 147 - docs/dsssl/docbook/common/dbl1th.ent | 155 - docs/dsssl/docbook/common/dbl1tr.dsl | 443 - docs/dsssl/docbook/common/dbl1tr.ent | 157 - docs/dsssl/docbook/common/dbl1uk.dsl | 444 - docs/dsssl/docbook/common/dbl1uk.ent | 175 - docs/dsssl/docbook/common/dbl1xh.dsl | 444 - docs/dsssl/docbook/common/dbl1xh.ent | 155 - docs/dsssl/docbook/common/dbl1zhcn.dsl | 447 - docs/dsssl/docbook/common/dbl1zhcn.ent | 146 - docs/dsssl/docbook/common/dbl1zhhk.dsl | 435 - docs/dsssl/docbook/common/dbl1zhhk.ent | 88 - docs/dsssl/docbook/common/dbl1zhtw.dsl | 447 - docs/dsssl/docbook/common/dbl1zhtw.ent | 128 - docs/dsssl/docbook/common/dbtable.dsl | 244 - docs/dsssl/docbook/html/ChangeLog | 183 - docs/dsssl/docbook/html/XREF | 7931 ----------------- docs/dsssl/docbook/html/catalog | 3 - docs/dsssl/docbook/html/db31.dsl | 301 - docs/dsssl/docbook/html/dbadmon.dsl | 171 - docs/dsssl/docbook/html/dbautoc.dsl | 128 - docs/dsssl/docbook/html/dbbibl.dsl | 997 --- docs/dsssl/docbook/html/dbblock.dsl | 281 - docs/dsssl/docbook/html/dbcallou.dsl | 206 - docs/dsssl/docbook/html/dbchunk.dsl | 492 - docs/dsssl/docbook/html/dbcompon.dsl | 209 - docs/dsssl/docbook/html/dbdivis.dsl | 176 - docs/dsssl/docbook/html/dbefsyn.dsl | 824 -- docs/dsssl/docbook/html/dbfootn.dsl | 249 - docs/dsssl/docbook/html/dbgloss.dsl | 193 - docs/dsssl/docbook/html/dbgraph.dsl | 124 - docs/dsssl/docbook/html/dbhtml.dsl | 392 - docs/dsssl/docbook/html/dbindex.dsl | 374 - docs/dsssl/docbook/html/dbinfo.dsl | 879 -- docs/dsssl/docbook/html/dbinline.dsl | 306 - docs/dsssl/docbook/html/dblink.dsl | 421 - docs/dsssl/docbook/html/dblists.dsl | 435 - docs/dsssl/docbook/html/dblot.dsl | 24 - docs/dsssl/docbook/html/dbmath.dsl | 67 - docs/dsssl/docbook/html/dbmsgset.dsl | 42 - docs/dsssl/docbook/html/dbnavig.dsl | 1058 --- docs/dsssl/docbook/html/dbparam.dsl | 1661 ---- docs/dsssl/docbook/html/dbpi.dsl | 61 - docs/dsssl/docbook/html/dbprocdr.dsl | 68 - docs/dsssl/docbook/html/dbrfntry.dsl | 170 - docs/dsssl/docbook/html/dbsect.dsl | 158 - docs/dsssl/docbook/html/dbsynop.dsl | 201 - docs/dsssl/docbook/html/dbtable.dsl | 419 - docs/dsssl/docbook/html/dbtitle.dsl | 67 - docs/dsssl/docbook/html/dbttlpg.dsl | 4598 ---------- docs/dsssl/docbook/html/dbverb.dsl | 218 - docs/dsssl/docbook/html/docbook.dsl | 241 - docs/dsssl/docbook/html/version.dsl | 16 - docs/dsssl/docbook/lib/ChangeLog | 12 - docs/dsssl/docbook/lib/dblib.dsl | 1857 ---- docs/dsssl/docbook/print/ChangeLog | 184 - docs/dsssl/docbook/print/XREF | 7912 ---------------- docs/dsssl/docbook/print/catalog | 3 - docs/dsssl/docbook/print/db31.dsl | 224 - docs/dsssl/docbook/print/dbadmon.dsl | 160 - docs/dsssl/docbook/print/dbautoc.dsl | 179 - docs/dsssl/docbook/print/dbbibl.dsl | 868 -- docs/dsssl/docbook/print/dbblock.dsl | 681 -- docs/dsssl/docbook/print/dbcallou.dsl | 204 - docs/dsssl/docbook/print/dbcompon.dsl | 505 -- docs/dsssl/docbook/print/dbdivis.dsl | 222 - docs/dsssl/docbook/print/dbdivis.dsl.orig | 207 - docs/dsssl/docbook/print/dbefsyn.dsl | 588 -- docs/dsssl/docbook/print/dbgloss.dsl | 117 - docs/dsssl/docbook/print/dbgraph.dsl | 74 - docs/dsssl/docbook/print/dbindex.dsl | 156 - docs/dsssl/docbook/print/dbinfo.dsl | 1012 --- docs/dsssl/docbook/print/dbinline.dsl | 261 - docs/dsssl/docbook/print/dblink.dsl | 443 - docs/dsssl/docbook/print/dblists.dsl | 516 -- docs/dsssl/docbook/print/dblot.dsl | 24 - docs/dsssl/docbook/print/dbmath.dsl | 92 - docs/dsssl/docbook/print/dbmsgset.dsl | 51 - docs/dsssl/docbook/print/dbparam.dsl | 2014 ----- docs/dsssl/docbook/print/dbprint.dsl | 193 - docs/dsssl/docbook/print/dbprocdr.dsl | 38 - docs/dsssl/docbook/print/dbrfntry.dsl | 215 - docs/dsssl/docbook/print/dbsect.dsl | 205 - docs/dsssl/docbook/print/dbsynop.dsl | 224 - docs/dsssl/docbook/print/dbtable.dsl | 594 -- docs/dsssl/docbook/print/dbtitle.dsl | 52 - docs/dsssl/docbook/print/dbttlpg.dsl | 6582 -------------- docs/dsssl/docbook/print/dbttlpg.dsl.orig | 6539 -------------- docs/dsssl/docbook/print/dbverb.dsl | 217 - docs/dsssl/docbook/print/docbook.dsl | 196 - docs/dsssl/docbook/print/notoc.dsl | 29 - docs/dsssl/docbook/print/plain.dsl | 37 - docs/dsssl/docbook/print/version.dsl | 16 - docs/dsssl/html-common.dsl.in | 254 - docs/dsssl/html.dsl | 22 - docs/dsssl/php.dsl | 22 - docs/dtds/dbxml-4.1.2/40chg.txt | 53 - docs/dtds/dbxml-4.1.2/41chg.txt | 18 - docs/dtds/dbxml-4.1.2/ChangeLog | 101 - docs/dtds/dbxml-4.1.2/calstblx.dtd | 199 - docs/dtds/dbxml-4.1.2/dbcentx.mod | 204 - docs/dtds/dbxml-4.1.2/dbgenent.mod | 41 - docs/dtds/dbxml-4.1.2/dbhierx.mod | 2074 ----- docs/dtds/dbxml-4.1.2/dbnotnx.mod | 97 - docs/dtds/dbxml-4.1.2/dbpoolx.mod | 7516 ---------------- docs/dtds/dbxml-4.1.2/docbook.cat | 59 - docs/dtds/dbxml-4.1.2/docbookx.dtd | 125 - docs/dtds/dbxml-4.1.2/ent/ChangeLog | 9 - docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent | 63 - docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent | 49 - docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent | 15 - docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent | 66 - docs/dtds/dbxml-4.1.2/ent/iso-amso.ent | 26 - docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent | 91 - docs/dtds/dbxml-4.1.2/ent/iso-box.ent | 45 - docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent | 72 - docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent | 31 - docs/dtds/dbxml-4.1.2/ent/iso-dia.ent | 19 - docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent | 54 - docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent | 25 - docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent | 48 - docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent | 48 - docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent | 67 - docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent | 126 - docs/dtds/dbxml-4.1.2/ent/iso-num.ent | 81 - docs/dtds/dbxml-4.1.2/ent/iso-pub.ent | 90 - docs/dtds/dbxml-4.1.2/ent/iso-tech.ent | 69 - docs/dtds/dbxml-4.1.2/phpdocxml.dcl | 179 - docs/dtds/dbxml-4.1.2/readme.txt | 16 - docs/dtds/dbxml-4.1.2/soextblx.dtd | 308 - docs/dtds/dbxml-4.1.2/tblcals.xml | 26 - docs/dtds/dbxml-4.1.2/tblxchg.xml | 26 - docs/en/appendixes/bugs.xml | 29 - docs/en/appendixes/resources.xml | 55 - docs/en/appendixes/tips.xml | 449 - docs/en/appendixes/troubleshooting.xml | 204 - docs/en/bookinfo.xml | 41 - .../designers/chapter-debugging-console.xml | 85 - docs/en/designers/config-files.xml | 107 - docs/en/designers/language-basic-syntax.xml | 46 - .../language-escaping.xml | 88 - .../language-basic-syntax/language-math.xml | 54 - .../language-syntax-attributes.xml | 63 - .../language-syntax-comments.xml | 106 - .../language-syntax-functions.xml | 84 - .../language-syntax-quotes.xml | 91 - .../language-syntax-variables.xml | 86 - .../designers/language-builtin-functions.xml | 53 - .../language-function-capture.xml | 138 - .../language-function-config-load.xml | 186 - .../language-function-foreach.xml | 454 - .../language-function-if.xml | 264 - .../language-function-include-php.xml | 149 - .../language-function-include.xml | 217 - .../language-function-insert.xml | 165 - .../language-function-ldelim.xml | 96 - .../language-function-literal.xml | 103 - .../language-function-php.xml | 81 - .../language-function-section.xml | 829 -- .../language-function-strip.xml | 84 - .../language-combining-modifiers.xml | 67 - .../designers/language-custom-functions.xml | 49 - .../language-function-assign.xml | 158 - .../language-function-counter.xml | 126 - .../language-function-cycle.xml | 154 - .../language-function-debug.xml | 67 - .../language-function-eval.xml | 155 - .../language-function-fetch.xml | 137 - .../language-function-html-checkboxes.xml | 229 - .../language-function-html-image.xml | 163 - .../language-function-html-options.xml | 280 - .../language-function-html-radios.xml | 223 - .../language-function-html-select-date.xml | 347 - .../language-function-html-select-time.xml | 226 - .../language-function-html-table.xml | 250 - .../language-function-mailto.xml | 172 - .../language-function-math.xml | 203 - .../language-function-popup-init.xml | 86 - .../language-function-popup.xml | 450 - .../language-function-textformat.xml | 295 - docs/en/designers/language-modifiers.xml | 159 - .../language-modifier-capitalize.xml | 96 - .../language-modifier-cat.xml | 84 - .../language-modifier-count-characters.xml | 96 - .../language-modifier-count-paragraphs.xml | 71 - .../language-modifier-count-sentences.xml | 69 - .../language-modifier-count-words.xml | 66 - .../language-modifier-date-format.xml | 289 - .../language-modifier-default.xml | 110 - .../language-modifier-escape.xml | 160 - .../language-modifier-indent.xml | 127 - .../language-modifier-lower.xml | 67 - .../language-modifier-nl2br.xml | 69 - .../language-modifier-regex-replace.xml | 106 - .../language-modifier-replace.xml | 105 - .../language-modifier-spacify.xml | 98 - .../language-modifier-string-format.xml | 98 - .../language-modifier-strip-tags.xml | 99 - .../language-modifier-strip.xml | 75 - .../language-modifier-truncate.xml | 130 - .../language-modifier-upper.xml | 65 - .../language-modifier-wordwrap.xml | 145 - docs/en/designers/language-variables.xml | 65 - .../language-assigned-variables.xml | 204 - .../language-config-variables.xml | 122 - .../language-variables-smarty.xml | 224 - docs/en/getting-started.xml | 682 -- docs/en/language-defs.ent | 6 - docs/en/language-snippets.ent | 65 - docs/en/livedocs.ent | 6 - docs/en/make_chm_index.html | 36 - docs/en/preface.xml | 92 - docs/en/programmers/advanced-features.xml | 35 - .../advanced-features-objects.xml | 144 - .../advanced-features-outputfilters.xml | 80 - .../advanced-features-postfilters.xml | 74 - .../advanced-features-prefilters.xml | 72 - .../section-template-cache-handler-func.xml | 187 - .../advanced-features/template-resources.xml | 246 - docs/en/programmers/api-functions.xml | 65 - .../api-functions/api-append-by-ref.xml | 71 - .../programmers/api-functions/api-append.xml | 78 - .../api-functions/api-assign-by-ref.xml | 77 - .../programmers/api-functions/api-assign.xml | 98 - .../api-functions/api-clear-all-assign.xml | 66 - .../api-functions/api-clear-all-cache.xml | 61 - .../api-functions/api-clear-assign.xml | 60 - .../api-functions/api-clear-cache.xml | 84 - .../api-functions/api-clear-compiled-tpl.xml | 68 - .../api-functions/api-clear-config.xml | 65 - .../api-functions/api-config-load.xml | 82 - .../programmers/api-functions/api-display.xml | 114 - .../programmers/api-functions/api-fetch.xml | 157 - .../api-functions/api-get-config-vars.xml | 66 - .../api-get-registered-object.xml | 65 - .../api-functions/api-get-template-vars.xml | 67 - .../api-functions/api-is-cached.xml | 132 - .../api-functions/api-load-filter.xml | 71 - .../api-functions/api-register-block.xml | 90 - .../api-register-compiler-function.xml | 58 - .../api-functions/api-register-function.xml | 92 - .../api-functions/api-register-modifier.xml | 74 - .../api-functions/api-register-object.xml | 53 - .../api-register-outputfilter.xml | 56 - .../api-functions/api-register-postfilter.xml | 58 - .../api-functions/api-register-prefilter.xml | 58 - .../api-functions/api-register-resource.xml | 98 - .../api-functions/api-template-exists.xml | 92 - .../api-functions/api-trigger-error.xml | 52 - .../api-functions/api-unregister-block.xml | 48 - .../api-unregister-compiler-function.xml | 48 - .../api-functions/api-unregister-function.xml | 57 - .../api-functions/api-unregister-modifier.xml | 57 - .../api-functions/api-unregister-object.xml | 42 - .../api-unregister-outputfilter.xml | 46 - .../api-unregister-postfilter.xml | 44 - .../api-unregister-prefilter.xml | 44 - .../api-functions/api-unregister-resource.xml | 59 - docs/en/programmers/api-variables.xml | 61 - .../variable-autoload-filters.xml | 52 - .../api-variables/variable-cache-dir.xml | 71 - .../variable-cache-handler-func.xml | 33 - .../api-variables/variable-cache-lifetime.xml | 67 - .../variable-cache-modified-check.xml | 45 - .../api-variables/variable-caching.xml | 83 - .../api-variables/variable-compile-check.xml | 48 - .../api-variables/variable-compile-dir.xml | 55 - .../api-variables/variable-compile-id.xml | 66 - .../api-variables/variable-compiler-class.xml | 30 - .../variable-config-booleanize.xml | 36 - .../api-variables/variable-config-dir.xml | 41 - .../variable-config-fix-newlines.xml | 31 - .../variable-config-overwrite.xml | 75 - .../variable-config-read-hidden.xml | 33 - .../api-variables/variable-debug-tpl.xml | 37 - .../api-variables/variable-debugging-ctrl.xml | 53 - .../api-variables/variable-debugging.xml | 48 - .../variable-default-modifiers.xml | 35 - .../variable-default-resource-type.xml | 33 - ...variable-default-template-handler-func.xml | 29 - .../variable-error-reporting.xml | 41 - .../api-variables/variable-force-compile.xml | 37 - .../api-variables/variable-left-delimiter.xml | 36 - .../api-variables/variable-php-handling.xml | 60 - .../api-variables/variable-plugins-dir.xml | 79 - .../variable-request-use-auto-globals.xml | 42 - .../variable-request-vars-order.xml | 35 - .../variable-right-delimiter.xml | 35 - .../api-variables/variable-secure-dir.xml | 54 - .../variable-security-settings.xml | 73 - .../api-variables/variable-security.xml | 66 - .../api-variables/variable-template-dir.xml | 42 - .../api-variables/variable-trusted-dir.xml | 33 - .../api-variables/variable-use-sub-dirs.xml | 71 - docs/en/programmers/caching.xml | 51 - .../programmers/caching/caching-cacheable.xml | 140 - .../en/programmers/caching/caching-groups.xml | 109 - .../caching/caching-multiple-caches.xml | 136 - .../caching/caching-setting-up.xml | 214 - docs/en/programmers/plugins.xml | 68 - .../plugins/plugins-block-functions.xml | 129 - .../plugins/plugins-compiler-functions.xml | 97 - .../programmers/plugins/plugins-functions.xml | 130 - docs/en/programmers/plugins/plugins-howto.xml | 45 - .../programmers/plugins/plugins-inserts.xml | 72 - .../programmers/plugins/plugins-modifiers.xml | 116 - .../plugins/plugins-naming-conventions.xml | 96 - .../plugins/plugins-outputfilters.xml | 73 - .../plugins-prefilters-postfilters.xml | 117 - .../programmers/plugins/plugins-resources.xml | 155 - .../programmers/plugins/plugins-writing.xml | 63 - docs/en/programmers/smarty-constants.xml | 90 - docs/entities/.cvsignore | 2 - docs/entities/ISO/ISOamsa | 66 - docs/entities/ISO/ISOamsb | 52 - docs/entities/ISO/ISOamsc | 20 - docs/entities/ISO/ISOamsn | 70 - docs/entities/ISO/ISOamso | 29 - docs/entities/ISO/ISOamsr | 94 - docs/entities/ISO/ISObox | 62 - docs/entities/ISO/ISOcyr1 | 77 - docs/entities/ISO/ISOcyr2 | 36 - docs/entities/ISO/ISOdia | 24 - docs/entities/ISO/ISOgrk1 | 59 - docs/entities/ISO/ISOgrk2 | 30 - docs/entities/ISO/ISOgrk3 | 53 - docs/entities/ISO/ISOgrk4 | 53 - docs/entities/ISO/ISOlat1 | 72 - docs/entities/ISO/ISOlat2 | 131 - docs/entities/ISO/ISOnum | 91 - docs/entities/ISO/ISOpub | 100 - docs/entities/ISO/ISOtech | 73 - docs/entities/ISO/catalog | 19 - docs/entities/global.ent | 32 - docs/entities/version.ent.in | 1 - docs/es/appendixes/bugs.xml | 29 - docs/es/appendixes/resources.xml | 32 - docs/es/appendixes/tips.xml | 433 - docs/es/appendixes/troubleshooting.xml | 179 - docs/es/bookinfo.xml | 46 - .../designers/chapter-debugging-console.xml | 72 - docs/es/designers/config-files.xml | 110 - docs/es/designers/language-basic-syntax.xml | 47 - .../language-escaping.xml | 88 - .../language-basic-syntax/language-math.xml | 54 - .../language-syntax-attributes.xml | 61 - .../language-syntax-comments.xml | 61 - .../language-syntax-functions.xml | 69 - .../language-syntax-quotes.xml | 58 - .../language-syntax-variables.xml | 68 - .../designers/language-builtin-functions.xml | 45 - .../language-function-capture.xml | 122 - .../language-function-config-load.xml | 176 - .../language-function-foreach.xml | 247 - .../language-function-if.xml | 231 - .../language-function-include-php.xml | 147 - .../language-function-include.xml | 183 - .../language-function-insert.xml | 147 - .../language-function-ldelim.xml | 76 - .../language-function-literal.xml | 66 - .../language-function-php.xml | 58 - .../language-function-section.xml | 794 -- .../language-function-strip.xml | 84 - .../language-combining-modifiers.xml | 67 - .../designers/language-custom-functions.xml | 49 - .../language-function-assign.xml | 140 - .../language-function-counter.xml | 123 - .../language-function-cycle.xml | 145 - .../language-function-debug.xml | 65 - .../language-function-eval.xml | 128 - .../language-function-fetch.xml | 114 - .../language-function-html-checkboxes.xml | 201 - .../language-function-html-image.xml | 145 - .../language-function-html-options.xml | 210 - .../language-function-html-radios.xml | 200 - .../language-function-html-select-date.xml | 362 - .../language-function-html-select-time.xml | 343 - .../language-function-html-table.xml | 196 - .../language-function-mailto.xml | 175 - .../language-function-math.xml | 186 - .../language-function-popup-init.xml | 52 - .../language-function-popup.xml | 442 - .../language-function-textformat.xml | 292 - docs/es/designers/language-modifiers.xml | 121 - .../language-modifier-capitalize.xml | 92 - .../language-modifier-cat.xml | 83 - .../language-modifier-count-characters.xml | 94 - .../language-modifier-count-paragraphs.xml | 68 - .../language-modifier-count-sentences.xml | 66 - .../language-modifier-count-words.xml | 63 - .../language-modifier-date-format.xml | 252 - .../language-modifier-default.xml | 92 - .../language-modifier-escape.xml | 106 - .../language-modifier-indent.xml | 123 - .../language-modifier-lower.xml | 62 - .../language-modifier-nl2br.xml | 65 - .../language-modifier-regex-replace.xml | 100 - .../language-modifier-replace.xml | 100 - .../language-modifier-spacify.xml | 92 - .../language-modifier-string-format.xml | 91 - .../language-modifier-strip-tags.xml | 88 - .../language-modifier-strip.xml | 71 - .../language-modifier-truncate.xml | 127 - .../language-modifier-upper.xml | 63 - .../language-modifier-wordwrap.xml | 134 - docs/es/designers/language-variables.xml | 54 - .../language-assigned-variables.xml | 198 - .../language-config-variables.xml | 120 - .../language-variables-smarty.xml | 168 - docs/es/getting-started.xml | 581 -- docs/es/language-defs.ent | 6 - docs/es/language-snippets.ent | 23 - docs/es/livedocs.ent | 7 - docs/es/make_chm_index.html | 37 - docs/es/preface.xml | 103 - docs/es/programmers/advanced-features.xml | 35 - .../advanced-features-objects.xml | 121 - .../advanced-features-outputfilters.xml | 67 - .../advanced-features-postfilters.xml | 64 - .../advanced-features-prefilters.xml | 65 - .../section-template-cache-handler-func.xml | 157 - .../advanced-features/template-resources.xml | 257 - docs/es/programmers/api-functions.xml | 66 - .../api-functions/api-append-by-ref.xml | 65 - .../programmers/api-functions/api-append.xml | 72 - .../api-functions/api-assign-by-ref.xml | 71 - .../programmers/api-functions/api-assign.xml | 92 - .../api-functions/api-clear-all-assign.xml | 63 - .../api-functions/api-clear-all-cache.xml | 57 - .../api-functions/api-clear-assign.xml | 60 - .../api-functions/api-clear-cache.xml | 69 - .../api-functions/api-clear-compiled-tpl.xml | 62 - .../api-functions/api-clear-config.xml | 64 - .../api-functions/api-config-load.xml | 77 - .../programmers/api-functions/api-display.xml | 108 - .../programmers/api-functions/api-fetch.xml | 155 - .../api-functions/api-get-config-vars.xml | 65 - .../api-get-registered-object.xml | 66 - .../api-functions/api-get-template-vars.xml | 67 - .../api-functions/api-is-cached.xml | 117 - .../api-functions/api-load-filter.xml | 64 - .../api-functions/api-register-block.xml | 98 - .../api-register-compiler-function.xml | 73 - .../api-functions/api-register-function.xml | 109 - .../api-functions/api-register-modifier.xml | 94 - .../api-functions/api-register-object.xml | 48 - .../api-register-outputfilter.xml | 79 - .../api-functions/api-register-postfilter.xml | 77 - .../api-functions/api-register-prefilter.xml | 77 - .../api-functions/api-register-resource.xml | 80 - .../api-functions/api-template-exists.xml | 91 - .../api-functions/api-trigger-error.xml | 51 - .../api-functions/api-unregister-block.xml | 47 - .../api-unregister-compiler-function.xml | 43 - .../api-functions/api-unregister-function.xml | 55 - .../api-functions/api-unregister-modifier.xml | 56 - .../api-functions/api-unregister-object.xml | 40 - .../api-unregister-outputfilter.xml | 43 - .../api-unregister-postfilter.xml | 41 - .../api-unregister-prefilter.xml | 41 - .../api-functions/api-unregister-resource.xml | 55 - docs/es/programmers/api-variables.xml | 61 - .../variable-autoload-filters.xml | 52 - .../api-variables/variable-cache-dir.xml | 65 - .../variable-cache-handler-func.xml | 34 - .../api-variables/variable-cache-lifetime.xml | 55 - .../variable-cache-modified-check.xml | 44 - .../api-variables/variable-caching.xml | 61 - .../api-variables/variable-compile-check.xml | 43 - .../api-variables/variable-compile-dir.xml | 56 - .../api-variables/variable-compile-id.xml | 65 - .../api-variables/variable-compiler-class.xml | 30 - .../variable-config-booleanize.xml | 32 - .../api-variables/variable-config-dir.xml | 40 - .../variable-config-fix-newlines.xml | 30 - .../variable-config-overwrite.xml | 76 - .../variable-config-read-hidden.xml | 33 - .../api-variables/variable-debug-tpl.xml | 36 - .../api-variables/variable-debugging-ctrl.xml | 38 - .../api-variables/variable-debugging.xml | 39 - .../variable-default-modifiers.xml | 33 - .../variable-default-resource-type.xml | 32 - ...variable-default-template-handler-func.xml | 29 - .../variable-error-reporting.xml | 41 - .../api-variables/variable-force-compile.xml | 36 - .../api-variables/variable-left-delimiter.xml | 34 - .../api-variables/variable-php-handling.xml | 48 - .../api-variables/variable-plugins-dir.xml | 64 - .../variable-request-use-auto-globals.xml | 36 - .../variable-request-vars-order.xml | 34 - .../variable-right-delimiter.xml | 34 - .../api-variables/variable-secure-dir.xml | 38 - .../variable-security-settings.xml | 73 - .../api-variables/variable-security.xml | 79 - .../api-variables/variable-template-dir.xml | 41 - .../api-variables/variable-trusted-dir.xml | 33 - .../api-variables/variable-use-sub-dirs.xml | 63 - docs/es/programmers/caching.xml | 53 - .../programmers/caching/caching-cacheable.xml | 145 - .../es/programmers/caching/caching-groups.xml | 86 - .../caching/caching-multiple-caches.xml | 133 - .../caching/caching-setting-up.xml | 199 - docs/es/programmers/plugins.xml | 68 - .../plugins/plugins-block-functions.xml | 119 - .../plugins/plugins-compiler-functions.xml | 91 - .../programmers/plugins/plugins-functions.xml | 127 - docs/es/programmers/plugins/plugins-howto.xml | 47 - .../programmers/plugins/plugins-inserts.xml | 74 - .../programmers/plugins/plugins-modifiers.xml | 115 - .../plugins/plugins-naming-conventions.xml | 81 - .../plugins/plugins-outputfilters.xml | 67 - .../plugins-prefilters-postfilters.xml | 106 - .../programmers/plugins/plugins-resources.xml | 160 - .../programmers/plugins/plugins-writing.xml | 57 - docs/es/programmers/smarty-constants.xml | 93 - docs/fop/README | 14 - docs/fop/ru.cfg | 33 - docs/fop/thryb.ttf | Bin 527216 -> 0 bytes docs/fop/thryb.xml | 2 - docs/fop/thrybi.ttf | Bin 533032 -> 0 bytes docs/fop/thrybi.xml | 2 - docs/fop/thryi.ttf | Bin 292068 -> 0 bytes docs/fop/thryi.xml | 2 - docs/fop/thryn.ttf | Bin 292040 -> 0 bytes docs/fop/thryn.xml | 2 - docs/fr/appendixes/bugs.xml | 30 - docs/fr/appendixes/resources.xml | 52 - docs/fr/appendixes/tips.xml | 439 - docs/fr/appendixes/troubleshooting.xml | 193 - docs/fr/bookinfo.xml | 60 - .../designers/chapter-debugging-console.xml | 77 - docs/fr/designers/config-files.xml | 113 - docs/fr/designers/language-basic-syntax.xml | 48 - .../language-escaping.xml | 89 - .../language-basic-syntax/language-math.xml | 59 - .../language-syntax-attributes.xml | 65 - .../language-syntax-comments.xml | 105 - .../language-syntax-functions.xml | 87 - .../language-syntax-quotes.xml | 95 - .../language-syntax-variables.xml | 87 - .../designers/language-builtin-functions.xml | 57 - .../language-function-capture.xml | 136 - .../language-function-config-load.xml | 186 - .../language-function-foreach.xml | 457 - .../language-function-if.xml | 257 - .../language-function-include-php.xml | 155 - .../language-function-include.xml | 215 - .../language-function-insert.xml | 169 - .../language-function-ldelim.xml | 99 - .../language-function-literal.xml | 105 - .../language-function-php.xml | 79 - .../language-function-section.xml | 838 -- .../language-function-strip.xml | 87 - .../language-combining-modifiers.xml | 70 - .../designers/language-custom-functions.xml | 52 - .../language-function-assign.xml | 157 - .../language-function-counter.xml | 128 - .../language-function-cycle.xml | 152 - .../language-function-debug.xml | 68 - .../language-function-eval.xml | 159 - .../language-function-fetch.xml | 146 - .../language-function-html-checkboxes.xml | 245 - .../language-function-html-image.xml | 163 - .../language-function-html-options.xml | 281 - .../language-function-html-radios.xml | 225 - .../language-function-html-select-date.xml | 362 - .../language-function-html-select-time.xml | 232 - .../language-function-html-table.xml | 253 - .../language-function-mailto.xml | 174 - .../language-function-math.xml | 208 - .../language-function-popup-init.xml | 88 - .../language-function-popup.xml | 458 - .../language-function-textformat.xml | 303 - docs/fr/designers/language-modifiers.xml | 164 - .../language-modifier-capitalize.xml | 99 - .../language-modifier-cat.xml | 86 - .../language-modifier-count-characters.xml | 96 - .../language-modifier-count-paragraphs.xml | 69 - .../language-modifier-count-sentences.xml | 72 - .../language-modifier-count-words.xml | 67 - .../language-modifier-date-format.xml | 280 - .../language-modifier-default.xml | 109 - .../language-modifier-escape.xml | 159 - .../language-modifier-indent.xml | 126 - .../language-modifier-lower.xml | 65 - .../language-modifier-nl2br.xml | 69 - .../language-modifier-regex-replace.xml | 105 - .../language-modifier-replace.xml | 104 - .../language-modifier-spacify.xml | 98 - .../language-modifier-string-format.xml | 97 - .../language-modifier-strip-tags.xml | 100 - .../language-modifier-strip.xml | 78 - .../language-modifier-truncate.xml | 132 - .../language-modifier-upper.xml | 64 - .../language-modifier-wordwrap.xml | 140 - docs/fr/designers/language-variables.xml | 65 - .../language-assigned-variables.xml | 201 - .../language-config-variables.xml | 122 - .../language-variables-smarty.xml | 227 - docs/fr/getting-started.xml | 600 -- docs/fr/language-defs.ent | 7 - docs/fr/language-snippets.ent | 52 - docs/fr/livedocs.ent | 7 - docs/fr/make_chm_index.html | 37 - docs/fr/preface.xml | 101 - docs/fr/programmers/advanced-features.xml | 36 - .../advanced-features-objects.xml | 142 - .../advanced-features-outputfilters.xml | 81 - .../advanced-features-postfilters.xml | 73 - .../advanced-features-prefilters.xml | 73 - .../section-template-cache-handler-func.xml | 188 - .../advanced-features/template-resources.xml | 255 - docs/fr/programmers/api-functions.xml | 68 - .../api-functions/api-append-by-ref.xml | 71 - .../programmers/api-functions/api-append.xml | 79 - .../api-functions/api-assign-by-ref.xml | 75 - .../programmers/api-functions/api-assign.xml | 98 - .../api-functions/api-clear-all-assign.xml | 68 - .../api-functions/api-clear-all-cache.xml | 62 - .../api-functions/api-clear-assign.xml | 63 - .../api-functions/api-clear-cache.xml | 81 - .../api-functions/api-clear-compiled-tpl.xml | 72 - .../api-functions/api-clear-config.xml | 66 - .../api-functions/api-config-load.xml | 80 - .../programmers/api-functions/api-display.xml | 114 - .../programmers/api-functions/api-fetch.xml | 158 - .../api-functions/api-get-config-vars.xml | 67 - .../api-get-registered-object.xml | 67 - .../api-functions/api-get-template-vars.xml | 69 - .../api-functions/api-is-cached.xml | 128 - .../api-functions/api-load-filter.xml | 72 - .../api-functions/api-register-block.xml | 87 - .../api-register-compiler-function.xml | 57 - .../api-functions/api-register-function.xml | 88 - .../api-functions/api-register-modifier.xml | 74 - .../api-functions/api-register-object.xml | 53 - .../api-register-outputfilter.xml | 53 - .../api-functions/api-register-postfilter.xml | 59 - .../api-functions/api-register-prefilter.xml | 57 - .../api-functions/api-register-resource.xml | 99 - .../api-functions/api-template-exists.xml | 92 - .../api-functions/api-trigger-error.xml | 53 - .../api-functions/api-unregister-block.xml | 47 - .../api-unregister-compiler-function.xml | 48 - .../api-functions/api-unregister-function.xml | 59 - .../api-functions/api-unregister-modifier.xml | 61 - .../api-functions/api-unregister-object.xml | 43 - .../api-unregister-outputfilter.xml | 46 - .../api-unregister-postfilter.xml | 43 - .../api-unregister-prefilter.xml | 43 - .../api-functions/api-unregister-resource.xml | 58 - docs/fr/programmers/api-variables.xml | 64 - .../variable-autoload-filters.xml | 49 - .../api-variables/variable-cache-dir.xml | 66 - .../variable-cache-handler-func.xml | 36 - .../api-variables/variable-cache-lifetime.xml | 67 - .../variable-cache-modified-check.xml | 43 - .../api-variables/variable-caching.xml | 83 - .../api-variables/variable-compile-check.xml | 50 - .../api-variables/variable-compile-dir.xml | 56 - .../api-variables/variable-compile-id.xml | 67 - .../api-variables/variable-compiler-class.xml | 33 - .../variable-config-booleanize.xml | 37 - .../api-variables/variable-config-dir.xml | 43 - .../variable-config-fix-newlines.xml | 33 - .../variable-config-overwrite.xml | 78 - .../variable-config-read-hidden.xml | 37 - .../api-variables/variable-debug-tpl.xml | 38 - .../api-variables/variable-debugging-ctrl.xml | 56 - .../api-variables/variable-debugging.xml | 50 - .../variable-default-modifiers.xml | 36 - .../variable-default-resource-type.xml | 35 - ...variable-default-template-handler-func.xml | 31 - .../variable-error-reporting.xml | 43 - .../api-variables/variable-force-compile.xml | 38 - .../api-variables/variable-left-delimiter.xml | 37 - .../api-variables/variable-php-handling.xml | 54 - .../api-variables/variable-plugins-dir.xml | 82 - .../variable-request-use-auto-globals.xml | 44 - .../variable-request-vars-order.xml | 37 - .../variable-right-delimiter.xml | 37 - .../api-variables/variable-secure-dir.xml | 52 - .../variable-security-settings.xml | 77 - .../api-variables/variable-security.xml | 83 - .../api-variables/variable-template-dir.xml | 43 - .../api-variables/variable-trusted-dir.xml | 36 - .../api-variables/variable-use-sub-dirs.xml | 71 - docs/fr/programmers/caching.xml | 55 - .../programmers/caching/caching-cacheable.xml | 143 - .../fr/programmers/caching/caching-groups.xml | 104 - .../caching/caching-multiple-caches.xml | 134 - .../caching/caching-setting-up.xml | 207 - docs/fr/programmers/plugins.xml | 71 - .../plugins/plugins-block-functions.xml | 125 - .../plugins/plugins-compiler-functions.xml | 94 - .../programmers/plugins/plugins-functions.xml | 132 - docs/fr/programmers/plugins/plugins-howto.xml | 47 - .../programmers/plugins/plugins-inserts.xml | 77 - .../programmers/plugins/plugins-modifiers.xml | 119 - .../plugins/plugins-naming-conventions.xml | 98 - .../plugins/plugins-outputfilters.xml | 77 - .../plugins-prefilters-postfilters.xml | 119 - .../programmers/plugins/plugins-resources.xml | 164 - .../programmers/plugins/plugins-writing.xml | 65 - docs/fr/programmers/smarty-constants.xml | 92 - docs/fr/translation.xml | 21 - docs/id/bookinfo.xml | 41 - .../language-escaping.xml | 91 - .../language-basic-syntax/language-math.xml | 54 - .../language-syntax-attributes.xml | 61 - .../language-syntax-comments.xml | 106 - .../language-syntax-functions.xml | 84 - .../language-syntax-quotes.xml | 90 - .../language-syntax-variables.xml | 84 - .../language-function-capture.xml | 139 - .../language-function-config-load.xml | 183 - .../language-function-foreach.xml | 459 - .../language-function-if.xml | 263 - .../language-function-include-php.xml | 148 - .../language-function-include.xml | 216 - .../language-function-insert.xml | 160 - .../language-function-ldelim.xml | 97 - .../language-function-literal.xml | 102 - .../language-function-php.xml | 82 - .../language-function-section.xml | 826 -- .../language-function-strip.xml | 85 - .../language-function-assign.xml | 158 - .../language-function-counter.xml | 126 - .../language-function-cycle.xml | 153 - .../language-function-debug.xml | 66 - .../language-function-eval.xml | 155 - .../language-function-fetch.xml | 139 - .../language-function-html-checkboxes.xml | 236 - .../language-function-html-image.xml | 163 - .../language-function-html-options.xml | 279 - .../language-function-html-radios.xml | 223 - .../language-function-html-select-date.xml | 347 - .../language-function-html-select-time.xml | 223 - .../language-function-html-table.xml | 247 - .../language-function-mailto.xml | 171 - .../language-function-math.xml | 203 - .../language-function-popup-init.xml | 85 - .../language-function-popup.xml | 442 - .../language-function-textformat.xml | 296 - .../language-modifier-capitalize.xml | 96 - .../language-modifier-cat.xml | 84 - .../language-modifier-count-characters.xml | 96 - .../language-modifier-count-paragraphs.xml | 71 - .../language-modifier-count-sentences.xml | 69 - .../language-modifier-count-words.xml | 66 - .../language-modifier-date-format.xml | 287 - .../language-modifier-default.xml | 111 - .../language-modifier-escape.xml | 159 - .../language-modifier-indent.xml | 127 - .../language-modifier-lower.xml | 67 - .../language-modifier-nl2br.xml | 69 - .../language-modifier-regex-replace.xml | 106 - .../language-modifier-replace.xml | 105 - .../language-modifier-spacify.xml | 98 - .../language-modifier-string-format.xml | 98 - .../language-modifier-strip-tags.xml | 99 - .../language-modifier-strip.xml | 75 - .../language-modifier-truncate.xml | 129 - .../language-modifier-upper.xml | 65 - .../language-modifier-wordwrap.xml | 143 - .../language-assigned-variables.xml | 203 - .../language-config-variables.xml | 119 - .../language-variables-smarty.xml | 227 - docs/id/getting-started.xml | 689 -- docs/id/language-defs.ent | 6 - docs/id/language-snippets.ent | 66 - docs/id/livedocs.ent | 6 - docs/id/preface.xml | 94 - .../advanced-features-objects.xml | 142 - .../advanced-features-outputfilters.xml | 80 - .../advanced-features-postfilters.xml | 73 - .../advanced-features-prefilters.xml | 72 - .../section-template-cache-handler-func.xml | 191 - .../advanced-features/template-resources.xml | 261 - .../api-functions/api-append-by-ref.xml | 71 - .../programmers/api-functions/api-append.xml | 77 - .../api-functions/api-assign-by-ref.xml | 76 - .../programmers/api-functions/api-assign.xml | 98 - .../api-functions/api-clear-all-assign.xml | 66 - .../api-functions/api-clear-all-cache.xml | 60 - .../api-functions/api-clear-assign.xml | 60 - .../api-functions/api-clear-cache.xml | 81 - .../api-functions/api-clear-compiled-tpl.xml | 69 - .../api-functions/api-clear-config.xml | 65 - .../api-functions/api-config-load.xml | 82 - .../programmers/api-functions/api-display.xml | 114 - .../programmers/api-functions/api-fetch.xml | 157 - .../api-functions/api-get-config-vars.xml | 66 - .../api-get-registered-object.xml | 64 - .../api-functions/api-get-template-vars.xml | 67 - .../api-functions/api-is-cached.xml | 133 - .../api-functions/api-load-filter.xml | 70 - .../api-functions/api-register-block.xml | 91 - .../api-register-compiler-function.xml | 58 - .../api-functions/api-register-function.xml | 92 - .../api-functions/api-register-modifier.xml | 74 - .../api-functions/api-register-object.xml | 53 - .../api-register-outputfilter.xml | 55 - .../api-functions/api-register-postfilter.xml | 57 - .../api-functions/api-register-prefilter.xml | 57 - .../api-functions/api-register-resource.xml | 98 - .../api-functions/api-template-exists.xml | 92 - .../api-functions/api-trigger-error.xml | 52 - .../api-functions/api-unregister-block.xml | 49 - .../api-unregister-compiler-function.xml | 47 - .../api-functions/api-unregister-function.xml | 57 - .../api-functions/api-unregister-modifier.xml | 57 - .../api-functions/api-unregister-object.xml | 42 - .../api-unregister-outputfilter.xml | 46 - .../api-unregister-postfilter.xml | 44 - .../api-unregister-prefilter.xml | 44 - .../api-functions/api-unregister-resource.xml | 59 - .../variable-autoload-filters.xml | 52 - .../api-variables/variable-cache-dir.xml | 69 - .../variable-cache-handler-func.xml | 33 - .../api-variables/variable-cache-lifetime.xml | 67 - .../variable-cache-modified-check.xml | 44 - .../api-variables/variable-caching.xml | 81 - .../api-variables/variable-compile-check.xml | 47 - .../api-variables/variable-compile-dir.xml | 56 - .../api-variables/variable-compile-id.xml | 69 - .../api-variables/variable-compiler-class.xml | 30 - .../variable-config-booleanize.xml | 36 - .../api-variables/variable-config-dir.xml | 40 - .../variable-config-fix-newlines.xml | 30 - .../variable-config-overwrite.xml | 75 - .../variable-config-read-hidden.xml | 33 - .../api-variables/variable-debug-tpl.xml | 36 - .../api-variables/variable-debugging-ctrl.xml | 54 - .../api-variables/variable-debugging.xml | 49 - .../variable-default-modifiers.xml | 34 - .../variable-default-resource-type.xml | 33 - ...variable-default-template-handler-func.xml | 29 - .../variable-error-reporting.xml | 41 - .../api-variables/variable-force-compile.xml | 36 - .../api-variables/variable-left-delimiter.xml | 36 - .../api-variables/variable-php-handling.xml | 61 - .../api-variables/variable-plugins-dir.xml | 78 - .../variable-request-use-auto-globals.xml | 42 - .../variable-request-vars-order.xml | 35 - .../variable-right-delimiter.xml | 35 - .../api-variables/variable-secure-dir.xml | 54 - .../variable-security-settings.xml | 75 - .../api-variables/variable-security.xml | 66 - .../api-variables/variable-template-dir.xml | 41 - .../api-variables/variable-trusted-dir.xml | 33 - .../api-variables/variable-use-sub-dirs.xml | 71 - .../programmers/caching/caching-cacheable.xml | 139 - .../id/programmers/caching/caching-groups.xml | 109 - .../caching/caching-multiple-caches.xml | 136 - .../caching/caching-setting-up.xml | 208 - .../plugins/plugins-block-functions.xml | 127 - .../plugins/plugins-compiler-functions.xml | 97 - .../programmers/plugins/plugins-functions.xml | 130 - docs/id/programmers/plugins/plugins-howto.xml | 45 - .../programmers/plugins/plugins-inserts.xml | 71 - .../programmers/plugins/plugins-modifiers.xml | 116 - .../plugins/plugins-naming-conventions.xml | 95 - .../plugins/plugins-outputfilters.xml | 73 - .../plugins-prefilters-postfilters.xml | 117 - .../programmers/plugins/plugins-resources.xml | 168 - .../programmers/plugins/plugins-writing.xml | 64 - docs/it/appendixes/bugs.xml | 30 - docs/it/appendixes/resources.xml | 32 - docs/it/appendixes/tips.xml | 378 - docs/it/appendixes/troubleshooting.xml | 77 - docs/it/bookinfo.xml | 41 - .../designers/chapter-debugging-console.xml | 60 - docs/it/designers/config-files.xml | 96 - docs/it/designers/language-basic-syntax.xml | 45 - .../language-escaping.xml | 84 - .../language-basic-syntax/language-math.xml | 48 - .../language-syntax-attributes.xml | 58 - .../language-syntax-comments.xml | 51 - .../language-syntax-functions.xml | 58 - .../language-syntax-quotes.xml | 50 - .../designers/language-builtin-functions.xml | 45 - .../language-function-capture.xml | 105 - .../language-function-config-load.xml | 148 - .../language-function-foreach.xml | 191 - .../language-function-if.xml | 219 - .../language-function-include-php.xml | 140 - .../language-function-include.xml | 123 - .../language-function-insert.xml | 144 - .../language-function-ldelim.xml | 52 - .../language-function-literal.xml | 60 - .../language-function-php.xml | 42 - .../language-function-section.xml | 569 -- .../language-function-strip.xml | 79 - .../language-combining-modifiers.xml | 64 - .../designers/language-custom-functions.xml | 49 - .../language-function-assign.xml | 74 - .../language-function-counter.xml | 122 - .../language-function-cycle.xml | 135 - .../language-function-debug.xml | 60 - .../language-function-eval.xml | 120 - .../language-function-fetch.xml | 111 - .../language-function-html-checkboxes.xml | 165 - .../language-function-html-image.xml | 160 - .../language-function-html-options.xml | 153 - .../language-function-html-radios.xml | 144 - .../language-function-html-select-date.xml | 361 - .../language-function-html-select-time.xml | 331 - .../language-function-html-table.xml | 152 - .../language-function-mailto.xml | 150 - .../language-function-math.xml | 148 - .../language-function-popup-init.xml | 52 - .../language-function-popup.xml | 428 - .../language-function-textformat.xml | 254 - docs/it/designers/language-modifiers.xml | 101 - .../language-modifier-capitalize.xml | 90 - .../language-modifier-cat.xml | 83 - .../language-modifier-count-characters.xml | 89 - .../language-modifier-count-paragraphs.xml | 61 - .../language-modifier-count-sentences.xml | 60 - .../language-modifier-count-words.xml | 60 - .../language-modifier-date-format.xml | 234 - .../language-modifier-default.xml | 89 - .../language-modifier-escape.xml | 102 - .../language-modifier-indent.xml | 118 - .../language-modifier-lower.xml | 60 - .../language-modifier-nl2br.xml | 60 - .../language-modifier-regex-replace.xml | 98 - .../language-modifier-replace.xml | 96 - .../language-modifier-spacify.xml | 88 - .../language-modifier-string-format.xml | 90 - .../language-modifier-strip-tags.xml | 91 - .../language-modifier-strip.xml | 71 - .../language-modifier-truncate.xml | 118 - .../language-modifier-upper.xml | 60 - .../language-modifier-wordwrap.xml | 130 - docs/it/designers/language-variables.xml | 51 - .../language-assigned-variables.xml | 173 - .../language-config-variables.xml | 113 - .../language-variables-smarty.xml | 167 - docs/it/getting-started.xml | 532 -- docs/it/language-defs.ent | 6 - docs/it/language-snippets.ent | 24 - docs/it/livedocs.ent | 7 - docs/it/preface.xml | 94 - docs/it/programmers/advanced-features.xml | 35 - .../advanced-features-objects.xml | 114 - .../advanced-features-outputfilters.xml | 66 - .../advanced-features-postfilters.xml | 62 - .../advanced-features-prefilters.xml | 58 - .../section-template-cache-handler-func.xml | 157 - .../advanced-features/template-resources.xml | 246 - docs/it/programmers/api-functions.xml | 65 - .../api-functions/api-append-by-ref.xml | 60 - .../programmers/api-functions/api-append.xml | 64 - .../api-functions/api-assign-by-ref.xml | 64 - .../programmers/api-functions/api-assign.xml | 60 - .../api-functions/api-clear-all-assign.xml | 49 - .../api-functions/api-clear-all-cache.xml | 51 - .../api-functions/api-clear-assign.xml | 53 - .../api-functions/api-clear-cache.xml | 63 - .../api-functions/api-clear-compiled-tpl.xml | 61 - .../api-functions/api-clear-config.xml | 54 - .../api-functions/api-config-load.xml | 67 - .../programmers/api-functions/api-display.xml | 104 - .../programmers/api-functions/api-fetch.xml | 86 - .../api-functions/api-get-config-vars.xml | 57 - .../api-get-registered-object.xml | 57 - .../api-functions/api-get-template-vars.xml | 57 - .../api-functions/api-is-cached.xml | 107 - .../api-functions/api-load-filter.xml | 54 - .../api-functions/api-register-block.xml | 93 - .../api-register-compiler-function.xml | 62 - .../api-functions/api-register-function.xml | 86 - .../api-functions/api-register-modifier.xml | 68 - .../api-functions/api-register-object.xml | 44 - .../api-register-outputfilter.xml | 55 - .../api-functions/api-register-postfilter.xml | 55 - .../api-functions/api-register-prefilter.xml | 55 - .../api-functions/api-register-resource.xml | 77 - .../api-functions/api-template-exists.xml | 40 - .../api-functions/api-trigger-error.xml | 43 - .../api-functions/api-unregister-block.xml | 40 - .../api-unregister-compiler-function.xml | 39 - .../api-functions/api-unregister-function.xml | 51 - .../api-functions/api-unregister-modifier.xml | 51 - .../api-functions/api-unregister-object.xml | 38 - .../api-unregister-outputfilter.xml | 38 - .../api-unregister-postfilter.xml | 38 - .../api-unregister-prefilter.xml | 38 - .../api-functions/api-unregister-resource.xml | 49 - docs/it/programmers/api-variables.xml | 61 - .../variable-autoload-filters.xml | 43 - .../api-variables/variable-cache-dir.xml | 48 - .../variable-cache-handler-func.xml | 33 - .../api-variables/variable-cache-lifetime.xml | 53 - .../variable-cache-modified-check.xml | 33 - .../api-variables/variable-caching.xml | 45 - .../api-variables/variable-compile-check.xml | 43 - .../api-variables/variable-compile-dir.xml | 46 - .../api-variables/variable-compile-id.xml | 31 - .../api-variables/variable-compiler-class.xml | 30 - .../variable-config-booleanize.xml | 32 - .../api-variables/variable-config-dir.xml | 38 - .../variable-config-fix-newlines.xml | 30 - .../variable-config-overwrite.xml | 31 - .../variable-config-read-hidden.xml | 33 - .../api-variables/variable-debug-tpl.xml | 30 - .../api-variables/variable-debugging-ctrl.xml | 33 - .../api-variables/variable-debugging.xml | 31 - .../variable-default-modifiers.xml | 32 - .../variable-default-resource-type.xml | 32 - ...variable-default-template-handler-func.xml | 29 - .../variable-error-reporting.xml | 32 - .../api-variables/variable-force-compile.xml | 33 - .../api-variables/variable-left-delimiter.xml | 29 - .../api-variables/variable-php-handling.xml | 48 - .../api-variables/variable-plugins-dir.xml | 40 - .../variable-request-use-auto-globals.xml | 35 - .../variable-request-vars-order.xml | 29 - .../variable-right-delimiter.xml | 29 - .../api-variables/variable-secure-dir.xml | 29 - .../variable-security-settings.xml | 44 - .../api-variables/variable-security.xml | 47 - .../api-variables/variable-template-dir.xml | 39 - .../api-variables/variable-trusted-dir.xml | 32 - .../api-variables/variable-use-sub-dirs.xml | 36 - docs/it/programmers/caching.xml | 52 - .../programmers/caching/caching-cacheable.xml | 145 - .../it/programmers/caching/caching-groups.xml | 83 - .../caching/caching-multiple-caches.xml | 127 - .../caching/caching-setting-up.xml | 192 - docs/it/programmers/plugins.xml | 70 - .../plugins/plugins-block-functions.xml | 118 - .../plugins/plugins-compiler-functions.xml | 91 - .../programmers/plugins/plugins-functions.xml | 126 - docs/it/programmers/plugins/plugins-howto.xml | 47 - .../programmers/plugins/plugins-inserts.xml | 74 - .../programmers/plugins/plugins-modifiers.xml | 116 - .../plugins/plugins-naming-conventions.xml | 82 - .../plugins/plugins-outputfilters.xml | 67 - .../plugins-prefilters-postfilters.xml | 106 - .../programmers/plugins/plugins-resources.xml | 159 - .../programmers/plugins/plugins-writing.xml | 57 - docs/it/programmers/smarty-constants.xml | 48 - docs/ja/appendixes/bugs.xml | 31 - docs/ja/appendixes/resources.xml | 59 - docs/ja/appendixes/tips.xml | 453 - docs/ja/appendixes/troubleshooting.xml | 200 - docs/ja/bookinfo.xml | 57 - .../designers/chapter-debugging-console.xml | 89 - docs/ja/designers/config-files.xml | 110 - docs/ja/designers/language-basic-syntax.xml | 46 - .../language-escaping.xml | 92 - .../language-basic-syntax/language-math.xml | 57 - .../language-syntax-attributes.xml | 62 - .../language-syntax-comments.xml | 108 - .../language-syntax-functions.xml | 88 - .../language-syntax-quotes.xml | 94 - .../language-syntax-variables.xml | 87 - .../designers/language-builtin-functions.xml | 53 - .../language-function-capture.xml | 139 - .../language-function-config-load.xml | 187 - .../language-function-foreach.xml | 459 - .../language-function-if.xml | 266 - .../language-function-include-php.xml | 149 - .../language-function-include.xml | 217 - .../language-function-insert.xml | 164 - .../language-function-ldelim.xml | 101 - .../language-function-literal.xml | 106 - .../language-function-php.xml | 83 - .../language-function-section.xml | 837 -- .../language-function-strip.xml | 85 - .../language-combining-modifiers.xml | 69 - .../designers/language-custom-functions.xml | 50 - .../language-function-assign.xml | 163 - .../language-function-counter.xml | 127 - .../language-function-cycle.xml | 156 - .../language-function-debug.xml | 67 - .../language-function-eval.xml | 156 - .../language-function-fetch.xml | 138 - .../language-function-html-checkboxes.xml | 230 - .../language-function-html-image.xml | 166 - .../language-function-html-options.xml | 282 - .../language-function-html-radios.xml | 225 - .../language-function-html-select-date.xml | 347 - .../language-function-html-select-time.xml | 223 - .../language-function-html-table.xml | 247 - .../language-function-mailto.xml | 176 - .../language-function-math.xml | 204 - .../language-function-popup-init.xml | 89 - .../language-function-popup.xml | 436 - .../language-function-textformat.xml | 297 - docs/ja/designers/language-modifiers.xml | 158 - .../language-modifier-capitalize.xml | 98 - .../language-modifier-cat.xml | 86 - .../language-modifier-count-characters.xml | 97 - .../language-modifier-count-paragraphs.xml | 73 - .../language-modifier-count-sentences.xml | 71 - .../language-modifier-count-words.xml | 68 - .../language-modifier-date-format.xml | 281 - .../language-modifier-default.xml | 110 - .../language-modifier-escape.xml | 163 - .../language-modifier-indent.xml | 128 - .../language-modifier-lower.xml | 69 - .../language-modifier-nl2br.xml | 71 - .../language-modifier-regex-replace.xml | 110 - .../language-modifier-replace.xml | 107 - .../language-modifier-spacify.xml | 98 - .../language-modifier-string-format.xml | 100 - .../language-modifier-strip-tags.xml | 102 - .../language-modifier-strip.xml | 78 - .../language-modifier-truncate.xml | 128 - .../language-modifier-upper.xml | 67 - .../language-modifier-wordwrap.xml | 144 - docs/ja/designers/language-variables.xml | 68 - .../language-assigned-variables.xml | 205 - .../language-config-variables.xml | 121 - .../language-variables-smarty.xml | 228 - docs/ja/getting-started.xml | 685 -- docs/ja/language-defs.ent | 8 - docs/ja/language-snippets.ent | 67 - docs/ja/livedocs.ent | 8 - docs/ja/make_chm_index.html | 38 - docs/ja/preface.xml | 94 - docs/ja/programmers/advanced-features.xml | 37 - .../advanced-features-objects.xml | 139 - .../advanced-features-outputfilters.xml | 81 - .../advanced-features-postfilters.xml | 75 - .../advanced-features-prefilters.xml | 73 - .../section-template-cache-handler-func.xml | 184 - .../advanced-features/template-resources.xml | 246 - docs/ja/programmers/api-functions.xml | 67 - .../api-functions/api-append-by-ref.xml | 72 - .../programmers/api-functions/api-append.xml | 80 - .../api-functions/api-assign-by-ref.xml | 77 - .../programmers/api-functions/api-assign.xml | 100 - .../api-functions/api-clear-all-assign.xml | 68 - .../api-functions/api-clear-all-cache.xml | 61 - .../api-functions/api-clear-assign.xml | 62 - .../api-functions/api-clear-cache.xml | 86 - .../api-functions/api-clear-compiled-tpl.xml | 70 - .../api-functions/api-clear-config.xml | 66 - .../api-functions/api-config-load.xml | 84 - .../programmers/api-functions/api-display.xml | 116 - .../programmers/api-functions/api-fetch.xml | 159 - .../api-functions/api-get-config-vars.xml | 68 - .../api-get-registered-object.xml | 67 - .../api-functions/api-get-template-vars.xml | 70 - .../api-functions/api-is-cached.xml | 131 - .../api-functions/api-load-filter.xml | 70 - .../api-functions/api-register-block.xml | 91 - .../api-register-compiler-function.xml | 59 - .../api-functions/api-register-function.xml | 93 - .../api-functions/api-register-modifier.xml | 75 - .../api-functions/api-register-object.xml | 55 - .../api-register-outputfilter.xml | 55 - .../api-functions/api-register-postfilter.xml | 59 - .../api-functions/api-register-prefilter.xml | 59 - .../api-functions/api-register-resource.xml | 96 - .../api-functions/api-template-exists.xml | 95 - .../api-functions/api-trigger-error.xml | 54 - .../api-functions/api-unregister-block.xml | 50 - .../api-unregister-compiler-function.xml | 49 - .../api-functions/api-unregister-function.xml | 59 - .../api-functions/api-unregister-modifier.xml | 59 - .../api-functions/api-unregister-object.xml | 44 - .../api-unregister-outputfilter.xml | 48 - .../api-unregister-postfilter.xml | 46 - .../api-unregister-prefilter.xml | 46 - .../api-functions/api-unregister-resource.xml | 61 - docs/ja/programmers/api-variables.xml | 63 - .../variable-autoload-filters.xml | 53 - .../api-variables/variable-cache-dir.xml | 69 - .../variable-cache-handler-func.xml | 36 - .../api-variables/variable-cache-lifetime.xml | 72 - .../variable-cache-modified-check.xml | 45 - .../api-variables/variable-caching.xml | 83 - .../api-variables/variable-compile-check.xml | 50 - .../api-variables/variable-compile-dir.xml | 57 - .../api-variables/variable-compile-id.xml | 65 - .../api-variables/variable-compiler-class.xml | 32 - .../variable-config-booleanize.xml | 37 - .../api-variables/variable-config-dir.xml | 42 - .../variable-config-fix-newlines.xml | 33 - .../variable-config-overwrite.xml | 77 - .../variable-config-read-hidden.xml | 35 - .../api-variables/variable-debug-tpl.xml | 39 - .../api-variables/variable-debugging-ctrl.xml | 59 - .../api-variables/variable-debugging.xml | 49 - .../variable-default-modifiers.xml | 35 - .../variable-default-resource-type.xml | 36 - ...variable-default-template-handler-func.xml | 30 - .../variable-error-reporting.xml | 44 - .../api-variables/variable-force-compile.xml | 37 - .../api-variables/variable-left-delimiter.xml | 38 - .../api-variables/variable-php-handling.xml | 62 - .../api-variables/variable-plugins-dir.xml | 80 - .../variable-request-use-auto-globals.xml | 48 - .../variable-request-vars-order.xml | 36 - .../variable-right-delimiter.xml | 38 - .../api-variables/variable-secure-dir.xml | 55 - .../variable-security-settings.xml | 77 - .../api-variables/variable-security.xml | 71 - .../api-variables/variable-template-dir.xml | 42 - .../api-variables/variable-trusted-dir.xml | 36 - .../api-variables/variable-use-sub-dirs.xml | 72 - docs/ja/programmers/caching.xml | 54 - .../programmers/caching/caching-cacheable.xml | 140 - .../ja/programmers/caching/caching-groups.xml | 109 - .../caching/caching-multiple-caches.xml | 136 - .../caching/caching-setting-up.xml | 207 - docs/ja/programmers/plugins.xml | 70 - .../plugins/plugins-block-functions.xml | 123 - .../plugins/plugins-compiler-functions.xml | 98 - .../programmers/plugins/plugins-functions.xml | 132 - docs/ja/programmers/plugins/plugins-howto.xml | 46 - .../programmers/plugins/plugins-inserts.xml | 72 - .../programmers/plugins/plugins-modifiers.xml | 118 - .../plugins/plugins-naming-conventions.xml | 99 - .../plugins/plugins-outputfilters.xml | 75 - .../plugins-prefilters-postfilters.xml | 118 - .../programmers/plugins/plugins-resources.xml | 156 - .../programmers/plugins/plugins-writing.xml | 62 - docs/ja/programmers/smarty-constants.xml | 91 - docs/ja/translation.xml | 25 - docs/manual.xml.in | 69 - docs/pt_BR/appendixes/bugs.xml | 31 - docs/pt_BR/appendixes/resources.xml | 34 - docs/pt_BR/appendixes/tips.xml | 361 - docs/pt_BR/appendixes/troubleshooting.xml | 183 - docs/pt_BR/bookinfo.xml | 54 - .../designers/chapter-debugging-console.xml | 58 - docs/pt_BR/designers/config-files.xml | 90 - .../pt_BR/designers/language-basic-syntax.xml | 46 - .../language-escaping.xml | 90 - .../language-basic-syntax/language-math.xml | 49 - .../language-syntax-attributes.xml | 58 - .../language-syntax-comments.xml | 52 - .../language-syntax-functions.xml | 59 - .../language-syntax-quotes.xml | 50 - .../language-syntax-variables.xml | 85 - .../designers/language-builtin-functions.xml | 46 - .../language-function-capture.xml | 106 - .../language-function-config-load.xml | 146 - .../language-function-foreach.xml | 204 - .../language-function-if.xml | 219 - .../language-function-include-php.xml | 144 - .../language-function-include.xml | 134 - .../language-function-insert.xml | 147 - .../language-function-ldelim.xml | 47 - .../language-function-literal.xml | 58 - .../language-function-php.xml | 44 - .../language-function-section.xml | 629 -- .../language-function-strip.xml | 79 - .../language-combining-modifiers.xml | 64 - .../designers/language-custom-functions.xml | 48 - .../language-function-assign.xml | 78 - .../language-function-counter.xml | 123 - .../language-function-cycle.xml | 139 - .../language-function-debug.xml | 61 - .../language-function-eval.xml | 121 - .../language-function-fetch.xml | 111 - .../language-function-html-checkboxes.xml | 151 - .../language-function-html-image.xml | 143 - .../language-function-html-options.xml | 152 - .../language-function-html-radios.xml | 146 - .../language-function-html-select-date.xml | 352 - .../language-function-html-select-time.xml | 327 - .../language-function-html-table.xml | 153 - .../language-function-mailto.xml | 158 - .../language-function-math.xml | 150 - .../language-function-popup-init.xml | 50 - .../language-function-popup.xml | 430 - .../language-function-textformat.xml | 256 - docs/pt_BR/designers/language-modifiers.xml | 99 - .../language-modifier-capitalize.xml | 48 - .../language-modifier-cat.xml | 73 - .../language-modifier-count-characters.xml | 77 - .../language-modifier-count-paragraphs.xml | 51 - .../language-modifier-count-sentences.xml | 48 - .../language-modifier-count-words.xml | 48 - .../language-modifier-date-format.xml | 184 - .../language-modifier-default.xml | 78 - .../language-modifier-escape.xml | 91 - .../language-modifier-indent.xml | 104 - .../language-modifier-lower.xml | 48 - .../language-modifier-nl2br.xml | 47 - .../language-modifier-regex-replace.xml | 86 - .../language-modifier-replace.xml | 84 - .../language-modifier-spacify.xml | 79 - .../language-modifier-string-format.xml | 78 - .../language-modifier-strip-tags.xml | 48 - .../language-modifier-strip.xml | 59 - .../language-modifier-truncate.xml | 107 - .../language-modifier-upper.xml | 48 - .../language-modifier-wordwrap.xml | 118 - docs/pt_BR/designers/language-variables.xml | 51 - .../language-assigned-variables.xml | 136 - .../language-config-variables.xml | 100 - .../language-variables-smarty.xml | 145 - docs/pt_BR/getting-started.xml | 521 -- docs/pt_BR/language-defs.ent | 8 - docs/pt_BR/language-snippets.ent | 28 - docs/pt_BR/livedocs.ent | 7 - docs/pt_BR/make_chm_index.html | 41 - docs/pt_BR/preface.xml | 63 - docs/pt_BR/programmers/advanced-features.xml | 36 - .../advanced-features-objects.xml | 107 - .../advanced-features-outputfilters.xml | 65 - .../advanced-features-postfilters.xml | 57 - .../advanced-features-prefilters.xml | 57 - .../section-template-cache-handler-func.xml | 155 - .../advanced-features/template-resources.xml | 214 - docs/pt_BR/programmers/api-functions.xml | 66 - .../api-functions/api-append-by-ref.xml | 64 - .../programmers/api-functions/api-append.xml | 70 - .../api-functions/api-assign-by-ref.xml | 55 - .../programmers/api-functions/api-assign.xml | 52 - .../api-functions/api-clear-all-assign.xml | 41 - .../api-functions/api-clear-all-cache.xml | 43 - .../api-functions/api-clear-assign.xml | 45 - .../api-functions/api-clear-cache.xml | 53 - .../api-functions/api-clear-compiled-tpl.xml | 46 - .../api-functions/api-clear-config.xml | 44 - .../api-functions/api-config-load.xml | 57 - .../programmers/api-functions/api-display.xml | 100 - .../programmers/api-functions/api-fetch.xml | 85 - .../api-functions/api-get-config-vars.xml | 46 - .../api-get-registered-object.xml | 48 - .../api-functions/api-get-template-vars.xml | 46 - .../api-functions/api-is-cached.xml | 64 - .../api-functions/api-load-filter.xml | 46 - .../api-functions/api-register-block.xml | 75 - .../api-register-compiler-function.xml | 56 - .../api-functions/api-register-function.xml | 70 - .../api-functions/api-register-modifier.xml | 60 - .../api-functions/api-register-object.xml | 41 - .../api-register-outputfilter.xml | 51 - .../api-functions/api-register-postfilter.xml | 50 - .../api-functions/api-register-prefilter.xml | 50 - .../api-functions/api-register-resource.xml | 68 - .../api-functions/api-template-exists.xml | 37 - .../api-functions/api-trigger-error.xml | 39 - .../api-functions/api-unregister-block.xml | 36 - .../api-unregister-compiler-function.xml | 36 - .../api-functions/api-unregister-function.xml | 43 - .../api-functions/api-unregister-modifier.xml | 43 - .../api-functions/api-unregister-object.xml | 35 - .../api-unregister-outputfilter.xml | 35 - .../api-unregister-postfilter.xml | 35 - .../api-unregister-prefilter.xml | 35 - .../api-functions/api-unregister-resource.xml | 41 - docs/pt_BR/programmers/api-variables.xml | 63 - .../variable-autoload-filters.xml | 39 - .../api-variables/variable-cache-dir.xml | 48 - .../variable-cache-handler-func.xml | 32 - .../api-variables/variable-cache-lifetime.xml | 52 - .../variable-cache-modified-check.xml | 33 - .../api-variables/variable-caching.xml | 45 - .../api-variables/variable-compile-check.xml | 42 - .../api-variables/variable-compile-dir.xml | 46 - .../api-variables/variable-compile-id.xml | 31 - .../api-variables/variable-compiler-class.xml | 31 - .../variable-config-booleanize.xml | 32 - .../api-variables/variable-config-dir.xml | 39 - .../variable-config-fix-newlines.xml | 30 - .../variable-config-overwrite.xml | 32 - .../variable-config-read-hidden.xml | 33 - .../api-variables/variable-debug-tpl.xml | 31 - .../api-variables/variable-debugging-ctrl.xml | 33 - .../api-variables/variable-debugging.xml | 33 - .../variable-default-modifiers.xml | 34 - .../variable-default-resource-type.xml | 32 - ...variable-default-template-handler-func.xml | 30 - .../variable-error-reporting.xml | 42 - .../api-variables/variable-force-compile.xml | 33 - .../api-variables/variable-global-assign.xml | 46 - .../api-variables/variable-left-delimiter.xml | 30 - .../api-variables/variable-php-handling.xml | 47 - .../api-variables/variable-plugins-dir.xml | 41 - .../variable-request-use-auto-globals.xml | 36 - .../variable-request-vars-order.xml | 30 - .../variable-right-delimiter.xml | 30 - .../api-variables/variable-secure-dir.xml | 30 - .../variable-security-settings.xml | 43 - .../api-variables/variable-security.xml | 47 - .../api-variables/variable-template-dir.xml | 40 - .../api-variables/variable-trusted-dir.xml | 32 - .../api-variables/variable-undefined.xml | 31 - .../api-variables/variable-use-sub-dirs.xml | 31 - docs/pt_BR/programmers/caching.xml | 49 - .../programmers/caching/caching-cacheable.xml | 111 - .../programmers/caching/caching-groups.xml | 59 - .../caching/caching-multiple-caches.xml | 110 - .../caching/caching-setting-up.xml | 164 - docs/pt_BR/programmers/plugins.xml | 69 - .../plugins/plugins-block-functions.xml | 114 - .../plugins/plugins-compiler-functions.xml | 83 - .../programmers/plugins/plugins-functions.xml | 124 - .../programmers/plugins/plugins-howto.xml | 45 - .../programmers/plugins/plugins-inserts.xml | 74 - .../programmers/plugins/plugins-modifiers.xml | 109 - .../plugins/plugins-naming-conventions.xml | 80 - .../plugins/plugins-outputfilters.xml | 62 - .../plugins-prefilters-postfilters.xml | 100 - .../programmers/plugins/plugins-resources.xml | 157 - .../programmers/plugins/plugins-writing.xml | 50 - docs/pt_BR/programmers/smarty-constants.xml | 45 - docs/pt_BR/translation.xml | 24 - docs/ru/appendixes/bugs.xml | 30 - docs/ru/appendixes/resources.xml | 66 - docs/ru/appendixes/tips.xml | 457 - docs/ru/appendixes/troubleshooting.xml | 214 - docs/ru/bookinfo.xml | 52 - .../designers/chapter-debugging-console.xml | 90 - docs/ru/designers/config-files.xml | 112 - docs/ru/designers/language-basic-syntax.xml | 46 - .../language-escaping.xml | 94 - .../language-basic-syntax/language-math.xml | 54 - .../language-syntax-attributes.xml | 65 - .../language-syntax-comments.xml | 107 - .../language-syntax-functions.xml | 95 - .../language-syntax-quotes.xml | 101 - .../language-syntax-variables.xml | 84 - .../designers/language-builtin-functions.xml | 53 - .../language-function-capture.xml | 138 - .../language-function-config-load.xml | 190 - .../language-function-foreach.xml | 486 - .../language-function-if.xml | 264 - .../language-function-include-php.xml | 147 - .../language-function-include.xml | 200 - .../language-function-insert.xml | 155 - .../language-function-ldelim.xml | 95 - .../language-function-literal.xml | 102 - .../language-function-php.xml | 94 - .../language-function-section.xml | 807 -- .../language-function-strip.xml | 79 - .../language-combining-modifiers.xml | 67 - .../designers/language-custom-functions.xml | 50 - .../language-function-assign.xml | 158 - .../language-function-counter.xml | 124 - .../language-function-cycle.xml | 155 - .../language-function-debug.xml | 67 - .../language-function-eval.xml | 150 - .../language-function-fetch.xml | 123 - .../language-function-html-checkboxes.xml | 212 - .../language-function-html-image.xml | 158 - .../language-function-html-options.xml | 210 - .../language-function-html-radios.xml | 208 - .../language-function-html-select-date.xml | 375 - .../language-function-html-select-time.xml | 343 - .../language-function-html-table.xml | 232 - .../language-function-mailto.xml | 179 - .../language-function-math.xml | 189 - .../language-function-popup-init.xml | 65 - .../language-function-popup.xml | 449 - .../language-function-textformat.xml | 301 - docs/ru/designers/language-modifiers.xml | 174 - .../language-modifier-capitalize.xml | 95 - .../language-modifier-cat.xml | 86 - .../language-modifier-count-characters.xml | 96 - .../language-modifier-count-paragraphs.xml | 71 - .../language-modifier-count-sentences.xml | 69 - .../language-modifier-count-words.xml | 64 - .../language-modifier-date-format.xml | 279 - .../language-modifier-default.xml | 110 - .../language-modifier-escape.xml | 148 - .../language-modifier-indent.xml | 129 - .../language-modifier-lower.xml | 67 - .../language-modifier-nl2br.xml | 69 - .../language-modifier-regex-replace.xml | 107 - .../language-modifier-replace.xml | 105 - .../language-modifier-spacify.xml | 97 - .../language-modifier-string-format.xml | 98 - .../language-modifier-strip-tags.xml | 94 - .../language-modifier-strip.xml | 77 - .../language-modifier-truncate.xml | 131 - .../language-modifier-upper.xml | 67 - .../language-modifier-wordwrap.xml | 144 - docs/ru/designers/language-variables.xml | 67 - .../language-assigned-variables.xml | 197 - .../language-config-variables.xml | 137 - .../language-variables-smarty.xml | 207 - docs/ru/getting-started.xml | 714 -- docs/ru/language-defs.ent | 8 - docs/ru/language-snippets.ent | 71 - docs/ru/livedocs.ent | 8 - docs/ru/make_chm_index.html | 39 - docs/ru/preface.xml | 97 - docs/ru/programmers/advanced-features.xml | 32 - .../advanced-features-objects.xml | 127 - .../advanced-features-outputfilters.xml | 82 - .../advanced-features-postfilters.xml | 73 - .../advanced-features-prefilters.xml | 73 - .../section-template-cache-handler-func.xml | 159 - .../advanced-features/template-resources.xml | 254 - docs/ru/programmers/api-functions.xml | 65 - .../api-functions/api-append-by-ref.xml | 70 - .../programmers/api-functions/api-append.xml | 72 - .../api-functions/api-assign-by-ref.xml | 78 - .../programmers/api-functions/api-assign.xml | 94 - .../api-functions/api-clear-all-assign.xml | 67 - .../api-functions/api-clear-all-cache.xml | 58 - .../api-functions/api-clear-assign.xml | 62 - .../api-functions/api-clear-cache.xml | 76 - .../api-functions/api-clear-compiled-tpl.xml | 67 - .../api-functions/api-clear-config.xml | 65 - .../api-functions/api-config-load.xml | 81 - .../programmers/api-functions/api-display.xml | 117 - .../programmers/api-functions/api-fetch.xml | 93 - .../api-functions/api-get-config-vars.xml | 57 - .../api-get-registered-object.xml | 57 - .../api-functions/api-get-template-vars.xml | 57 - .../api-functions/api-is-cached.xml | 106 - .../api-functions/api-load-filter.xml | 55 - .../api-functions/api-register-block.xml | 92 - .../api-register-compiler-function.xml | 60 - .../api-functions/api-register-function.xml | 83 - .../api-functions/api-register-modifier.xml | 73 - .../api-functions/api-register-object.xml | 49 - .../api-register-outputfilter.xml | 55 - .../api-functions/api-register-postfilter.xml | 54 - .../api-functions/api-register-prefilter.xml | 54 - .../api-functions/api-register-resource.xml | 75 - .../api-functions/api-template-exists.xml | 41 - .../api-functions/api-trigger-error.xml | 44 - .../api-functions/api-unregister-block.xml | 40 - .../api-unregister-compiler-function.xml | 41 - .../api-functions/api-unregister-function.xml | 52 - .../api-functions/api-unregister-modifier.xml | 53 - .../api-functions/api-unregister-object.xml | 44 - .../api-unregister-outputfilter.xml | 39 - .../api-unregister-postfilter.xml | 39 - .../api-unregister-prefilter.xml | 39 - .../api-functions/api-unregister-resource.xml | 50 - docs/ru/programmers/api-variables.xml | 61 - .../variable-autoload-filters.xml | 44 - .../api-variables/variable-cache-dir.xml | 47 - .../variable-cache-handler-func.xml | 33 - .../api-variables/variable-cache-lifetime.xml | 53 - .../variable-cache-modified-check.xml | 34 - .../api-variables/variable-caching.xml | 46 - .../api-variables/variable-compile-check.xml | 43 - .../api-variables/variable-compile-dir.xml | 46 - .../api-variables/variable-compile-id.xml | 58 - .../api-variables/variable-compiler-class.xml | 31 - .../variable-config-booleanize.xml | 33 - .../api-variables/variable-config-dir.xml | 39 - .../variable-config-fix-newlines.xml | 31 - .../variable-config-overwrite.xml | 32 - .../variable-config-read-hidden.xml | 34 - .../api-variables/variable-debug-tpl.xml | 31 - .../api-variables/variable-debugging-ctrl.xml | 34 - .../api-variables/variable-debugging.xml | 32 - .../variable-default-modifiers.xml | 33 - .../variable-default-resource-type.xml | 33 - ...variable-default-template-handler-func.xml | 30 - .../variable-error-reporting.xml | 35 - .../api-variables/variable-force-compile.xml | 34 - .../api-variables/variable-left-delimiter.xml | 34 - .../api-variables/variable-php-handling.xml | 46 - .../api-variables/variable-plugins-dir.xml | 45 - .../variable-request-use-auto-globals.xml | 36 - .../variable-request-vars-order.xml | 30 - .../variable-right-delimiter.xml | 34 - .../api-variables/variable-secure-dir.xml | 30 - .../variable-security-settings.xml | 46 - .../api-variables/variable-security.xml | 47 - .../api-variables/variable-template-dir.xml | 40 - .../api-variables/variable-trusted-dir.xml | 32 - .../api-variables/variable-use-sub-dirs.xml | 37 - docs/ru/programmers/caching.xml | 50 - .../programmers/caching/caching-cacheable.xml | 142 - .../ru/programmers/caching/caching-groups.xml | 76 - .../caching/caching-multiple-caches.xml | 123 - .../caching/caching-setting-up.xml | 184 - docs/ru/programmers/plugins.xml | 60 - .../plugins/plugins-block-functions.xml | 117 - .../plugins/plugins-compiler-functions.xml | 93 - .../programmers/plugins/plugins-functions.xml | 133 - docs/ru/programmers/plugins/plugins-howto.xml | 47 - .../programmers/plugins/plugins-inserts.xml | 76 - .../programmers/plugins/plugins-modifiers.xml | 114 - .../plugins/plugins-naming-conventions.xml | 79 - .../plugins/plugins-outputfilters.xml | 67 - .../plugins-prefilters-postfilters.xml | 106 - .../programmers/plugins/plugins-resources.xml | 160 - .../programmers/plugins/plugins-writing.xml | 54 - docs/ru/programmers/smarty-constants.xml | 90 - docs/scripts/.cvsignore | 1 - docs/scripts/file-entities.php.in | 290 - docs/scripts/generate_web.php | 58 - docs/scripts/html_syntax.php | 71 - docs/scripts/revcheck.php | 1062 --- docs/xsl/common.xsl | 187 - docs/xsl/docbook/BUGS | 6 - docs/xsl/docbook/PHPDOC-NOTE | 13 - docs/xsl/docbook/README | 107 - docs/xsl/docbook/VERSION | 6 - docs/xsl/docbook/common/ChangeLog | 472 - docs/xsl/docbook/common/af.xml | 425 - docs/xsl/docbook/common/bg.xml | 427 - docs/xsl/docbook/common/ca.xml | 428 - docs/xsl/docbook/common/common.xsl | 1590 ---- docs/xsl/docbook/common/cs.xml | 426 - docs/xsl/docbook/common/da.xml | 427 - docs/xsl/docbook/common/de.xml | 426 - docs/xsl/docbook/common/el.xml | 425 - docs/xsl/docbook/common/en.xml | 447 - docs/xsl/docbook/common/es.xml | 427 - docs/xsl/docbook/common/et.xml | 425 - docs/xsl/docbook/common/eu.xml | 426 - docs/xsl/docbook/common/fi.xml | 425 - docs/xsl/docbook/common/fr.xml | 427 - docs/xsl/docbook/common/gentext.xsl | 466 - docs/xsl/docbook/common/he.xml | 426 - docs/xsl/docbook/common/hu.xml | 425 - docs/xsl/docbook/common/id.xml | 425 - docs/xsl/docbook/common/it.xml | 426 - docs/xsl/docbook/common/ja.xml | 427 - docs/xsl/docbook/common/ko.xml | 423 - docs/xsl/docbook/common/l10n.dtd | 45 - docs/xsl/docbook/common/l10n.xml | 83 - docs/xsl/docbook/common/l10n.xsl | 462 - docs/xsl/docbook/common/labels.xsl | 607 -- docs/xsl/docbook/common/lt.xml | 424 - docs/xsl/docbook/common/nl.xml | 425 - docs/xsl/docbook/common/nn.xml | 431 - docs/xsl/docbook/common/no.xml | 425 - docs/xsl/docbook/common/pl.xml | 425 - docs/xsl/docbook/common/pt.xml | 427 - docs/xsl/docbook/common/pt_br.xml | 422 - docs/xsl/docbook/common/ro.xml | 425 - docs/xsl/docbook/common/ru.xml | 454 - docs/xsl/docbook/common/sk.xml | 425 - docs/xsl/docbook/common/sl.xml | 426 - docs/xsl/docbook/common/sr.xml | 425 - docs/xsl/docbook/common/subtitles.xsl | 130 - docs/xsl/docbook/common/sv.xml | 422 - docs/xsl/docbook/common/table.xsl | 429 - docs/xsl/docbook/common/targetdatabase.dtd | 47 - docs/xsl/docbook/common/targets.xsl | 238 - docs/xsl/docbook/common/th.xml | 434 - docs/xsl/docbook/common/titles.xsl | 544 -- docs/xsl/docbook/common/tr.xml | 429 - docs/xsl/docbook/common/uk.xml | 455 - docs/xsl/docbook/common/vi.xml | 424 - docs/xsl/docbook/common/xh.xml | 427 - docs/xsl/docbook/common/zh_cn.xml | 418 - docs/xsl/docbook/common/zh_tw.xml | 419 - docs/xsl/docbook/fo/ChangeLog | 1227 --- docs/xsl/docbook/fo/admon.xsl | 126 - docs/xsl/docbook/fo/autoidx.xsl | 792 -- docs/xsl/docbook/fo/autotoc.xsl | 522 -- docs/xsl/docbook/fo/biblio.xsl | 1080 --- docs/xsl/docbook/fo/block.xsl | 337 - docs/xsl/docbook/fo/callout.xsl | 198 - docs/xsl/docbook/fo/component.xsl | 437 - docs/xsl/docbook/fo/division.xsl | 563 -- docs/xsl/docbook/fo/docbook.xsl | 197 - docs/xsl/docbook/fo/ebnf.xsl | 318 - docs/xsl/docbook/fo/fo-patch-for-fop.xsl | 64 - docs/xsl/docbook/fo/fo-rtf.xsl | 154 - docs/xsl/docbook/fo/fo.xsl | 62 - docs/xsl/docbook/fo/footnote.xsl | 173 - docs/xsl/docbook/fo/fop.xsl | 83 - docs/xsl/docbook/fo/formal.xsl | 680 -- docs/xsl/docbook/fo/glossary.xsl | 811 -- docs/xsl/docbook/fo/graphics.xsl | 520 -- docs/xsl/docbook/fo/index.xsl | 326 - docs/xsl/docbook/fo/info.xsl | 34 - docs/xsl/docbook/fo/inline.xsl | 872 -- docs/xsl/docbook/fo/keywords.xsl | 21 - docs/xsl/docbook/fo/lists.xsl | 917 -- docs/xsl/docbook/fo/math.xsl | 144 - docs/xsl/docbook/fo/pagesetup.xsl | 1699 ---- docs/xsl/docbook/fo/param.ent | 198 - docs/xsl/docbook/fo/param.xml | 6068 ------------- docs/xsl/docbook/fo/param.xsl | 537 -- docs/xsl/docbook/fo/param.xweb | 644 -- docs/xsl/docbook/fo/passivetex.xsl | 49 - docs/xsl/docbook/fo/pdf2index | 140 - docs/xsl/docbook/fo/pi.xsl | 162 - docs/xsl/docbook/fo/profile-docbook.xsl | 192 - docs/xsl/docbook/fo/qandaset.xsl | 231 - docs/xsl/docbook/fo/refentry.xsl | 355 - docs/xsl/docbook/fo/sections.xsl | 502 -- docs/xsl/docbook/fo/synop.xsl | 903 -- docs/xsl/docbook/fo/table.xsl | 984 -- docs/xsl/docbook/fo/titlepage.templates.xml | 1225 --- docs/xsl/docbook/fo/titlepage.templates.xsl | 3649 -------- docs/xsl/docbook/fo/titlepage.xsl | 701 -- docs/xsl/docbook/fo/toc.xsl | 221 - docs/xsl/docbook/fo/verbatim.xsl | 250 - docs/xsl/docbook/fo/xep.xsl | 118 - docs/xsl/docbook/fo/xref.xsl | 1002 --- docs/xsl/docbook/lib/ChangeLog | 46 - docs/xsl/docbook/lib/lib.xml | 771 -- docs/xsl/docbook/lib/lib.xsl | 383 - docs/xsl/docbook/lib/lib.xweb | 769 -- docs/xsl/fo.xsl | 1037 --- misc/smarty_icon.README | 6 - misc/smarty_icon.gif | Bin 1102 -> 0 bytes unit_test/README | 32 - unit_test/config.php | 5 - unit_test/configs/globals_double_quotes.conf | 1 - unit_test/configs/globals_single_quotes.conf | 1 - unit_test/smarty_unit_test.php | 10 - unit_test/smarty_unit_test_gui.php | 10 - unit_test/templates/assign_var.tpl | 1 - unit_test/templates/constant.tpl | 1 - unit_test/templates/index.tpl | 1 - unit_test/templates/parse_math.tpl | 12 - unit_test/templates/parse_obj_meth.tpl | 8 - unit_test/test_cases.php | 450 - 1987 files changed, 317755 deletions(-) delete mode 100644 docs/.cvsignore delete mode 100755 docs/Makefile.in delete mode 100644 docs/README delete mode 100644 docs/TODO delete mode 100755 docs/chm/.cvsignore delete mode 100755 docs/chm/README delete mode 100755 docs/chm/chm_settings.php delete mode 100755 docs/chm/common.php delete mode 100755 docs/chm/make_chm.bat delete mode 100755 docs/chm/make_chm.php delete mode 100755 docs/chm/make_chm_fancy.php delete mode 100755 docs/chm/make_chm_spc.gif delete mode 100755 docs/chm/make_chm_style.css delete mode 100755 docs/configure.in delete mode 100644 docs/de/appendixes/bugs.xml delete mode 100644 docs/de/appendixes/resources.xml delete mode 100644 docs/de/appendixes/tips.xml delete mode 100644 docs/de/appendixes/troubleshooting.xml delete mode 100755 docs/de/bookinfo.xml delete mode 100644 docs/de/designers/chapter-debugging-console.xml delete mode 100644 docs/de/designers/config-files.xml delete mode 100644 docs/de/designers/language-basic-syntax.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/de/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/de/designers/language-builtin-functions.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/de/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/de/designers/language-combining-modifiers.xml delete mode 100644 docs/de/designers/language-custom-functions.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/de/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/de/designers/language-modifiers.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/de/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/de/designers/language-variables.xml delete mode 100644 docs/de/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/de/designers/language-variables/language-config-variables.xml delete mode 100644 docs/de/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/de/getting-started.xml delete mode 100644 docs/de/language-defs.ent delete mode 100644 docs/de/language-snippets.ent delete mode 100644 docs/de/livedocs.ent delete mode 100644 docs/de/preface.xml delete mode 100644 docs/de/programmers/advanced-features.xml delete mode 100644 docs/de/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/de/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/de/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/de/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/de/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/de/programmers/advanced-features/template-resources.xml delete mode 100644 docs/de/programmers/api-functions.xml delete mode 100644 docs/de/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/de/programmers/api-functions/api-append.xml delete mode 100644 docs/de/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/de/programmers/api-functions/api-assign.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/de/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/de/programmers/api-functions/api-config-load.xml delete mode 100644 docs/de/programmers/api-functions/api-display.xml delete mode 100644 docs/de/programmers/api-functions/api-fetch.xml delete mode 100644 docs/de/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/de/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/de/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/de/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/de/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/de/programmers/api-functions/api-register-block.xml delete mode 100644 docs/de/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/de/programmers/api-functions/api-register-function.xml delete mode 100644 docs/de/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/de/programmers/api-functions/api-register-object.xml delete mode 100644 docs/de/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/de/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/de/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/de/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/de/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/de/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/de/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/de/programmers/api-variables.xml delete mode 100644 docs/de/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/de/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/de/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/de/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/de/programmers/api-variables/variable-caching.xml delete mode 100644 docs/de/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/de/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/de/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/de/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/de/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/de/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/de/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/de/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/de/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/de/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/de/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/de/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/de/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/de/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/de/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/de/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/de/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/de/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/de/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/de/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/de/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/de/programmers/api-variables/variable-security.xml delete mode 100644 docs/de/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/de/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/de/programmers/caching.xml delete mode 100644 docs/de/programmers/caching/caching-cacheable.xml delete mode 100644 docs/de/programmers/caching/caching-groups.xml delete mode 100644 docs/de/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/de/programmers/caching/caching-setting-up.xml delete mode 100644 docs/de/programmers/plugins.xml delete mode 100644 docs/de/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/de/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/de/programmers/plugins/plugins-functions.xml delete mode 100644 docs/de/programmers/plugins/plugins-howto.xml delete mode 100644 docs/de/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/de/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/de/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/de/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/de/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/de/programmers/plugins/plugins-resources.xml delete mode 100644 docs/de/programmers/plugins/plugins-writing.xml delete mode 100644 docs/de/programmers/smarty-constants.xml delete mode 100755 docs/dsssl/.cvsignore delete mode 100644 docs/dsssl/common.dsl delete mode 100755 docs/dsssl/defaults/catalog delete mode 100755 docs/dsssl/defaults/dsssl.dtd delete mode 100755 docs/dsssl/defaults/fot.dtd delete mode 100755 docs/dsssl/defaults/style-sheet.dtd delete mode 100755 docs/dsssl/docbook/BUGS delete mode 100755 docs/dsssl/docbook/PHPDOC-NOTE delete mode 100755 docs/dsssl/docbook/README delete mode 100755 docs/dsssl/docbook/VERSION delete mode 100755 docs/dsssl/docbook/catalog delete mode 100755 docs/dsssl/docbook/common/ChangeLog delete mode 100755 docs/dsssl/docbook/common/catalog delete mode 100755 docs/dsssl/docbook/common/cs-hack.pl delete mode 100755 docs/dsssl/docbook/common/dbcommon.dsl delete mode 100755 docs/dsssl/docbook/common/dbl10n.dsl delete mode 100755 docs/dsssl/docbook/common/dbl10n.ent delete mode 100755 docs/dsssl/docbook/common/dbl10n.pl delete mode 100755 docs/dsssl/docbook/common/dbl10n.template delete mode 100755 docs/dsssl/docbook/common/dbl1af.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1af.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ca.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ca.ent delete mode 100755 docs/dsssl/docbook/common/dbl1cs.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1cs.ent delete mode 100755 docs/dsssl/docbook/common/dbl1da.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1da.ent delete mode 100755 docs/dsssl/docbook/common/dbl1de.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1de.ent delete mode 100755 docs/dsssl/docbook/common/dbl1el.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1el.ent delete mode 100755 docs/dsssl/docbook/common/dbl1en.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1en.ent delete mode 100755 docs/dsssl/docbook/common/dbl1es.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1es.ent delete mode 100755 docs/dsssl/docbook/common/dbl1et.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1et.ent delete mode 100755 docs/dsssl/docbook/common/dbl1eu.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1eu.ent delete mode 100755 docs/dsssl/docbook/common/dbl1fi.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1fi.ent delete mode 100755 docs/dsssl/docbook/common/dbl1fr.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1fr.ent delete mode 100755 docs/dsssl/docbook/common/dbl1he.ent delete mode 100755 docs/dsssl/docbook/common/dbl1hu.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1hu.ent delete mode 100755 docs/dsssl/docbook/common/dbl1id.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1id.ent delete mode 100755 docs/dsssl/docbook/common/dbl1it.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1it.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ja.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ja.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ko.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ko.ent delete mode 100755 docs/dsssl/docbook/common/dbl1nl.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1nl.ent delete mode 100755 docs/dsssl/docbook/common/dbl1nn.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1nn.ent delete mode 100755 docs/dsssl/docbook/common/dbl1no.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1no.ent delete mode 100755 docs/dsssl/docbook/common/dbl1null.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1pl.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1pl.ent delete mode 100755 docs/dsssl/docbook/common/dbl1pt.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1pt.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ptbr.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ptbr.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ro.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ro.ent delete mode 100755 docs/dsssl/docbook/common/dbl1ru.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1ru.ent delete mode 100755 docs/dsssl/docbook/common/dbl1sk.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1sk.ent delete mode 100755 docs/dsssl/docbook/common/dbl1sl.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1sl.ent delete mode 100755 docs/dsssl/docbook/common/dbl1sr.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1sr.ent delete mode 100755 docs/dsssl/docbook/common/dbl1sv.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1sv.ent delete mode 100755 docs/dsssl/docbook/common/dbl1th.ent delete mode 100755 docs/dsssl/docbook/common/dbl1tr.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1tr.ent delete mode 100755 docs/dsssl/docbook/common/dbl1uk.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1uk.ent delete mode 100755 docs/dsssl/docbook/common/dbl1xh.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1xh.ent delete mode 100755 docs/dsssl/docbook/common/dbl1zhcn.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1zhcn.ent delete mode 100755 docs/dsssl/docbook/common/dbl1zhhk.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1zhhk.ent delete mode 100755 docs/dsssl/docbook/common/dbl1zhtw.dsl delete mode 100755 docs/dsssl/docbook/common/dbl1zhtw.ent delete mode 100755 docs/dsssl/docbook/common/dbtable.dsl delete mode 100755 docs/dsssl/docbook/html/ChangeLog delete mode 100755 docs/dsssl/docbook/html/XREF delete mode 100755 docs/dsssl/docbook/html/catalog delete mode 100755 docs/dsssl/docbook/html/db31.dsl delete mode 100755 docs/dsssl/docbook/html/dbadmon.dsl delete mode 100755 docs/dsssl/docbook/html/dbautoc.dsl delete mode 100755 docs/dsssl/docbook/html/dbbibl.dsl delete mode 100755 docs/dsssl/docbook/html/dbblock.dsl delete mode 100755 docs/dsssl/docbook/html/dbcallou.dsl delete mode 100755 docs/dsssl/docbook/html/dbchunk.dsl delete mode 100755 docs/dsssl/docbook/html/dbcompon.dsl delete mode 100755 docs/dsssl/docbook/html/dbdivis.dsl delete mode 100755 docs/dsssl/docbook/html/dbefsyn.dsl delete mode 100755 docs/dsssl/docbook/html/dbfootn.dsl delete mode 100755 docs/dsssl/docbook/html/dbgloss.dsl delete mode 100755 docs/dsssl/docbook/html/dbgraph.dsl delete mode 100755 docs/dsssl/docbook/html/dbhtml.dsl delete mode 100755 docs/dsssl/docbook/html/dbindex.dsl delete mode 100755 docs/dsssl/docbook/html/dbinfo.dsl delete mode 100755 docs/dsssl/docbook/html/dbinline.dsl delete mode 100755 docs/dsssl/docbook/html/dblink.dsl delete mode 100755 docs/dsssl/docbook/html/dblists.dsl delete mode 100755 docs/dsssl/docbook/html/dblot.dsl delete mode 100755 docs/dsssl/docbook/html/dbmath.dsl delete mode 100755 docs/dsssl/docbook/html/dbmsgset.dsl delete mode 100755 docs/dsssl/docbook/html/dbnavig.dsl delete mode 100755 docs/dsssl/docbook/html/dbparam.dsl delete mode 100755 docs/dsssl/docbook/html/dbpi.dsl delete mode 100755 docs/dsssl/docbook/html/dbprocdr.dsl delete mode 100755 docs/dsssl/docbook/html/dbrfntry.dsl delete mode 100755 docs/dsssl/docbook/html/dbsect.dsl delete mode 100755 docs/dsssl/docbook/html/dbsynop.dsl delete mode 100755 docs/dsssl/docbook/html/dbtable.dsl delete mode 100755 docs/dsssl/docbook/html/dbtitle.dsl delete mode 100755 docs/dsssl/docbook/html/dbttlpg.dsl delete mode 100755 docs/dsssl/docbook/html/dbverb.dsl delete mode 100755 docs/dsssl/docbook/html/docbook.dsl delete mode 100755 docs/dsssl/docbook/html/version.dsl delete mode 100755 docs/dsssl/docbook/lib/ChangeLog delete mode 100755 docs/dsssl/docbook/lib/dblib.dsl delete mode 100755 docs/dsssl/docbook/print/ChangeLog delete mode 100755 docs/dsssl/docbook/print/XREF delete mode 100755 docs/dsssl/docbook/print/catalog delete mode 100755 docs/dsssl/docbook/print/db31.dsl delete mode 100755 docs/dsssl/docbook/print/dbadmon.dsl delete mode 100755 docs/dsssl/docbook/print/dbautoc.dsl delete mode 100755 docs/dsssl/docbook/print/dbbibl.dsl delete mode 100755 docs/dsssl/docbook/print/dbblock.dsl delete mode 100755 docs/dsssl/docbook/print/dbcallou.dsl delete mode 100755 docs/dsssl/docbook/print/dbcompon.dsl delete mode 100755 docs/dsssl/docbook/print/dbdivis.dsl delete mode 100755 docs/dsssl/docbook/print/dbdivis.dsl.orig delete mode 100755 docs/dsssl/docbook/print/dbefsyn.dsl delete mode 100755 docs/dsssl/docbook/print/dbgloss.dsl delete mode 100755 docs/dsssl/docbook/print/dbgraph.dsl delete mode 100755 docs/dsssl/docbook/print/dbindex.dsl delete mode 100755 docs/dsssl/docbook/print/dbinfo.dsl delete mode 100755 docs/dsssl/docbook/print/dbinline.dsl delete mode 100755 docs/dsssl/docbook/print/dblink.dsl delete mode 100755 docs/dsssl/docbook/print/dblists.dsl delete mode 100755 docs/dsssl/docbook/print/dblot.dsl delete mode 100755 docs/dsssl/docbook/print/dbmath.dsl delete mode 100755 docs/dsssl/docbook/print/dbmsgset.dsl delete mode 100755 docs/dsssl/docbook/print/dbparam.dsl delete mode 100755 docs/dsssl/docbook/print/dbprint.dsl delete mode 100755 docs/dsssl/docbook/print/dbprocdr.dsl delete mode 100755 docs/dsssl/docbook/print/dbrfntry.dsl delete mode 100755 docs/dsssl/docbook/print/dbsect.dsl delete mode 100755 docs/dsssl/docbook/print/dbsynop.dsl delete mode 100755 docs/dsssl/docbook/print/dbtable.dsl delete mode 100755 docs/dsssl/docbook/print/dbtitle.dsl delete mode 100755 docs/dsssl/docbook/print/dbttlpg.dsl delete mode 100755 docs/dsssl/docbook/print/dbttlpg.dsl.orig delete mode 100755 docs/dsssl/docbook/print/dbverb.dsl delete mode 100755 docs/dsssl/docbook/print/docbook.dsl delete mode 100755 docs/dsssl/docbook/print/notoc.dsl delete mode 100755 docs/dsssl/docbook/print/plain.dsl delete mode 100755 docs/dsssl/docbook/print/version.dsl delete mode 100644 docs/dsssl/html-common.dsl.in delete mode 100644 docs/dsssl/html.dsl delete mode 100644 docs/dsssl/php.dsl delete mode 100755 docs/dtds/dbxml-4.1.2/40chg.txt delete mode 100755 docs/dtds/dbxml-4.1.2/41chg.txt delete mode 100755 docs/dtds/dbxml-4.1.2/ChangeLog delete mode 100755 docs/dtds/dbxml-4.1.2/calstblx.dtd delete mode 100755 docs/dtds/dbxml-4.1.2/dbcentx.mod delete mode 100755 docs/dtds/dbxml-4.1.2/dbgenent.mod delete mode 100755 docs/dtds/dbxml-4.1.2/dbhierx.mod delete mode 100755 docs/dtds/dbxml-4.1.2/dbnotnx.mod delete mode 100755 docs/dtds/dbxml-4.1.2/dbpoolx.mod delete mode 100755 docs/dtds/dbxml-4.1.2/docbook.cat delete mode 100755 docs/dtds/dbxml-4.1.2/docbookx.dtd delete mode 100755 docs/dtds/dbxml-4.1.2/ent/ChangeLog delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amso.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-box.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-dia.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-num.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-pub.ent delete mode 100755 docs/dtds/dbxml-4.1.2/ent/iso-tech.ent delete mode 100755 docs/dtds/dbxml-4.1.2/phpdocxml.dcl delete mode 100755 docs/dtds/dbxml-4.1.2/readme.txt delete mode 100755 docs/dtds/dbxml-4.1.2/soextblx.dtd delete mode 100755 docs/dtds/dbxml-4.1.2/tblcals.xml delete mode 100755 docs/dtds/dbxml-4.1.2/tblxchg.xml delete mode 100644 docs/en/appendixes/bugs.xml delete mode 100644 docs/en/appendixes/resources.xml delete mode 100644 docs/en/appendixes/tips.xml delete mode 100644 docs/en/appendixes/troubleshooting.xml delete mode 100755 docs/en/bookinfo.xml delete mode 100644 docs/en/designers/chapter-debugging-console.xml delete mode 100644 docs/en/designers/config-files.xml delete mode 100644 docs/en/designers/language-basic-syntax.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/en/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/en/designers/language-builtin-functions.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/en/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/en/designers/language-combining-modifiers.xml delete mode 100644 docs/en/designers/language-custom-functions.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/en/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/en/designers/language-modifiers.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/en/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/en/designers/language-variables.xml delete mode 100644 docs/en/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/en/designers/language-variables/language-config-variables.xml delete mode 100644 docs/en/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/en/getting-started.xml delete mode 100644 docs/en/language-defs.ent delete mode 100644 docs/en/language-snippets.ent delete mode 100644 docs/en/livedocs.ent delete mode 100755 docs/en/make_chm_index.html delete mode 100644 docs/en/preface.xml delete mode 100644 docs/en/programmers/advanced-features.xml delete mode 100644 docs/en/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/en/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/en/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/en/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/en/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/en/programmers/advanced-features/template-resources.xml delete mode 100644 docs/en/programmers/api-functions.xml delete mode 100644 docs/en/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/en/programmers/api-functions/api-append.xml delete mode 100644 docs/en/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/en/programmers/api-functions/api-assign.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/en/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/en/programmers/api-functions/api-config-load.xml delete mode 100644 docs/en/programmers/api-functions/api-display.xml delete mode 100644 docs/en/programmers/api-functions/api-fetch.xml delete mode 100644 docs/en/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/en/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/en/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/en/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/en/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/en/programmers/api-functions/api-register-block.xml delete mode 100644 docs/en/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/en/programmers/api-functions/api-register-function.xml delete mode 100644 docs/en/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/en/programmers/api-functions/api-register-object.xml delete mode 100644 docs/en/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/en/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/en/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/en/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/en/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/en/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/en/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/en/programmers/api-variables.xml delete mode 100644 docs/en/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/en/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/en/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/en/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/en/programmers/api-variables/variable-caching.xml delete mode 100644 docs/en/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/en/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/en/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/en/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/en/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/en/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/en/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/en/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/en/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/en/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/en/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/en/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/en/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/en/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/en/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/en/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/en/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/en/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/en/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/en/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/en/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/en/programmers/api-variables/variable-security.xml delete mode 100644 docs/en/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/en/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/en/programmers/caching.xml delete mode 100644 docs/en/programmers/caching/caching-cacheable.xml delete mode 100644 docs/en/programmers/caching/caching-groups.xml delete mode 100644 docs/en/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/en/programmers/caching/caching-setting-up.xml delete mode 100644 docs/en/programmers/plugins.xml delete mode 100644 docs/en/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/en/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/en/programmers/plugins/plugins-functions.xml delete mode 100644 docs/en/programmers/plugins/plugins-howto.xml delete mode 100644 docs/en/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/en/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/en/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/en/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/en/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/en/programmers/plugins/plugins-resources.xml delete mode 100644 docs/en/programmers/plugins/plugins-writing.xml delete mode 100644 docs/en/programmers/smarty-constants.xml delete mode 100755 docs/entities/.cvsignore delete mode 100755 docs/entities/ISO/ISOamsa delete mode 100755 docs/entities/ISO/ISOamsb delete mode 100755 docs/entities/ISO/ISOamsc delete mode 100755 docs/entities/ISO/ISOamsn delete mode 100755 docs/entities/ISO/ISOamso delete mode 100755 docs/entities/ISO/ISOamsr delete mode 100755 docs/entities/ISO/ISObox delete mode 100755 docs/entities/ISO/ISOcyr1 delete mode 100755 docs/entities/ISO/ISOcyr2 delete mode 100755 docs/entities/ISO/ISOdia delete mode 100755 docs/entities/ISO/ISOgrk1 delete mode 100755 docs/entities/ISO/ISOgrk2 delete mode 100755 docs/entities/ISO/ISOgrk3 delete mode 100755 docs/entities/ISO/ISOgrk4 delete mode 100755 docs/entities/ISO/ISOlat1 delete mode 100755 docs/entities/ISO/ISOlat2 delete mode 100755 docs/entities/ISO/ISOnum delete mode 100755 docs/entities/ISO/ISOpub delete mode 100755 docs/entities/ISO/ISOtech delete mode 100755 docs/entities/ISO/catalog delete mode 100644 docs/entities/global.ent delete mode 100755 docs/entities/version.ent.in delete mode 100644 docs/es/appendixes/bugs.xml delete mode 100644 docs/es/appendixes/resources.xml delete mode 100644 docs/es/appendixes/tips.xml delete mode 100644 docs/es/appendixes/troubleshooting.xml delete mode 100755 docs/es/bookinfo.xml delete mode 100644 docs/es/designers/chapter-debugging-console.xml delete mode 100644 docs/es/designers/config-files.xml delete mode 100644 docs/es/designers/language-basic-syntax.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/es/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100755 docs/es/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/es/designers/language-builtin-functions.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/es/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/es/designers/language-combining-modifiers.xml delete mode 100644 docs/es/designers/language-custom-functions.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/es/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/es/designers/language-modifiers.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/es/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/es/designers/language-variables.xml delete mode 100644 docs/es/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/es/designers/language-variables/language-config-variables.xml delete mode 100644 docs/es/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/es/getting-started.xml delete mode 100644 docs/es/language-defs.ent delete mode 100644 docs/es/language-snippets.ent delete mode 100755 docs/es/livedocs.ent delete mode 100755 docs/es/make_chm_index.html delete mode 100644 docs/es/preface.xml delete mode 100644 docs/es/programmers/advanced-features.xml delete mode 100644 docs/es/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/es/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/es/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/es/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/es/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/es/programmers/advanced-features/template-resources.xml delete mode 100644 docs/es/programmers/api-functions.xml delete mode 100644 docs/es/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/es/programmers/api-functions/api-append.xml delete mode 100644 docs/es/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/es/programmers/api-functions/api-assign.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/es/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/es/programmers/api-functions/api-config-load.xml delete mode 100644 docs/es/programmers/api-functions/api-display.xml delete mode 100644 docs/es/programmers/api-functions/api-fetch.xml delete mode 100644 docs/es/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/es/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/es/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/es/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/es/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/es/programmers/api-functions/api-register-block.xml delete mode 100644 docs/es/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/es/programmers/api-functions/api-register-function.xml delete mode 100644 docs/es/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/es/programmers/api-functions/api-register-object.xml delete mode 100644 docs/es/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/es/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/es/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/es/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/es/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/es/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/es/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/es/programmers/api-variables.xml delete mode 100644 docs/es/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/es/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/es/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/es/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/es/programmers/api-variables/variable-caching.xml delete mode 100644 docs/es/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/es/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/es/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/es/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/es/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/es/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/es/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/es/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/es/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/es/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/es/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/es/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/es/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/es/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/es/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/es/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/es/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/es/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/es/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/es/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/es/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/es/programmers/api-variables/variable-security.xml delete mode 100644 docs/es/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/es/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/es/programmers/caching.xml delete mode 100644 docs/es/programmers/caching/caching-cacheable.xml delete mode 100644 docs/es/programmers/caching/caching-groups.xml delete mode 100644 docs/es/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/es/programmers/caching/caching-setting-up.xml delete mode 100644 docs/es/programmers/plugins.xml delete mode 100644 docs/es/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/es/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/es/programmers/plugins/plugins-functions.xml delete mode 100644 docs/es/programmers/plugins/plugins-howto.xml delete mode 100644 docs/es/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/es/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/es/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/es/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/es/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/es/programmers/plugins/plugins-resources.xml delete mode 100644 docs/es/programmers/plugins/plugins-writing.xml delete mode 100644 docs/es/programmers/smarty-constants.xml delete mode 100755 docs/fop/README delete mode 100755 docs/fop/ru.cfg delete mode 100755 docs/fop/thryb.ttf delete mode 100755 docs/fop/thryb.xml delete mode 100755 docs/fop/thrybi.ttf delete mode 100755 docs/fop/thrybi.xml delete mode 100755 docs/fop/thryi.ttf delete mode 100755 docs/fop/thryi.xml delete mode 100755 docs/fop/thryn.ttf delete mode 100755 docs/fop/thryn.xml delete mode 100644 docs/fr/appendixes/bugs.xml delete mode 100644 docs/fr/appendixes/resources.xml delete mode 100644 docs/fr/appendixes/tips.xml delete mode 100644 docs/fr/appendixes/troubleshooting.xml delete mode 100755 docs/fr/bookinfo.xml delete mode 100644 docs/fr/designers/chapter-debugging-console.xml delete mode 100644 docs/fr/designers/config-files.xml delete mode 100644 docs/fr/designers/language-basic-syntax.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/fr/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/fr/designers/language-builtin-functions.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/fr/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/fr/designers/language-combining-modifiers.xml delete mode 100644 docs/fr/designers/language-custom-functions.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/fr/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/fr/designers/language-modifiers.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/fr/designers/language-variables.xml delete mode 100644 docs/fr/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/fr/designers/language-variables/language-config-variables.xml delete mode 100644 docs/fr/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/fr/getting-started.xml delete mode 100644 docs/fr/language-defs.ent delete mode 100644 docs/fr/language-snippets.ent delete mode 100644 docs/fr/livedocs.ent delete mode 100644 docs/fr/make_chm_index.html delete mode 100644 docs/fr/preface.xml delete mode 100644 docs/fr/programmers/advanced-features.xml delete mode 100644 docs/fr/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/fr/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/fr/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/fr/programmers/advanced-features/template-resources.xml delete mode 100644 docs/fr/programmers/api-functions.xml delete mode 100644 docs/fr/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/fr/programmers/api-functions/api-append.xml delete mode 100644 docs/fr/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/fr/programmers/api-functions/api-assign.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/fr/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/fr/programmers/api-functions/api-config-load.xml delete mode 100644 docs/fr/programmers/api-functions/api-display.xml delete mode 100644 docs/fr/programmers/api-functions/api-fetch.xml delete mode 100644 docs/fr/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/fr/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/fr/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/fr/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/fr/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-block.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-function.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-object.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/fr/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/fr/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/fr/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/fr/programmers/api-variables.xml delete mode 100644 docs/fr/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/fr/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/fr/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/fr/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/fr/programmers/api-variables/variable-caching.xml delete mode 100644 docs/fr/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/fr/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/fr/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/fr/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/fr/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/fr/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/fr/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/fr/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/fr/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/fr/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/fr/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/fr/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/fr/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/fr/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/fr/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/fr/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/fr/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/fr/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/fr/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/fr/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/fr/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/fr/programmers/api-variables/variable-security.xml delete mode 100644 docs/fr/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/fr/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/fr/programmers/caching.xml delete mode 100644 docs/fr/programmers/caching/caching-cacheable.xml delete mode 100644 docs/fr/programmers/caching/caching-groups.xml delete mode 100644 docs/fr/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/fr/programmers/caching/caching-setting-up.xml delete mode 100644 docs/fr/programmers/plugins.xml delete mode 100644 docs/fr/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/fr/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/fr/programmers/plugins/plugins-functions.xml delete mode 100644 docs/fr/programmers/plugins/plugins-howto.xml delete mode 100644 docs/fr/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/fr/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/fr/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/fr/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/fr/programmers/plugins/plugins-resources.xml delete mode 100644 docs/fr/programmers/plugins/plugins-writing.xml delete mode 100644 docs/fr/programmers/smarty-constants.xml delete mode 100644 docs/fr/translation.xml delete mode 100644 docs/id/bookinfo.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/id/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/id/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/id/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/id/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/id/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/id/designers/language-variables/language-config-variables.xml delete mode 100644 docs/id/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/id/getting-started.xml delete mode 100644 docs/id/language-defs.ent delete mode 100644 docs/id/language-snippets.ent delete mode 100644 docs/id/livedocs.ent delete mode 100644 docs/id/preface.xml delete mode 100644 docs/id/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/id/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/id/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/id/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/id/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/id/programmers/advanced-features/template-resources.xml delete mode 100644 docs/id/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/id/programmers/api-functions/api-append.xml delete mode 100644 docs/id/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/id/programmers/api-functions/api-assign.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/id/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/id/programmers/api-functions/api-config-load.xml delete mode 100644 docs/id/programmers/api-functions/api-display.xml delete mode 100644 docs/id/programmers/api-functions/api-fetch.xml delete mode 100644 docs/id/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/id/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/id/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/id/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/id/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/id/programmers/api-functions/api-register-block.xml delete mode 100644 docs/id/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/id/programmers/api-functions/api-register-function.xml delete mode 100644 docs/id/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/id/programmers/api-functions/api-register-object.xml delete mode 100644 docs/id/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/id/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/id/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/id/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/id/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/id/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/id/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/id/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/id/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/id/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/id/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/id/programmers/api-variables/variable-caching.xml delete mode 100644 docs/id/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/id/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/id/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/id/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/id/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/id/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/id/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/id/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/id/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/id/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/id/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/id/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/id/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/id/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/id/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/id/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/id/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/id/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/id/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/id/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/id/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/id/programmers/api-variables/variable-security.xml delete mode 100644 docs/id/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/id/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/id/programmers/caching/caching-cacheable.xml delete mode 100644 docs/id/programmers/caching/caching-groups.xml delete mode 100644 docs/id/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/id/programmers/caching/caching-setting-up.xml delete mode 100644 docs/id/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/id/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/id/programmers/plugins/plugins-functions.xml delete mode 100644 docs/id/programmers/plugins/plugins-howto.xml delete mode 100644 docs/id/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/id/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/id/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/id/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/id/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/id/programmers/plugins/plugins-resources.xml delete mode 100644 docs/id/programmers/plugins/plugins-writing.xml delete mode 100644 docs/it/appendixes/bugs.xml delete mode 100644 docs/it/appendixes/resources.xml delete mode 100644 docs/it/appendixes/tips.xml delete mode 100644 docs/it/appendixes/troubleshooting.xml delete mode 100644 docs/it/bookinfo.xml delete mode 100644 docs/it/designers/chapter-debugging-console.xml delete mode 100644 docs/it/designers/config-files.xml delete mode 100644 docs/it/designers/language-basic-syntax.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/it/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/it/designers/language-builtin-functions.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/it/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/it/designers/language-combining-modifiers.xml delete mode 100644 docs/it/designers/language-custom-functions.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/it/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/it/designers/language-modifiers.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/it/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/it/designers/language-variables.xml delete mode 100644 docs/it/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/it/designers/language-variables/language-config-variables.xml delete mode 100644 docs/it/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/it/getting-started.xml delete mode 100644 docs/it/language-defs.ent delete mode 100644 docs/it/language-snippets.ent delete mode 100644 docs/it/livedocs.ent delete mode 100644 docs/it/preface.xml delete mode 100644 docs/it/programmers/advanced-features.xml delete mode 100644 docs/it/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/it/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/it/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/it/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/it/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/it/programmers/advanced-features/template-resources.xml delete mode 100644 docs/it/programmers/api-functions.xml delete mode 100644 docs/it/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/it/programmers/api-functions/api-append.xml delete mode 100644 docs/it/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/it/programmers/api-functions/api-assign.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/it/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/it/programmers/api-functions/api-config-load.xml delete mode 100644 docs/it/programmers/api-functions/api-display.xml delete mode 100644 docs/it/programmers/api-functions/api-fetch.xml delete mode 100644 docs/it/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/it/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/it/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/it/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/it/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/it/programmers/api-functions/api-register-block.xml delete mode 100644 docs/it/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/it/programmers/api-functions/api-register-function.xml delete mode 100644 docs/it/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/it/programmers/api-functions/api-register-object.xml delete mode 100644 docs/it/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/it/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/it/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/it/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/it/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/it/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/it/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/it/programmers/api-variables.xml delete mode 100644 docs/it/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/it/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/it/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/it/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/it/programmers/api-variables/variable-caching.xml delete mode 100644 docs/it/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/it/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/it/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/it/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/it/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/it/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/it/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/it/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/it/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/it/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/it/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/it/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/it/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/it/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/it/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/it/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/it/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/it/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/it/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/it/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/it/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/it/programmers/api-variables/variable-security.xml delete mode 100644 docs/it/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/it/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/it/programmers/caching.xml delete mode 100644 docs/it/programmers/caching/caching-cacheable.xml delete mode 100644 docs/it/programmers/caching/caching-groups.xml delete mode 100644 docs/it/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/it/programmers/caching/caching-setting-up.xml delete mode 100644 docs/it/programmers/plugins.xml delete mode 100644 docs/it/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/it/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/it/programmers/plugins/plugins-functions.xml delete mode 100644 docs/it/programmers/plugins/plugins-howto.xml delete mode 100644 docs/it/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/it/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/it/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/it/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/it/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/it/programmers/plugins/plugins-resources.xml delete mode 100644 docs/it/programmers/plugins/plugins-writing.xml delete mode 100644 docs/it/programmers/smarty-constants.xml delete mode 100644 docs/ja/appendixes/bugs.xml delete mode 100644 docs/ja/appendixes/resources.xml delete mode 100644 docs/ja/appendixes/tips.xml delete mode 100644 docs/ja/appendixes/troubleshooting.xml delete mode 100644 docs/ja/bookinfo.xml delete mode 100644 docs/ja/designers/chapter-debugging-console.xml delete mode 100644 docs/ja/designers/config-files.xml delete mode 100644 docs/ja/designers/language-basic-syntax.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/ja/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/ja/designers/language-builtin-functions.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/ja/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/ja/designers/language-combining-modifiers.xml delete mode 100644 docs/ja/designers/language-custom-functions.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/ja/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/ja/designers/language-modifiers.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/ja/designers/language-variables.xml delete mode 100644 docs/ja/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/ja/designers/language-variables/language-config-variables.xml delete mode 100644 docs/ja/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/ja/getting-started.xml delete mode 100644 docs/ja/language-defs.ent delete mode 100644 docs/ja/language-snippets.ent delete mode 100644 docs/ja/livedocs.ent delete mode 100644 docs/ja/make_chm_index.html delete mode 100644 docs/ja/preface.xml delete mode 100644 docs/ja/programmers/advanced-features.xml delete mode 100644 docs/ja/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/ja/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/ja/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/ja/programmers/advanced-features/template-resources.xml delete mode 100644 docs/ja/programmers/api-functions.xml delete mode 100644 docs/ja/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/ja/programmers/api-functions/api-append.xml delete mode 100644 docs/ja/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/ja/programmers/api-functions/api-assign.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/ja/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/ja/programmers/api-functions/api-config-load.xml delete mode 100644 docs/ja/programmers/api-functions/api-display.xml delete mode 100644 docs/ja/programmers/api-functions/api-fetch.xml delete mode 100644 docs/ja/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/ja/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/ja/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/ja/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/ja/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-block.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-function.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-object.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/ja/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/ja/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/ja/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/ja/programmers/api-variables.xml delete mode 100644 docs/ja/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/ja/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/ja/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/ja/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/ja/programmers/api-variables/variable-caching.xml delete mode 100644 docs/ja/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/ja/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/ja/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/ja/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/ja/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/ja/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/ja/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/ja/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/ja/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/ja/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/ja/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/ja/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/ja/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/ja/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/ja/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/ja/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/ja/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/ja/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/ja/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/ja/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/ja/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/ja/programmers/api-variables/variable-security.xml delete mode 100644 docs/ja/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/ja/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/ja/programmers/caching.xml delete mode 100644 docs/ja/programmers/caching/caching-cacheable.xml delete mode 100644 docs/ja/programmers/caching/caching-groups.xml delete mode 100644 docs/ja/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/ja/programmers/caching/caching-setting-up.xml delete mode 100644 docs/ja/programmers/plugins.xml delete mode 100644 docs/ja/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/ja/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/ja/programmers/plugins/plugins-functions.xml delete mode 100644 docs/ja/programmers/plugins/plugins-howto.xml delete mode 100644 docs/ja/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/ja/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/ja/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/ja/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/ja/programmers/plugins/plugins-resources.xml delete mode 100644 docs/ja/programmers/plugins/plugins-writing.xml delete mode 100644 docs/ja/programmers/smarty-constants.xml delete mode 100644 docs/ja/translation.xml delete mode 100644 docs/manual.xml.in delete mode 100644 docs/pt_BR/appendixes/bugs.xml delete mode 100644 docs/pt_BR/appendixes/resources.xml delete mode 100644 docs/pt_BR/appendixes/tips.xml delete mode 100644 docs/pt_BR/appendixes/troubleshooting.xml delete mode 100755 docs/pt_BR/bookinfo.xml delete mode 100644 docs/pt_BR/designers/chapter-debugging-console.xml delete mode 100644 docs/pt_BR/designers/config-files.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/pt_BR/designers/language-combining-modifiers.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/pt_BR/designers/language-modifiers.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/pt_BR/designers/language-variables.xml delete mode 100644 docs/pt_BR/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/pt_BR/designers/language-variables/language-config-variables.xml delete mode 100644 docs/pt_BR/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/pt_BR/getting-started.xml delete mode 100644 docs/pt_BR/language-defs.ent delete mode 100644 docs/pt_BR/language-snippets.ent delete mode 100755 docs/pt_BR/livedocs.ent delete mode 100755 docs/pt_BR/make_chm_index.html delete mode 100644 docs/pt_BR/preface.xml delete mode 100644 docs/pt_BR/programmers/advanced-features.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/pt_BR/programmers/advanced-features/template-resources.xml delete mode 100644 docs/pt_BR/programmers/api-functions.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-append.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-assign.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-config-load.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-display.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-fetch.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-block.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-function.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-object.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/pt_BR/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/pt_BR/programmers/api-variables.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-caching.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-global-assign.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-security.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-undefined.xml delete mode 100644 docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/pt_BR/programmers/caching.xml delete mode 100644 docs/pt_BR/programmers/caching/caching-cacheable.xml delete mode 100644 docs/pt_BR/programmers/caching/caching-groups.xml delete mode 100644 docs/pt_BR/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/pt_BR/programmers/caching/caching-setting-up.xml delete mode 100644 docs/pt_BR/programmers/plugins.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-functions.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-howto.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-resources.xml delete mode 100644 docs/pt_BR/programmers/plugins/plugins-writing.xml delete mode 100644 docs/pt_BR/programmers/smarty-constants.xml delete mode 100644 docs/pt_BR/translation.xml delete mode 100644 docs/ru/appendixes/bugs.xml delete mode 100644 docs/ru/appendixes/resources.xml delete mode 100644 docs/ru/appendixes/tips.xml delete mode 100644 docs/ru/appendixes/troubleshooting.xml delete mode 100755 docs/ru/bookinfo.xml delete mode 100644 docs/ru/designers/chapter-debugging-console.xml delete mode 100644 docs/ru/designers/config-files.xml delete mode 100644 docs/ru/designers/language-basic-syntax.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-escaping.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-math.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-syntax-comments.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-syntax-functions.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml delete mode 100644 docs/ru/designers/language-basic-syntax/language-syntax-variables.xml delete mode 100644 docs/ru/designers/language-builtin-functions.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-capture.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-config-load.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-foreach.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-if.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-include-php.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-include.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-insert.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-ldelim.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-literal.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-php.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-section.xml delete mode 100644 docs/ru/designers/language-builtin-functions/language-function-strip.xml delete mode 100644 docs/ru/designers/language-combining-modifiers.xml delete mode 100644 docs/ru/designers/language-custom-functions.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-assign.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-counter.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-cycle.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-debug.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-eval.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-fetch.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-image.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-options.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-radios.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-select-date.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-select-time.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-html-table.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-mailto.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-math.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-popup-init.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-popup.xml delete mode 100644 docs/ru/designers/language-custom-functions/language-function-textformat.xml delete mode 100644 docs/ru/designers/language-modifiers.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-capitalize.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-cat.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-count-characters.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-count-words.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-date-format.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-default.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-escape.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-indent.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-lower.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-nl2br.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-replace.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-spacify.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-string-format.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-strip.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-truncate.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-upper.xml delete mode 100644 docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml delete mode 100644 docs/ru/designers/language-variables.xml delete mode 100644 docs/ru/designers/language-variables/language-assigned-variables.xml delete mode 100644 docs/ru/designers/language-variables/language-config-variables.xml delete mode 100644 docs/ru/designers/language-variables/language-variables-smarty.xml delete mode 100644 docs/ru/getting-started.xml delete mode 100644 docs/ru/language-defs.ent delete mode 100644 docs/ru/language-snippets.ent delete mode 100644 docs/ru/livedocs.ent delete mode 100644 docs/ru/make_chm_index.html delete mode 100644 docs/ru/preface.xml delete mode 100644 docs/ru/programmers/advanced-features.xml delete mode 100644 docs/ru/programmers/advanced-features/advanced-features-objects.xml delete mode 100644 docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml delete mode 100644 docs/ru/programmers/advanced-features/advanced-features-postfilters.xml delete mode 100644 docs/ru/programmers/advanced-features/advanced-features-prefilters.xml delete mode 100644 docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml delete mode 100644 docs/ru/programmers/advanced-features/template-resources.xml delete mode 100644 docs/ru/programmers/api-functions.xml delete mode 100644 docs/ru/programmers/api-functions/api-append-by-ref.xml delete mode 100644 docs/ru/programmers/api-functions/api-append.xml delete mode 100644 docs/ru/programmers/api-functions/api-assign-by-ref.xml delete mode 100644 docs/ru/programmers/api-functions/api-assign.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-all-assign.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-all-cache.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-assign.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-cache.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml delete mode 100644 docs/ru/programmers/api-functions/api-clear-config.xml delete mode 100644 docs/ru/programmers/api-functions/api-config-load.xml delete mode 100644 docs/ru/programmers/api-functions/api-display.xml delete mode 100644 docs/ru/programmers/api-functions/api-fetch.xml delete mode 100644 docs/ru/programmers/api-functions/api-get-config-vars.xml delete mode 100644 docs/ru/programmers/api-functions/api-get-registered-object.xml delete mode 100644 docs/ru/programmers/api-functions/api-get-template-vars.xml delete mode 100644 docs/ru/programmers/api-functions/api-is-cached.xml delete mode 100644 docs/ru/programmers/api-functions/api-load-filter.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-block.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-compiler-function.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-function.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-modifier.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-object.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-outputfilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-postfilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-prefilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-register-resource.xml delete mode 100644 docs/ru/programmers/api-functions/api-template-exists.xml delete mode 100644 docs/ru/programmers/api-functions/api-trigger-error.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-block.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-compiler-function.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-function.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-modifier.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-object.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-outputfilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-postfilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-prefilter.xml delete mode 100644 docs/ru/programmers/api-functions/api-unregister-resource.xml delete mode 100644 docs/ru/programmers/api-variables.xml delete mode 100644 docs/ru/programmers/api-variables/variable-autoload-filters.xml delete mode 100644 docs/ru/programmers/api-variables/variable-cache-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-cache-handler-func.xml delete mode 100644 docs/ru/programmers/api-variables/variable-cache-lifetime.xml delete mode 100644 docs/ru/programmers/api-variables/variable-cache-modified-check.xml delete mode 100644 docs/ru/programmers/api-variables/variable-caching.xml delete mode 100644 docs/ru/programmers/api-variables/variable-compile-check.xml delete mode 100644 docs/ru/programmers/api-variables/variable-compile-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-compile-id.xml delete mode 100644 docs/ru/programmers/api-variables/variable-compiler-class.xml delete mode 100644 docs/ru/programmers/api-variables/variable-config-booleanize.xml delete mode 100644 docs/ru/programmers/api-variables/variable-config-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-config-fix-newlines.xml delete mode 100644 docs/ru/programmers/api-variables/variable-config-overwrite.xml delete mode 100644 docs/ru/programmers/api-variables/variable-config-read-hidden.xml delete mode 100644 docs/ru/programmers/api-variables/variable-debug-tpl.xml delete mode 100644 docs/ru/programmers/api-variables/variable-debugging-ctrl.xml delete mode 100644 docs/ru/programmers/api-variables/variable-debugging.xml delete mode 100644 docs/ru/programmers/api-variables/variable-default-modifiers.xml delete mode 100644 docs/ru/programmers/api-variables/variable-default-resource-type.xml delete mode 100644 docs/ru/programmers/api-variables/variable-default-template-handler-func.xml delete mode 100644 docs/ru/programmers/api-variables/variable-error-reporting.xml delete mode 100644 docs/ru/programmers/api-variables/variable-force-compile.xml delete mode 100644 docs/ru/programmers/api-variables/variable-left-delimiter.xml delete mode 100644 docs/ru/programmers/api-variables/variable-php-handling.xml delete mode 100644 docs/ru/programmers/api-variables/variable-plugins-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml delete mode 100644 docs/ru/programmers/api-variables/variable-request-vars-order.xml delete mode 100644 docs/ru/programmers/api-variables/variable-right-delimiter.xml delete mode 100644 docs/ru/programmers/api-variables/variable-secure-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-security-settings.xml delete mode 100644 docs/ru/programmers/api-variables/variable-security.xml delete mode 100644 docs/ru/programmers/api-variables/variable-template-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-trusted-dir.xml delete mode 100644 docs/ru/programmers/api-variables/variable-use-sub-dirs.xml delete mode 100644 docs/ru/programmers/caching.xml delete mode 100644 docs/ru/programmers/caching/caching-cacheable.xml delete mode 100644 docs/ru/programmers/caching/caching-groups.xml delete mode 100644 docs/ru/programmers/caching/caching-multiple-caches.xml delete mode 100644 docs/ru/programmers/caching/caching-setting-up.xml delete mode 100644 docs/ru/programmers/plugins.xml delete mode 100644 docs/ru/programmers/plugins/plugins-block-functions.xml delete mode 100644 docs/ru/programmers/plugins/plugins-compiler-functions.xml delete mode 100644 docs/ru/programmers/plugins/plugins-functions.xml delete mode 100644 docs/ru/programmers/plugins/plugins-howto.xml delete mode 100644 docs/ru/programmers/plugins/plugins-inserts.xml delete mode 100644 docs/ru/programmers/plugins/plugins-modifiers.xml delete mode 100644 docs/ru/programmers/plugins/plugins-naming-conventions.xml delete mode 100644 docs/ru/programmers/plugins/plugins-outputfilters.xml delete mode 100644 docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml delete mode 100644 docs/ru/programmers/plugins/plugins-resources.xml delete mode 100644 docs/ru/programmers/plugins/plugins-writing.xml delete mode 100644 docs/ru/programmers/smarty-constants.xml delete mode 100755 docs/scripts/.cvsignore delete mode 100644 docs/scripts/file-entities.php.in delete mode 100755 docs/scripts/generate_web.php delete mode 100755 docs/scripts/html_syntax.php delete mode 100755 docs/scripts/revcheck.php delete mode 100644 docs/xsl/common.xsl delete mode 100755 docs/xsl/docbook/BUGS delete mode 100755 docs/xsl/docbook/PHPDOC-NOTE delete mode 100755 docs/xsl/docbook/README delete mode 100755 docs/xsl/docbook/VERSION delete mode 100755 docs/xsl/docbook/common/ChangeLog delete mode 100755 docs/xsl/docbook/common/af.xml delete mode 100755 docs/xsl/docbook/common/bg.xml delete mode 100755 docs/xsl/docbook/common/ca.xml delete mode 100755 docs/xsl/docbook/common/common.xsl delete mode 100755 docs/xsl/docbook/common/cs.xml delete mode 100755 docs/xsl/docbook/common/da.xml delete mode 100755 docs/xsl/docbook/common/de.xml delete mode 100755 docs/xsl/docbook/common/el.xml delete mode 100755 docs/xsl/docbook/common/en.xml delete mode 100755 docs/xsl/docbook/common/es.xml delete mode 100755 docs/xsl/docbook/common/et.xml delete mode 100755 docs/xsl/docbook/common/eu.xml delete mode 100755 docs/xsl/docbook/common/fi.xml delete mode 100755 docs/xsl/docbook/common/fr.xml delete mode 100755 docs/xsl/docbook/common/gentext.xsl delete mode 100755 docs/xsl/docbook/common/he.xml delete mode 100755 docs/xsl/docbook/common/hu.xml delete mode 100755 docs/xsl/docbook/common/id.xml delete mode 100755 docs/xsl/docbook/common/it.xml delete mode 100755 docs/xsl/docbook/common/ja.xml delete mode 100755 docs/xsl/docbook/common/ko.xml delete mode 100755 docs/xsl/docbook/common/l10n.dtd delete mode 100755 docs/xsl/docbook/common/l10n.xml delete mode 100755 docs/xsl/docbook/common/l10n.xsl delete mode 100755 docs/xsl/docbook/common/labels.xsl delete mode 100755 docs/xsl/docbook/common/lt.xml delete mode 100755 docs/xsl/docbook/common/nl.xml delete mode 100755 docs/xsl/docbook/common/nn.xml delete mode 100755 docs/xsl/docbook/common/no.xml delete mode 100755 docs/xsl/docbook/common/pl.xml delete mode 100755 docs/xsl/docbook/common/pt.xml delete mode 100755 docs/xsl/docbook/common/pt_br.xml delete mode 100755 docs/xsl/docbook/common/ro.xml delete mode 100755 docs/xsl/docbook/common/ru.xml delete mode 100755 docs/xsl/docbook/common/sk.xml delete mode 100755 docs/xsl/docbook/common/sl.xml delete mode 100755 docs/xsl/docbook/common/sr.xml delete mode 100755 docs/xsl/docbook/common/subtitles.xsl delete mode 100755 docs/xsl/docbook/common/sv.xml delete mode 100755 docs/xsl/docbook/common/table.xsl delete mode 100755 docs/xsl/docbook/common/targetdatabase.dtd delete mode 100755 docs/xsl/docbook/common/targets.xsl delete mode 100755 docs/xsl/docbook/common/th.xml delete mode 100755 docs/xsl/docbook/common/titles.xsl delete mode 100755 docs/xsl/docbook/common/tr.xml delete mode 100755 docs/xsl/docbook/common/uk.xml delete mode 100755 docs/xsl/docbook/common/vi.xml delete mode 100755 docs/xsl/docbook/common/xh.xml delete mode 100755 docs/xsl/docbook/common/zh_cn.xml delete mode 100755 docs/xsl/docbook/common/zh_tw.xml delete mode 100755 docs/xsl/docbook/fo/ChangeLog delete mode 100755 docs/xsl/docbook/fo/admon.xsl delete mode 100755 docs/xsl/docbook/fo/autoidx.xsl delete mode 100755 docs/xsl/docbook/fo/autotoc.xsl delete mode 100755 docs/xsl/docbook/fo/biblio.xsl delete mode 100755 docs/xsl/docbook/fo/block.xsl delete mode 100755 docs/xsl/docbook/fo/callout.xsl delete mode 100755 docs/xsl/docbook/fo/component.xsl delete mode 100755 docs/xsl/docbook/fo/division.xsl delete mode 100755 docs/xsl/docbook/fo/docbook.xsl delete mode 100755 docs/xsl/docbook/fo/ebnf.xsl delete mode 100755 docs/xsl/docbook/fo/fo-patch-for-fop.xsl delete mode 100755 docs/xsl/docbook/fo/fo-rtf.xsl delete mode 100755 docs/xsl/docbook/fo/fo.xsl delete mode 100755 docs/xsl/docbook/fo/footnote.xsl delete mode 100755 docs/xsl/docbook/fo/fop.xsl delete mode 100755 docs/xsl/docbook/fo/formal.xsl delete mode 100755 docs/xsl/docbook/fo/glossary.xsl delete mode 100755 docs/xsl/docbook/fo/graphics.xsl delete mode 100755 docs/xsl/docbook/fo/index.xsl delete mode 100755 docs/xsl/docbook/fo/info.xsl delete mode 100755 docs/xsl/docbook/fo/inline.xsl delete mode 100755 docs/xsl/docbook/fo/keywords.xsl delete mode 100755 docs/xsl/docbook/fo/lists.xsl delete mode 100755 docs/xsl/docbook/fo/math.xsl delete mode 100755 docs/xsl/docbook/fo/pagesetup.xsl delete mode 100755 docs/xsl/docbook/fo/param.ent delete mode 100755 docs/xsl/docbook/fo/param.xml delete mode 100755 docs/xsl/docbook/fo/param.xsl delete mode 100755 docs/xsl/docbook/fo/param.xweb delete mode 100755 docs/xsl/docbook/fo/passivetex.xsl delete mode 100755 docs/xsl/docbook/fo/pdf2index delete mode 100755 docs/xsl/docbook/fo/pi.xsl delete mode 100755 docs/xsl/docbook/fo/profile-docbook.xsl delete mode 100755 docs/xsl/docbook/fo/qandaset.xsl delete mode 100755 docs/xsl/docbook/fo/refentry.xsl delete mode 100755 docs/xsl/docbook/fo/sections.xsl delete mode 100755 docs/xsl/docbook/fo/synop.xsl delete mode 100755 docs/xsl/docbook/fo/table.xsl delete mode 100755 docs/xsl/docbook/fo/titlepage.templates.xml delete mode 100755 docs/xsl/docbook/fo/titlepage.templates.xsl delete mode 100755 docs/xsl/docbook/fo/titlepage.xsl delete mode 100755 docs/xsl/docbook/fo/toc.xsl delete mode 100755 docs/xsl/docbook/fo/verbatim.xsl delete mode 100755 docs/xsl/docbook/fo/xep.xsl delete mode 100755 docs/xsl/docbook/fo/xref.xsl delete mode 100755 docs/xsl/docbook/lib/ChangeLog delete mode 100755 docs/xsl/docbook/lib/lib.xml delete mode 100755 docs/xsl/docbook/lib/lib.xsl delete mode 100755 docs/xsl/docbook/lib/lib.xweb delete mode 100755 docs/xsl/fo.xsl delete mode 100644 misc/smarty_icon.README delete mode 100644 misc/smarty_icon.gif delete mode 100644 unit_test/README delete mode 100644 unit_test/config.php delete mode 100644 unit_test/configs/globals_double_quotes.conf delete mode 100644 unit_test/configs/globals_single_quotes.conf delete mode 100644 unit_test/smarty_unit_test.php delete mode 100644 unit_test/smarty_unit_test_gui.php delete mode 100644 unit_test/templates/assign_var.tpl delete mode 100644 unit_test/templates/constant.tpl delete mode 100644 unit_test/templates/index.tpl delete mode 100644 unit_test/templates/parse_math.tpl delete mode 100644 unit_test/templates/parse_obj_meth.tpl delete mode 100644 unit_test/test_cases.php diff --git a/docs/.cvsignore b/docs/.cvsignore deleted file mode 100644 index 6fe78eb1..00000000 --- a/docs/.cvsignore +++ /dev/null @@ -1,11 +0,0 @@ -configure -Makefile -manual.xml -config.* -*.cache -*.fot -html -phpweb -diff -revcheck.html -manual.pdf diff --git a/docs/Makefile.in b/docs/Makefile.in deleted file mode 100755 index 596a19e7..00000000 --- a/docs/Makefile.in +++ /dev/null @@ -1,75 +0,0 @@ -# +----------------------------------------------------------------------+ -# | PHP Version 5 | -# +----------------------------------------------------------------------+ -# | Copyright (c) 1997-2004 The PHP Group | -# +----------------------------------------------------------------------+ -# | This source file is subject to version 3.0 of the PHP license, | -# | that is bundled with this package in the file LICENSE, and is | -# | available through the world-wide-web at the following url: | -# | http://www.php.net/license/3_0.txt. | -# | If you did not receive a copy of the PHP license and are unable to | -# | obtain it through the world-wide-web, please send a note to | -# | license@php.net so we can mail you a copy immediately. | -# +----------------------------------------------------------------------+ -# - -# -# $Id$ -# - -all: html - -# {{{ variables - -PHP=@PHP@ -LANG=@LANG@ -NSGMLS=@SP_OPTIONS@ @NSGMLS@ -JADE=@SP_OPTIONS@ @JADE@ -D . -wno-idref -XMLLINT=@XMLLINT@ -FOP=@FOP@ -XMLDCL=./dtds/dbxml-4.1.2/phpdocxml.dcl -CATALOG=@CATALOG@ -HTML_STYLESHEET=dsssl/html.dsl -PHPWEB_STYLESHEET=dsssl/php.dsl - -# }}} - -#default behaviour -all:html - -FORCE: - -html: FORCE - @test -d html || mkdir html - $(JADE) $(CATALOG) -d $(HTML_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml - $(PHP) scripts/html_syntax.php html html/ - -web: FORCE - @test -d phpweb || mkdir phpweb - $(JADE) $(CATALOG) -d $(PHPWEB_STYLESHEET) -V use-output-dir -t sgml $(XMLDCL) manual.xml - $(PHP) scripts/generate_web.php - $(PHP) scripts/html_syntax.php php phpweb/ - -pdf: FORCE - ${FOP} -xml manual.xml -xsl xsl/fo.xsl -pdf manual.pdf - -chm: html FORCE - chm/make_chm.bat $(LANG) - -test: - $(NSGMLS) -i lang-$(LANG) -s $(XMLDCL) manual.xml - -test_xml: - $(XMLLINT) --noent --noout --valid manual.xml - -revcheck: FORCE - $(PHP) -f scripts/revcheck.php $(LANG) > revcheck.html - -# {{{ cleanup - -clean: - rm -f Makefile config.* manual.xml configure entities/version.ent *.fot dsssl/html-common.dsl manual.pdf - rm -f revcheck.html file-entities.php entities/file-entities.ent scripts/file-entities.php manual.fo - rm -fr autom4te.cache html phpweb - -# }}} diff --git a/docs/README b/docs/README deleted file mode 100644 index 3ef10004..00000000 --- a/docs/README +++ /dev/null @@ -1,43 +0,0 @@ -This directory contains the documentation for Smarty. All files are in docbook -format with an .xml extention. Different subdirs contain different available languages. - - - NEW BUILD SYSTEM - ================ -Firstly issue these commands: -1) autoconf -2) ./configure --with-lang=xx [DEFAULT=en] - -TEST: - * make test - * make test_xml (test for XML validity) - -MAKE: - * make (to make plain html) - * make web (to make docs for website) - - -Generate PDF files -================== -In order to generate PDF files you need some tools: - * Apache FOP (http://xml.apache.org/fop/) - * JRE 1.2 or later - -To generate the file, just type 'make pdf' - - -Generate CHM files -================== -In order to generate CHM files you need the Microsoft(r) HTML Help Workshop, -which can be freely downloaded at -http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconhh1start.asp - -Then type 'make chm'. This will run the 'make html' and then build the chm file. - - -Revision Tracking (for translations): - * make revcheck (this will create revcheck.html) - - -You should have libxml and autoconf installed in your system. -Read http://doc.php.net/php/dochowto/chapter-tools.php for more info. diff --git a/docs/TODO b/docs/TODO deleted file mode 100644 index a513978f..00000000 --- a/docs/TODO +++ /dev/null @@ -1,55 +0,0 @@ -*normal mode* : -- add CDATA sections in all programlistings. -- add roles to programlisting (especially role="php") and add PHP tags in PHP examples (short_open_tag is banned). This will help to : - -- check parse errors : for i in $(ls |grep xml); do php -d short_open_tag=off -l $i; done - -*pedentic mode* : -- fix indenting in all .xml files : don't uses tabs, indent by a space. Here's a nice indentation : - - - - - <programlisting> -<![CDATA[ -// .. -]]> - </programlisting> - </example> -</para> - -- clean all the examples : -(if aggreed) examples should be XHTML compliant and should stick to PEAR's coding standards. - -Here's how a complete example, using PHP and templates, should be written : - - <example> - <title>html_image example - -display('index.tpl'); - -?> -]]> - - - where index.tpl is: - - - - - - a possible output would be: - - - -]]> - - - diff --git a/docs/chm/.cvsignore b/docs/chm/.cvsignore deleted file mode 100755 index 6d21d95f..00000000 --- a/docs/chm/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -*.chm -*.hh? -fancy diff --git a/docs/chm/README b/docs/chm/README deleted file mode 100755 index 64f14350..00000000 --- a/docs/chm/README +++ /dev/null @@ -1,97 +0,0 @@ -**************************************************************** -** This is a modified version of phpdoc/chm ** -**************************************************************** - -BUILDING THE MANUAL IN WINDOWS HELP FILE (.CHM) FORMAT - -Note: Where 'lang' is mentioned in this doc, it is the actual -language code (e.g. en) of the manual you are compiling, -not the 'lang' word itself! - -With the herein described tools you're able to build the .chm manual -with two options: - - a) Simply build the traditional html manual - b) Make a fancy version of the html manual and build it - -======================================================================= -WHAT YOU NEED - -* Microsoft(r) HTML Help Workshop. - You can download it freely at: - http://msdn.microsoft.com/library/en-us/htmlhelp/html/vsconhh1start.asp - You need the complete workshop package install (about 4 Megs). - Of course you need Microsoft(r) Windows to run that software :) - -* The html manual (build with 'make') - -The .chm manual generator files (from cvs.php.net): - - make_chm.bat - The only file you need to run yourself. - make_chm.php - Auto toc generator. - - To make the fancy manual, additional files are needed: - - make_chm_fancy.php - Converts the normal html files to fancy - (good looking) pages - make_chm_index_lang.html - Fancy index. (you find it in phpdoc/lang - dir, if it exists for that language). - make_chm_spc.gif - GIF file needed by the fancy pages. - make_chm_style.css - This adds some good style to html files. - -======================================================================= -INSTALLATION - -Install Microsoft(r) HTML Help Workshop. - -Put the above listed make_chm_* files to one directory. - -Open make_chm.bat in a text editor and set the appropriate -environment variables. You need to - - - set PHP_PATH to the full path of the CGI php.exe on - your machine (including php.exe). - - set PHP_HELP_COMPILER to the full path of hhc.exe on - your machine (including hhc.exe). - - set PHP_HELP_COMPILE_LANG to the language code of the - actual manual (use the code from cvs.php.net, eg. hu) - - set PHP_HELP_COMPILE_DIR to the directory of the - html manual (eg. ..\html when you build it like mentioned in the howto) - - set PHP_HELP_COMPILE_INDEX to the index filename in - the directory you set above. This used to be manual.html - for a long time, but it seems it is now index.html. - - The following variable is only needed for the fancy manual: - - - set PHP_HELP_COMPILE_FANCYDIR to the directory name where - the fancy pages will go. - You can decide not to sacrifice any more space for the fancy dir - (it takes ~25% more space than the normal html-manual), and set - this variable to the same as PHP_HELP_COMPILE_DIR. Then your old - HTML files will be rewritten to be fancy ones. - -======================================================================= -BUILDING THE MANUAL: - -Put the html manual (~2100 files) under the subdir specified above in -PHP_HELP_COMPILE_DIR (eg. html). - -To compile the NORMAL manual, use the 'normal' command line option: - - make_chm normal - -To compile the FANCY manual, just run: - - make_chm - -After this process, you will have smarty_manual_lang.chm... - -======================================================================= -The fancy design improvemenets and the .css file is based on -the newsite design(TM) work of Colin Viebrock [colin@easyDNS.com] :) - -Written by Gabor Hojtsy (goba@php.net), and adapted by -Thomas Schoefbeck (tom@php.net). Contact them or the phpdoc list -(phpdoc@lists.php.net) if you have any questions or suggestions... - -Last modified $Date$ \ No newline at end of file diff --git a/docs/chm/chm_settings.php b/docs/chm/chm_settings.php deleted file mode 100755 index 0214f7a4..00000000 --- a/docs/chm/chm_settings.php +++ /dev/null @@ -1,157 +0,0 @@ - HTML Help Code conversion -// Code list: http://www.helpware.net/htmlhelp/hh_info.htm -// Charset list: http://www.microsoft.com/globaldev/nlsweb/default.asp -// Language code: http://www.unicode.org/unicode/onlinedat/languages.html -// MIME preferred charset list: http://www.iana.org/assignments/character-sets -// Font list: http://www.microsoft.com/office/ork/xp/three/inte03.htm - -$LANGUAGES = array( - "hk" => array( - "langcode" => "0xc04 Hong Kong Cantonese", - "preferred_charset" => "CP950", - "mime_charset_name" => "Big5", - "preferred_font" => "MingLiu,10,0" - ), - "tw" => array( - "langcode" => "0x404 Traditional Chinese", - "preferred_charset" => "CP950", - "mime_charset_name" => "Big5", - "preferred_font" => "MingLiu,10,0" - ), - "cs" => array( - "langcode" => "0x405 Czech", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT, - ), - "da" => array( - "langcode" => "0x406 Danish", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT, - ), - "de" => array( - "langcode" => "0x407 German (Germany)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT, - ), - "el" => array( - "langcode" => "0x408 Greek", - "preferred_charset" => "Windows-1253", - "mime_charset_name" => "Windows-1253", - "preferred_font" => $DEFAULT_FONT - ), - "en" => array( - "langcode" => "0x809 English (United Kingdom)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "es" => array( - "langcode" => "0xc0a Spanish (International Sort)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "fr" => array( - "langcode" => "0x40c French (France)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "fi" => array( - "langcode" => "0x40b Finnish", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "he" => array( - "langcode" => "0x40d Hebrew", - "preferred_charset" => "Windows-1255", - "mime_charset_name" => "Windows-1255", - "preferred_font" => $DEFAULT_FONT - ), - "hu" => array( - "langcode" => "0x40e Hungarian", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT - ), - "it" => array( - "langcode" => "0x410 Italian (Italy)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "ja" => array( - "langcode" => "0x411 Japanese", - "preferred_charset" => "CP932", - "mime_charset_name" => "csWindows31J", - "preferred_font" => "MS PGothic,10,0" - ), - "kr" => array( - "langcode" => "0x412 Korean", - "preferred_charset" => "CP949", - "mime_charset_name" => "EUC-KR", - "preferred_font" => "Gulim,10,0" - ), - "nl" => array( - "langcode" => "0x413 Dutch (Netherlands)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "pl" => array( - "langcode" => "0x415 Polish", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT - ), - "pt_BR" => array( - "langcode" => "0x416 Portuguese (Brazil)", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "ro" => array( - "langcode" => "0x418 Romanian", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT - ), - "ru" => array( - "langcode" => "0x419 Russian", - "preferred_charset" => "Windows-1251", - "mime_charset_name" => "Windows-1251", - "preferred_font" => $DEFAULT_FONT - ), - "sk" => array( - "langcode" => "0x41b Slovak", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT - ), - "sl" => array( - "langcode" => "0x424 Slovenian", - "preferred_charset" => "Windows-1250", - "mime_charset_name" => "Windows-1250", - "preferred_font" => $DEFAULT_FONT - ), - "sv" => array( - "langcode" => "0x41d Swedish", - "preferred_charset" => "Windows-1252", - "mime_charset_name" => "Windows-1252", - "preferred_font" => $DEFAULT_FONT - ), - "zh" => array( - "langcode" => "0x804 Simplified Chinese", - "preferred_charset" => "CP936", - "mime_charset_name" => "gb2312", - "preferred_font" => "simsun,10,0" - ) -); -?> diff --git a/docs/chm/common.php b/docs/chm/common.php deleted file mode 100755 index 2f9cfe55..00000000 --- a/docs/chm/common.php +++ /dev/null @@ -1,75 +0,0 @@ -|[^a-zA-Z1-9][^>]*>)/Ue", "preg_replace('/[\r\n]{1,2}/U', ' ', \"<\$1 \$2\")", file_get_contents($filename)); - } else { - $buf = preg_replace("/[\r|\n]{1,2}/U", " ", file_get_contents($filename)); - } - $charset = detectDocumentCharset($buf); - - if ($charset === false) $charset = "UTF-8"; - - if ($charset != $INTERNAL_CHARSET) { - if (function_exists("iconv")) { - $buf = iconv($charset, $INTERNAL_CHARSET, $buf); - } elseif (function_exists("mb_convert_encoding")) { - $buf = mb_convert_encoding($buf, $INTERNAL_CHARSET, $charset); - } elseif (preg_match("/^UTF-?8$/i", $INTERNAL_CHARSET) && preg_match("/^(ISO-8859-1|WINDOWS-1252)$/i", $charset)) { - $buf = utf8_encode($buf); - } else { - die("charset conversion function is not available."); - } - } - return $buf; -} - -function fputs_wrapper($fp, $str) -{ - fputs($fp, convertCharset($str)); -} - -function convertCharset($buf) -{ - global $LANGUAGE, $LANGUAGES, $INTERNAL_CHARSET; - - $charset = $LANGUAGES[$LANGUAGE]['preferred_charset']; - - if ($charset != $INTERNAL_CHARSET) { - if (function_exists("iconv")) { - $buf = iconv($INTERNAL_CHARSET, "$charset//TRANSLIT", $buf); - } elseif (function_exists("mb_convert_encoding")) { - $buf = mb_convert_encoding($buf, $charset, $INTERNAL_CHARSET); - } elseif (preg_match("/^UTF-?8$/i", $INTERNAL_CHARSET) && preg_match("/^(ISO-8859-1|WINDOWS-1252)$/i", $charset)) { - $buf = utf8_decode($buf); - } else { - die("$LANGUAGE locale is not supported."); - } - } - return $buf; -} // oneLiner() function end - -// Returns the name of character set in the given document -function detectDocumentCharset($doc) -{ - if (preg_match('/]+CHARSET=["\'\s]?([\w\d-]+)["\'\s]?\s*>/iS', $doc, $reg)) { - return $reg[1]; - } - return false; -} - -function setDocumentCharset($doc, $charset) -{ - return preg_replace("/()/iU", "\$1$charset\$3", $doc); -} -?> - diff --git a/docs/chm/make_chm.bat b/docs/chm/make_chm.bat deleted file mode 100755 index 88b95ed4..00000000 --- a/docs/chm/make_chm.bat +++ /dev/null @@ -1,54 +0,0 @@ -@echo off - -rem !! Please read the make_chm.README file for information -rem !! about how to build a "php_manual_lang.chm" file. - -rem Path of the PHP executable -set PHP_PATH=php - -rem Path of the Help Compiler command line tool -set PHP_HELP_COMPILER=C:\progra~1\htmlhe~1\hhc.exe - -rem The source directory with the original DSSSL made HTML -set PHP_HELP_COMPILE_DIR=html - -rem The directory, where the fancy files need to be copied -set PHP_HELP_COMPILE_FANCYDIR=chm\fancy - -rem ========================================================== -rem !!!!! DO NOT MODIFY ANYTHING BELOW THIS LINE !!!!! -rem ========================================================== - -echo. - -set PHP_HELP_COMPILE_LANG=%1 -if "%1" == "" set PHP_HELP_COMPILE_LANG=en - -echo Language choosen: %PHP_HELP_COMPILE_LANG% - -if a%2a == anormala goto skipfancy - -echo Now generating the fancy manual in %PHP_HELP_COMPILE_FANCYDIR% dir... -IF NOT EXIST %PHP_HELP_COMPILE_FANCYDIR%\NUL md %PHP_HELP_COMPILE_FANCYDIR% -%PHP_PATH% chm\make_chm_fancy.php - -goto normal - -:skipfancy -set PHP_HELP_COMPILE_FANCYDIR= -echo Skipping fancy manual generation... - -:normal - -echo Now running the toc and project file generator script... -%PHP_PATH% chm\make_chm.php - -echo Compiling the actual helpfile (smarty_manual_%PHP_HELP_COMPILE_LANG%.chm)... -%PHP_HELP_COMPILER% chm\smarty_manual_%PHP_HELP_COMPILE_LANG%.hhp - -echo. -echo Cleaning up the directory -del chm\smarty_manual_%PHP_HELP_COMPILE_LANG%.hh? - -echo Done! -echo. diff --git a/docs/chm/make_chm.php b/docs/chm/make_chm.php deleted file mode 100755 index 14ffe7f6..00000000 --- a/docs/chm/make_chm.php +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - - - -
    '; - -makeProjectFile(); -makeContentFiles(); - -// Generate the HTML Help content files -function makeContentFiles() -{ - global $LANGUAGE, $MANUAL_TITLE, $HEADER, $MAIN_FILES, - $HTML_PATH, $INDEX_IN_HTML, $FIRST_PAGE; - - $toc = fopen("chm/smarty_manual_$LANGUAGE.hhc", "w"); - $index = fopen("chm/smarty_manual_$LANGUAGE.hhk", "w"); - - // Write out file headers - fputs_wrapper($toc, $HEADER); - fputs_wrapper($index, $HEADER); - - // Read original index file and drop out newlines - $indexline = oneLiner("$HTML_PATH/$INDEX_IN_HTML"); - - // Print out the objects, autoparsing won't find - mapAndIndex($MANUAL_TITLE, $FIRST_PAGE, " ", $toc, $index, 21); - - // There is a fancy index - if ($FIRST_PAGE != $INDEX_IN_HTML) { - - // Find the name of the Table of Contents - preg_match('|CLASS=\"TOC\" *>
    (.*)([^<]*)|U', $indexline, $match); - if (empty($match[1])) { // Fallback - $match[1] = "Preface"; - } - mapAndIndex($match[1], "preface.html", " ", $toc, $index); - - // Now autofind the main pages - $MAIN_REGEXP = join("|", $MAIN_FILES); - - preg_match_all("![IVX]+\. ([^<]+).*(?:)?(?:[IVX]|\n"); - preg_match_all('!\d+\. ([^<]*)!iSU', $matchinfo[0], $subpages, PREG_SET_ORDER); - - foreach ($subpages as $spinfo) { - mapAndIndex($spinfo[2], $spinfo[1], " ", $toc, $index); - findDeeperLinks($spinfo[1], $toc, $index); - } - fputs_wrapper($toc, "\n
\n"); - } - - // Write out closing line, and end files - fputs_wrapper($index, " \n\n"); - fputs_wrapper($toc, " \n\n"); - fclose($index); - fclose($toc); -} // makeContentfiles() function end - -// Generates the HTML Help project file -function makeProjectFile() -{ - global $LANGUAGE, $MANUAL_TITLE, $LANGUAGES, - $HTML_PATH, $FANCY_PATH, $INDEX_IN_HTML, - $FIRST_PAGE; - - // Try to find the fancy index file - if (file_exists("$FANCY_PATH/fancy-index.html")) { - $FIRST_PAGE = 'fancy-index.html'; - } else { - $FIRST_PAGE = $INDEX_IN_HTML; - } - - $FIRST_PAGEP = substr($FANCY_PATH, 4) . "\\$FIRST_PAGE"; - - // Start writing the project file - $project = fopen("chm/smarty_manual_$LANGUAGE.hhp", "w"); - fputs_wrapper($project, "[OPTIONS]\n"); - fputs_wrapper($project, "Compatibility=1.1 or later\n"); - fputs_wrapper($project, "Compiled file=smarty_manual_$LANGUAGE.chm\n"); - fputs_wrapper($project, "Contents file=smarty_manual_$LANGUAGE.hhc\n"); - fputs_wrapper($project, "Index file=smarty_manual_$LANGUAGE.hhk\n"); - fputs_wrapper($project, "Default Window=smarty\n"); - fputs_wrapper($project, "Default topic=$FIRST_PAGEP\n"); - fputs_wrapper($project, "Display compile progress=Yes\n"); - fputs_wrapper($project, "Full-text search=Yes\n"); - - // Get the proper language code from the array - fputs_wrapper($project, "Language={$LANGUAGES[$LANGUAGE]["langcode"]}\n"); - - // Now try to find out how the manual named in the actual language - // this must be in the index.html file as the title (DSSSL generated) - $content = oneLiner("$HTML_PATH/$INDEX_IN_HTML"); - if (preg_match("|([^<]*)|U", $content, $found)) { - $MANUAL_TITLE = $found[1]; - } else { // Fallback - $MANUAL_TITLE = "Smarty Manual"; - } - - fputs_wrapper($project, "Title=$MANUAL_TITLE\n"); - fputs_wrapper($project, "Default Font={$LANGUAGES[$LANGUAGE]['preferred_font']}\n"); - - // Define the phpdoc window style (adds more functionality) - fputs_wrapper($project, "\n[WINDOWS]\nsmarty=\"$MANUAL_TITLE\",\"smarty_manual_$LANGUAGE.hhc\",\"smarty_manual_$LANGUAGE.hhk\"," . - "\"$FIRST_PAGEP\",\"$FIRST_PAGEP\",,,,,0x23520,,0x386e,,,,,,,,0\n"); - - // Write out all the filenames as in FANCY_PATH - fputs_wrapper($project, "\n[FILES]\n"); - $handle = opendir($FANCY_PATH); - while (false !== ($file = readdir($handle))) { - if ($file != "." && $file != "..") { - fputs_wrapper($project, substr($FANCY_PATH, 4)."\\$file\n"); - } - } - closedir($handle); - fclose($project); -} // makeProjectFile() function end - -// Print out a SiteMap object for a file -function mapAndIndex($name, $local, $tabs, $toc, $index, $imgnum = "auto") -{ - global $FANCY_PATH; - $name = str_replace('"', '"', $name); - - fputs_wrapper($toc, " -$tabs
  • -$tabs -$tabs -"); - - if ($imgnum != "auto") { - fputs_wrapper($toc, "$tabs \r\n"); - } - fputs_wrapper($toc, "$tabs \r\n"); - - fputs_wrapper($index, " -
  • - - -
  • -"); - -} // mapAndIndex() function end - - -// Process a file, and find any links need to be presented in tree -function findDeeperLinks ($filename, $toc, $index) -{ - global $HTML_PATH; - $contents = oneLiner("$HTML_PATH/$filename"); - - // Find all sublinks - if (preg_match_all("!([^<]*)!U", $contents, $matches, PREG_SET_ORDER)) { - - // Print out the file informations for all the links - fputs_wrapper($toc, "\n
      "); - foreach ($matches as $onematch) { - $param["html"] = $onematch[1]; - if (!empty($onematch[3])) { - $param["html"] .= $onematch[3]; - } - $param["title"] = strip_tags($onematch[4]); - mapAndIndex($param["title"], $param["html"], " ", $toc, $index); - } - fputs_wrapper($toc, "
    \n"); - - } else { - echo "no deeper TOC info found in $filename\n"; - } - -} // findDeeperLinks() function end -?> diff --git a/docs/chm/make_chm_fancy.php b/docs/chm/make_chm_fancy.php deleted file mode 100755 index 478d5420..00000000 --- a/docs/chm/make_chm_fancy.php +++ /dev/null @@ -1,131 +0,0 @@ - fancy HTML -function fancy_design($fname) -{ - global $HTML_PATH, $FANCY_PATH, $LANGUAGE, $LANGUAGES, $counter, $original_index, $publication_date; - - // Get the contents of the file from $HTML_PATH - $content = oneLiner("$HTML_PATH/$fname", true); - - // CSS file linking - $content = preg_replace("|/", '', $content); - - // Whole page table and backgrounds - $wpbegin = '
    '; - $bnavt = ''; - $lnavt = ''; - $space = ''; - - // Navheader backgound - $content = preg_replace("/<\\/DIV\\s*>/Us", - $wpbegin . '' . $lnavt . '

    ' . $space . '
    ', $content); - - // Navfooter backgound - $content = preg_replace("/<\\/DIV\\s*>/Us", - '
    ' . $space . '
    ', $content); - - // Fix copyright page fault... - if ($fname == "copyright.html") { - $content = preg_replace("/&copy;/", "©", $content); - $content = preg_replace("/)|", "\\1 ", $content); - $content = preg_replace("|( )|", "\\1 ", $content); - } - - // Fix the original manual index to look far better... - elseif ($fname == "$original_index") { - - // Find out manual generation date - if (preg_match('|([\\d-]+)
    |U', $content, $match)) { - $publication_date = $match[1]; - } else { - $publication_date = 'n/a'; - } - - // Modify the index file to meet our needs - preg_match('|CLASS=\"title\"\\s*>(.*)(.*) 
    -
    '; - $content = preg_replace("/(/Us", "", $content); - preg_match('|(.*)|U', $content, $match); - $content = preg_replace("|(CLASS=\"title\"\\s+>).*().*((.*)|U", "", $content); - - } - - // Print out that new file to $FANCY_PATH - $fp = fopen("$FANCY_PATH/$fname", "w"); - $content = setDocumentCharset($content, $LANGUAGES[$LANGUAGE]['mime_charset_name']); - fputs_wrapper($fp, $content); - fclose($fp); - - // Print out a message to see the progress - echo "$FANCY_PATH/$fname ready...\n"; - $counter++; - -} // fancy_design() function end - -?> diff --git a/docs/chm/make_chm_spc.gif b/docs/chm/make_chm_spc.gif deleted file mode 100755 index 1d11fa9ada9e93505b3d736acb204083f45d5fbf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 ucmZ?wbhEHbWMp7uX!y@?;J^U}1_s5SEQ|~c3=BFT0wlx0#N@)rU=0A%AqP7E diff --git a/docs/chm/make_chm_style.css b/docs/chm/make_chm_style.css deleted file mode 100755 index 01e87da6..00000000 --- a/docs/chm/make_chm_style.css +++ /dev/null @@ -1,57 +0,0 @@ -BODY { - FONT-FAMILY: Verdana,arial,helvetica,sans-serif; FONT-SIZE: 10pt -} -TD { - FONT-FAMILY: Verdana,arial,helvetica,sans-serif; FONT-SIZE: 10pt -} -TH { - FONT-FAMILY: Verdana,arial,helvetica,sans-serif; FONT-SIZE: 10pt -} -P { - MARGIN-BOTTOM: 2pt; MARGIN-TOP: 10pt -} -EM { - FONT-STYLE: italic; FONT-WEIGHT: bold -} -UL { - MARGIN-TOP: 10pt -} -OL { - MARGIN-TOP: 10pt -} -PRE { - FONT-FAMILY: "andale mono", "monotype.com", "courier new", monospace; FONT-SIZE: 10pt -} -A.nav { - COLOR: #000066; TEXT-DECORATION: none; FONT-WEIGHT: bold -} -A.nav:hover { - COLOR: #000066; TEXT-DECORATION: underline; FONT-WEIGHT: bold -} -H1 { - COLOR: #000066; FONT-FAMILY: tahoma,arial,helvetica,sans-serif; FONT-SIZE: 18pt; FONT-WEIGHT: bold; MARGIN-BOTTOM: 5pt -} -H2 { - COLOR: #000066; FONT-FAMILY: tahoma,arial,helvetica,sans-serif; FONT-SIZE: 14pt; FONT-WEIGHT: bold; MARGIN-BOTTOM: 5pt -} -H3 { - COLOR: #000066; FONT-FAMILY: tahoma,arial,helvetica,sans-serif; FONT-SIZE: 12pt; FONT-WEIGHT: bold; MARGIN-BOTTOM: 5pt -} -SMALL { - FONT-FAMILY: arial,helvetica,sans-serif; FONT-SIZE: 8.5pt -} -.tableTitle { - FONT-FAMILY: arial,helvetica,sans-serif; FONT-SIZE: 12pt; FONT-WEIGHT: bold -} -.tableExtras { - COLOR: #ffffff; FONT-FAMILY: arial,helvetica,sans-serif; FONT-SIZE: 8.5pt -} - -TABLE.warning, TABLE.caution { - border-color : #B22222; - background-color : #EEE8AA; - border-width : 2; - font : bold normal Arial, Helvetica, sans-serif; - margin : 0; - border-spacing : 0px; -} diff --git a/docs/configure.in b/docs/configure.in deleted file mode 100755 index 38f3438c..00000000 --- a/docs/configure.in +++ /dev/null @@ -1,428 +0,0 @@ -dnl $Id$ - -dnl autoconf initialisation -AC_INIT() -WORKDIR=`pwd` -SRCDIR=$srcdir -AC_SUBST(SRCDIR) - -AC_SUBST(WORKDIR) - -dnl debug output -echo "file versions" -for file in ./*.in; do - fgrep '$Id' $file | head -n1 | sed -e"s/^.*: //g" | sed -e"s/200.\/.*$//g" -done -echo "configure options: $@" -echo "working directory: $WORKDIR" -echo - -dnl {{{ check for support programs - -dnl {{{ check for PHP - -dnl use given argument, if any, else search in path -AC_ARG_WITH(php, -[ --with-php=PATH look for PHP executable needed for helper scripts], -[ - if test $withval != "yes"; then - AC_MSG_CHECKING([for php]) - if test -x $withval; then - PHP=$withval - AC_MSG_RESULT($PHP) - else - PHP=no - AC_MSG_RESULT(no) - AC_MSG_ERROR([$withval: not an executable file]) - fi - else - if test -e ../../phpdoc-tools/php.bat ; then - AC_MSG_CHECKING([for php]) - PHP=../../phpdoc-tools/php.bat - AC_MSG_RESULT($PHP) - else - AC_PATH_PROG(PHP,"php",no) - if test $PHP = "no"; then - AC_PATH_PROG(PHP4,"php4",no) - PHP=$PHP4 - fi - fi - fi -],[ - if test -e ../../phpdoc-tools/php.bat ; then - AC_MSG_CHECKING([for php]) - PHP=../../phpdoc-tools/php.bat - AC_MSG_RESULT($PHP) - else - AC_PATH_PROG(PHP,"php",no) - if test $PHP = "no"; then - AC_PATH_PROG(PHP4,"php4",no) - PHP=$PHP4 - fi - fi -] -) -if test $PHP = "no"; then - AC_MSG_ERROR([no PHP binary found]) -fi -AC_SUBST(PHP) - -dnl }}} - -dnl {{{ check for the Jade or OpenJade DSSSL parser - -dnl use given argument, if any, else search in path - -AC_ARG_WITH(jade, -[ --with-jade=PATH look for jade or openjade executable],[ - if test $withval != "yes"; then - AC_MSG_CHECKING([for jade]) - if test -x $withval; then - JADE=$withval - AC_MSG_RESULT($JADE) - else - JADE=no - AC_MSG_RESULT(no) - AC_MSG_ERROR([$withval: not an executable file]) - fi - else - if test -e ../../phpdoc-tools/jade/jade.exe ; then - AC_MSG_CHECKING([for jade]) - JADE=../../phpdoc-tools/jade/jade.exe - AC_MSG_RESULT($JADE) - else - AC_PATH_PROG(OPENJADE,"openjade",no) - if test $OPENJADE = "no"; then - AC_PATH_PROG(JADE,"jade",no) - else - JADE=$OPENJADE - fi - fi - fi -],[ - if test -e ../../phpdoc-tools/jade/jade.exe ; then - AC_MSG_CHECKING([for jade]) - JADE=../../phpdoc-tools/jade/jade.exe - AC_MSG_RESULT($JADE) - else - AC_PATH_PROG(OPENJADE,"openjade",no) - if test $OPENJADE = "no"; then - AC_PATH_PROG(JADE,"jade",no) - else - JADE=$OPENJADE - fi - fi -] -) -if test $JADE = "no"; then - AC_MSG_ERROR([can't find jade or openjade]) -fi - -if test ${JADE:0:18} = "../../phpdoc-tools"; then - WINJADE=1 -else - WINJADE=0 -fi - -AC_SUBST(JADE) -AC_SUBST(WINJADE) - -dnl }}} - -dnl {{{ check for nsgmls or onsgmls - -AC_ARG_WITH(nsgmls, -[ --with-nsgmls=PATH look for nsgmls or onsgmls executable],[ - if test $withval != "yes"; then - AC_MSG_CHECKING([for nsgmls]) - if test -x $withval; then - NSGMLS=$withval - AC_MSG_RESULT($NSGMLS) - else - NSGMLS=no - AC_MSG_RESULT(no) - AC_MSG_ERROR([$withval: not an executable file]) - fi - else - if test -e ../../phpdoc-tools/jade/nsgmls.exe ; then - AC_MSG_CHECKING([for nsgmls]) - NSGMLS=../../phpdoc-tools/jade/nsgmls.exe - AC_MSG_RESULT($NSGMLS) - else - AC_PATH_PROG(ONSGMLS,"onsgmls",no) - if test $ONSGMLS = "no"; then - AC_PATH_PROG(NSGMLS,"nsgmls",no) - else - NSGMLS=$ONSGMLS - fi - fi - fi -],[ - if test -e ../../phpdoc-tools/jade/nsgmls.exe ; then - AC_MSG_CHECKING([for nsgmls]) - NSGMLS=../../phpdoc-tools/jade/nsgmls.exe - AC_MSG_RESULT($NSGMLS) - else - AC_PATH_PROG(ONSGMLS,"onsgmls",no) - if test $ONSGMLS = "no"; then - AC_PATH_PROG(NSGMLS,"nsgmls",no) - else - NSGMLS=$ONSGMLS - fi - fi -] -) -if test $NSGMLS = "no"; then - AC_MSG_ERROR([can't find nsgmls or onsgmls]) -fi -AC_SUBST(NSGMLS) - -dnl }}} - -dnl {{{ check for FOP - -AC_ARG_WITH(fop, -[ --with-fop=PATH look for fop], -[ - if test $withval != "yes"; then - AC_MSG_CHECKING([for FOP]) - if test -x $withval -a -f $withval - then - FOP=$withval - AC_MSG_RESULT($FOP) - else - FOP=no - AC_MSG_RESULT(no) - AC_MSG_ERROR([$withval: not an executable file]) - fi - else - if test -e ../../phpdoc-tools/fop/fop.bat ; then - AC_MSG_CHECKING([for FOP]) - FOP=../../phpdoc-tools/fop/fop.bat - AC_MSG_RESULT($FOP) - else - AC_PATH_PROG(FOP,"fop",no) - fi - fi -],[ - if test -e ../../phpdoc-tools/fop/fop.bat ; then - AC_MSG_CHECKING([for FOP]) - FOP=../../phpdoc-tools/fop/fop.bat - AC_MSG_RESULT($FOP) - else - AC_PATH_PROG(FOP,"fop",no) - fi -] -) -if test $FOP = "no"; then - AC_MSG_WARN([no fop binary found, PDF generation won't work]) -fi -dnl }}} - -dnl {{{ check for xmllint - -AC_ARG_WITH(xmllint, -[ --with-xmllint=PATH check for xmllint], -[ - if test $withval != "yes"; then - AC_MSG_CHECKING([for xmllint]) - if test -x $withval -a -f $withval - then - XMLLINT=$withval - AC_MSG_RESULT($XMLLINT) - else - XMLLINT=no - AC_MSG_RESULT(no) - AC_MSG_ERROR([$withval: no xmllint binary found]) - fi - else - if test -e ../../phpdoc-tools/libxml/xmllint.exe ; then - AC_MSG_CHECKING([for xmllint]) - XSLTPROC=../../phpdoc-tools/libxml/xmllint.exe - AC_MSG_RESULT($XMLLINT) - else - AC_PATH_PROG(XMLLINT,"xmllint",no) - fi - fi -],[ - if test -e ../../phpdoc-tools/libxml/xmllint.exe ; then - AC_MSG_CHECKING([for xmllint]) - XMLLINT=../../phpdoc-tools/libxml/xmllint.exe - AC_MSG_RESULT($XMLLINT) - else - AC_PATH_PROG(XMLLINT,"xmllint",no) - fi -] -) -if test $XMLLINT = "no"; then - AC_MSG_WARN([no xmllint binary found, XML Validation won't work]) -fi -AC_SUBST(XMLLINT) - -dnl }}} - -dnl }}} - -dnl {{{ check for catalog files - -CATALOG="" - -dnl iso-ents catalog file -dnl The 4.1.2 DocBook DTD also includes entity files, but they cannot be used with Jade! -if test -e ./entities/ISO/catalog -then - CATALOG="$CATALOG -c ./entities/ISO/catalog" -fi - -dnl DSSSL catalog file -if test -e ./dsssl/docbook/catalog -then - CATALOG="$CATALOG -c ./dsssl/docbook/catalog" -fi - -dnl For windows (and maybe *nix too?) users lacking catalog-files - -dnl jade catalog file -# how about using JADEPATH? You should replace the last 4 chars ('jade') with catalog -# !! JADEPATH may not properly be set on windows, so do not use it !! -if test -e ../../phpdoc-tools/jade/catalog -then - CATALOG="$CATALOG -c ../../phpdoc-tools/jade/catalog" -fi -dnl SuSE openjade setup -if test -e /usr/share/sgml/CATALOG.docbk41 -then - CATALOG="$CATALOG -c /usr/share/sgml/CATALOG.docbk41" -fi -if test -e /usr/share/sgml/CATALOG.jade_dsl -then - CATALOG="$CATALOG -c /usr/share/sgml/CATALOG.jade_dsl" -fi - -dnl As a very last option, include default catalog files from phpdoc -dnl (imported from the openjade distribution) -if test -e $srcdir/dsssl/defaults/catalog -then - CATALOG="$CATALOG -c ./dsssl/defaults/catalog" -fi - -AC_SUBST(CATALOG) - -dnl }}} - -dnl {{{ language specific stuff - -AC_MSG_CHECKING(for language) -BUILD_DATE=`date '+%Y-%m-%d'` - -AC_ARG_WITH(lang, -[ --with-lang=LANG choose a language to work with],[ - if test "$withval" = "yes"; then - LANG=en - AC_MSG_RESULT([en (default)]) - else - if test ! -d "./$withval"; then - AC_MSG_RESULT() - AC_MSG_ERROR(Language \"$withval\" not supported!) - else - LANG=$withval - AC_MSG_RESULT($LANG) - fi - - BUILD_DATE=`date '+%d-%m-%Y'` - fi - - case $withval in - ja) - BUILD_DATE=`date '+%Y/%m/%d'` - ;; - *) - esac -],[ - LANG=en - AC_MSG_RESULT([en (default)]) -]) -AC_SUBST(LANG) -AC_SUBST(BUILD_DATE) - -case "$LANG" in - ru) ENCODING="utf-8" - FOP="$FOP -c fop/ru.cfg";; - de) ENCODING="utf-8";; - es) ENCODING="utf-8";; - fr) ENCODING="utf-8";; - id) ENCODING="utf-8";; - it) ENCODING="utf-8";; - ja) ENCODING="utf-8";; - pt_BR) ENCODING="utf-8";; - *) ENCODING="ISO-8859-1";; -esac - -SP_OPTIONS="SP_ENCODING=XML SP_CHARSET_FIXED=YES" - -AC_SUBST(ENCODING) -AC_SUBST(FOP) -AC_SUBST(SP_OPTIONS) - -dnl }}} - -dnl {{{ makefile targets for configure-generated files - -rm -f autogenerated_rules -( -for file in `find . -name "*.in"`; do - case "$file" in - ./configure.in) - echo configure: configure.in - printf '\t autoconf' - echo - ;; - ./manual.xml.in) - ;; - *) - echo `dirname $file`/`basename $file .in`: '$(srcdir)'/$file ./config.status - printf '\t CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status' - echo - esac -done -) > autogenerated_rules -AUTOGENERATED_RULES=autogenerated_rules -AC_SUBST_FILE(AUTOGENERATED_RULES) -rm -f autogenerated_rules - -dnl }}} - -dnl {{{ generate output files - -dnl {{{ find all *.in files and process them with AC_OUTPUT -for infile in `find $srcdir -name "*.in"` -do - if test `basename $infile` != "configure.in" - then - outfile=`basename $infile .in` - outdir=`dirname $infile` - outdir=`echo $outdir/ | sed -e"s|$srcdir/||"` - OUTFILES="$OUTFILES ./$outdir$outfile" - fi -done -AC_OUTPUT($OUTFILES) -dnl }}} - -dnl {{{ generate entity mapping file, missing entities and IDs - -dnl if we have PHP use it for all of these things -if test $PHP != "no" -then - - dnl create entity mapping file - $PHP -q ./scripts/file-entities.php - -else - - echo ERROR: configure process cannot continue, PHP is not found - -fi - -dnl }}} - -dnl }}} diff --git a/docs/de/appendixes/bugs.xml b/docs/de/appendixes/bugs.xml deleted file mode 100644 index 7ac42803..00000000 --- a/docs/de/appendixes/bugs.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - BUGS - - Bitte konsultieren Sie die Datei BUGS welche mit Smarty ausgeliefert wird, - oder die Webseite. - - - diff --git a/docs/de/appendixes/resources.xml b/docs/de/appendixes/resources.xml deleted file mode 100644 index 27d42eb1..00000000 --- a/docs/de/appendixes/resources.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Weiterführende Informationen - - Smarty's Homepage erreicht man unter &url.smarty;. Sie können der Smarty - Mailingliste beitreten in dem sie ein E-mail an - &ml.general.sub;. Das Archiv der Liste ist hier &url.ml.archive; einsehbar. - - - diff --git a/docs/de/appendixes/tips.xml b/docs/de/appendixes/tips.xml deleted file mode 100644 index 0009a091..00000000 --- a/docs/de/appendixes/tips.xml +++ /dev/null @@ -1,426 +0,0 @@ - - - - - Tips & Tricks - - - - Handhabung unangewiesener Variablen - - Manchmal möchten Sie vielleicht, dass anstatt einer Leerstelle ein - Standardwert ausgegeben wird - zum Beispiel um im - Tabellenhintergrund "&nbsp;" auszugeben, damit er korrekt - angezeigt wird. Damit dafür keine {if} Anweisung verwendet - werden muss, gibt es in Smarty eine Abkürzung: die Verwendung des - default Variablen-Modifikators. - - - "&nbsp;" ausgeben wenn eine Variable nicht zugewiesen ist - - - - - - Siehe auch default - (Standardwert) und Handhabung von - Standardwerten. - - - - - Handhabung von Standardwerten - - Wenn eine Variable in einem Template häufig zum Einsatz kommt, - kann es ein bisschen störend wirken, den default-Modifikator - jedes mal anzuwenden. Sie können dies umgehen, indem Sie der - Variable mit der {assign} Funktion einen - Standardwert zuweisen. - - - Zuweisen des Standardwertes einer Variable - - - - - - Siehe auch default - (Standardwert) und Handhabung nicht zugewiesener - Variablen. - - - - - Variablen an eingebundene Templates weitergeben - - Wenn die Mehrzahl Ihrer Templates den gleichen Header und Footer - verwenden, lagert man diese meist in eigene Templates aus und - bindet diese mit{include} ein. Was - geschieht aber wenn der Header einen seitenspezifischen Titel - haben soll? Smarty bietet die Möglichkeit, dem eingebundenen - Template, Variablen als Attribute zu - übergeben. - - - Die Titel-Variable dem Header-Template zuweisen - - mainpage.tpl - Beim Aufbau der Hauptseite - wird der Titel "Hauptseite" an header.tpl - übergeben und dort verwendet. - - - - - - archives.tpl - - - - - - header.tpl - Zur Info: wenn kein $titel - übergeben wurde wird hier mittels des default-Modifikator der - Titel "Nachrichten" verwendet. - - - - -{$title|default:"Nachrichten"} - - -]]> - - - footer.tpl - - - - -]]> - - - - - Zeitangaben - - Um dem Template Designer höchstmögliche Kontrolle über die Ausgabe - von Zeitangaben/Daten zu ermöglichen, ist es empfehlenswert Daten - immer als Timestamp zu - übergeben. Der Designer kann danach die Funktion date_format für die - Formatierung verwenden. - - - Bemerkung: Seit Smarty 1.4.0 ist es möglich jede Timestamp zu - übergeben, welche mit strtotime() ausgewertet werden kann. Dazu - gehören Unix-Timestamps und MySQL-Timestamps. - - - Die Verwendung von date_format - - - - - AUSGABE: - - - - - - - - -AUSGABE: - - - - - - - - - - Falls {html_select_date} - in einem Template verwendet wird, hat der Programmierer die - Möglichkeit den Wert wieder in ein Timestamp-Format zu - ändern. Dies kann zum Beispiel wie folgt gemacht werden: - - - Formular Datum-Elemente nach Timestamp konvertieren - - - - - - - Siehe auch - {html_select_date}, - {html_select_time}, - date_format - und $smarty.now, - - - - WAP/WML - - WAP/WML Templates verlangen, dass ein Content-Type Header im - Template angegeben wird. Der einfachste Weg um dies zu tun, wäre, - eine Funktion zu schreiben, welche den Header ausgibt. Falls sie - den Caching Mechanismus verwenden, sollten Sie auf das - 'insert'-Tag zurückgreifen ('insert'-Tags werden nicht gecached), - um ein optimales Ergebnis zu erzielen. Achten Sie darauf, dass vor - der Ausgabe des Headers keine Daten an den Client gesendet werden, - da die gesendeten Header-Daten ansonsten von Client verworfen - werden. - - - Die verwendung von 'insert' um einen WML Content-Type header zu senden - - -]]> - - - Ihr Template muss danach wie folgt beginnen: - - - - - - - - - - - - -

    - Welcome to WAP with Smarty! - Willkommen bei WAP mit Smarty! - OK klicken um weiterzugehen... -

    -
    - - -

    - Einfach, oder? -

    -
    -
    -]]> -
    -
    -
    - - Template/Script Komponenten - - Normalerweise werden Variablen dem Template wie folgt zugewiesen: - In Ihrer PHP-Applikation werden die Variablen zusammengestellt - (zum Beispiel mit Datenbankabfragen). Danach kreieren Sie eine - Instanz von Smarty, weisen die Variablen mit assign() zu und geben das Template mit - display() aus. Wenn wir also - zum Beispiel einen Börsenticker in unserem Template haben, stellen - wir die Kursinformationen in unserer Anwendung zusammen, weisen - Sie dem Template zu und geben es aus. Wäre es jedoch nicht nett - diesen Börsenticker einfach in ein Template einer anderen - Applikation einbinden zu können ohne deren Programmcode zu ändern? - - - Sie können PHP-Code mit {php}{/php} in Ihre Templates einbetten. - So können Sie Templates erstellen, welche die Datenstrukturen zur - Anweisung der eigenen Variablen enthalten. Durch die Bindung von - Template und Logik entsteht so eine eigenständig lauffähige - Komponente. - - - Template/Script Komponenten - - function.load_ticker.php - - Diese Datei gehört ins $plugins directory - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - - Verschleierung von E-mail Adressen - - Haben Sie sich auch schon gewundert, wie Ihre E-mail Adresse auf - so viele Spam-Mailinglisten kommt? Ein Weg, wie Spammer E-mail - Adressen sammeln, ist über Webseiten. Um dieses Problem zu - bekämpfen, können sie den 'mailto'-Plugin verwenden. Er ändert - die Zeichenfolge mit Javascript so, dass sie im HTML Quellcode - nicht lesbar ist, jedoch von jedem Browser wieder zusammengesetzt - werden kann. Den {mailto}-Plugin gibt es - im Smarty-Repository auf http://smarty.php.net. Laden sie den - Plugin herunter und speichern Sie ihn im 'plugins' Verzeichnis. - - - Beispiel von verschleierung von E-mail Adressen - -{* in index.tpl *} - -Anfragen bitte an -{mailto address=$EmailAddress encode="javascript" subject="Hallo"} -senden - - - - Technische Details - - Die Codierung mit Javascript ist nicht sehr sicher, da ein - möglicher Spammer die Decodierung in sein Sammelprogramm - einbauen könnte. Es wird jedoch damit gerechnet, dass, da - Aufwand und Ertrag sich nicht decken, dies nicht oft der Fall - ist. - - - - Siehe auch escape - und {mailto}. - - -
    - diff --git a/docs/de/appendixes/troubleshooting.xml b/docs/de/appendixes/troubleshooting.xml deleted file mode 100644 index dde72607..00000000 --- a/docs/de/appendixes/troubleshooting.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - Problemlösung - - - Smarty/PHP Fehler - - Smarty kann verschiedene Fehler-Typen, wie fehlende Tag-Attribute - oder syntaktisch falsche Variablen-Namen abfangen. Wenn dies - geschieht, wird Ihnen eine Fehlermeldung ausgegeben. Beispiel: - - - Smarty Fehler - - -]]> - - - - In der ersten Zeile zeigt Smarty den Template-Namen, die - Zeilennummer und den Fehler an. Darauf folgt die betroffene Zeile - in der Smarty Klasse welche den Fehler erzeugt hat. - - - Es gibt gewisse Fehlerkonditionen, die Smarty nicht abfangen kann (bsp: fehlende End-Tags). Diese Fehler - resultieren jedoch normalerweise in einem PHP-'compile-time' Fehler. - - - - PHP Syntaxfehler - - -]]> - - - - Wenn ein PHP Syntaxfehler auftritt, wird Ihnen die Zeilennummer - des betroffenen PHP Skriptes ausgegeben, nicht die des - Templates. Normalerweise können Sie jedoch das Template - anschauen um den Fehler zu lokalisieren. Schauen sie insbesondere - auf Folgendes: fehlende End-Tags in einer {if}{/if} Anweisung oder - in einer {section}{/section} und die Logik eines {if} - Blocks. Falls Sie den Fehler so nicht finden, können Sie auch - das kompilierte Skript öffnen und zu der betreffenden - Zeilennummer springen um herauszufinden welcher Teil des Templates - den Fehler enthält. - - - - diff --git a/docs/de/bookinfo.xml b/docs/de/bookinfo.xml deleted file mode 100755 index 2184ee73..00000000 --- a/docs/de/bookinfo.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Smarty - die kompilierende PHP Template-Engine - - - MonteOhrt <monte at ohrt dot com> - - - AndreiZmievski <andrei@php.net> - - - - - AndreasHalter <smarty@andreashalter.ch> (Deutsche Übersetzung) - - - ThomasSchulz <ths@4bconsult.de> (Review der deutschen Übersetzung) - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - diff --git a/docs/de/designers/chapter-debugging-console.xml b/docs/de/designers/chapter-debugging-console.xml deleted file mode 100644 index c3b4856c..00000000 --- a/docs/de/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Debugging Konsole - - Smarty wird mit einer eingebauten Debugging Konsole - ausgeliefert. Diese Konsole informiert über die im aufgerufenen - Template eingebundenen Templates, - die zugewiesenen Variablen und die - Konfigurations-Variablen. - Die Formatierung der Konsole wird über das Template debug.tpl gesteuert. Um - debugging zu aktivieren, setzten Sie $debugging auf 'true' und (falls - nötig) übergeben in $debug_tpl den Pfad zum - Debugtemplate (normalerweise SMARTY_DIRdebug.tpl). Wenn Sie - danach eine Seite laden, sollte ein Javascript-Fenster geöffnet - werden in welchem Sie alle Informationen zur aufgerufenen Seite - finden. Falls Sie die Variablen eines bestimmten Templates ausgeben - wollen, können Sie dazu die Funktion {debug} verwenden. Um - debugging auszuschalten, können Sie $debugging auf 'false' setzen. - Sie können debugging auch temporär aktivieren, in dem Sie der - aufgerufenen URL SMARTY_DEBUG mit übergeben, dies muss jedoch - zuerst mit $debugging_ctrl aktiviert - werden. - - - Technische Bemerkung - - Die Debugging Konsole funktioniert nicht für Daten die via fetch() geladen wurden, sondern nur - für Daten die via display() - ausgegeben werden. Die Konsole besteht aus ein paar Zeilen - Javascript welche am Ende jeder Seite eingefügt werden. Wenn - Sie Javascript nicht mögen, können Sie die Ausgabe in - 'debug.tpl' selbst definieren. Debug-Ausgaben werden nicht gecached - und Informationen zu 'debug.tpl' selbst werden nicht ausgegeben. - - - - - Die Ladezeiten werden in Sekunden, oder Bruchteilen davon, angegeben. - - - - diff --git a/docs/de/designers/config-files.xml b/docs/de/designers/config-files.xml deleted file mode 100644 index 94376dce..00000000 --- a/docs/de/designers/config-files.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Konfigurationsdateien - - Konfigurationsdateien sind ein praktischer Weg um Template-Variablen - aus einer gemeinsamen Datei zu lesen. Ein Beispiel sind die - Template-Farben. Wenn Sie die Farben einer Applikation anpassen - wollen, müssen Sie normalerweise alle Templates durcharbeiten, - und die entsprechenden Werte ändern. Mit einer - Konfigurationsdatei können Sie alle Definitionen in einer - einzigen Datei vornehmen, und somit auch einfach ändern. - - - Beispiel der Konfigurationsdatei-Syntax - - - - - Die Werte in einer - Konfigurationsdatei können in einfachen/doppelten - Anführungszeichen notiert werden. Falls Sie einen Wert haben der - sich über mehrere Zeilen ausbreitet muss dieser Wert in - dreifachen Anführungszeichen (""") eingebettet werden. Die - Kommentar-Syntax kann frei gewählt werden, solange sie nicht der - normalen Syntax entsprechen. Wir empfehlen die Verwendung von - # (Raute) am Anfang jeder Kommentar-Zeile. - - - Dieses Beispiel hat 2 'sections'. 'section'-Namen werden von - []-Zeichen umschlossen und können alle Zeichen ausser - [ und ] enthalten. Die vier - Variablen welche am Anfang der Datei definiert werden sind globale - Variablen. Diese Variablen werden immer geladen. Wenn eine - definierte 'section' geladen wird, werden also die globalen - Variablen ebenfalls eingelesen. Wenn eine Variable sowohl global als - auch in einer 'section' vorkommt, wird die 'section'-Variable - verwendet. Wenn zwei Variablen in der gleichen 'section' den selben - Namen aufweisen wird die Letztere verwendet, es sei denn $config_overwrite ist - deaktiviert ('false'). - - - Konfigurationsdateien werden mit config_load - geladen. - - - Sie können Variablen oder auch ganze 'sections' verstecken indem - Sie dem Namen ein '.' voranstellen. Dies ist besonders wertvoll wenn - Ihre Applikation sensitive Informationen aus der Konfigurationsdatei - liest welche von der Template-Engine nicht verwendet werden. Falls - eine Drittpartei eine Änderung an der Konfigurationsdatei - vornimmt können Sie so sicherstellen, dass die sensitiven Daten - nicht in deren Template geladen werden können. - - - Siehe auch: {config_load}, $config_overwrite, get_config_vars(), clear_config() und config_load() - - - diff --git a/docs/de/designers/language-basic-syntax.xml b/docs/de/designers/language-basic-syntax.xml deleted file mode 100644 index 9723c665..00000000 --- a/docs/de/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Grundlegende Syntax - - Alle Smarty Template-Tags werden mit Trennzeichen umschlossen. Normalerweise - sind dies: { und }, sie können aber - auch verändert werden. - - - Für die folgenden Beispiele wird davon ausgegangen, dass Sie die - Standard-Trennzeichen verwenden. Smarty erachtet alle Inhalte ausserhalb - der Trennzeichen als statisch und unveränderbar. Sobald Smarty - auf Template-Tags stösst, versucht es diese zu interpretieren und die - entsprechenden Ausgaben an deren Stelle einzufügen. - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - diff --git a/docs/de/designers/language-basic-syntax/language-escaping.xml b/docs/de/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 4b723a77..00000000 --- a/docs/de/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Smarty Parsing umgehen - - Manchmal ist es wünschenswert, dass Smarty Teile eines - Templates nicht parst. Dies ist zum Beispiel der Fall, wenn - Javascript oder CSS im Template eingebettet werden. Da diese - Sprachen selbst { und } nutzen, erkennt Smarty diese als Start- - beziehungsweise End-Tags. - - - - Der einfachste Weg, dieses Problem zu umgehen, ist das Auslagern des - betreffenden Javascript oder CSS Codes in eigene Dateien. - - - - Um solche Inhalte trotzdem im gleichen Template einzubetten, können - Sie {literal} - .. {/literal} Blöcke verwenden. Die aktuell benutzten - Trennzeichen können Sie mit {ldelim}, {rdelim}, {$smarty.ldelim} - und {$smarty.rdelim} - ausgeben. - - - - Manchmal ist es auch einfacher, die Trennzeichen selbst zu ändern: - $left_delimiter und - $right_delimiter - definieren diese. - - - Beispiel wie die Trennzeichen angepasst werden - -left_delimiter = ''; -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - example.tpl würde somit wie folgt aussehen: - - -! - -]]> - - - - Siehe auch: Escape Modifikator - - - diff --git a/docs/de/designers/language-basic-syntax/language-math.xml b/docs/de/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index ed4cf2c9..00000000 --- a/docs/de/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Math - - Mathematische Operationen können direkt auf Variablen verwendet werden. - - - Mathematik Beispiele - - - - - - - Siehe auch die {math}-Funktion - für komplexere Berechnungen. - - - diff --git a/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 6157a661..00000000 --- a/docs/de/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Attribute / Parameter - - Die meisten Funktionen nehmen Parameter entgegen, die das Verhalten - der Funktion definieren beziehungsweise beeinflussen. Parameter - für Smarty Funktionen sind HTML - Attributen sehr ähnlich. Statische Werte müssen nicht in - Anführungszeichen gesetzt werden, für literale - Zeichenketten (literal strings) wird dies jedoch empfohlen. - - - Bestimmte Parameter verlangen logische Werte (true / false). Diese - können auch ohne Anführungszeichen angegeben werden: - true, on und - yes - oder false, - off und no. - - - Funktions-Parameter Syntax - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - diff --git a/docs/de/designers/language-basic-syntax/language-syntax-comments.xml b/docs/de/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index e2637a4e..00000000 --- a/docs/de/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Kommentare - - - Kommentare werden von Asterisks umschlossen, und mit Trennzeichen umgeben. - Beispiel: {* das ist ein Kommentar *} Smarty-Kommentare werden in - der Ausgabe nicht dargestellt und vor allem dazu verwendet, die - Templates verständlicher aufzubauen. Smarty Kommentare werden - sind in der engültigen Ausgabe NICHT dargestellt. (im Gegensatz zu - <!-- HTML Kommentaren -->). Sie sind nützlich um in den - Templates interne Anmerkungen zu hinterlassen. - - - Kommentare - - -{* Dies ist ein einzeiliger Kommentar *} - -{* dies ist ein mehrzeiliger - Kommentar, der nicht zum - Browser gesandt wird. -*} - - -{* einbinden des Header-Templates *} -{include file="header.tpl"} - -{* Entwicklernotiz: $includeFile wurde in 'foo.php' zugewiesen *} -{include file=$includeFile} - -{include file=#includeFile#} - -{* Ausgabe der drop-down Liste *} -{* Dieser -{html_options options=$vals selected=$selected} - -*} -]]> - - - - diff --git a/docs/de/designers/language-basic-syntax/language-syntax-functions.xml b/docs/de/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 210e6c6b..00000000 --- a/docs/de/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - Funktionen - - Jedes Smarty-Tag gibt entweder eine Variable aus oder ruft eine - Funktion auf. Funktionen werden aufgerufen indem der Funktionsname - und die Parameter - mit Trennzeichen umschlossen werden. Beispiel: {funcname attr1="val" - attr2="val"}. - - - Funktions-Syntax - -{$name}! -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - - - - Sowohl der Aufruf von eingebauten, als auch - der von eigenen - Funktionen folgt der gleichen Syntax. - - - Eingebaute Funktionen erlauben einige Basis-Operationen wie if, section und strip. Diese Funktionen - können nicht verändert werden. - - - Individuelle Funktionen die die Fähigkeiten von Smarty erweitern - werden als Plugins implementiert. Diese Funktionen können von Ihnen - angepasst werden, oder Sie können selbst neue Plugins - hinzufügen. {html_options} und - {html_select_date} - sind Beispiele solcher Funktionen. - - - diff --git a/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 28f1b6d9..00000000 --- a/docs/de/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Variablen mit Doppelten Anführungszeichen - - Smarty erkennt zugewiesene Variablen mit doppelten - Anführungszeichen solange die Variablen nur Zahlen, Buchstaben, - Understriche oder Klammern [] enthalten. Mit allen anderen Zeichen - wie Punkt, Objekt Referenzen, etc muss die Vairable mit Backticks - (``) umschlossen sein. - - - Syntax von eingebetteten Anfürungszeichen - - -]]> - - - - Siehe auch escape (Maskieren). - - - - diff --git a/docs/de/designers/language-basic-syntax/language-syntax-variables.xml b/docs/de/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 343494c1..00000000 --- a/docs/de/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - Variablen - - Templatevariablennamen beginnen mit einem $dollar-Zeichen. Sie - können Ziffer, Buchstaben und Unterstriche ('_') enthalten, sehr - ähnlich den Variablen in PHP. - Numerische Arrayindizes können referenziert werden und auch - Nichtnumerische. Zugriff auf Objekteigenschaften und -methoden ist - auch möglich. - Konfigurationsvariablen - sind einer Ausname was die Dollarzeichen-Syntax angeht. Diese werden - durch umgebende #Doppelkreuze# oder über die Varible $smarty.config - referenziert. - - - Variablen - -bar} <-- Zeigt eine Eigenschaft "bar" des Objekts $foo an -{$foo->bar()} <-- Zeigt den Rückgabewert der Objectmethode "bar" an -{#foo#} <-- Zeift die Konfigurationsvariable "foo" an -{$smarty.config.foo} <-- Synonym für {#foo#} -{$foo[bar]} <-- Syntax zum zugriff auf Element in einer Section-Schleife, siehe {section} -{assign var=foo value="baa"}{$foo} <-- Gibt "baa" aus, siehe {assign} - -Viele weitere Kombinationen sind erlaubt - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- Parameter übergeben -{"foo"} <-- Statische (konstante) Werte sind auch erlaubt -]]> - - - - Siehe auch: Die reservierte - {$smarty} Variable und Verwendung von Variablen aus - Konfigurationsdateien. - - - - diff --git a/docs/de/designers/language-builtin-functions.xml b/docs/de/designers/language-builtin-functions.xml deleted file mode 100644 index c5f01a4c..00000000 --- a/docs/de/designers/language-builtin-functions.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Eingebaute Funktionen - - Smarty enthält eine Reihe eingebauter Funktionen. Eingebaute Funktionen - sind integral für die Template-Sprache. Sie können sie weder - verändern noch eigene Funktionen unter selbem Namen erstellen. - -&designers.language-builtin-functions.language-function-capture; -&designers.language-builtin-functions.language-function-config-load; -&designers.language-builtin-functions.language-function-foreach; -&designers.language-builtin-functions.language-function-if; -&designers.language-builtin-functions.language-function-include; -&designers.language-builtin-functions.language-function-include-php; -&designers.language-builtin-functions.language-function-insert; -&designers.language-builtin-functions.language-function-ldelim; -&designers.language-builtin-functions.language-function-literal; -&designers.language-builtin-functions.language-function-php; -&designers.language-builtin-functions.language-function-section; -&designers.language-builtin-functions.language-function-strip; - - diff --git a/docs/de/designers/language-builtin-functions/language-function-capture.xml b/docs/de/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 99f366ca..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - {capture} (Ausgabe abfangen) - - {capture} wird verwendet, um die Template-Ausgabe abzufangen und in - einer Variable zu speichern. Der Inhalt zwischen {capture - name="foo"} und {/capture} wird unter der im 'name' Attribut - angegebenen Capture-Variablen abgelegt und kann über $smarty.capture.foo - angesprochen werden. Falls kein 'name'-Attribut übergeben wurde, - wird der Inhalt in 'default' (also $smarty.capture.default) - abgelegt. Jede {capture} Sektion muss mit {/capture} beendet - werden. {capture}-Blöcke können verschachtelt sein. - - - - - - - - - - - Attribut Name - Typ - Benötigt - Standardwert - Beschreibung - - - - - name - string - no - default - Der Name des abgefangenen Blocks - - - assign - string - No - n/a - Der Name der Variable welcher der Wert zugewiesen werden soll. - - - - - - - Seien Sie vorsichtig, wenn sie die Ausgabe von {insert} abfangen - wollen. Sie sollten die Ausgabe nicht abfangen, wenn Caching - eingeschaltet ist und Sie einen {insert} Befehl - verwenden, um Ausgaben vom Caching auszuschliessen. - - - - - Template-Inhalte abfangen - - - - - {$smarty.capture.banner} - - - -{/if} -]]> - - - - Template-Inhalte abfangen - - Hier ist ein Beispiel das das Zusammenspiel mit der Funktion {popup} demonstriert. - - -help -]]> - - - - - Siehe auch: - $smarty.capture, - {eval}, - {fetch}, - fetch() - and {assign}. - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-config-load.xml b/docs/de/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 76c675e3..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - - - {config_load} (Konfiguration laden) - - Diese Funktion wird verwendet, um Variablen aus einer - Konfigurationsdatei in das Template zu laden. Sehen sie - Config Files - (Konfigurationsdateien) für weitere Informationen. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - file - string - Ja - n/a - Definiert den Namen der einzubindenden Datei. - - - section - string - Nein - n/a - Definiert den Namen des zu ladenden Abschnitts. - - - scope - string - Nein - local - - Definiert den Geltungsbereich der zu ladenden Variablen. - Erlaubte Werte sind 'local','parent' und 'global'. 'local' - bedeutet, dass die Variablen in den Context des lokalen Template - geladen werden. 'parent' bedeutet, dass die Variablen sowohl in - den lokalen Context, als auch in den Context des aufrufenden - Templates eingebunden werden. 'global' bedeutet, dass die - Variablen von allen Templates zugänglich sind. - - - - global - boolean - Nein - No - - Definiert, ob die Variablen von allen Templates aus zugänglich - sind. WICHTIG: Dieses Attribut wird von 'scope' abgelöst und - sollte nicht mehr verwendet werden. Falls 'scope' übergeben - wurde, wird 'global' ignoriert. - - - - - - - Funktion {config_load} - - beispiel.conf - - - - - and the template - - -{#seitenTitel#} - - - - - - - -
    VornamenNachnamenAdresse
    - - -]]> -
    -
    - - Konfigurationsdateien können - Abschnitte enthalten. Um Variablen aus einem Abschnitt zu laden, - können Sie das Attribut section übergeben. - - - Bemerkung: Konfigurationdatei-Abschnitte - (sections) und die eingebaute Template Funktion namens - section haben ausser - dem Namen nichts gemeinsam. - - - - Funktion {config_load} mit Abschnitten - - -{#seitenTitel#} - - - - - - - -
    VornamenNachnamenAdresse
    - - -]]> -
    -
    - - Siehe $config_overwrite - bezüglich Arrays von Konfigurationsvariablen. - - - Siehe auch Konfigurationsdateien, Variablen aus - Konfigurationsdateien, $config_dir, get_config_vars() und config_load(). - -
    - diff --git a/docs/de/designers/language-builtin-functions/language-function-foreach.xml b/docs/de/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 761c9a8a..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,235 +0,0 @@ - - - - - {foreach}, {foreachelse} - - Die foreach Schleife ist eine Alternative zu - section. - foreach wird verwendet, um ein assoziatives - Array zu durchlaufen. Die Syntax von - foreach-Schleifen ist viel einfacher als die - von section. {foreach} - Tags müssen mit {/foreach} tags kombiniert - werden. Erforderliche Parameter sind: from und - item. Der Name der {foreach}-Schleife kann - frei vergeben werden und sowohl Buchstaben, Zahlen als auch - Unterstriche enthalten. foreach-Schleifen - können verschachtelt werden, dabei ist zu beachten, dass sich die - definierten Namen voneinander unterscheiden. Die - from Variable (normalerweise ein assoziatives - Array) definiert die Anzahl der von foreach zu - durchlaufenen Iterationen. foreachelse wird - ausgeführt wenn keine Werte in der from - Variable übergeben wurden. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - from - string - Ja - n/a - Name des zu durchlaufenden Array. - - - item - string - Ja - n/a - Name für das aktuelle Element. - - - key - string - Nein - n/a - Name für den aktuellen Schlüssel. - - - name - string - Nein - n/a - Name der 'foreach'-Schleife, für die Abfrage der 'foreach'-Eigenschaften. - - - - - - {foreach} - item - -assign('custid', $arr); -?> -]]> - - - -{/foreach} -]]> - - - Das obige Beispiel erzeugt folgende Ausgabe: - - - -id: 1001
    -id: 1002
    -]]> -
    -
    - - - {foreach} - item und key - -assign('kontakte', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - - - - {foreach key=schluessel item=wert from=$kontakt} - {$schluessel}: {$wert}
    - {/foreach} -{/foreach} -
    - - Das obige Beispiel erzeugt folgende Ausgabe: - - - - phone: 1
    - fax: 2
    - cell: 3
    -
    - phone: 555-4444
    - fax: 555-3333
    - cell: 760-1234
    -]]> - -
    - - - {foreach} - Beispiel mit Datenbankzugriff (z.B. PEAR oder ADODB) - -assign('kontakte', $db->getAssoc($sql)); -?> -]]> - - -{$con.name} - {$con.nick}
    -{/foreach} -]]> -
    -
    - - - Foreach-Loops haben auch eigene Variablen welche die Foreach - Eigenschaften enthalten. Diese werden wie folgt ausgewiesen: - {$smarty.foreach.foreachname.varname}. foreachname ist der Name der - als name Attribut von Foreach übergeben wurden. - - - - iteration - - gibt die aktuelle iteration aus - - - iteration beginnt immer mit 1 und wird danach bei jedem durchgang um 1 inkrementiert. - - - - - first - - first ist TRUE wenn die aktuelle Iteration die erste ist - - - - last - - last ist TRUE wenn die aktuelle Iteration die letzte ist - - - - - show - - show wird als Parameter von foreach verwedet - und ist ein boolscher Wert, TRUE oder FALSE. Auf FALSE wird nichts - ausgegeben und wenn foreachelse gefunden wird, dieser angezeigt. - - - - - total - - total gibt die Anzahl Iterationen des Foreach - Loops aus und kann in- oder nach- Foreach Blöcken verwendet werden. - - -
    - diff --git a/docs/de/designers/language-builtin-functions/language-function-if.xml b/docs/de/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index ac7f0839..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - {if},{elseif},{else} - - {if}-Statements in Smarty erlauben die selbe - Flexibilität wie in PHP, bis auf ein paar Erweiterungen für die - Template-Engine. Jedes {if} muss mit einem - {/if} kombiniert - sein. {else} und {elseif} - sind ebenfalls erlaubt. Alle PHP Vergleichsoperatoren und Funktionen, wie - ||, or, - &&, and, - is_array(), etc. sind erlaubt. - - - Wenn $security angeschaltet - wurde, dann müssen alle verwendeten PHP-Funktionen im - IF_FUNCS-Array in dem $security_settings-Array - deklariert werden. - - - Hier eine Liste der erlaubten Operatoren. Bedingungsoperatoren - müssen von umgebenden Elementen mit Leerzeichen abgetrennt werden. - PHP-Äquivalente sind, sofern vorhanden, angeben. - - - - - - - - - - - Operator - Alternativen - Syntax Beispiel - Bedeutung - PHP Äquivalent - - - - - == - eq - $a eq $b - ist gleich - == - - - != - ne, neq - $a neq $b - ist ungleich - != - - - > - gt - $a gt $b - größer als - > - - - < - lt - $a lt $b - kleiner als - < - - - >= - gte, ge - $a ge $b - größer oder gleich - >= - - - <= - lte, le - $a le $b - kleiner oder gleich - <= - - - === - - $a === 0 - identisch - === - - - ! - not - not $a - Negation - ! - - - % - mod - $a mod $b - Modulo - % - - - is [not] div by - - $a is not div by 4 - Ist [nicht] teilbar durch - $a % $b == 0 - - - is [not] even - - $a is not even - ist [k]eine gerade Zahl - $a % 2 == 0 - - - is [not] even by - - $a is [not] even by $b - [k]eine gerade Gruppierung - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - ist [k]eine ungerade Zahl - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [k]eine ungerade Gruppierung - ($a / $b) % 2 != 0 - - - - - - if Anweisung - - 1000 ) and $menge >= #minMengeAmt#} - ... -{/if} - - -{* einbetten von php Funktionsaufrufen ('gt' steht für 'grösser als') *} -{if count($var) gt 0} - ... -{/if} - -{* Auf "ist array" überprüfen. *} -{if is_array($foo) } - ..... -{/if} - -{* Auf "ist nicht null" überprüfen. *} -{if isset($foo) } - ..... -{/if} - - - -{* testen ob eine Zahl gerade (even) oder ungerade (odd) ist *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* testen ob eine Zahl durch 4 teilbar ist (div by) *} -{if $var is div by 4} - ... -{/if} - - -{* testen ob eine Variable gerade ist, gruppiert nach 2 - 0=gerade, 1=gerade, 2=ungerade, 3=ungerade, 4=gerade, 5=gerade, etc *} -{if $var is even by 2} - ... -{/if} - -{* 0=gerade, 1=gerade, 2=gerade, 3=ungerade, 4=ungerade, 5=ungerade, etc *} -{if $var is even by 3} - ... -{/if} -]]> - - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-include-php.xml b/docs/de/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 6a9b7c56..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - - include_php (PHP-Code einbinden) - - Die Verwendung von {include_php} wird nicht mehr empfohlen, die - gleiche funktionalität kann auch mit Template/Script - Komponenten erreicht werden. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - file - string - Ja - n/a - Der Name der einzubindenden PHP-Datei. - - - once - boolean - Nein - true - Definiert ob die Datei mehrmals geladen werden soll, falls sie mehrmals eingebunden wird. - - - assign - string - Nein - n/a - Der Name der Variable, der die Ausgabe von include_php zugewiesen wird. - - - - - - Falls Sicherheit aktiviert - ist, muss das einzubindende Skript im $trusted_dir Pfad - liegen. {include_php} muss das Attribut 'file' übergeben werden, das - den Pfad - entweder relativ zu $trusted_dir oder absolut - - zum Skript enthält. - - - Normalerweise wird ein PHP-Skript nur einmal pro Aufruf geladen, - selbst wenn es mehrfach eingebunden wird. Sie können dieses - Verhalten durch die Verwendung des once - Attributs steuern. Wenn Sie 'once' auf 'false' setzen, wird die - Datei immer wenn sie eingebunden wird auch neu geladen. - - - Optional kann das assign Attribut übergeben - werden. Die Ausgabe von include_php wird dann - nicht direkt eingefügt, sondern in der durch assign benannten - Template-Variable abgelegt. - - - Das Objekt '$smarty' kann in dem eingebundenen PHP-Script über - '$this' angesprochen werden. - - - Funktion include_php - lade_nav.php - -query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign($sections,$sql->record); - -?> -]]> - - - Bei folgendem index.tpl: - - -{$aktuelle_section.name}
    -{/foreach} -]]> -
    -
    - - Siehe auch {include}, {php}, {capture}, Template Ressourcen and Template/Script - Komponenten - -
    - diff --git a/docs/de/designers/language-builtin-functions/language-function-include.xml b/docs/de/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 23dc752d..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - include (einbinden) - - {include}-Tags werden verwendet, um andere Templates in das aktuelle - Template einzubinden. Alle Variablen des aktuellen Templates sind - auch im eingebundenen Template verfügbar. Das {include}-Tag muss ein - 'file' Attribut mit dem Pfad zum einzubindenden Template enthalten. - - - Optional kann mit dem assign Attribut definiert - werden, in welcher Variable die Ausgabe des mit - include eingebundenen Templates abgelegt werden - soll statt sie auszugeben. - - - Die Werte aller zugewiesenen Variablen werden wiederhergestellt, sobald - ein eingebundenes Template wieder verlassen wurde. Das bedeutet, dass in - einem eingebundenen Template alle Variablen des einbindenden Template - verwendet und verändert werden können, diese Änderungen aber verloren sind, - sobald das {include} abgearbeitet wurde. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - file - string - Ja - n/a - Name der Template-Datei, die eingebunden werden soll. - - - assign - string - Nein - n/a - Variable, welcher der eingebundene Inhalt zugewiesen werden soll. - - - [var ...] - [var typ] - Nein - n/a - Variablen welche dem Template lokal übergeben werden sollen. - - - - - - function include (einbinden) - - - - {$title} - - -{include file='page_header.tpl'} - -{* hier kommt der body des Templates *} -{include file="$tpl_name.tpl"} <-- $tpl_name wird durch eine Wert ersetzt - -{include file='page_footer.tpl'} - - -]]> - - - - Sie können dem einzubindenden Template Variablen als Attribute - übergeben. Alle explizit übergebenen Variablen sind nur im - Anwendungsbereich (scope) dieses Template - verfügbar. Attribut-Variablen überschreiben aktuelle - Template-Variablen, falls sie den gleichen Namen haben. - - - include-Funktion und Variablen Übergabe - - - - - - Benutzen sie die Syntax von template resources, um Templates - ausserhalb des '$template_dir' einzubinden: - - - Beispiele für Template-Ressourcen bei der 'include'-Funktion - - - - - - Siehe auch - {include_php}, - {php}, - Template Ressourcen und - Template/Skript Komponenten. - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-insert.xml b/docs/de/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index cf433c53..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - insert (einfügen) - - {insert}-Tags funktionieren ähnlich den {include}-Tags, werden - aber nicht gecached, falls caching - eingeschaltet ist. Sie werden bei jedem Aufruf des Templates - ausgeführt. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Ja - n/a - Der Name der Insert-Funktion - - - assign - string - Nein - n/a - Name der Template-Variable, in der die Ausgabe der 'insert'-Funktion optional abgelegt wird. - - - script - string - Nein - n/a - Name des PHP-Skriptes, das vor Aufruf der 'insert'-Funktion eingebunden werden soll. - - - [var ...] - [var typ] - Nein - n/a - Variablen die der 'insert'-Funktion übergeben werden sollen. - - - - - - Stellen Sie sich vor, sie hätten ein Template mit einem - Werbebanner. Dieser Banner kann verschiedene Arten von Inhalten - haben: Bilder, HTML, Flash, etc. Deshalb können wir nicht einfach - einen statischen Link verwenden und müssen vermeiden, dass dieser - Inhalt gecached wird. Hier kommt das {insert}-Tag ins Spiel. Das - Template kennt die Variablen '#banner_location_id#' und '#site_id#' - (zum Beispiel aus einer Konfigurationsdatei) und soll eine - Funktion aufrufen, die den Inhalt des Banners liefert. - - - Funktion 'insert' - -{* erzeugen des Banners *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - In diesem Beispiel verwenden wir die Funktion 'getBanner' und - übergeben die Parameter '#banner_location_id#' und '#site_id#'. - Smarty wird daraufhin in Ihrer Applikatiopn nach einer Funktion - namens 'getBanner' suchen und diese mit den Parametern - '#banner_location_id#' und '#site_id#' aufrufen. Allen - 'insert'-Funktionen in Ihrer Applikation muss 'insert_' - vorangestellt werden, um Konflikte im Namensraum zu vermeiden. Ihre - 'insert_getBanner()'-Funktion sollte etwas mit den übergebenen - Parametern unternehmen und das Resultat zurückgeben. Dieses - Resultat wird an der Stelle des 'insert'-Tags in Ihrem Template - ausgegeben. In diesem Beispiel würde Smarty folgende Funktion - aufrufen: insert_getBanner(array("lid" => "12345","sid" => "67890")) - und die erhaltenen Resultate an Stelle des 'insert'-Tags ausgeben. - - - Falls Sie das 'assign'-Attribut übergeben, wird die Ausgabe des - 'insert'-Tags in dieser Variablen abgelegt. Bemerkung: dies ist - nicht sinnvoll, wenn Caching - eingeschaltet ist. - - - Falls Sie das 'script'-Attribut übergeben, wird das angegebene - PHP-Skript vor der Ausführung der {insert}-Funktion eingebunden. - Dies ist nützlich, um die {insert}-Funktion erst in diesem Skript zu - definieren. Der Pfad kann absolut oder relativ zu $trusted_dir angegeben werden. - Wenn Sicherheit eingeschaltet ist, muss das Skript in $trusted_dir liegen. - - - Als zweites Argument wird der {insert}-Funktion das Smarty-Objekt - selbst übergeben. Damit kann dort auf die Informationen im - Smarty-Objekt zugegriffen werden. - - - Technische Bemerkung - - Es gibt die Möglichkeit, Teile des Templates nicht zu cachen. Wenn - Sie caching eingeschaltet haben, - werden {insert}-Tags nicht gecached. Sie werden jedesmal - ausgeführt, wenn die Seite erstellt wird - selbst innerhalb - gecachter Seiten. Dies funktioniert gut für Dinge wie Werbung - (Banner), Abstimmungen, Wetterberichte, Such-Resultate, - Benutzer-Feedback-Ecke, etc. - - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-ldelim.xml b/docs/de/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 28255a35..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - ldelim,rdelim (Ausgabe der Trennzeichen) - - ldelim und rdelim werden verwendet, um die Trennzeichen auszugeben - - in unserem Fall "{" oder "}" - ohne dass Smarty versucht, sie zu - interpretieren. Um text im Template vor dem Interpretieren zu - schützen kann auch {literal}{/literal} - verwendet werden. Siehe auch {$smarty.ldelim}. - - - ldelim, rdelim - - - - - Das obige Beispiel ergibt als Ausgabe: - - - -]]> - - - Ein weiteres Beispiel (diesmal mit javascript) - - - -function foo() {ldelim} - ... code ... -{rdelim} - -]]> - - - Ausgabe: - - - -function foo() { - .... code ... -} - -]]> - - - - - Siehe auch Smarty Parsing umgehen - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-literal.xml b/docs/de/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 3e8fb583..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - literal - - {literal}-Tags erlauben es, einen Block wörtlich auszugeben, - d.h. von der Interpretation durch Smarty auszuschliessen. Dies ist - vor allem für Javascript- oder andere Blöcke nützlich, die - geschwungene Klammern verwenden. Alles was zwischen den - {literal}{/literal} Tags steht, wird direkt angezeigt. Wenn in - einem {literal}-Block temlate-Tags verwendet werden sollen, is es - manchmal sinnvoller {ldelim}{rdelim} statt - {literal} zu verwenden. - - - literal-Tags - - - - -{/literal} -]]> - - - - Siehe auch Smarty Parsing - umgehen. - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-php.xml b/docs/de/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index aa0bb3bb..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - php - - {php}-Tags erlauben es, PHP-Code direkt in das Template - einzubetten. Der Inhalt wird nicht 'escaped', egal wie $php_handling konfiguriert - ist. Dieses Tag ist nur für erfahrene Benutzer gedacht und wird - auch von diesen normalerweise nicht benötigt. - - - {php}-Tags - - - - - - Technical Note - - Um auf PHP-Variablen in {php}-Blöcken zugreifen zu können, kann es - nötig sein, die Variable als global zu deklarieren. Der - {php}-Blöck läuft nämlich nicht in einem globalen Kontext, sondern - im Kontext der method des laufenden $smarty-Objektes. - - - - {php} mit Verwendung von global - - - - - - Siehe auch $php_handling, {include_php}, {include} und Template/Script - Komponenten. - - - diff --git a/docs/de/designers/language-builtin-functions/language-function-section.xml b/docs/de/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 66e7d06a..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,782 +0,0 @@ - - - - - section,sectionelse - - Template-{sections} werden verwendet, um durch Arrays zu iterieren (ähnlich wie {foreach}). Jedes - section-Tag muss mit einem - /section-Tag kombiniert - werden. name und loop sind - erforderliche Parameter. Der Name der 'section' kann frei gewählt - werden, muss jedoch aus Buchstaben, Zahlen oder Unterstrichen - bestehen. {sections} können verschachtelt werden. Dabei ist zu - beachten, dass sich ihre Namen unterscheiden. Aus der - 'loop'-Variable (normalerweise ein Array von Werten) resultiert die - Anzahl der Iterationen, die durchlaufen werden. Wenn ein Wert aus - der 'loop'-Variable innerhalb der {section} ausgegeben werden soll, - muss der 'section-name' umschlossen mit [] angefügt werden. - sectionelse wird ausgeführt, wenn keine Werte - in der 'loop'-Variable enthalten sind. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Ja - n/a - Der Name der 'section' - - - loop - [$variable_name] - Ja - n/a - Der Name des Zählers für die Iterationen. - - - start - integer - Nein - 0 - - Definiert die Startposition. Falls ein negativer Wert übergeben - wird, berechnet sich die Startposition ausgehend vom Ende des - Arrays. Wenn zum Beispiel 7 Werte in einem Array enthalten sind - und die Startposition -2 ist, ist die berechnete Startposition - 5. Unerlaubte Werte (Werte ausserhalb der Grösse des Arrays) - werden automatisch auf den nächstmöglichen Wert gesetzt. - - - - step - integer - Nein - 1 - - Definiert die Schrittweite mit welcher das Array durchlaufen - wird. 'step=2' iteriert durch 0, 2, 4, etc. Wenn ein negativer - Wert übergeben wurde, wird das Array rückwärts durchlaufen. - - - - max - integer - Nein - n/a - Maximale Anzahl an Iterationen, die Durchlaufen werden. - - - show - boolean - Nein - true - Definiert ob diese 'section' angezeigt werden soll oder nicht. - - - - - - section - -assign('custid',$data); - -?> -]]> - - - -{/section} -{* alle Werte in umgekehrter Reihenfolge ausgeben: *} -{section name=kunde loop=$KundenId step=-1} -id: {$KundenId[kunde]}
    -{/section} -]]> -
    - - Ausgabe des obigen Beispiels: - - - -id: 1001
    -id: 1002
    -
    -id: 1002
    -id: 1001
    -id: 1000
    -]]> -
    - - - Ein weiteres Beispiel, diesmal ohne ein zugewiesenes Array. - - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - - Ausgabe des obigen Beispiels: - - - - -20 18 16 14 12 10 -]]> - - -
    - - - - - section loop Variable - - -name: {$Namen[kunde]}
    -address: {$Adressen[kunde]}
    -

    -{/section} -]]> - - - Ausgabe des obigen Beispiels: - - - -name: Peter Müller
    -adresse: 253 N 45th
    -

    -id: 1001
    -name: Fritz Muster
    -adresse:: 417 Mulberry ln
    -

    -id: 1002
    -name: Hans Meier
    -adresse:: 5605 apple st
    -

    -]]> - - - - section names - - - id: {$KundenId[meinedaten]}
    - name: {$Namen[meinedaten]}
    - address: {$Adressen[meinedaten]} -

    -{/section} -]]> -
    -
    - - - nested sections (verschachtelte 'sections') - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> - - - - id: {$custid[customer]}
    - name: {$name[customer]}
    - address: {$address[customer]}
    - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
    - {/section} -{/section} -]]> -
    - - Ausgabe des obigen Beispiels: - - - - id: 1000
    - name: John Smith
    - address: 253 N 45th
    - home phone: 555-555-5555
    - cell phone: 666-555-5555
    - e-mail: john@myexample.com
    -
    - id: 1001
    - name: Jack Jones
    - address: 417 Mulberry ln
    - home phone: 123-456-4
    - web: www.example.com
    -
    - id: 1002
    - name: Jane Munson
    - address: 5605 apple st
    - cell phone: 0457878
    -]]> -
    -
    - - - sections und assoziative Arrays - - 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); - -?> -]]> - - - -name: {$contacts[customer].name}
    -home: {$contacts[customer].home}
    -cell: {$contacts[customer].cell}
    -e-mail: {$contacts[customer].email} -

    -{/section} - -{* Anm. d. übersetzers: Oft ist die Anwendung von 'foreach' kürzer. *} - -{foreach item=customer from=$contacts} -

    -name: {$customer.name}
    -home: {$customer.home}
    -cell: {$customer.cell}
    -e-mail: {$customer.email} -

    -{/foreach} -]]> -
    - - Ausgabe des obigen Beispiels: - - - -name: John Smith
    -home: 555-555-5555
    -cell: 555-555-5555
    -e-mail: john@mydomain.com -

    -

    -name: Jack Jones
    -home phone: 555-555-5555
    -cell phone: 555-555-5555
    -e-mail: jack@mydomain.com -

    -name: Jane Munson
    -home phone: 555-555-5555
    -cell phone: 555-555-5555
    -e-mail: jane@mydomain.com -

    -]]> -
    -
    - - - - - - - sectionelse - - -{sectionelse} -keine Werte in $custid gefunden -{/section} -]]> - - - - Die Eigenschaften der 'section' werden in besonderen Variablen - abgelegt. Diese sind wie folgt aufgebaut: {$smarty.section.sectionname.varname} - - - - Bermerkung: Seit Smarty 1.5.0 hat sich die Syntax der 'section' - Eigenschaften von {%sectionname.varname%} zu - {$smarty.section.sectionname.varname} geändert. Die alte Syntax - wird noch immer unterstützt, die Dokumentation erwähnt jedoch nur - noch die neue Schreibweise. - - - - index - - 'index' wird verwendet, um den aktuellen Schleifen-Index - anzuzeigen. Er startet bei 0 (beziehungsweise der definierten - Startposition) und inkrementiert in 1-er Schritten (beziehungsweise - der definierten Schrittgrösse). - - - Technische Bemerkung - - Wenn 'step' und 'start' nicht übergeben werden, verhält sich der - Wert wie die 'section'-Eigenschaft 'iteration', ausser dass er bei - 0 anstatt 1 beginnt. - - - - 'section'-Eigenschaft 'index' - - -{/section} -]]> - - - Ausgabe des obigen Beispiels: - - - -1 id: 1001
    -2 id: 1002
    -]]> -
    -
    -
    - - index_prev - - 'index_prev' wird verwendet um den vorhergehenden Schleifen-Index - auszugeben. Bei der ersten Iteration ist dieser Wert -1. - - - section'-Eigenschaft 'index_prev' - - -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das selbe *} -{if $custid[customer.index_prev] ne $custid[customer.index]} - Die Kundennummer hat sich geändert.
    -{/if} -{/section} -]]> -
    - - Ausgabe des obigen Beispiels: - - - - Die Kundennummer hat sich geändert.
    -1 id: 1001
    - Die Kundennummer hat sich geändert.
    -2 id: 1002
    - Die Kundennummer hat sich geändert.
    -]]> -
    -
    -
    - - index_next - - 'index_next' wird verwendet um den nächsten 'loop'-Index - auszugeben. Bei der letzten Iteration ist dieser Wert um 1 grösser - als der aktuelle 'loop'-Index (inklusive dem definierten 'step' - Wert). - - - section'-Eigenschaft 'index_next' - - -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das selbe *} -{if $custid[customer.index_next] ne $custid[customer.index]} - Die Kundennummer wird sich ändern.
    -{/if} -{/section} -]]> -
    - - Ausgabe des obigen Beispiels: - - - - Die Kundennummer wird sich ändern.
    -1 id: 1001
    - Die Kundennummer wird sich ändern.
    -2 id: 1002
    - Die Kundennummer wird sich ändern.
    -]]Š -
    -
    -
    - - iteration - - 'iteration' wird verwendet um die aktuelle Iteration auszugeben. - - - Bemerkung: Die Eigenschaften 'start', 'step' und 'max' - beeinflussen 'iteration' nicht, die Eigenschaft 'index' jedoch - schon. 'iteration' startet im gegensatz zu 'index' bei 1. 'rownum' - ist ein Alias für 'iteration' und arbeitet identisch. - - - 'section'-Eigenschaft 'iteration' - - -{$smarty.section.customer.index} id: {$custid[customer]}
    -{* zur Information, $custid[customer.index] und $custid[customer] bedeuten das gleiche *} -{if $custid[customer.index_next] ne $custid[customer.index]} - Die Kundennummer wird sich ändern.
    -{/if} -{/section} -]]> -
    - - Ausgabe des obigen Beispiels: - - - - Die Kundennummer wird sich ändern.
    -aktuelle loop iteration: 2 -7 id: 1001
    - Die Kundennummer wird sich ändern.
    -aktuelle loop iteration: 3 -9 id: 1002
    - Die Kundennummer wird sich ändern.
    -]]> -
    -
    -
    - - first - - 'first' ist 'true', wenn die aktuelle Iteration die erste dieser - 'section' ist. - - - 'section'-Eigenschaft 'first' - - -{/if} - -{$smarty.section.customer.index} id: - {$custid[customer]} - -{if $smarty.section.customer.last} - -{/if} -{/section} -]]> - - - Ausgabe des obigen Beispiels: - - - -0 id: 1000 -1 id: 1001 -2 id: 1002 - -]]> - - - - - last - - 'last' ist 'true' wenn die aktuelle Iteration die letzte dieser - 'section' ist. - - - 'section'-Eigenschaft 'last' - - -{/if} - -{$smarty.section.customer.index} id: - {$custid[customer]} - -{if $smarty.section.customer.last} - -{/if} -{/section} -]]> - - - Ausgabe des obigen Beispiels: - - - -0 id: 1000 -1 id: 1001 -2 id: 1002 - -]]> - - - - - rownum - - 'rownum' wird verwendet um die aktuelle Iteration (startend bei 1) - auszugeben. 'rownum' ist ein Alias für 'iteration' und arbeitet - identisch. - - - 'section'-Eigenschaft 'rownum' - - -{/section} - - - Ausgabe des obigen Beispiels: - - - -2 id: 1001
    -3 id: 1002
    -]]> -
    -
    -
    - - loop - - 'loop' wird verwendet, um die Nummer letzte Iteration der 'section' - auszugeben. Dieser Wert kann inner- und ausserhalb der 'section' - verwendet werden. - - - 'section'-Eigenschaft 'loop' - - -{/section} - -Es wurden {$smarty.section.customer.loop} Kunden angezeigt. -]]> - - - Ausgabe des obigen Beispiels: - - - -1 id: 1001
    -2 id: 1002
    - -Es wurden 3 Kunden angezeigt. -]]> -
    -
    -
    - - show - - show kann die Werte 'true' oder 'false' haben. - Falls der Wert 'true' ist, wird die 'section' angezeigt. Falls der - Wert 'false' ist, wird die 'section' - ausser dem 'sectionelse' - - nicht ausgegeben. - - - 'section'-Eigenschaft 'show' - - -{/section} - -{if $smarty.section.customer.show} -die 'section' wurde angezeigt -{else} -die 'section' wurde nicht angezeigt -{/if} -]]> - - - Ausgabe des obigen Beispiels: - - - -2 id: 1001
    -3 id: 1002
    - -die 'section' wurde angezeigt -]]> -
    -
    -
    - - total - - Wird verwendet um die Anzahl der durchlaufenen Iterationen einer - 'section' auszugeben. Kann innerhalb oder ausserhalb der 'section' - verwendet werden. - - - 'section'-Eigenschaft 'total' - - -{/section} - -Es wurden {$smarty.section.customer.total} Kunden angezeigt. -]]> - - - Ausgabe des obigen Beispiels: - - - -2 id: 1001
    -4 id: 1002
    - -Es wurden 3 Kunden angezeigt. -]]> -
    -
    -
    -
    - diff --git a/docs/de/designers/language-builtin-functions/language-function-strip.xml b/docs/de/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 8c1bd21a..00000000 --- a/docs/de/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - strip - - Webdesigner haben oft das Problem, dass Leerzeichen und - Zeilenumbrüche die Ausgabe des erzeugten HTML im Browser - beeinflussen. Oft werden deshalb alle Tags aufeinanderfolgend im - Template notiert, was aber zu einer schlechten Lesbarkeit führt. - - - Aus dem Inhalt zwischen den {strip}{/strip}-Tags werden alle - Leerzeichen und Zeilenumbrüche entfernt. So können Sie Ihre - Templates lesbar halten, ohne sich Sorgen um die Leerzeichen zu - machen. - - - Technische Bemerkung - - {strip}{/strip} ändert nicht den Inhalt einer Template-Variablen. - Dafür gibt es den strip - Modifikator. - - - - strip tags - - - - - - Das ist ein Test. - - - - -{/strip} -]]> - - - Ausgebe des obigen Beispiels: - - -Das ist ein Test. -]]> - - - - Achtung: im obigen Beispiel beginnen und enden alle Zeilen mit - HTML-Tags. Falls Sie Abschnitte haben, die nur Text enthalten, - werden diese ebenfalls zusammengeschlossen. Das kann zu - unerwünschten Resultaten führen. - - - Siehe auch strip-Modifikator - (Zeichenkette strippen) - - - - diff --git a/docs/de/designers/language-combining-modifiers.xml b/docs/de/designers/language-combining-modifiers.xml deleted file mode 100644 index 4db607e1..00000000 --- a/docs/de/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - Kombinieren von Modifikatoren - - Sie können auf eine Variable so viele Modifikatoren anwenden - wie Sie möchten. Die Modifkatoren werden in der Reihenfolge - angewandt, in der sie notiert wurden - von links nach rechts. - Kombinierte Modifikatoren müssen mit einem - |-Zeichen (pipe) getrennt werden. - - - Kombinieren von Modifikatoren - -assign('articleTitle', - 'Einem Stadtrat in Salem in Pennsylvania (USA) droht eine - zweijährige Haftstrafe, da eine von ihm gehaltene Rede sechs - Minuten länger dauerte, als erlaubt. Die Redezeit ist auf maximal - fünf Minuten begrenzt.'); - -?> -]]> - - - Wobei das Template dann folgendes entält: - - - - - - AUSGABE: - - - - - - - diff --git a/docs/de/designers/language-custom-functions.xml b/docs/de/designers/language-custom-functions.xml deleted file mode 100644 index bfeee438..00000000 --- a/docs/de/designers/language-custom-functions.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Eigene Funktionen - - Smarty wird mit verschiedenen massgeschneiderten Funktionen geliefert, welche Sie in - Ihren Templates verwenden können. - -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; - -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-textformat; - - diff --git a/docs/de/designers/language-custom-functions/language-function-assign.xml b/docs/de/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 9e258620..00000000 --- a/docs/de/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - {assign} (zuweisen) - - {assign} wird verwendet um einer Template-Variable innerhalb eines Templates einen Wert - zuzuweisen. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - var - string - Ja - n/a - Der Name der zuzuweisenden Variable. - - - value - string - Ja - n/a - Der zuzuweisende Wert. - - - - - - {assign} (zuweisen) - - - - - Ausgabe des obiges Beispiels: - - - -]]> - - - - Zugriff auf mit {assign} zugwiesene Variablen von PHP aus. - - Um auf zugewiesene Variablen von php aus zuzugreifen nimmt man - get_template_vars(). - Die zugewiesenen variablen sind jedoch nur wärhend bzw. nach der - Ausgabe des Template verfügbar. - - - - - -get_template_vars('foo'); - -// das Template in eine ungenutzte Variable ausgeben -$nix = $smarty->fetch('index.tpl'); - -// Gibt 'smarty' aus, da die {assign} anweisung im Template ausgeführt -// wurde -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// Ausgabe 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - Folgende Funktionen haben optionale - assign-Attribute: - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math}, - {textformat} - - - Siehe auch assign() und get_template_vars(). - - - diff --git a/docs/de/designers/language-custom-functions/language-function-counter.xml b/docs/de/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 3b8a19ef..00000000 --- a/docs/de/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - -{counter} (Zähler) - - {counter} wird verwendet um eine Zahlenreihe auszugeben. Sie können - den Initialwert bestimmen, den Zählinterval, die Richtung in der - gezählt werden soll und ob der Wert ausgegeben wird. Sie können - mehrere Zähler gleichzeitig laufen lassen, in dem Sie ihnen - einmalige Namen geben. Wenn Sie keinen Wert für 'name' übergeben, - wird 'default' verwendet. - - - Wenn Sie das spezielle 'assign'-Attribut verwenden, wird die Ausgabe - des Zählers dieser Template-Variable zugewiesen anstatt ausgegeben - zu werden. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Nein - default - Der Name des Zählers. - - - start - number - Nein - 1 - Der Initialwert. - - - skip - number - Nein - 1 - Der Interval. - - - direction - string - Nein - up - Die Richtung (up/down). - - - print - boolean - Nein - true - Definiert ob der Wert ausgegeben werden soll. - - - assign - string - Nein - n/a - Die Template-Variable welcher der Wert zugewiesen werden soll. - - - - - - {counter} (Zähler) - - -{counter}
    -{counter}
    -{counter}
    -]]> -
    - - AUSGABE: - - - -2
    -4
    -6
    -]]> -
    -
    -
    - diff --git a/docs/de/designers/language-custom-functions/language-function-cycle.xml b/docs/de/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 05906dce..00000000 --- a/docs/de/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - {cycle} (Zyklus) - - {cycle} wird verwendet um durch ein Set von Werten zu zirkulieren. - Dies vereinfacht die Handhabung von zwei oder mehr Farben in einer - Tabelle, oder um einen Array zu durchlaufen. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Nein - default - Der Name des Zyklus. - - - values - mixed - Ja - N/A - - Die Werte durch die zirkuliert werden soll, entweder als Komma - separierte Liste (siehe 'delimiter'-Attribut), oder als Array. - - - - print - boolean - Nein - true - Definiert ob die Werte ausgegeben werden sollen oder - nicht. - - - advance - boolean - Nein - true - Definiert ob der nächste Wert automatisch angesprungen - werden soll. - - - delimiter - string - Nein - , - Das zu verwendende Trennzeichen. - - - assign - string - Nein - n/a - Der Name der Template-Variable welcher die Ausgabe - zugewiesen werden soll. - - - reset - boolean - No - false - Der Zyklus wird auf den ersten Wert zurückgesetzt. - - - - - - Sie können durch mehrere Sets gleichzeitig iterieren, indem Sie den - Sets einmalige Namen geben. - - - Um den aktuellen Wert nicht auszugeben, kann das 'print' Attribut - auf 'false' gesetzt werden. Dies könnte sinnvoll sein, wenn man - einen einzelnen Wert überspringen möchte. - - - Das 'advance'-Attribut wird verwendet um einen Wert zu wiederholen. - Wenn auf 'false' gesetzt, wird bei der nächsten Iteration der selbe - Wert erneut ausgegeben. - - - Wenn sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - der {cycle}-Funktion in dieser Template-Variable abgelegt, anstatt - ausgegeben zu werden. - - - {cycle} (Zyklus) - - - {$data[rows]} - -{/section} -]]> - - - - 1 - - - 2 - - - 3 - -]]> - - - - diff --git a/docs/de/designers/language-custom-functions/language-function-debug.xml b/docs/de/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 219d929d..00000000 --- a/docs/de/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - {debug} - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - output - string - Nein - javascript - Ausgabe-Typ, entweder HTML oder Javascript. - - - - - - {debug} zeigt die 'debugging'-Konsole auf der Seite an. $debug hat darauf keinen - Einfluss. Da die Ausgabe zur Laufzeit geschieht, können die - Template-Namen hier nicht ausgegeben werden. Sie erhalten jedoch - eine Liste aller mit assigned - zugewiesenen Variablen und deren Werten. - - - Siehe auch Debugging Konsole - - - diff --git a/docs/de/designers/language-custom-functions/language-function-eval.xml b/docs/de/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 96a329b7..00000000 --- a/docs/de/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - {eval} (auswerten) - - {eval} wird verwendet um eine Variable als Template - auszuwerten. Dies kann verwendet werden um Template-Tags/Variablen - in einer Variable oder einer Konfigurationsdatei abzulegen. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - var - mixed - Ja - n/a - Variable oder Zeichenkette die ausgewertet werden soll. - - - assign - string - Nein - n/a - Die Template-Variable welcher die Ausgabe zugewiesen werden soll. - - - - - - Wenn Sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - von 'eval' in dieser Template-Variable gespeichert und nicht - ausgegeben. - - - Technische Bemerkung - - Evaluierte Variablen werden gleich wie Template-Variablen verwendet - und folgen den selben Maskierungs- und Sicherheits-Features. - - - - Technische Bemerkung - - Evaluierte Variablen werden bei jedem Aufruf neu ausgewertet. Die - kompilierten Versionen werden dabei nicht abgelegt! Falls sie caching - eingeschaltet haben, wird die Ausgabe jedoch mit dem Rest des - Templates gecached. - - - - eval (auswerten) - - -emphend =
    -title = Willkommen auf {$company}'s home page! -ErrorCity = Bitte geben Sie einen {#emphstart#}Stadtnamen{#emphend#} ein. -ErrorState = Bitte geben Sie einen {#emphstart#}Provinznamen{#emphend#} ein. -]]> - - - index.tpl: - - - - - - Ausgabe des obigen Beispiels: - - -Stadtnamen ein. -Bitte geben Sie einen Provinznamen ein. - -]]> - - -
    - diff --git a/docs/de/designers/language-custom-functions/language-function-fetch.xml b/docs/de/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index ef10f319..00000000 --- a/docs/de/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - {fetch} - - {fetch} wird verwendet um lokale oder via HTTP beziehungsweise FTP - verfügbare Inhalte auszugeben. Wenn der Dateiname mit 'http://' - anfängt, wird die angegebene Webseite geladen und angezeigt. Wenn - der Dateiname mit 'ftp://' anfängt wird die Datei vom FTP-Server - geladen und angezeigt. Für lokale Dateien muss der absolute Pfad, - oder ein Pfad relativ zum ausgeführten Skript übergeben werden. - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - file - string - Ja - n/a - Die Datei, FTP oder HTTP Seite die geliefert werden soll. - - - assign - string - Nein - n/a - Die Template-Variable welcher die Ausgabe zugewiesen werden soll. - - - - - - Wenn Sie das spezielle 'assign'-Attribut übergeben, wird die Ausgabe - der {fetch}-Funktion dieser Template-Variable zugewiesen, anstatt - ausgegeben zu werden (seit Smarty 1.5.0). - - - Technische Bemerkung - - HTTP-Redirects werden nicht unterstützt, stellen Sie sicher, dass - die aufgerufene URL falls nötig durch ein '/'-Zeichen (slash) - beendet wird. - - - - Technische Bemerkung - - Wenn Sicherheit eingeschaltet ist, und Dateien vom lokalen System - geladen werden sollen, ist dies nur für Dateien erlaubt welche sich - in einem definierten sicheren Verzeichnis befinden. - ($secure_dir) - - - - fetch - -{$weather} -{/if} -]]> - - - - Siehe auch {capture}, {eval} und fetch(). - - - diff --git a/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e1f22415..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - {html_checkboxes} (Ausgabe von HTML-Checkbox Tag) - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Nein - checkbox - Name der checkbox Liste - - - values - array - ja, ausser wenn das option Attribut verwendet wird - n/a - ein Array mit Werten für die checkboxes - - - output - array - ja, ausser wenn das option Attribut verwendet wird - n/a - ein Array mit Werten für checkbox Knöpfe - - - selected - string/array - No - empty - das/die ausgewählten checkbox Elemente - - - options - assoziatives array - Ja, ausser values/output wird verwendet - n/a - ein assoziatives Array mit Werten und Ausgaben - - - separator - string - No - empty - Zeichenkette die zwischen den checkbox Elementen eingefügt werden soll - - - labels - boolean - No - true - fügt der Ausgabe <label>-Tags hinzu - - - - - - html_checkboxes ist eine Funktion die aus den - übergebenen Daten html checkbox Elemente erstellt und kümmert sich - darum welche Elemente ausgewählt sind. Erforderliche Attribute sind - Wert/Ausgabe oder Options. Die Ausgabe ist XHTML kompatibel - - - Alle Parameter die nicht in der Liste erwähnt werden, werden ausgegeben. - - - {html_checkboxes} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Wobei index.tpl wie folgt aussieht: - - -"} -]]> - - - Oder mit folgendem PHP-Code: - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); -?> -]]> - - - Wobei index.tpl wie folgt aussieht: - - -"} -]]> - - - Das Ergebnis beider Listings: - - -Joe Schmoe
    -
    -
    -
    -]]> -
    -
    -
    - diff --git a/docs/de/designers/language-custom-functions/language-function-html-image.xml b/docs/de/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 8e60c2c1..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - - html_image (Ausgabe von HTML-IMG Tag) - - {html_image} ist eine eigene Funktion die ein - HTML Tag für ein Bild erzeugt. Die Höhe und Breite der Ausgabe wird - automatisch aus der Bilddatei berechnet wenn die Werte nicht - übergeben werden. - - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - file - string - Ja - n/a - Name/Pfad zum Bild - - - height - string - Nein - Normale Höhe des Bildes - Höhe des Bildes - - - width - string - Nein - Normale Breite des Bildes - Breite des Bildes - - - basedir - string - Nein - DOCUMENT_ROOT - Basisverzeichnis für relative Pfadangaben - - - alt - string - Nein - "" - Alternative Beschreibung des Bildes - - - href - string - Nein - n/a - Link für das Bild - - - path_prefix - string - Nein - n/a - Präfix für den Pfad zum Bild - - - - - - - basedir ist der Basispfad der für die Verlinkung verwendet werden - soll. Wenn kein Wert übergeben wird, wird die Umgebungsvariable - DOCUMENT_ROOT verwendet. Wenn Sicherheit eingeschaltet ist, - muss das Bild in einem sicheren Verzeichnis liegen. - - - href ist das href Attribut für das - Image-Tag. Wenn dieser Wert übergeben wird, wird um das Bild ein - <a href="LINKVALUE"><a> Tag erzeugt. - - - path_prefix ist ein optionaler Präfix der dem - Bildpfad vorangestellt wird. Die ist nützlich wenn zum Beispiel für - den Bildpfad ein anderer Servername verwendet werden soll. - - - Alle weiteren Parameter werden als Name/Wert Paare (Attribute) im - <img>-Tag ausgegeben. - - - Technische Bemerkung - - {html_image} greift auf das Dateisystem zu um Höhe und Breite zu - errechnen. Wenn Sie caching nicht - verwenden sollten Sie normalerweise auf diese Funktion aus - performance Gründen verzichten. - - - - html_image - - - - - Mögliche Ausgabe: - - - - - -]]> - - - - diff --git a/docs/de/designers/language-custom-functions/language-function-html-options.xml b/docs/de/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index eedb1dab..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - - html_options (Ausgabe von HTML-Options) - - {html_options} wird verwendet um HTML-Options Listen mit den - übergebenen Daten zu erzeugen. Die Funktion kümmert sich - ebenfalls um das setzen des ausgewählten Standardwertes. Die - Attribute 'values' und 'output' sind erforderlich, ausser man - verwendet das Attribut 'options'. - - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - values - array - Ja, ausser 'options'-Attribut wird verwendet. - n/a - Array mit Werten für die dropdown-Liste. - - - output - array - Ja, ausser 'options'-Attribut wird verwendet. - n/a - Arrays mit Namen für die dropdown-Liste. - - - selected - string/array - Nein - empty - Das ausgewählte Array Element. - - - options - associative array - Ja, ausser wenn das 'values'- und das 'output'-Attribut verwendet werden. - n/a - Assoziatives Array mit Werten die ausgegeben werden sollen. - - - - - - - Wenn ein Wert als Array erkannt wird, wird er als HTML-OPTGROUP - ausgegeben und die Werte werden in Gruppen dargestellt. Rekursion - wird unterstützt. Die Ausgabe ist XHTML kompatibel. - - - Wenn das (optionale) Attribute name angegeben - wurde, wird um die <option>-Liste von <select - name="groupname"></select>-Tags umschlossen - - - Alle Parameter die deren Namen nicht in der obigen Liste genannt - wurde, werden dem <select>-Tag als Name/Wert-Paare - hinzugefügt. Die Parameter werden ignoriert, wenn kein - name-Attribute angegeben wurde. - - - html_options - - Beispiel 1: - - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Wobei das Template wie folgt aussieht: - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - Beispiel 2: - - -assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Wobei das Template wie folgt aussieht: - - - - - - Beide Beispiele ergeben folgende Ausgabe: - - - - - - - - -]]> - - - - Siehe auch {html_checkboxes} - und {html_radios} - - - {html_options} - Beispiel mit Datenbank (z.B. PEAR oder ADODB): - -assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Wobei das Template wie folgt aussieht: - - - - - {html_options name="type" options=$types selected=$contact.type_id} - -]]> - - - - Siehe auch {html_checkboxes} - und {html_radios} - - - diff --git a/docs/de/designers/language-custom-functions/language-function-html-radios.xml b/docs/de/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index b0b00e27..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - html_radios (Ausgabe von HTML-RADIO Tags) - - html_radio ist eine Funktion die aus den übergebenen Daten html - radio Elemente erstellt und kümmert sich darum welche Elemente - ausgewählt sind. Erforderliche Attribute sind Wert/Ausgabe - oder Options. Die Ausgabe ist XHTML kompatibel - - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - name - string - Nein - radio - Name der Radio Liste - - - values - array - Ja, ausser 'options'-Attribut wird verwendet. - n/a - Array mit Werten für die dropdown-Liste. - - - output - array - Ja, ausser 'options'-Attribut wird verwendet. - n/a - Arrays mit Namen für die dropdown-Liste. - - - selected - string - Nein - empty - Das ausgewählte Array Element. - - - options - associative array - Ja, ausser wenn das 'values'- und das 'output'-Attribut verwendet werden. - n/a - Assoziatives Array mit Werten die ausgegeben werden sollen. - - - separator - string - No - empty - Die Zeichenkette die zwischen 2 Radioelemente eingefügt werden soll. - - - - - - Alle weiteren Parameter werden als Name/Wert Paare (Attribute) in jedem der <input>-Tags ausgegeben. - - - html_radios - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Carlie Brown') - ); -$smarty->assign('customer_id', 1001); -?> -]]> - - - Mit folgendem index.tpl: - - -"} -]]> - - - - {html_radios} : Example 2 - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Mit folgendem index.tpl: - - -"} -]]> - - - Ausgabe beider Beispiele: - - - -Joe Schmoe
    -
    -
    -
    -]]> -
    -
    - - {html_radios}-Datenbankbeispiel (z.B. mit PEAR oder ADODB): - -assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Mit folgendem index.tpl: - - -"} -]]> - - - - Siehe auch {html_checkboxes} - und {html_options} - -
    - diff --git a/docs/de/designers/language-custom-functions/language-function-html-select-date.xml b/docs/de/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 43009aed..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,322 +0,0 @@ - - - - - html_select_date (Ausgabe von Daten als HTML-'options') - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - prefix - string - Nein - Date_ - Prefix für die Namen. - - - time - timestamp/YYYY-MM-DD - Nein - Aktuelle Zeit als Unix-Timestamp, oder in YYYY-MM-DD format. - Das zu verwendende Datum. - - - start_year - string - Nein - aktuelles Jahr - Das erste Jahr in der dropdown-Liste, entweder als Jahreszahl oder relativ zum aktuellen Jahr (+/- N). - - - end_year - string - Nein - Gegenteil von start_year - Das letzte Jahr in der dropdown-Liste, entweder als Jahreszahl oder relativ zum aktuellen Jahr (+/- N). - - - display_days - boolean - Nein - true - Definiert ob Tage ausgegeben sollen oder nicht. - - - display_months - boolean - Nein - true - Definiert ob Monate ausgegeben werden sollen oder nicht. - - - display_years - boolean - Nein - true - Definiert ob Jahre ausgegeben werden sollen oder nicht. - - - month_format - string - Nein - %B - Format in welchem der Monat ausgegeben werden soll. (strftime) - - - day_format - string - Nein - %02d - Definiert das Format in welchem der Tag ausgegeben werden soll. (sprintf) - - - year_as_text - boolean - Nein - false - Definiert ob das Jahr als Text ausgegeben werden soll oder nicht. - - - reverse_years - boolean - Nein - false - Definiert ob die Daten in verkehrter Reihenfolge ausgegeben werden sollen. - - - field_array - string - Nein - null - - Wenn ein Namen übergeben wird, werden die Daten in der Form name[Day], name[Year], name[Month] an PHP zurückgegeben. - - - - day_size - string - Nein - null - Fügt dem 'select'-Tag das Attribut 'size' hinzu. - - - month_size - string - Nein - null - Fügt dem 'select'-Tag das Attribut 'size' hinzu. - - - year_size - string - Nein - null - Fügt dem 'select'-Tag das Attribut 'size' hinzu. - - - all_extra - string - Nein - null - Fügt allen 'select'-Tags zusätzliche Attribute hinzu. - - - day_extra - string - Nein - null - Fügt 'select'-Tags zusätzliche Attribute hinzu. - - - month_extra - string - Nein - null - Fügt 'select'-Tags zusätzliche Attribute hinzu. - - - year_extra - string - Nein - null - Fügt 'select'-Tags zusätzliche Attribute hinzu. - - - field_order - string - Nein - MDY - Die Reihenfolge in der die Felder ausgegeben werden. - - - field_separator - string - Nein - \n - Zeichenkette die zwischen den Feldern ausgegeben werden soll. - - - month_value_format - string - Nein - %m - Format zur Ausgabe der Monats-Werte, Standardwert ist %m. (strftime) - - - year_empty - string - Nein - null - Definiert, einen Namen für das erste Element der Jahres Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie ein Jahr" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "-MM-DD" als 'time' Attribut definieren können, um ein unselektiertes Jahr anzuzeigen. - - - month_empty - string - Nein - null - Definiert, einen Namen für das erste Element der Monats Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Monat" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY--DD" als 'time' Attribut definieren können, um einen unselektierten Monat anzuzeigen. - - - day_empty - string - No - null - Definiert, einen Namen für das erste Element der Tages Select-Box und dessen Wert "". Dies is hilfreich, wenn Sie eine Select-Box machen wollen, die die Zeichenkette "Bitte wählen Sie einen Tag" als erstes Element enthält. Beachten Sie, dass Sie Werte wie "YYYY-MM-" als 'time' Attribut definieren können, um einen unselektierten Tag anzuzeigen. - - - - - - 'html_select_date' wird verwendet um Datums-Dropdown-Listen zu erzeugen, - und kann einen oder alle der folgenden Werte darstellen: Jahr, Monat und Tag - - -html_select_date - -{html_select_date} - - -AUSGABE: - -<select name="Date_Month"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="Date_Day"> -<option value="1">01</option> -<option value="2">02</option> -<option value="3">03</option> -<option value="4">04</option> -<option value="5">05</option> -<option value="6">06</option> -<option value="7">07</option> -<option value="8">08</option> -<option value="9">09</option> -<option value="10">10</option> -<option value="11">11</option> -<option value="12">12</option> -<option value="13" selected>13</option> -<option value="14">14</option> -<option value="15">15</option> -<option value="16">16</option> -<option value="17">17</option> -<option value="18">18</option> -<option value="19">19</option> -<option value="20">20</option> -<option value="21">21</option> -<option value="22">22</option> -<option value="23">23</option> -<option value="24">24</option> -<option value="25">25</option> -<option value="26">26</option> -<option value="27">27</option> -<option value="28">28</option> -<option value="29">29</option> -<option value="30">30</option> -<option value="31">31</option> -</select> -<select name="Date_Year"> -<option value="2001" selected>2001</option> -</select> - - - - -html_select_date - - - -{* Start- und End-Jahr können relativ zum aktuellen Jahr definiert werden. *} -{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false} - -AUSGABE: (aktuelles Jahr ist 2000) - -<select name="StartDateMonth"> -<option value="1">January</option> -<option value="2">February</option> -<option value="3">March</option> -<option value="4">April</option> -<option value="5">May</option> -<option value="6">June</option> -<option value="7">July</option> -<option value="8">August</option> -<option value="9">September</option> -<option value="10">October</option> -<option value="11">November</option> -<option value="12" selected>December</option> -</select> -<select name="StartDateYear"> -<option value="1999">1995</option> -<option value="1999">1996</option> -<option value="1999">1997</option> -<option value="1999">1998</option> -<option value="1999">1999</option> -<option value="2000" selected>2000</option> -<option value="2001">2001</option> -</select> - - - diff --git a/docs/de/designers/language-custom-functions/language-function-html-select-time.xml b/docs/de/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 07ca48a4..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - - - html_select_time (Ausgabe von Zeiten als HTML-'options') - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - prefix - string - Nein - Time_ - Prefix des Namens. - - - time - timestamp - Nein - Aktuelle Uhrzeit. - Definiert die zu verwendende Uhrzeit. - - - display_hours - boolean - Nein - true - Definiert ob Stunden ausgegeben werden sollen. - - - display_minutes - boolean - Nein - true - Definiert ob Minuten ausgegeben werden sollen. - - - display_seconds - boolean - Nein - true - Definiert ob Sekunden ausgegeben werden sollen. - - - display_meridian - boolean - Nein - true - Definiert ob der Meridian (am/pm) ausgegeben werden soll. - - - use_24_hours - boolean - Nein - true - Definiert ob die Stunden in 24-Stunden Format angezeigt werden sollen oder nicht. - - - minute_interval - integer - Nein - 1 - Definiert den Interval in der Minuten-Dropdown-Liste. - - - second_interval - integer - Nein - 1 - Definiert den Interval in der Sekunden-Dropdown-Liste. - - - field_array - string - Nein - n/a - Gibt die Daten in einen Array dieses Namens aus. - - - all_extra - string - Nein - null - Fügt allen 'select'-Tags zusätzliche Attribute hinzu. - - - hour_extra - string - Nein - null - Fügt dem Stunden-'select'-Tag zusätzliche Attribute hinzu. - - - minute_extra - string - Nein - null - Fügt dem Minuten-'select'-Tag zusätzliche Attribute hinzu. - - - second_extra - string - Nein - null - Fügt dem Sekunden-'select'-Tag zusätzliche Attribute hinzu. - - - meridian_extra - string - No - null - Fügt dem Meridian-'select'-Tag zusätzliche Attribute hinzu. - - - - - - 'html_select_time' wird verwendet um Zeit-Dropdown-Listen zu erzeugen. - Die Funktion kann alle oder eines der folgenden Felder ausgeben: Stunde, Minute, Sekunde und Meridian. - - -html_select_time - - - - - Ausgabe: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - diff --git a/docs/de/designers/language-custom-functions/language-function-html-table.xml b/docs/de/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 6974bfe2..00000000 --- a/docs/de/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - html_table (Ausgabe von HTML-TABLE Tag) - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standartwert - Beschreibung - - - - - loop - array - Ja - n/a - Array mit den Daten für den Loop - - - cols - integer - Nein - 3 - Anzahl Spalten in einer Tabelle - - - table_attr - string - No - border="1" - Attribute für das Table-Tag - - - tr_attr - string - No - empty - Attribute für das tr-Tag (Arrays werden durchlaufen) - - - td_attr - string - No - empty - Attribute für das tr-Tag (Arrays werden durchlaufen) - - - trailpad - string - No - &nbsp; - Wert für leere Zellen - - - - hdir - string - No - right - Richtung in der die Zeilen gerendered werden. Mögliche Werte: left/right - - - vdir - string - No - down - Richtung in der die Spalten gerendered werden. Mögliche Werte: up/down - - - - - - html_table ist eine eigene Funktion die einen Array als - Tabelle ausgibt. Das cols Attribut definiert die Menge - von Spalten die ausgegeben werden sollen. table_attr, tr_attr - und td_attr definieren die Attribute für die HTML Tags. Wenn tr_attr - oder td_attr Arrays sind, werden diese durchlaufen. trailpad - wird in leere Zellen eingefügt. - - -html_table - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -AUSGABE: - -<table border="1"> -<tr><td>1</td><td>2</td><td>3</td></tr> -<tr><td>4</td><td>5</td><td>6</td></tr> -<tr><td>7</td><td>8</td><td>9</td></tr> -</table> -<table border="0"> -<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table> -<table border="1"> -<tr bgcolor="#eeeeee"><td>1</td><td>2</td><td>3</td><td>4</td></tr> -<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr> -<tr bgcolor="#eeeeee"><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr> -</table> - - - diff --git a/docs/de/designers/language-custom-functions/language-function-mailto.xml b/docs/de/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 59b8171e..00000000 --- a/docs/de/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - mailto - - - - - - - - - - Attribut Name - Typ - Benötigt - Standard - Beschreibung - - - - - Adresse - string - Ja - n/a - Die EMail Adresse - - - Text - string - Nein - n/a - Der Text der angezeigt werden soll. Standardwert ist die EMail Adresse - - - encode - string - Nein - none - Wie die EMail Adresse verschlüsselt werden soll. Erlaubt sind 'none', 'hex' und 'javascript'. - - - CC - string - Nein - n/a - Komma separierte Liste der EMail Adressen, die eine Kopie der Nachricht erhalten sollen. - - - BCC - string - Nein - n/a - Komma separierte Liste der EMail Adressen, die eine blinde Kopie der Nachricht erhalten sollen. - - - Titel - string - Nein - n/a - Titel der Nachricht. - - - Newsgroups - string - Nein - n/a - Komma separierte Liste der Newsgroups, die eine Kopie der Nachricht erhalten sollen. - - - FollowupTo - string - Nein - n/a - Komma separierte Liste der Followup Adressen. - - - Extra - string - Nein - n/a - Zusätzliche Attribute, die sie dem Link geben wollen. - - - - - - mailto vereinfach den Einsatz von mailto-Links und verschlüsselt die Links. Verschlüsselte Links können von WebSpiders schlechter ausgelesen werden. - - - Technische Bemerkung - - Javascript ist wahrscheinlich die beste Methode, die Daten für WebSpider unzugänglich zu machen. - - - -mailto - -{mailto address="me@domain.com"} -{mailto address="me@domain.com" text="Der angezeigte Linktext"} -{mailto address="me@domain.com" encode="javascript"} -{mailto address="me@domain.com" encode="hex"} -{mailto address="me@domain.com" subject="Hallo!"} -{mailto address="me@domain.com" cc="you@domain.com,they@domain.com"} -{mailto address="me@domain.com" extra='class="email"'} - -OUTPUT: - -<a href="mailto:me@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" >Der angezeigte Linktext</a> -<script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6 -9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d% -61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e -%27%29%3b'))</script> -<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >me@domain.com</a> -<a href="mailto:me@domain.com?subject=Hallo%21" >me@domain.com</a> -<a href="mailto:me@domain.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a> -<a href="mailto:me@domain.com" class="email">me@domain.com</a> - - - diff --git a/docs/de/designers/language-custom-functions/language-function-math.xml b/docs/de/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index b0abbe88..00000000 --- a/docs/de/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - math (Mathematik) - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - equation - string - Ja - n/a - Der auszuführende Vergleich. - - - format - string - Nein - n/a - Format der Ausgabe. (sprintf) - - - var - numeric - Ja - n/a - Wert der Vergleichsvariable. - - - assign - string - Nein - n/a - Template-Variable welcher die Ausgabe zugewiesen werden soll. - - - [var ...] - numeric - Yes - n/a - Zusätzliche Werte. - - - - - - 'math' ermöglicht es dem Designer, mathematische Gleichungen - durchzuführen. Alle numerischen Template-Variablen - können dazu verwendet werden und die Ausgabe wird an - die Stelle des Tags geschrieben. Die Variablen werden - der Funktion als Parameter übergeben, dabei kann es sich - um statische oder um Template-Variablen handeln. Erlaubte Operatoren - umfassen: +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, - min, pi, pow, rand, round, sin, sqrt, srans und tan. Konsultieren Sie - die PHP-Dokumentation für zusätzliche Informationen zu dieser - Funktion. - - - Falls Sie die spezielle 'assign' Variable übergeben, wird die - Ausgabe der 'math'-Funktion der Template-Variablen mit dem selben - Namen zugewiesen anstatt ausgegeben zu werden. - - - Technische Bemerkung - - Die 'math'-Funktion ist wegen ihres Gebrauchs der 'eval()'-Funktion - äusserst Ressourcen intensiv. Mathematik direkt im PHP-Skript - zu verwenden ist wesentlich performanter. Sie sollten daher - - wann immer möglich - auf die Verwendung verzichten. Stellen - Sie jedoch auf jeden Fall sicher, dass Sie keine 'math'-Tags in 'sections' - oder anderen 'loop'-Konstrukten verwenden. - - - -math (Mathematik) - -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} - -AUSGABE: - -9 - - -{* $row_height = 10, $row_width = 20, #col_div# = 2, aus Template zugewiesen *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} - -AUSGABE: - -100 - - - -{* Sie können auch Klammern verwenden *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} - -AUSGABE: - -6 - - - -{* Sie können als Ausgabeformat alle von sprintf unterstötzen Definitionen verwenden *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -AUSGABE: - -9.44 - - - diff --git a/docs/de/designers/language-custom-functions/language-function-popup-init.xml b/docs/de/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index f5431ec9..00000000 --- a/docs/de/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - popup_init (Popup Initialisieren) - - 'popup' ist eine Integration von 'overLib', einer Javascript - Library für 'popup'-Fenster. Dies kann verwendet werden um - Zusatzinformationen als Context-Menu oder Tooltip auszugeben. - 'popup_init' muss am Anfang jedes Templates aufgerufen werden, - falls Sie planen darin die popup-Funktion - zu verwenden. Der Author von 'overLib' ist Erik Bosrup, und die - Homepage ist unter http://www.bosrup.com/web/overlib/ erreichbar. - - - Seit Smarty 2.1.2 wird 'overLib' NICHT mehr mitgeliefert. Laden - Sie 'overLib' herunter und platzieren Sie es in Ihrer Document Root. - Danach können Sie mit dem Attribut 'src' definieren an welcher - Stelle die Datei liegt. - - -popup_init - - - - - - diff --git a/docs/de/designers/language-custom-functions/language-function-popup.xml b/docs/de/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index af1c7a6a..00000000 --- a/docs/de/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,412 +0,0 @@ - - - - - popup (Popup-Inhalt definieren) - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - text - string - Ja - n/a - Text/HTML der im Popup ausgegeben werden soll. - - - trigger - string - Nein - onMouseOver - Definiert bei welchem Event das Popup aufgerufen werden soll. Erlaubte Werte sind: onMouseOver und onClick - - - sticky - boolean - Nein - false - Definiert ob das Popup geöffnet bleiben soll bis es manuell geschlossen wird. - - - caption - string - Nein - n/a - Definiert die Überschrift. - - - fgcolor - string - Nein - n/a - Hintergrundfarbe des Popups. - - - bgcolor - string - Nein - n/a - Rahmenfarbe des Popups. - - - textcolor - string - Nein - n/a - Farbe des Textes im Popup. - - - capcolor - string - Nein - n/a - Farbe der Popup-Überschrift. - - - closecolor - string - Nein - n/a - Die Farbe des 'close'-Textes. - - - textfont - string - Nein - n/a - Die Farbe des Textes. - - - captionfont - string - Nein - n/a - Die Schriftart für die Überschrift. - - - closefont - string - Nein - n/a - Die Schriftart für den 'close'-Text. - - - textsize - string - Nein - n/a - Die Schriftgrösse des Textes. - - - captionsize - string - Nein - n/a - Die Schriftgrösse der Überschrift. - - - closesize - string - Nein - n/a - Die Schriftgrösse des 'close'-Textes. - - - width - integer - Nein - n/a - Die Breite der Popup-Box. - - - height - integer - Nein - n/a - Die Höhe der Popup-Box. - - - left - boolean - Nein - false - Öffnet die Popup-Box links von Mauszeiger. - - - right - boolean - Nein - false - Öffnet die Popup-Box rechts von Mauszeiger. - - - center - boolean - Nein - false - Öffnet die Popup-Box in der Mitte des Mauszeigers. - - - above - boolean - Nein - false - Öffnet die Popup-Box oberhalb des Mauszeigers. Achtung: nur möglich wenn 'height' definiert ist. - - - below - boolean - Nein - false - Öffnet die Popup-Box unterhalb des Mauszeigers. - - - border - integer - Nein - n/a - Die Rahmenbreite der Popup-Box. - - - offsetx - integer - Nein - n/a - Horizontale Distanz zum Mauszeiger bei der das Popup geöffnet bleibt. - - - offsety - integer - Nein - n/a - Vertikale Distanz zum Mauszeiger bei der das Popup geöffnet bleibt. - - - fgbackground - url to image - Nein - n/a - Das Hintergundbild. - - - bgbackground - url to image - Nein - n/a - - Definiert das Bild welches verwendet werden soll um den Rahmen zu zeichnen. - Achtung: Sie müssen 'bgcolor' auf '' setzen, da die Farbe sonst angezeigt wird. - Achtung: Wenn sie einen 'close'-Link verwenden, wird Netscape (4.x) die Zellen - mehrfach rendern, was zu einer falschen Anzeige führen kann. - - - - closetext - string - Nein - n/a - Definiert den Text des 'close'-Links. - - - noclose - boolean - Nein - n/a - Zeigt den 'close'-Link nicht an. - - - status - string - Nein - n/a - Definiert den Text der in der Browser-Statuszeile ausgegeben wird. - - - autostatus - boolean - Nein - n/a - Gibt als Statusinformationen den Popup-Text aus. Achtung: Dies überschreibt die definierten Statuswerte. - - - autostatuscap - string - Nein - n/a - Zeigt in der Statusleiste den Wert der Popup-Überschrift an. Achtung: Dies überschreibt die definierten Statuswerte. - - - inarray - integer - Nein - n/a - - Weist 'overLib' an, den Wert aus dem in 'overlib.js' definierten Array 'ol_text' zu lesen. - - - caparray - integer - Nein - n/a - Weist 'overLib' an, die Überschrift aus dem in 'overlib.js' definierten Array 'ol_caps' zu lesen. - - - capicon - url - Nein - n/a - Zeigt das übergebene Bild vor der Überschrift an. - - - snapx - integer - Nein - n/a - Aliniert das Popup an einem horizontalen Gitter. - - - snapy - integer - Nein - n/a - Aliniert das Popup an einem vertikalen Gitter. - - - fixx - integer - Nein - n/a - Fixiert das Popup an der definierten horizontalen Position. Achtung: überschreibt alle anderen horizontalen Positionen. - - - fixy - integer - Nein - n/a - Fixiert das Popup an der definierten vertikalen Position. Achtung: überschreibt alle anderen vertikalen Positionen. - - - background - url - Nein - n/a - Definiert das Hintergrundbild welches anstelle des Tabellenhintergrundes verwendet werden soll. - - - padx - integer,integer - Nein - n/a - Erzeugt horizontale Leerzeichen, um den Text platzieren zu können. Achtung: Dies ist eine 2-Parameter Funktion. - - - pady - integer,integer - Nein - n/a - Erzeugt vertikale Leerzeichen, um den Text platzieren zu können. Achtung: Dies ist eine 2-Parameter Funktion. - - - fullhtml - boolean - Nein - n/a - Lässt Sie den HTML-Code betreffend einem Hintergrundbild komplett kontrollieren. - - - frame - string - Nein - n/a - Kontrolliert Popups in einem anderen Frame. Sehen sie die 'overLib'-Seite für zusätzliche Informationen zu dieser Funktion. - - - timeout - string - Nein - n/a - Führt die übergebene Javascript-Funktion aus, und verwendet deren Ausgabe als Text für das Popup. - - - delay - integer - Nein - n/a - Macht, dass sich das Popup wie ein Tooltip verhält, und nach den definierten Millisekunden verschwindet. - - - hauto - boolean - Nein - n/a - Lässt 'overLib' automatisch definieren an welcher Seite (links/rechts) des Mauszeigers das Popup ausgegeben werden soll. - - - vauto - boolean - Nein - n/a - Lässt 'overLib' automatisch definieren an welcher Seite (oben/unten) des Mauszeigers das Popup ausgegeben werden soll. - - - - - - 'popup' wird verwendet um Javascript-Popup-Fenster zu erzeugen. - - -popup - - -{* 'popup_init' muss am Anfang jeder Seite aufgerufen werden die 'popup' verwendet *} -{popup_init src="/javascripts/overlib.js"} - -{* create a link with a popup window when you move your mouse over *} -{* ein link mit einem Popup welches geöffnet wird wenn die Maus über dem Link ist. *} -<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A> - - -{* Sie können in einem Popup text, html, links und weiteres verwenden *} -<A href="mypage.html" {popup sticky=true caption="mypage contents" -text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A> - -AUSGABE: - - -(Für Beispiele können Sie sich die Smarty Homepage anschauen.) - - - diff --git a/docs/de/designers/language-custom-functions/language-function-textformat.xml b/docs/de/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 6fadeeb1..00000000 --- a/docs/de/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,252 +0,0 @@ - - - - - textformat (Textformatierung) - - - - - - - - - - Attribut Name - Typ - Erforderlich - Standardwert - Beschreibung - - - - - style - string - Nein - n/a - aktueller Stil - - - indent - number - Nein - 0 - Anzahl Zeichen die für das einrücken von Zeilen verwendet werden. - - - indent_first - number - Nein - 0 - Anzahl Zeichen die für das Einrücken der ersten Zeile verwendet werden. - - - indent_char - string - Nein - (single space) - Das Zeichen welches zum Einrücken verwendet werden soll. - - - wrap - number - Nein - 80 - Maximale Zeilenlänge bevor die Zeile umgebrochen wird. - - - wrap_char - string - Nein - \n - Das für Zeilenumbrüche zu verwendende Zeichen. - - - wrap_cut - boolean - Nein - false - Wenn auf 'true' gesetzt, wird die Zeile an der definierten Position abgeschnitten. - - - assign - string - Nein - n/a - Die Template-Variable welcher die Ausgabe zugewiesen werden soll. - - - - - - 'textformat' ist eine Funktion um Text zu formatieren. Die Funktion - entfernt überflüssige Leerzeichen und formatiert Paragrafen - indem sie die Zeilen einrückt und umbricht. - - - Sie können entweder den aktuellen Stil verwenden, oder ihn anhand - der Parameter selber definieren. Im Moment ist 'email' der einzig verfügbare Stil. - - -textformat (Text Formatierung) - -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. - - -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. - -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. - -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -AUSGABE: - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. - - - - - diff --git a/docs/de/designers/language-modifiers.xml b/docs/de/designers/language-modifiers.xml deleted file mode 100644 index 8afc176b..00000000 --- a/docs/de/designers/language-modifiers.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - Variablen-Modifikatoren - - Variablen-Modifikatoren können auf alle Variablen angewendet - werden, um deren Inhalt zu verändern. Dazu hängen sie einfach - ein | (Pipe-Zeichen) und den Modifikatornamen an - die entsprechende Variable an. Ein Modifikator über Parameter in - seiner Arbeitsweise beinflusst werden. Diese Parameter werden dem - Modifikatorname angehängt und mit : getrennt. - - - Modifikator Beispiel - - - - - - Wenn Sie einen Modifikator auf ein Array anwenden, wird dieser auf - jeden Wert angewandt. Um zu erreichen, dass der Modifkator auf den - Array selbst angewendet wird, muss dem Modifikator ein - @ Zeichen vorangestellt werden. Beispiel: - {$artikelTitel|@count} (gibt die Anzahl Elemente - des Arrays $artikelTitel aus.) - - - Modifikatoren können aus Ihrem $plugins_dir automatisch - geladen (sehen Sie dazu auch Naming Conventions) oder - explizit registriert werden (register_modifier). - - - Zudem können alle PHP-Funktionen implizit als Modifikatoren - verwendet werden. (Das Beispiel mit dem @count - Modifier verwendet die Funktion 'count()' von PHP und keinen Smarty - Modifikator) PHP Funktionen zu verwenden eröffnet zwei Probleme: - erstens: manchmal ist die Parameter Reiehnfolge nicht - erwünscht. ({"%2.f"|sprintf:$float} funktioniert - zwar, sieht aber als - {$float|string_format:"%2.f"} das durch Smarty - geliefert wird, besser aus. Zweitens: wenn $security auf TRUE gesetzt ist, - müssen alle verwendeten PHP Funktionen im - $security_settings['MODIFIER_FUNCS']-Array enthalten sein. - - - Siehe auch register_modifier(), register_function(), Smarty durch Plugins erweitern und Variablen-Modifikatoren. - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-capitalize.xml b/docs/de/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 25b973ee..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - capitalize (in Grossbuchstaben schreiben) - - Wird verwendet um den Anfangsbuchstaben aller Wörter in der - Variable gross (upper case) zu schreiben. - - - - - - - - - - - Parameter Position - Typ - Benötigt - Standardwert - Beschreibung - - - - - 1 - boolean - Nein - false - Bestimmt ob Wörter die Ziffern enthalten auch in - Großschreibung gewandelt werden - - - - - - capitalize (in Grossbuchstaben schreiben) - -assign('articleTitle', 'diebe haben in norwegen 20 tonnen streusalz entwendet.'); - -?> -]]> - - - Wobei das Template wie folgt aussieht: - - - - - - AUSGABE: - - - -]]> - - - - Siehe auch lower (in - Kleinbuchstaben schreiben) upper (in Grossbuchstaben - umwandeln) - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-cat.xml b/docs/de/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 1a8543f9..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - cat - - Dieser Wert wird der aktuellen Variable hinzugefügt. - - - - - - - - - - - Parameter Position - Typ - Benötigt - Standard - Beschreibung - - - - - 1 - string - Nein - leer/empty - Wert der an die Variable angefügt werden soll. - - - - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - Bei folgendem index.tpl: - - - - - - Ausgabe: - - - - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-count-characters.xml b/docs/de/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 05db32ab..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - count_characters (Buchstaben zählen) - - - - - - - - - - Parameter Position - Typ - Benötigt - Standard - Beschreibung - - - - - 1 - boolean - Nein - false - Definiert ob Leerzeichen mitgezählt werden sollen. - - - - - - Wird verwendet um die Anzahl Buchstaben in einer Variable auszugeben. - - -count_characters (Buchstaben zählen) - - -{$artikelTitel} -{$artikelTitel|count_characters} -{$artikelTitel|count_characters:true} - -AUSGABE: - -20% der US-Amerikaner finden ihr Land (die USA) nicht auf der Landkarte. -61 -72 - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index e40474cd..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - count_paragraphs (Absätze zählen) - - Wird verwendet, um die Anzahl der Absätze in einer Variable zu ermitteln. - - -count_paragraphs (Paragrafen zählen) - - -{$artikelTitel} -{$artikelTitel|count_paragraphs} - -AUSGABE: - -Britische Spezialeinheiten sind aufgrund eines "Navigationsfehlers" nicht wie beabsichtigt in Gibraltar an Land gegangen, sondern an einem Badestrand, der zu Spanien gehört. - -Ein spanischer Lokführer hat aus Protest gegen die Arbeitsbedingungen nach gearbeiteten acht Stunden einfach seinen Zug stehen lassen, in dem sich allerdings noch 132 Passagiere befanden. -2 - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index b7fd99d5..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - count_sentences (Sätze zählen) - - Wird verwendet, um die Anzahl der Sätze in einer Variable zu ermitteln. - - -count_sentences (Sätze zählen) - - -{$artikelTitel} -{$artikelTitel|count_sentences} - -AUSGABE: - -Zwei Deutsche haben die sogenannte "Painstation" vorgestellt. Bei Fehlern im Spiel wird der Spieler durch Elektroschocks aus der Konsole bestraft. Wer länger aushält, hat gewonnen. -3 - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-count-words.xml b/docs/de/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 8f6ce3ba..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - count_words (Wörter zählen) - - Wird verwendet, um die Anzahl Wörter in einer Variable zu ermiteln. - - -count_words (Wörter zählen) - - -{$artikelTitel} -{$artikelTitel|count_words} - -AUSGABE: - -Südafrika: Eine Polizistin fesselte - mangels mitgebrachter Handschellen - drei Flüchtige mit ihrer Strumpfhose. -12 - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-date-format.xml b/docs/de/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 8941e54a..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - - date_format (Datums Formatierung) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - string - Nein - %b %e, %Y - Das Format des ausgegebenen Datums. - - - 2 - string - Nein - n/a - Der Standardwert (Datum) wenn die Eingabe leer ist. - - - - - - Formatiert Datum und Uhrzeit in das definierte 'strftime()'-Format. - Daten können als Unix-Timestamps, MySQL-Timestamps - und jeder Zeichenkette die aus 'Monat Tag Jahr' (von strtotime parsebar) besteht - übergeben werden. Designer können 'date_format' verwenden, - um vollständige Kontrolle über das Format des Datums zu erhalten. - Falls das übergebene Datum leer ist und der zweite Parameter - übergeben wurde, wird dieser formatiert und ausgegeben. - - -date_format (Datums Formatierung) - -{$smarty.now|date_format} -{$smarty.now|date_format:"%A, %B %e, %Y"} -{$smarty.now|date_format:"%H:%M:%S"} - -AUSGABE: - -Feb 6, 2001 -Tuesday, February 6, 2001 -14:33:00 - - -'date_format' Konvertierungs Spezifikation - -%a - abgekürzter Name des Wochentages, abhängig von der gesetzten Umgebung - -%A - ausgeschriebener Name des Wochentages, abhängig von der gesetzten Umgebung - -%b - abgekürzter Name des Monats, abhängig von der gesetzten Umgebung - -%B - ausgeschriebener Name des Monats, abhängig von der gesetzten Umgebung - -%c - Wiedergabewerte für Datum und Zeit, abhängig von der gesetzten Umgebung - -%C - Jahrhundert (Jahr geteilt durch 100, gekürzt auf Integer, Wertebereich 00 bis 99) - -%d - Tag des Monats als Zahl (Bereich 00 bis 31) - -%D - so wie %m/%d/%y - -%e - Tag des Monats als Dezimal-Wert, einstelligen Werten wird ein Leerzeichen voran gestellt (Wertebereich Ž 0Ž bis Ž31Ž) - -%g - wie %G, aber ohne Jahrhundert. - -%G - Das vierstellige Jahr entsprechend der ISO Wochennummer (siehe %V). Das gleiche Format und der gleiche Wert wie bei %Y. Besonderheit: entspricht die ISO Wochennummer dem vorhergehenden oder folgenden Jahr, wird dieses Jahr verwendet. - -%h - so wie %b - -%H - Stunde als Zahl im 24-Stunden-Format (Bereich 00 bis 23) - -%I - Stunde als Zahl im 12-Stunden-Format (Bereich 01 bis 12) - -%j - Tag des Jahres als Zahl (Bereich 001 bis 366) - -%m - Monat als Zahl (Bereich 01 bis 12) - -%M - Minute als Dezimal-Wert - -%n - neue Zeile - -%p - entweder `am' oder `pm' (abhängig von der gesetzten Umgebung) oder die entsprechenden Zeichenketten der gesetzten Umgebung - -%r - Zeit im Format a.m. oder p.m. - -%R - Zeit in der 24-Stunden-Formatierung - -%S - Sekunden als Dezimal-Wert - -%t - Tabulator - -%T - aktuelle Zeit, genau wie %H:%M:%S - -%u - Tag der Woche als Dezimal-Wert [1,7], dabei ist 1 der Montag. - -%U - Nummer der Woche des aktuellen Jahres als Dezimal-Wert, beginnend mit dem ersten Sonntag als erstem Tag der ersten Woche. - -%V - Kalenderwoche (nach ISO 8601:1988) des aktuellen Jahres. Als Dezimal-Zahl mit dem Wertebereich 01 bis 53, wobei die Woche 01 die erste Woche mit mindestens 4 Tagen im aktuellen Jahr ist. Die Woche beginnt montags (nicht sonntags). (Benutzen Sie %G or %g für die Jahreskomponente, die der Wochennummer für den gegebenen Timestamp entspricht.) - -%w - Wochentag als Dezimal-Wert, Sonntag ist 0 - -%W - Nummer der Woche des aktuellen Jahres, beginnend mit dem ersten Montag als erstem Tag der ersten Woche. - -%x - bevorzugte Datumswiedergabe (ohne Zeit), abhängig von der gesetzten Umgebung. - -%X - bevorzugte Zeitwiedergabe (ohne Datum), abhängig von der gesetzten Umgebung. - -%y - Jahr als 2-stellige-Zahl (Bereich 00 bis 99) - -%Y - Jahr als 4-stellige-Zahl inklusive des Jahrhunderts - -%Z - Zeitzone, Name oder eine Abkürzung - -%% - ein %-Zeichen - -BEMERKUNG FÜR PROGRAMMIERER: 'date_format' ist ein wrapper für PHP's 'strftime()'-Funktion. -Je nachdem auf welchem System ihr PHP kompiliert wurde, ist es durchaus möglich, dass nicht alle -angegebenen Formatierungszeichen unterstützt werden. Beispielsweise stehen %e, %T, %R und %D -(eventuell weitere) auf Windowssystemen nicht zur Verfügung. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-default.xml b/docs/de/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 2703af2f..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - default (Standardwert) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - string - Nein - leer - Dieser Wert wird ausgegeben wenn die Variable leer ist. - - - - - - Wird verwendet um den Standardwert einer Variable festzulegen. - Falls die Variable leer ist oder nicht gesetzt wurde, - wird dieser Standardwert ausgegeben. - Default (Standardwert) hat 1 Parameter. - - -default (Standardwert) - -{* gib "kein Titel" (ohne Anführungszeichen) aus, falls '$artikelTitel' leer ist *} -{$artikelTitel|default:"kein Titel"} - -AUSGABE: - -kein Titel - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-escape.xml b/docs/de/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index fba2cad2..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - escape (Maskieren) - - - - - - - - - - - Parameter Position - Typ - Erforderlich - Mögliche (erlaubte) Werte - Standardwerte - Beschreibung - - - - - 1 - string - Nein - html, htmlall, url, quotes, hex, hexentity, javascript - html - Definiert die zu verwendende Maskierung. - - - - - - Wird verwendet um eine Variable mit HTML, URL oder - einfachen Anführungszeichen, beziehungsweise Hex oder Hex-Entitäten - zu maskieren. Hex und Hex-Entity kann verwendet werden um "mailto:" - -Links so zu verändern, dass sie von Web-Spiders (E-Mail Sammlern) - verborgen bleiben und dennoch les-/linkbar für Webbrowser bleiben. - Als Standard, wird 'HTML'-Maskierung verwendet. - - - escape (Maskieren) - - -]]> - - - Wobei im Template folgendes steht: - - - - - - Ausgabe: - - - - - - - Siehe auch Smarty Parsing umgehen - und Verschleierung von E-mail Adressen. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-indent.xml b/docs/de/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 8b418b04..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - indent (Einrücken) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - integer - Nein - 4 - Definiert die Länge der Zeichenkette die verwendet werden soll um den Text einzurücken. - - - 2 - string - Nein - (ein Leerschlag) - Definiert das Zeichen, welches verwendet werden soll um den Text einzurücken. - - - - - - Wird verwendet, um eine Zeichenkette auf jeder Zeile einzurücken. - Optionaler Parameter ist die Anzahl der Zeichen, - um die der Text eingerückt werden soll. Standardlänge ist 4. - Als zweiten optionalen Parameter können sie ein Zeichen übergeben, - das für die Einrückung verwendet werden soll (für Tabulatoren: '\t'). - - -indent (Einrücken) - - - - - Ausgabe: - - - - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-lower.xml b/docs/de/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index b7b824ee..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - lower (in Kleinbuchstaben schreiben) - - Wird verwendet um eine Zeichenkette in Kleinbuchstaben auszugeben. - - -lower (in Kleinbuchstaben schreiben) - -{$artikelTitel} -{$artikelTitel|lower} - -AUSGABE: - -In Kalifornien wurde ein Hund in das Wählerverzeichnis eingetragen. -in kalifornien wurde ein hund in das wählerverzeichnis eingetragen. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-nl2br.xml b/docs/de/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 1840ed77..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - nl2br - - Konvertiert alle Zeilenschaltungen in <br /> Tags. Genau wie die PHP Funktion nl2br. - - - nl2br - -assign('articleTitle', "Sonne oder Regen erwartet,\nnachts dunkel."); -$smarty->display('index.tpl'); - -?> -]]> - - - Wobei index.tpl wie folgt aussieht: - - - - - - Ausgabe: - - -nachts dunkel. -]]> - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index c304702e..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - regex_replace (Ersetzen mit regulären Ausdrücken) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - string - Ja - n/a - Definiert das zu ersetzende Suchmuster, als regulären Ausdruck. - - - 2 - string - Ja - n/a - Definiert die ersetzende Zeichenkette. - - - - - - Suchen/Ersetzen mit regulären Ausdrücken. Folgt der Syntax von PHP's preg_replace(). - - -regex_replace (Ersetzen mit regulären Ausdrücken) - -{* Ersetzt jeden Zeilenumbruch-Tabulator-Neuezeile, durch ein Leerzeichen. *} - -{$artikelTitel} -{$artikelTitel|regex_replace:"/[\r\t\n]/":" "} - -AUSGABE: - -Ein Bankangestellter in England zerkaut aus Stress - bei der Arbeit wöchentlich 50 Kugelschreiber. Er ist deshalb in Behandlung. -Ein Bankangestellter in England zerkaut aus Stress bei der Arbeit wöchentlich 50 Kugelschreiber. Er ist deshalb in Behandlung. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-replace.xml b/docs/de/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 734dba21..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - replace (Ersetzen) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - string - Ja - n/a - Die zu ersetzende Zeichenkette. - - - 2 - string - Ja - n/a - Die ersetzende Zeichenkette. - - - - - - Einfaches suchen/ersetzen in einer Variable. - - -replace (Ersetzen) - -{$artikelTitel} -{$artikelTitel|replace:"Fracht":"Lieferung"} -{$artikelTitel|replace:" ":" "} - -AUSGABE: - -Ein Holsten-Laster hat in England seine komplette Fracht verloren, die nun von jedermann aufgesammelt werden kann. -Ein Holsten-Laster hat in England seine komplette Lieferung verloren, die nun von jedermann aufgesammelt werden kann. -Ein Holsten-Laster hat in England seine komplette Fracht verloren, die nun von jedermann aufgesammelt werden kann. - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-spacify.xml b/docs/de/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index e25b09e4..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - spacify (Zeichenkette splitten) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - string - Nein - ein Leerzeichen - Definiert die zwischen allen Zeichen einzufügende Zeichenkette. - - - - - - Fügt zwischen allen Zeichen einer Variablen ein Leerzeichen ein. - Eine alternativ einzufügende Zeichenkette kann über - den ersten Parameter definiert werden. - - -spacify (Zeichenkette splitten) - -{$artikelTitel} -{$artikelTitel|spacify} -{$artikelTitel|spacify:"^^"} - -AUSGABE: - -Ein Mann flog 5000 km um sich die Haare schneiden zu lassen. Grund: Seine offensichtlich begnadete Friseuse zog von den Bermudas nach England und bis dato fand er keine Neue. -E i n M a n n f l o g 5 0 0 0 k m u m s i c h d i e H a a r e s c h n e i d e n z u l a s s e n . G r u n d : S e i n e o f f e n s i c h t l i c h b e g n a d e t e F r i s e u s e z o g v o n d e n B e r m u d a s n a c h E n g l a n d u n d b i s d a t o f a n d e r k e i n e N e u e . -E^^i^^n^^ ^^M^^a^^n^^n^^ ^^f^^l^^o^^g^^ ^^5^^0^^0^^0^^ ^^k^^m^^ ^^u^^m^^ ^^s^^i^^c^^h^^ ^^d^^i^^e^^ ^^H^^a^^a^^r^^e^^ ^^s^^c^^h^^n^^e^^i^^d^^e^^n^^ ^^z^^u^^ ^^l^^a^^s^^s^^e^^n^^.^^ ^^G^^r^^u^^n^^d^^:^^ ^^S^^e^^i^^n^^e^^ ^^o^^f^^f^^e^^n^^s^^i^^c^^h^^t^^l^^i^^c^^h^^ ^^b^^e^^g^^n^^a^^d^^e^^t^^e^^ ^^F^^r^^i^^s^^e^^u^^s^^e^^ ^^z^^o^^g^^ ^^v^^o^^n^^ ^^d^^e^^n^^ ^^B^^e^^r^^m^^u^^d^^a^^s^^ ^^n^^a^^c^^h^^ ^^E^^n^^g^^l^^a^^n^^d^^ ^^u^^n^^d^^ ^^b^^i^^s^^ ^^d^^a^^t^^o^^ ^^f^^a^^n^^d^^ ^^e^^r^^ ^^k^^e^^i^^n^^e^^ ^^N^^e^^u^^e^^.^^ - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-string-format.xml b/docs/de/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index b4a614dc..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - string_format (Zeichenkette formatieren) - - - - - - - - - - Parameter Position - Typ - Erfoderlich - Standardwert - Beschreibung - - - - - 1 - string - Ja - n/a - Das zu verwendende Format (sprintf). - - - - - - Wird verwendet um eine Zeichenkette, wie zum Beispiel dezimale Werte, zu formatieren. - Folgt der Formatierungs-Syntax von sprintf. - - -string_format (Zeichenkette formatieren) - -{$wert} -{$wert|string_format:"%.2f"} -{$wert|string_format:"%d"} - -AUSGABE: - -23.5787446 -23.58 -24 - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index c9223d8b..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - strip_tags - - - - - - - - - - Parameter Position - Typ - Benötigt - Standard - Beschreibung - - - - - 1 - bool - Nein - true - Definiert ob Tags durch ' ' oder '' ersetzt werden sollen. - - - - - - Entfernt alle Markup tags. - Eigentlich alles zwischen < und >. - - - strip_tags - -assign('articleTitle', "Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen."); -$smarty->display('index.tpl'); -?> -]]> - - - where index.tpl is: - - - - - - This will output: - - -betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf einer kleinen Insel zwischenlanden und den Mann aussetzen. -]]> - - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-strip.xml b/docs/de/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 0c54d73e..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - strip (Zeichenkette strippen) - - Ersetzt mehrfache Leerzeichen, Zeilenumbrüche und Tabulatoren durch ein Leerzeichen - oder eine alternative Zeichenkette. - - - Achtung - - Falls Sie ganze Blöcke eines Templates 'strippen' möchten, - verwenden Sie dazu strip. - - - -strip (Zeichenkette strippen) - -{$artikelTitel} -{$artikelTitel|strip} -{$artikelTitel|strip:"&nbsp;"} - -AUSGABE: - -Ein 18 Jahre alter Pappkarton - erzielte bei Ebay einen Erlös von - 536 Dollar. Es war der Karton, in dem der erste Apple verpackt war. -Ein 18 Jahre alter Pappkarton erzielte bei Ebay einen Erlös von 536 Dollar. Es war der Karton, in dem der erste Apple verpackt war. -Ein&nbsp;18&nbsp;Jahre&nbsp;alter&nbsp;Pappkarton&nbsp;erzielte&nbsp;bei&nbsp;Ebay&nbsp;einen&nbsp;Erlös&nbsp;von&nbsp;536&nbsp;Dollar.&nbsp;Es&nbsp;war&nbsp;der&nbsp;Karton,&nbsp;in&nbsp;dem&nbsp;der&nbsp;erste&nbsp;Apple&nbsp;verpackt&nbsp;war. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-truncate.xml b/docs/de/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e4e75d6d..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - truncate (kürzen) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - integer - Nein - 80 - Länge, auf die die Zeichenkette gekürzt werden soll. - - - 2 - string - Nein - ... - An die gekürzte Zeichenkette anzuhängende Zeichenkette. - - - 3 - boolean - Nein - false - Nur nach ganzen Worten (false) oder exakt an der definierten Stelle (true) kürzen. - - - - - - Kürzt die Variable auf eine definierte Länge. Standardwert sind 80 Zeichen. - Als optionaler zweiter Parameter kann eine Zeichenkette übergeben werden, welche - der gekürzten Variable angehängt wird. Diese zusätzliche Zeichenkette - wird bei der Berechnung der Länge berücksichtigt. Normalerweise wird - 'truncate' versuchen, die Zeichenkette zwischen zwei Wörtern umzubrechen. Um die - Zeichenkette exakt an der definierten Position abzuscheiden, - können sie als dritten Parameter 'true' übergeben. - - -truncate (kürzen) - -{$artikelTitel} -{$artikelTitel|truncate} -{$artikelTitel|truncate:30} -{$artikelTitel|truncate:30:""} -{$artikelTitel|truncate:30:"---"} -{$artikelTitel|truncate:30:"":true} -{$artikelTitel|truncate:30:"...":true} - -AUSGABE: - -George W. Bush will die frei gewählten Mitglieder der ICANN ("Internetregierung") durch Regierungsvertreter der USA ersetzen. -George W. Bush will die frei gewählten Mitglieder der ICANN ("Internetregierung") durch Regierungsvertreter der USA ersetzen. -George W. Bush will die frei... -George W. Bush will die frei -George W. Bush will die frei--- -George W. Bush will die frei -George W. Bush will die fr... - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-upper.xml b/docs/de/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 17409f17..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - upper (in Grossbuchstaben umwandeln) - - Wandelt eine Zeichenkette in Grossbuchstaben um. - - -upper (in Grossbuchstaben umwandeln) - -{$artikelTitel} -{$artikelTitel|upper} - -AUSGABE: - -Ein 58jähriger Belgier ist nach 35 Jahren zum Sieger der Weltmeisterschaft im Querfeldeinrennen 1967 erklärt worden - Grund: Ein damaliger Formfehler. -EIN 58JÄHRIGER BELGIER IST NACH 35 JAHREN ZUM SIEGER DER WELTMEISTERSCHAFT IM QUERFELDEINRENNEN 1967 ERKLÄRT WORDEN - GRUND: EIN DAMALIGER FORMFEHLER. - - - diff --git a/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 3f0a8322..00000000 --- a/docs/de/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - wordwrap (Zeilenumbruch) - - - - - - - - - - Parameter Position - Typ - Erforderlich - Standardwert - Beschreibung - - - - - 1 - integer - Nein - 80 - Definiert maximale Länge einer Zeile in der umzubrechenden Zeichenkette. - - - 2 - string - Nein - \n - Definiert das zu verwendende Zeichen. - - - 3 - boolean - Nein - false - Definiert ob die Zeichenkette nur zwischen Wörtern getrennt (false), oder auch abgeschnitten werden darf (true). - - - - - - Bricht eine Zeichenkette an einer definierten Stelle (Standardwert 80) um. - Als optionaler zweiter Parameter kann das Zeichen übergeben werden, - welches zum Umbrechen verwendet werden soll (Standardwert '\n'). Normalerweise - bricht wordwrap nur zwischen zwei Wörtern um. Falls Sie exakt an der - definierten Stelle umbrechen wollen, übergeben - Sie als optionalen dritten Parameter 'true'. - - -wordwrap (Zeilenumbruch) - -{$artikelTitel} - -{$artikelTitel|wordwrap:75} - -{$artikelTitel|wordwrap:50} - -{$artikelTitel|wordwrap:75:"<br>\n"} - -{$artikelTitel|wordwrap:75:"\n":true} - -AUSGABE: - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz danach zurück, um die Hose umzutauschen, weil die Grösse nicht passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz -danach zurück, um die Hose umzutauschen, weil die Grösse nicht -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft -eine Hose und kam kurz danach zurück, um die -Hose umzutauschen, weil die Grösse nicht -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz<br> -danach zurück, um die Hose umzutauschen, weil die Grösse nicht<br> -passte. - -Eine Frau stahl in einem Bekleidungsgeschäft eine Hose und kam kurz d -anach zurück, um die Hose umzutauschen, weil die Grösse nicht pass -te. - - - diff --git a/docs/de/designers/language-variables.xml b/docs/de/designers/language-variables.xml deleted file mode 100644 index 89ab6477..00000000 --- a/docs/de/designers/language-variables.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - Variablen - - Smarty hat verschiedene Variablentypen, welche weiter unten - detailliert beschrieben werden. Der Typ der Variable wird durch - das Vorzeichen bestimmt. - - - - Variablen können in Smarty direkt ausgegeben werden oder als - Argumente - für Funktionsparameter und - Modifikatoren sowie in - Bedingungen verwendet werden. Um eine Variable auszugeben, - umschliessen Sie sie mit Trennzeichen, so dass die - Variable das einzige enthaltene Element ist. Beispiele: - - - - - -&designers.language-variables.language-assigned-variables; -&designers.language-variables.language-config-variables; -&designers.language-variables.language-variables-smarty; - - diff --git a/docs/de/designers/language-variables/language-assigned-variables.xml b/docs/de/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 29adf750..00000000 --- a/docs/de/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - - Aus einem PHP-Skript zugewiesene Variablen - - Variablen die in einem PHP Skript assigned mit zugewiesen wurden, müssen - mit eine Dollar Zeichen $ versehen werden. Auf - die gleiche Art werden Variablen ausgegeben, die im Template mit {assign} zugewiesen - wurden. - - - zugewiesene Variablen - PHP-Skript - -assign('vorname', 'Andreas'); -$smarty->assign('nachname', 'Halter'); -$smarty->assign('treffpunkt', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - Mit folgendem index.tpl: - - - -{* - das hier funktioniert nicht, da bei Variablennamen auf - Gross-Kleinschreibung geachtet werden muss: -*} -Diese Woche findet das Treffen in {$treffPunkt} statt. - -{* aber das hier funktioniert: *} -Diese Woche findet das Treffen in {$treffpunkt} statt. -]]> - - - Ausgabe: - - - -Diese Woche findet das Treffen in statt. -Diese Woche findet das Treffen in New York statt. -]]> - - - - Assoziative Arrays - - Sie können auch auf die Werte eines in PHP zugewiesenen - assoziativen Arrays zugreifen, indem Sie den Schlüssel (Indexwert) - nach einem '.'-Zeichen (Punkt) notieren. - - - Zugriff auf Variablen eines assoziativen Arrays - -assign('kontakte', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'telefon' => array('privat' => '555-444-3333', - 'mobil' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - - - Bei folgender index.tpl: - - - -{$kontakte.email}
    -{* auch multidimensionale Arrays können so angesprochen werden *} -{$kontakte.telefon.privat}
    -{$kontakte.telefon.mobil}
    -]]> -
    - - Ausgabe: - - - -zaphod@slartibartfast.example.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - Array Index - - Arrays können - ähnlich der PHP-Syntax - auch über ihren Index - angesprochen werden. - - - Zugriff über den Array Index - -assign('kontakte', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - Bei folgendem index.tpl: - - - -{$kontakte[1]}
    -{* auch hier sind multidimensionale Arrays möglich *} -{$kontakte[0][0]}
    -{$kontakte[0][1]}
    -]]> -
    - - Ausgabe: - - - -zaphod@slartibartfast.example.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - - Objekte - - Attribute von aus PHP zugewiesenen Objekten können über - das '->'-Symbol erreicht werden. - - - Zugriff auf Objekt-Attribute - -name}
    -email: {$person->email}
    -]]> -
    - - Ausgabe: - - - -email: zaphod@slartibartfast.example.com
    -]]> -
    -
    -
    -
    - diff --git a/docs/de/designers/language-variables/language-config-variables.xml b/docs/de/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 4e0801e6..00000000 --- a/docs/de/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Verwendung von Variablen aus Konfigurationsdateien - - Variablen, die aus einer Konfigurationsdatei geladen werden, referenziert man mit - umschliessenden '#'-Zeichen (Raute). - - - -Konfigurationsvariablen - -<html> -<title>{#seitenTitel#}</title> -<body bgcolor="{#bodyHintergrundFarbe#}"> -<table border="{#tabelleRahmenBreite#}" bgcolor="{#tabelleHintergrundFarbe#}"> -<tr bgcolor="{#reiheHintergrundFarbe#}"> - <td>Vornamen</td> - <td>Nachnamen</td> - <td>Adresse</td> -</tr> -</table> -</body> -</html> - - - Variablen aus Konfigurationsdateien können erst verwendet werden, - wenn sie aus der Datei geladen wurden. Dieser Vorgang wird im Abschnitt - config_load weiter unten näher erläutert. - - - diff --git a/docs/de/designers/language-variables/language-variables-smarty.xml b/docs/de/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index a8f8f429..00000000 --- a/docs/de/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,171 +0,0 @@ - - - - - Die reservierte {$smarty} Variable - - Die reservierte Variable {$smarty} wird verwendet, um auf spezielle - Template-Variablen zuzugreifen. Im Folgenden die Liste der - Variablen: - - - Request-Variablen - - - Aud die Request-Variablen - $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV and $_SESSION (siehe $request_vars_order - und $request_use_auto_globals - ) kann wie folgt zugegriffen werden. - - - Ausgabe der Requestvariablen (Anfragevariablen) - -{* anzeigen der variable 'page' aus der URL oder dem FORM, welche mit GET übertragen wurde *} -{$smarty.get.page} - -{* anzeigen der variable 'page' welche mit POST übertragen wurde *} -{$smarty.post.page} - -{* anzeigen des cookies "benutzer" *} -{$smarty.cookies.benutzer} - -{* anzeigen der Server-Variable "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* anzeigen der Environment-Variable "PATH" *} -{$smarty.env.PATH} - -{* anzeigen der Session-Variable "id" *} -{$smarty.session.id} - -{* anzeigen der Variable "benutzer" aus dem $_REQUEST Array (Zusammenstellung von get/post/cookie/server/env) *} -{$smarty.request.benutzer} - - - - - Aus historischen Gründen kann {$SCRIPT_NAME} verwendet werden, - allerdings ist {$smarty.server.SCRIPT_NAME} die empfohlene - Variante. - - - - - {$smarty.now} - - Die momentane Unix-Timestamp kann über {$smarty.now} angefragt - werden. Diese Zahl ist die Summe der verstrichenen Sekunden seit - Beginn der UNIX-Epoche (1. Januar 1970) und kann zur Anzeige - direkt dem 'date_format'-Modifikator - übergeben werden. - - - Verwendung von {$smarty.now} - - - - - - - {$smarty.const} - - Hiermit kann auf PHP-Konstanten zugegriffen werden. Siehe auch smarty constants - - - Benutzung von {$smarty.const} - - - - - - - {$smarty.capture} - - Auf die mit dem {capture}..{/capture} - Konstrukt abgefangene Ausgabe kann via {$smarty} zugegriffen - werden. Ein Beispiel dazu finden Sie im Abschnitt zu capture. - - - - - {$smarty.config} - - {$smarty} kann dazu genutzt werde, um auf Config-Variablen - zuzugreifen. {$smarty.config.foo} ist ein Synonym for {#foo#}. Im - Abschnitt {config_load} ist - ein Beispiel. - - - - {$smarty.section}, {$smarty.foreach} - - {$smarty} wird auch verwendet, um auf Eigenschaften von {section} und foreach Schleifen - zuzugreifen. - - - - - {$smarty.template} - - Diese Variable enthält den Namen des gerade verarbeiteten - Templates. - - - - - {$smarty.version} - - Diese Variable enthält die Smarty Versionsnummer mit der das - Template kompiliert wurde. - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Diese Variablen dienen dazu den linken und rechten Trennzeichen - wortwörtlich auszugeben. Siehe auch {ldelim},{rdelim}. - - - Siehe auch: - Variables and - Config Variables - - - - diff --git a/docs/de/getting-started.xml b/docs/de/getting-started.xml deleted file mode 100644 index d0a5463b..00000000 --- a/docs/de/getting-started.xml +++ /dev/null @@ -1,656 +0,0 @@ - - - - - Erste Schritte - - Was ist Smarty? - - Smarty ist eine Template-Engine für PHP. Genauer gesagt - erlaubt es die einfache Trennung von Applikations-Logik und - Design/Ausgabe. Dies ist vor allem wünschenswert, wenn der - Applikationsentwickler nicht die selbe Person ist wie der - Designer. Nehmen wir zum Beispiel eine Webseite die Zeitungsartikel - ausgibt. Der Titel, die Einführung, der Author und der Inhalt - selbst enthalten keine Informationen darüber wie sie - dargestellt werden sollen. Also werden sie von der Applikation an - Smarty übergeben, damit der Designer in den Templates mit - einer Kombination von HTML- und Template-Tags die Ausgabe - (Tabellen, Hintergrundfarben, Schriftgrössen, Stylesheets, - etc.) gestalten kann. Falls nun die Applikation eines Tages - angepasst werden muss, ist dies für den Designer nicht von - Belang, da die Inhalte immer noch genau gleich übergeben - werden. Genauso kann der Designer die Ausgabe der Daten beliebig - verändern, ohne dass eine Änderung der Applikation - vorgenommen werden muss. Somit können der Programmierer die - Applikations-Logik und der Designer die Ausgabe frei anpassen, ohne - sich dabei in die Quere zu kommen. - - - Was Smarty nicht kann: Smarty versucht nicht die gesamte Logik aus - dem Template zu verbannen. Solange die verwendete Logik - ausschließlich für die Ausgabe verwendet wird, kann sie auch - im Template eingebettet werden. Ein Tip: versuchen Sie - Applikations-Logik aus dem Template und Präsentations-Logik - aus der Applikation herauszuhalten. Nur so bleibt die Applikation - auf absehbere Zeit gut skalier- und wartbar. - - - Einer der einzigartigen Aspekte von Smarty ist die Kompilierung der - Templates. Smarty liest die Template-Dateien und generiert daraus - neue PHP-Skripte; von da an werden nur noch diese Skripte - verwendet. Deshalb müssen Templates nicht für jeden - Seitenaufruf performance-intensiv neu geparst werden und jedes - Template kann voll von PHP Compiler-Cache Lösungen - profitieren. (Zend, &url.zend;; - PHP Accelerator, &url.ion-accel;) - - - Ein paar Smarty Charakteristiken - - - - - Sehr schnell. - - - - - Sehr effizient, da der PHP-Parser die 'schmutzige' Arbeit - übernimmt. - - - - - Kein Overhead durch Template-Parsing, nur einmaliges kompilieren. - - - - - Re-kompiliert nur gänderte Templates. - - - - - Sie können die Engine um individuelle Funktionen - und Variablen-Modifikatoren - erweitern. - - - - - Konfigurierbare Syntax für Template-Tags: Sie - können {}, {{}}, <!--{}-->, etc. verwenden. - - - - - 'if/elseif/else/endif'-Konstrukte - werden direkt dem PHP-Parser übergeben. Somit können {if - ...} Ausdrücke sowohl sehr einfach als auch sehr komplex sein. - - - - - Unbegrenzte Verschachtelung von 'section', 'if' und - anderen Blöcken. - - - - - Ermöglicht die direkte Einbettung von - PHP-Code. (Obwohl es weder benötigt noch empfohlen - wird, da die Engine einfach erweiterbar ist.) - - - - - Eingebauter Caching-Support - - - - - Beliebige Template-Quellen - - - - - Eigene Cache-Handling - Funktionen - - - - - Plugin Architektur - - - - - - Installation - - Anforderungen - - Smarty benötigt einen Webserver mit PHP >=4.0.6. - - - - Basis Installation - - Technische Bemerkung - - Dieser Leitfaden geht davon aus, dass Sie Ihr Webserver- und - PHP-Setup kennen und mit den Namenskonventionen für Dateien - und Verzeichnisse Ihres Betriebssystems vertraut sind. Im - Folgenden wird ein Unix-Dateisystem verwendet, stellen Sie also - sicher, dass sie die für Ihr Betriebssystem nötigen - Änderungen vornehmen. - - - Das Beispiel geht davon aus, dass '/php/includes' in Ihrem - PHP-'include_path' liegt. Konsultieren Sie das PHP-Manual - für weiterführende Informationen hierzu. - - - - Installieren Sie als erstes die Smarty-Library Dateien (den - /libs/-Ordner der Smarty Distribution). - Diese Dateien sollten von Ihnen NICHT editiert und von allen Applikationen - verwendet werden. Sie werden nur erneuert, wenn Sie eine neue Version von - Smarty installieren. - - In the examples below the Smarty tarball has been unpacked to: - - - /usr/local/lib/Smarty-v.e.r/ - unter *nix-basierten Betriebsystemen - und - c:\webroot\libs\Smarty-v.e.r\ - unter Windows-Umgebungen. - - - - Technische Bemerkung - - - Wir empfehlen keine Änderungen an den Smarty-Library Dateien - vorzunehmen. Dies macht ein mögliches Upgrade wesentlich - einfacher. Sie müssen diese Dateien auch nicht anpassen, um - Smarty zu konfigurieren! Benutzen Sie für diesen Zwecke eine - Instanz der Smarty-Klasse. - - - - Folgende Library Dateien werden mit Smarty geliefert und werden benötigt: - - - Benötigte Smarty-Library Dateien - - - - - - Sie können diese Dateien entweder in Ihrem PHP-'include_path' - oder auch in irgend einem anderen Verzeichnis ablegen, solange die - Konstante SMARTY_DIR auf den korrekten - Pfad zeigt. Im Folgenden werden Beispiele für beide - Fälle aufgezeigt. SMARTY_DIR muss in jedem - Fall am Ende einen Slash ("/", unter Windows ggf. einen - Backslash "\") enthalten. - - - So erzeugt man eine Instanz der Smarty-Klasse im PHP-Skript: - - - Smarty Instanz erstellen: - - -]]> - - - - - Versuchen Sie das Skript auszuführen. Wenn Sie eine - Fehlermeldung erhalten dass Smarty.class.php - nicht gefunden werden konnte, versuchen Sie folgendes: - - - - Manuelles setzen der SMARTY_DIR-Konstanten - - -]]> - - - - - SMARTY_DIR manuell setzen - - -]]> - - - - - Absoluter Pfad übergeben - - -]]> - - - - - Library Verzeichnis dem Include-Pfad hinzufügen - - - - - - - Library Verzeichnis dem Include-Pfad mit - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> hinzufügen - - -]]> - - - - - Jetzt, wo die Library Dateien an ihrem Platz sind, wird es Zeit, - die Smarty Verzeichnisse zu erstellen. - - - Für unser Beispiel werden wir die Smarty Umgebung für - eine Gästebuch-Applikation konfigurieren. Wir verwenden den - Applikationsnamen nur, um die Verzeichnis-Struktur zu - verdeutlichen. Sie können die selbe Umgebung für alle - Ihre Applikationen verwenden indem Sie 'guestbook' durch dem Namen - Ihrer Applikation ersetzen. - - - Stellen Sie sicher, dass Sie die DocumentRoot Ihres Webservers - kennen. In unserem Beispiel lautet sie - '/web/www.domain.com/docs/'. - - - Die Smarty Verzeichnisse werden in den Klassen-Variablen $template_dir, $compile_dir, $config_dir und $cache_dir definiert. Die - Standardwerte sind: templates, templates_c, configs und cache. Für unser Beispiel legen - wir alle diese Verzeichnisse unter /web/www.domain.com/smarty/guestbook/ - an. - - - Technische Bemerkung - - Wir empfehlen, diese Verzeichnisse ausserhalb der DocumentRoot - anzulegen, um mögliche Direktzugriffe zu verhindern. - - - - In Ihrer DocumentRoot muss mindestens eine Datei liegen, die - für Browser zugänglich ist. Wir nennen dieses Skript - index.php, und legen es in das Verzeichnis - /guestbook/ in unserer - DocumentRoot. - - - - Technische Bemerkung - - Bequem ist es, den Webserver so zu konfigurieren, dass - index.php als Standard-Verzeichnis-Index - verwendet wird. Somit kann man das Skript direkt mit - 'http://www.domain.com/guestbook/' aufrufen. Falls Sie Apache - verwenden, lässt sich dies konfigurieren indem Sie - index.php als letzten Eintrag für - DirectoryIndex verwenden. (Jeder Eintrag - muss mit einem Leerzeichen abgetrennt werden). - - - - - Die Dateistruktur bis jetzt: - - - - Beispiel der Dateistruktur - - - - - - - Technische Bemerkung - - Falls Sie kein Caching und keine Konfigurationsdateien verwenden, - ist es nicht erforderlich die Verzeichnisse '$config_dir' und - '$cache_dir' zu erstellen. Es wird jedoch trotzdem empfohlen, da - diese Funktionalitäten eventuell später genutzt werden - sollen. - - - - Smarty benötigt Schreibzugriff auf die Verzeichnisse $compile_dir und $cache_dir. Stellen Sie also - sicher, dass der Webserver-Benutzer (normalerweise Benutzer - 'nobody' und Gruppe 'nogroup') in diese Verzeichnisse schreiben - kann. (In OS X lautet der Benutzer normalerweise 'www' und ist in - der Gruppe 'www'). Wenn Sie Apache verwenden, können Sie in - der httpd.conf (gewöhnlich in '/usr/local/apache/conf/') - nachsehen, unter welchem Benutzer Ihr Server läuft. - - - Dateirechte einrichten - - - - - - - Technische Bemerkung - - 'chmod 770' setzt ziemlich strenge Rechte und erlaubt nur dem - Benutzer 'nobody' und der Gruppe 'nobody' Lese-/Schreibzugriff - auf diese Verzeichnisse. Falls Sie die Rechte so setzen - möchten, dass auch andere Benutzer die Dateien lesen - können (vor allem für Ihren eigenen Komfort), so - erreichen Sie dies mit 775. - - - - - Nun müssen wir die index.tpl Datei - erstellen, welche Smarty laden soll. Die Datei wird in Ihrem - $template_dir - abgelegt. - - - - Editieren von /web/www.example.com/smarty/guestbook/templates/index.tpl - - - - - - - Technische Bemerkung - - {* Smarty *} ist ein Template-Kommentar. Der - wird zwar nicht benötigt, es ist jedoch eine gute Idee jedes - Template mit einem Kommentar zu versehen. Dies erleichtert die - Erkennbarkeit des Templates, unabhängig von der verwendeten - Dateierweiterung. (Zum Beispiel für Editoren die - Syntax-Highlighting unterstützen.) - - - - - Als nächstes editieren wir die Datei - index.php. Wir erzeugen eine Smarty-Instanz, - weisen dem Template mit assign() - eine Variable zu und geben index.tpl mit - display aus. - - - - Editieren von /web/www.example.com/docs/guestbook/index.php - -template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -//** Die folgende Zeile "einkommentieren" um die Debug-Konsole anzuzeigen -//$smarty->debugging = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - - Technische Bemerkung - - In unserem Beispiel verwenden wir durchwegs absolute Pfadnamen zu - den Smarty-Verzeichnissen. Falls /web/www.example.com/smarty/guestbook/ - in Ihrem PHP-'include_path' liegt, wäre dies nicht - nötig. Es ist jedoch effizienter und weniger - fehleranfällig die Pfade absolut zu setzen. Und es - garantiert, dass Smarty die Templates aus dem geplanten - Verzeichnis lädt. - - - - - Wenn Sie index.php nun in Ihrem Webbrowser - öffnen, sollte 'Hallo, Ned, herzlich Willkommen!' ausgegeben werden. - - - Die Basis-Installation von Smarty wäre somit beendet. - - - - Erweiterte Konfiguration - - - Dies ist eine Weiterführung der Basis Installation, bitte - lesen Sie diese zuerst! - - - Ein flexiblerer Weg um Smarty aufzusetzen ist, die Klasse zu - erweitern und eine eigene Smarty-Umgebung zu - initialisieren. Anstatt immer wieder die Verzeichnisse zu - definieren, kann diese Aufgabe auch in einer einzigen Datei - erledigt werden. Beginnen wir, indem wir ein neues Verzeichnis - namens '/php/includes/guestbook/' erstellen und eine Datei namens - 'setup.php' darin anlegen. - - - - Editieren von /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name','Guest Book'); - } - -} -?> -]]> - - - - - Technische Bemerkung - - In unserem Beispiel werden die Library Dateien ausserhalb der - DocumentRoot abgelegt. Diese Dateien könnten sensitive - Informationen enthalten, die wir nicht zugänglich machen - möchten. Deshalb legen wir alle Library Dateien in - '/php/includes/guestbook/' ab und laden sie in unserem 'setup.php' - Skript, wie Sie im oben gezeigten Beispiel sehen können. - - - - - Nun passen wir index.php an, um 'setup.php' - zu verwenden: - - - - Editieren von /web/www.example.com/docs/guestbook/index.php - -assign('name','Ned'); -$smarty->display('index.tpl'); - -?> -]]> - - - - Wie Sie sehen können, ist es sehr einfach eine Instanz von - Smarty zu erstellen. Mit Hilfe von Smarty_GuestBook werden alle - Variablen automatisch initialisiert. - - - - - - - diff --git a/docs/de/language-defs.ent b/docs/de/language-defs.ent deleted file mode 100644 index 21451b72..00000000 --- a/docs/de/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/de/language-snippets.ent b/docs/de/language-snippets.ent deleted file mode 100644 index 64825427..00000000 --- a/docs/de/language-snippets.ent +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Technische Bemerkung - - Der merge Parameter berüksichtigt Array - Keys. Das bedeutet, dass numerisch indizierte Arrays sich - gegenseitig überschreiben können, oder die Keys nicht - sequentiell ausgegeben werden. Dies, im Gegensatz zur PHP Funktion - array_merge(), die - numerische Keys neu sortiert. - -'> - - - Als optionaler dritter Parameter, können sie die - $compile_id angeben. Dies ist sinnvoll, wenn - Sie verschiedene Versionen der komipilerten Templates für - verschiedene Sprachen unterhalten wollen. Weiter ist dieser Parameter - nützlich, wenn Sie mehrere - $template_dir Verzeichnisse, - aber nur ein $compile_dir - nutzen. Setzen Sie $compile_id für jedes - Template Verzeichnis, da gleichnamige Templates sich sonst - überschreiben. Sie können die - $compile_id auch nur einmal, - global setzen. -'> diff --git a/docs/de/livedocs.ent b/docs/de/livedocs.ent deleted file mode 100644 index a6204815..00000000 --- a/docs/de/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/docs/de/preface.xml b/docs/de/preface.xml deleted file mode 100644 index 3ed6902a..00000000 --- a/docs/de/preface.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - Vorwort - - Die Frage, wie man die Applikations-Logik eines PHP-Scriptes vom - Layout trennt, ist unzweifelhaft eines der am häfigsten - diskutierten Themen. Da PHP als "in HTML eingebettete - Scripting-Sprache" angepriesen wird, ergibt sich nach einigen - Projekten in denen man HTML und PHP gemischt hat schnell die Idee, - Funktionalität und Darstellung zu trennen. Dazu kommt, dass in - vielen Firmen Applikationsentwickler und Designer nicht die selbe - Person sind. In Konsequenz beginnt die Suche nach einer - Template-Lösung. - - - Als Beispiel: In unserer Firma funktioniert die Entwicklung einer - Applikation wie folgt: Nachdem die Spezifikationen erstellt sind, - entwickelt der Interface Designer einen Prototypen des Interfaces - und übergibt dieses dem Programmierer. Der Programmierer - implementiert die Geschäftslogik in PHP und verwendet den - Interface-Prototypen zur Erstellung eines Template-Skeletts. - Danach übergibt der Programmierer die Templates dem - HTML/Webseiten-Designer welcher ihnen den letzten Schliff - verleiht. Das Projekt kann mehrfach zwischen dem Programmieren und - dem Designer ausgetauscht werden. Deshalb ist es wichtig, dass die - Trennung von Logik und Design klar stattfindet. Der Programmierer - will sich normalerweise nicht mit HTML herumschlagen müssen - und möchte auch nicht, dass der Designer seinen PHP-Code - verändert. Designer selbst benötigen - Konfigurationsdateien, dynamische Blöcke und andere Interface - spezifische Eigenheiten, möchten aber auch nicht direkt mit - PHP in Berührung kommen. - - - Die meisten Template-Engines die heutzutage angeboten werden, - bieten eine rudimentäre Möglichkeit Variablen in einem - Template zu ersetzen und beherschen eine eingeschränkte - Funktionalität für dynamische Blöcke. Unsere - Anforderungen forderten jedoch ein wenig mehr. Wir wollten - erreichen, dass sich Programmierer überhaupt nicht um HTML - Layouts kümmern müssen. Dies war aber fast - unumgänglich. Wenn ein Designer zum Beispiel alternierende - Farben in einer Tabelle einsetzen wollte, musste dies vorhergehend - mit dem Programmierer abgesprochen werden. Wir wollten weiter, dass - dem Designer Konfigurationsdateien zur Verfügung stünden, - aus denen er Variablen für seine Templates extrahieren - kann. Die Liste ist endlos. - - - Wir begannen 1999 mit der Spezifikation der Template - Engine. Nachdem dies erledigt war, fingen wir an eine Engine in C - zu schreiben, die - so hofften wir - in PHP eingebaut - würde. Nach einer hitzigen Debatte darüber was eine - Template Engine können sollte und was nicht, und nachdem wir - feststellen mussten, dass ein paar komplizierte technische Probleme - auf uns zukommen würden, entschlossen wir uns die Template - Engine in PHP als Klasse zu realisieren, damit sie von jederman - verwendet und angepasst werden kann. So schrieben wir also eine - Engine, die wir SmartTemplate nannten - (anm: diese Klasse wurde nie veröffentlicht). SmartTemplate - erlaubte uns praktisch alles zu tun was wir uns vorgenommen hatten: - normale Variablen-Ersetzung, Möglichkeiten weitere Templates - einzubinden, Integration von Konfigurationsdateien, Einbetten von - PHP-Code, limitierte 'if'-Funktionalität und eine sehr robuste - Implementation von dynamischen Blöcken die mehrfach - verschachtelt werden konnten. All dies wurde mit Regulären - Ausdrücken erledigt und der Sourcecode wurde ziemlich - unübersichtlich. Für grössere Applikationen war die - Klasse auch bemerkenswert langsam, da das Parsing bei jedem Aufruf - einer Seite durchlaufen werden musste. Das grösste Problem - aber war, dass der Programmierer das Setup, die Templates und - dynamische Blöcke in seinem PHP-Skript definieren musste. Die - nächste Frage war: wie können wir dies weiter - vereinfachen? - - - Dann kam uns die Idee, aus der schließlich Smarty wurde. Wir wussten - wie schnell PHP-Code ohne den Overhead des Template-Parsing ist. Wir wussten - ebenfalls wie pedantisch PHP aus Sicht eines durchschnittlichen - Designers ist und dass dies mit einer einfacheren Template-Syntax - verborgen werden kann. Was wäre also, wenn wir diese - beiden Stärken vereinten? Smarty war geboren... - - diff --git a/docs/de/programmers/advanced-features.xml b/docs/de/programmers/advanced-features.xml deleted file mode 100644 index 4366a3eb..00000000 --- a/docs/de/programmers/advanced-features.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Advanced Features -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; -&programmers.advanced-features.section-template-cache-handler-func; -&programmers.advanced-features.template-resources; - - diff --git a/docs/de/programmers/advanced-features/advanced-features-objects.xml b/docs/de/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 283a09f0..00000000 --- a/docs/de/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - Objekte - - Smarty erlaubt es, auf PHP-Objekte durch das Template - zuzugreifen. Dafür gibt es zwei Wege. Der erste ist, Objekte zu - registrieren und wie auf - eine eigene - Funktion zuzugreifen. Der andere Weg ist, das Objekt dem - Template mit assign() zuzuweisen - und darauf wie auf andere Variablen zuzugreifen. Die erste Methode - hat eine nettere Template Syntax und ist sicherer da der Zugriff auf - ein registriertes Objekt mit Sicherheitseinstellungen kontrolliert - werden kann. Der Nachteil ist, dass über registrierte Objekte nicht - in einer Schlaufe gelaufen werden kann und, dass es nicht möglich - ist, Arrays registrierten Objekten anzulegen. Welchen Weg Sie - einschlagen wird von Ihren Bedürfnissen definiert, die erste Methode - ist jedoch zu bevorzugen. - - - Wenn die Sicherheitsfunktionen - eingeschaltet sind, können keine private Methoden (solche die einen - '_'-Prefix tragen) aufgerufen werden. Wenn eine Methode und eine - Eigeschaft mit dem gleichen Namen existieren wird die Methode - verwendet. - - - Sie können den Zugriff auf Methoden und Eigenschaften - einschränken indem Sie sie als Array als dritten - Registrationsparameter übergeben. - - - Normalerweise werden Parameter welche einem Objekt via Template - übergeben werden genau so übergeben wie dies bei normalen eigenen Funktionen der - Fall ist. Das erste Objekt ist ein assoziatives Array und das - zweite das Smarty Objekt selbst. Wenn Sie die Parameter einzeln - erhalten möchten können Sie den vierten Parameter auf - false setzen. - - - Der optionale fünfte Parameter hat nur einen Effekt wenn - format = true ist und eine - Liste von Methoden enthält die als Block verarbeitet werden sollen. - Das bedeutet, dass solche Methoden ein schliessendes Tag im Template - enthalten müssen - ({foobar->meth2}...{/foobar->meth2}) und die - Parameter zu den Funktionen die selbe Syntax haben wie - block-function-plugins: sie erhalten also die 4 Parameter - $params, - $content, - &$smarty und - &$repeat, - und verhalten sich auch sonst wie block-function-plugins. - - - registierte oder zugewiesene Objekte verwenden - -register_object("foobar",$myobj); -// Zugriff auf Methoden und Eigeschaften einschränken -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// wenn wir das traditionelle Parameterformat verwenden wollen, übergeben wir false für den Parameter format -$smarty->register_object("foobar",$myobj,null,false); - -// Objekte zuweisen (auch via Referenz möglich) -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display('index.tpl'); -?> -]]> - - - Und hier das dazugehörige index.tpl: - - -meth1 p1="foo" p2=$bar} - -{* Ausgabe zuweisen *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -ausgabe war: {$output} - -{* auf unser zugewiesenes Objekt zugreifen *} -{$myobj->meth1("foo",$bar)} -]]> - - - - Siehe auch register_object() und assign() - - - diff --git a/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 1138040b..00000000 --- a/docs/de/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - Ausgabefilter - - Wenn ein Template mit 'display()' oder 'fetch()' benutzt wird, kann die - Ausgabe durch verschieden Ausgabefilter geschleust werden. Der Unterschied zu - 'post'-Filtern ist, dass Ausgabefilter auf die durch 'fetch()' oder - 'display()' erzeugte Ausgabe angewendet werden, 'post'-Filter aber auf das Kompilat vor - seiner Speicherung im Dateisystem. - - - - Ausgabefilter können auf verschiede Arten - geladen werden. Man kann sie registrieren, - aus dem Plugin-Verzeichnis mit load_filter() laden - oder $autoload_filters verwenden. - Smarty übergibt der Funktion als ersten Parameter die Template-Ausgabe und erwartet - als Rückgabewert die bearbeitete Ausgabe. - - - Ausgabefilter verwenden - -register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// von nun an erhalten alle ausgegebenen e-mail Adressen einen -// einfach Schutz vor Spambots. -?> -]]> - - - - diff --git a/docs/de/programmers/advanced-features/advanced-features-postfilters.xml b/docs/de/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 3e4d4c12..00000000 --- a/docs/de/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Postfilter - - Template Postfilter sind Filter, welche auf das Template nach dessen Kompilierung - angewendet werden. Postfilter können auf verschiedene Arten - geladen werden. Man kann sie registrieren, - aus dem Plugin-Verzeichnis mit load_filter() laden - oder $autoload_filters verwenden. - Smarty übergibt der Funktion als ersten Parameter den Template-Quellcode und erwartet - als Rückgabewert den bearbeiteten Quellcode. - - - Template Postfilter verwenden - -\n\" ?>\n".$tpl_source; -} - -// registrieren Sie den Postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> - -{* kompiliertes Smarty Template 'index.tpl' *} - -{* Rest des Template Inhalts... *} -]]> - - - - Sie auch register_postfilter(), - Prefilter und - load_filter() - - - diff --git a/docs/de/programmers/advanced-features/advanced-features-prefilters.xml b/docs/de/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 2fd47e8b..00000000 --- a/docs/de/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Prefilter - - Template Prefilter sind Filter, welche auf das Template vor dessen Kompilierung - angewendet werden. Dies ist nützlich, um zum Beispiel Kommentare zu entfernen - oder um den Inhalt des Templates zu analysieren. Prefilter können auf verschiedene - Arten geladen werden. Man kann sie registrieren, - aus dem Plugin-Verzeichnis mit load_filter() laden - oder $autoload_filters verwenden. - Smarty übergibt der Funktion als ersten Parameter den Template-Quellcode und erwartet - als Rückgabewert den bearbeiteten Quellcode. - - - Template Prefilter verwenden - - Dieser Prefiler entfernt alle Kommentare aus dem Template-Quelltext - - -/U",'',$tpl_source); -} - -// registrieren Sie den Prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> - -{* Smarty Template 'index.tpl' *} - - -]]> - - - - Sie auch register_prefilter(), - Postfilter und - load_filter() - - - diff --git a/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 5a033ac0..00000000 --- a/docs/de/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Cache Handler Funktion - - Als Alternative zum normalen dateibasierten Caching-Mechanismus können Sie - eine eigene Cache-Handler Funktion zum lesen, schreiben und löschen von - Cache-Dateien definieren. - - - Schreiben Sie eine Funktion in Ihrer Applikation, die Smarty als - Cache-Handler verwenden soll und weisen Sie deren Name der Variable - $cache_handler_func zu. - Smarty wird von da an Ihre Funktion zur Bearbeitung des Caches verwenden. - Als erster Parameter wird die 'action' mit einem der folgendende Werte - übergeben: 'read', 'write' und 'clear'. Als zweiter Parameter - wird das Smarty-Objekt übergeben, als dritter der gecachte Inhalt. Bei einem - 'write' übergibt Smarty den gecachten Inhalt, bei 'read' übergibt Smarty die - Variable als Referenz und erwartet, dass Ihre Funktion die Inhalte zuweist. - Bei 'clear' können Sie eine dummy-Variable übergeben. Als vierter Parameter - wird der Template-Name übergeben (verwendet bei 'write'/'read'), als fünfter - Parameter die 'cache_id' (optional) und als sechster die 'compile_id' (auch optional). - - - Der letzte Parameter ($exp_time) wurde in - Smarty-2.6.0 hinzugefügt. - - - Beispiel mit einer MySQL Datenbank als Datenquelle - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -die Datenbank hat folgendes Format: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) -{ - - // Datenbank Host, Benutzer und Passwort festlegen - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // enmalige 'cache_id' erzeugen - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - - // Cache aus der Datenbank lesen - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_contents = gzuncompress($row["CacheContents"]); - } else { - $cache_contents = $row["CacheContents"]; - } - $return = $results; - break; - - case 'write': - - // Cache in Datenbank speichern - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - - // Cache Informationen löschen - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - - // alle löschen - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - - // Fehler, unbekannte 'action' - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - - diff --git a/docs/de/programmers/advanced-features/template-resources.xml b/docs/de/programmers/advanced-features/template-resources.xml deleted file mode 100644 index ad1d27fe..00000000 --- a/docs/de/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,229 +0,0 @@ - - - - - Ressourcen - - Ein Template kann aus verschiedenen Quellen bezogen werden. Wenn Sie - ein Template mit 'display()' ausgeben, die Ausgabe mit 'fetch()' - in einer Variablen speichern oder innnerhalb eines Template ein - weiteres Template einbinden, müssen Sie den Ressourcen-Typ, - gefolgt von Pfad und Template-Namen angeben. Wenn kein Resourcetyp angegeben - wird, wird $default_resource_type - verwendet. - - - Templates aus dem '$template_dir' - - Templates aus dem '$template_dir' benötigen normalerweise keinen Ressourcen-Typ, - es wird jedoch empfohlen 'file:' zu verwenden. Übergeben Sie einfach den Pfad, - in dem sich das Template relativ zu '$template_dir' befindet. - - - Templates aus '$template_dir' verwenden - - - // im PHP-Skript - $smarty->display("index.tpl"); - $smarty->display("admin/menu.tpl"); - $smarty->display("file:admin/menu.tpl"); // entspricht der vorigen Zeile - - - {* im Smarty Template *} - {include file="index.tpl"} - {include file="file:index.tpl"} {* entspricht der vorigen Zeile *} - - - - Templates aus beliebigen Verzeichnissen - - Templates ausserhalb von '$template_dir' benötigen den 'file:' Ressourcen-Typ, - gefolgt von absolutem Pfadnamen und Templatenamen. - - - Templates aus beliebigen Verzeichnissen benutzen - - - // im PHP-Skript - $smarty->display("file:/export/templates/index.tpl"); - $smarty->display("file:/path/to/my/templates/menu.tpl"); - - - {* im Smarty Template *} - {include file="file:/usr/local/share/templates/navigation.tpl"} - - - - Windows Dateipfade - - Wenn Sie auf einer Windows-Maschine arbeiten, enthalten absoluten Dateipfade - normalerweise den Laufwerksbuchstaben (C:). Stellen Sie sicher, - dass alle Pfade den Ressourcen-Typ 'file:' haben, um Namespace-Konflikten - vorzubeugen. - - - Templates aus Windows Dateipfaden verwenden - - - // im PHP-Skript - $smarty->display("file:C:/export/templates/index.tpl"); - $smarty->display("file:F:/path/to/my/templates/menu.tpl"); - - - {* im Smarty Template *} - {include file="file:D:/usr/local/share/templates/navigation.tpl"} - - - - - - Templates aus anderen Quellen - - Sie können Templates aus jeder für PHP verfügbaren Datenquelle beziehen: - Datenbanken, Sockets, LDAP, usw. Dazu müssen sie nur ein - Ressource-Plugin schreiben und registrieren. - - - - Konsultieren Sie den Abschnitt über Ressource-Plugins - für mehr Informationen über die Funktionalitäten, die ein derartiges Plugin bereitstellen muss. - - - - - Achtung: Sie können die interne file Ressource nicht - überschreiben. Es steht Ihnen jedoch frei, ein Plugin zu schreiben, - das die gewünschte Funktionalität implementiert und es als alternativen - Ressource-Typ zu registrieren. - - - - Eigene Quellen verwenden - - - // im PHP-Skript - - - // definieren Sie folgende Funktion in Ihrer Applikation - function db_get_template ($tpl_name, &tpl_source, &$smarty_obj) - { - // Datenbankabfrage um unser Template zu laden, - // und '$tpl_source' zuzuweisen - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } - } - - function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) - { - - // Datenbankabfrage um '$tpl_timestamp' zuzuweisen - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } - } - - function db_get_secure($tpl_name, &$smarty_obj) - { - - // angenommen alle Templates sind sicher - return true; - } - - function db_get_trusted($tpl_name, &$smarty_obj) - { - - // wird für Templates nicht verwendet - } - - - // Ressourcen-Typ 'db:' registrieren - $smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - - - // Ressource im PHP-Skript verwenden - $smarty->display("db:index.tpl"); - - - {* Ressource in einem Smarty Template verwenden *} - {include file="db:/extras/navigation.tpl"} - - - - - Standard Template-Handler - - Sie können eine Funktion definieren, die aufgerufen wird, - wenn ein Template nicht aus der angegeben Ressource geladen werden konnte. - Dies ist z. B. nützlich, wenn Sie fehlende Templates on-the-fly - generieren wollen. - - - Standard Template-Handler verwenden - - <?php - - // fügen Sie folgende Zeilen in Ihre Applikation ein - - function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) - { - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - - // erzeuge Template-Datei, gib Inhalte zurück - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name, $template_source); - return true; - } - } else { - - // keine Datei - return false; - } - } - - - // Standard Handler definieren - $smarty->default_template_handler_func = 'make_template'; - ?> - - - - diff --git a/docs/de/programmers/api-functions.xml b/docs/de/programmers/api-functions.xml deleted file mode 100644 index 92894552..00000000 --- a/docs/de/programmers/api-functions.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Methoden der Klasse Smarty -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - - - diff --git a/docs/de/programmers/api-functions/api-append-by-ref.xml b/docs/de/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index ee11484d..00000000 --- a/docs/de/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - append_by_ref (Referenz anhängen) - - - - - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um an Template-Variablen Werte via Referenz (pass by reference) anstatt via Kopie - anzuhängen. Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' - für weitere Erklärungen. - </para> - <note> - <title>Technische Bemerkung - - 'append_by_ref()' ist effizienter als 'append()', da keine Kopie der Variable - erzeugt, sondern auf die Variable im Speicher referenziert wird. Beachten Sie - dabei, dass eine nachträgliche änderung Original-Variable auch die zugewiesene Variable - ändert. PHP5 wird die Referenzierung automatisch übernehmen, diese - Funktion dient als Workaround. - - - ¬e.parameter.merge; - - append_by_ref (via Referenz anhängen) - -append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-append.xml b/docs/de/programmers/api-functions/api-append.xml deleted file mode 100644 index 3dd237d9..00000000 --- a/docs/de/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - append (anhängen) - - - - - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um an Template-Variablen weitere Daten anzuhängen. Sie - können entweder ein Namen/Wert-Paar oder assoziative Arrays, - die mehrere Namen/Wert-Paare enthalten, übergeben. - </para> - <example> - <title>append (anhängen) - -append("Name", "Fred"); -$smarty->append("Address", $address); - -// assoziatives Array übergeben -$smarty->append(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-assign-by-ref.xml b/docs/de/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 05790df3..00000000 --- a/docs/de/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - assign_by_ref (Referenz zuweisen) - - - - - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Weist einen Wert via Referenz zu, anstatt eine Kopie zu machen. - Konsultieren Sie das PHP-Manual zum Thema 'variable referencing' für weitere Erklärungen. - </para> - <note> - <title>Technical Note - - 'assign_by_ref()' ist effizienter als 'assign()', da keine Kopie der Variable - erzeugt wird, sondern auf die Variable im Speicher referenziert wird. Beachten Sie - dabei, dass eine nachträgliche änderung Original-Variable auch die zugewiesene Variable - ändert. PHP5 wird die Referenzierung automatisch übernehmen, diese - Funktion dient als Workaround. - - - - assign_by_ref (via Referenz zuweisen) - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-assign.xml b/docs/de/programmers/api-functions/api-assign.xml deleted file mode 100644 index ebb26d39..00000000 --- a/docs/de/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - assign - - - - - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um einem Template Werte zuzuweisen. Sie können - entweder Namen/Wert-Paare oder ein assoziatives Array - mit Namen/Wert-Paaren übergeben. - </para> - <example> - <title>assign - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// assoziatives Array mit Namen/Wert-Paaren übergeben -$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-all-assign.xml b/docs/de/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 5ba769a5..00000000 --- a/docs/de/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - clear_all_assign (alle Zuweisungen löschen) - - - - - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <para> - Löscht die Werte aller zugewiesenen Variablen. - </para> - <example> - <title>clear_all_assign (alle Zuweisungen löschen) - -clear_all_assign(); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-all-cache.xml b/docs/de/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 8d6305e5..00000000 --- a/docs/de/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - clear_all_cache (Cache vollständig leeren) - - - - - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Leert den gesamten Template-Cache. Als optionaler Parameter kann ein - Mindestalter in Sekunden angegeben werden, das die einzelne Datei haben - muss, bevor sie gelöscht wird. - </para> - <example> - <title>clear_all_cache (Cache vollständig leeren) - -clear_all_cache(); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-assign.xml b/docs/de/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 71fbaf5a..00000000 --- a/docs/de/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - clear_assign (lösche Zuweisung) - - - - - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Löscht den Wert einer oder mehrerer (übergabe als Array) zugewiesener Variablen. - </para> - <example> - <title>clear_assign (lösche Zuweisung) - -clear_assign("Name"); - -// lösche mehrere Variablen -$smarty->clear_assign(array("Name", "Address", "Zip")); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-cache.xml b/docs/de/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index f5645aaf..00000000 --- a/docs/de/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - clear_cache (leere Cache) - - - - - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Löscht den Cache eines bestimmten Templates. Falls Sie mehrere - Caches für ein Template verwenden, können Sie als zweiten Parameter - die 'cache_id' des zu leerenden Caches übergeben. Als dritten Parameter - können sie die 'compile_id' angeben. Sie können Templates auch - gruppieren und dann als Gruppe aus dem Cache löschen. Sehen sie dazu den Abschnitt über - <link linkend="caching">caching</link>. Als vierten Parameter können Sie - ein Mindestalter in Sekunden angeben, das ein Cache aufweisen muss, - bevor er gelöscht wird. - </para> - <example> - <title>clear_cache (Cache leeren) - -clear_cache("index.tpl"); - -// leere den Cache einer bestimmten 'cache-id' eines mehrfach-gecachten Templates -$smarty->clear_cache("index.tpl", "CACHEID"); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 3f66c6d0..00000000 --- a/docs/de/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - clear_compiled_tpl (kompiliertes Template löschen) - - - - - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Löscht die kompilierte Version des angegebenen Templates. Falls - kein Template-Name übergeben wird, werden alle kompilierten - Templates gelöscht. Diese Funktion ist für fortgeschrittene Benutzer. - </para> - <example> - <title>clear_compiled_tpl (kompiliertes Template löschen) - -clear_compiled_tpl("index.tpl"); - -// das gesamte Kompilier-Verzeichnis löschen -$smarty->clear_compiled_tpl(); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-clear-config.xml b/docs/de/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 2c33899f..00000000 --- a/docs/de/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - clear_config - - - - - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Löscht alle zugewiesenen Konfigurations-Variablen. Wenn der Variablenname übergeben wird, wird nur diese Variable gelöscht. - </para> - <example> - <title>clear_config - -clear_config(); - -// eine löschen -$smarty->clear_config('foobar'); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-config-load.xml b/docs/de/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 23c102df..00000000 --- a/docs/de/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - config_load - - - - - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Lädt die Konfigurationsdatei <parameter>file</parameter> und weist die Daten dem - Template zu. Dies funktioniert identisch wie <link linkend="language.function.config.load">config_load</link>. - </para> - <note> - <title>Technische Bemerkung - - Seit Smarty 2.4.0 bleiben Variablen während fetch() und display() Aufrufen erhalten. Variablen, die mit config_load() geladen werden sind immer global deklariert. Konfigurationsdateien werden für eine schnellere Ausgabe ebenfalls kompiliert, und halten sich an die force_compile und compile_check Konfiguration. - - - - config_load - -config_load('my.conf'); - -// nur einen abschnitt laden -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-display.xml b/docs/de/programmers/api-functions/api-display.xml deleted file mode 100644 index b67258e7..00000000 --- a/docs/de/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - display (ausgeben) - - - - - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt ein Template aus. Sie müssen einen gültigen - <link linkend="template.resources">Template Ressourcen</link>-Typ - inklusive Pfad angeben. Als optionalen zweiten Parameter können - Sie eine 'cache_id' übergeben. Konsultieren - Sie den Abschnitt über <link linkend="caching">caching</link> für weitere Informationen. - </para> - <para> - Als optionalen dritten Parameter können Sie eine 'compile_id' übergeben. - Dies ist wertvoll, falls Sie verschiedene Versionen eines Templates - kompilieren wollen - zum Beispiel in verschiedenen Sprachen. 'compile_id' - wird auch verwendet, wenn Sie mehr als ein '$template_dir' aber nur ein - '$compile_dir' haben. Setzen Sie dazu für jedes Verzeichnis eine - eigene 'compile_id', andernfalls werden Templates mit dem gleichen Namen - überschrieben. Sie können die Variable <link linkend="variable.compile.id">$compile_id</link> - auch einmalig setzen, anstatt sie bei jedem Aufruf von 'display()' zu übergeben. - </para> - <example> - <title>display (ausgeben) - -caching = true; - -// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert -if(!$smarty->is_cached("index.tpl")) { - - // Beispieldaten - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// ausgabe -$smarty->display("index.tpl"); -?> -]]> - - - - Verwenden Sie die Syntax von template resources - um Dateien ausserhalb von '$template_dir' zu verwenden. - - - Beispiele von Template-Ressourcen für 'display()' - -display("/usr/local/include/templates/header.tpl"); - -// absoluter Dateipfad (alternativ) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// absoluter Dateipfad unter Windows (MUSS mit 'file:'-Prefix versehen werden) -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// aus der Template-Ressource 'db' einbinden -$smarty->display("db:header.tpl"); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-fetch.xml b/docs/de/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 8df4aa56..00000000 --- a/docs/de/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - fetch - - - - - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt die Ausgabe des Template zurück, anstatt es direkt anzuzeigen. Übergeben Sie - einen gültigen <link linkend="template.resources">Template Ressource</link>-Typ - und -Pfad. Als optionaler zweiter Parameter kann eine 'cache_id' übergeben werden. - Bitte konsultieren Sie den Abschnitt über <link linkend="caching">caching </link> - für weitere Informationen. - - </para> - <para> - Als optionalen dritten Parameter können Sie eine 'compile_id' übergeben. - Dies ist wertvoll, falls Sie verschiedene Versionen eines Templates - kompilieren wollen - zum Beispiel in verschiedenen Sprachen. 'compile_id' - wird auch verwendet, wenn Sie mehr als ein '$template_dir' aber nur ein - '$compile_dir' haben. Setzen Sie dann für jedes Verzeichnis eine - eigene 'compile_id', andernfalls werden Templates mit dem gleichen Namen - überschrieben. Sie können die Variable <link linkend="variable.compile.id">$compile_id</link> - auch einmalig setzen, anstatt sie bei jedem Aufruf von 'fetch()' zu übergeben. - </para> - <example> - <title>fetch - -caching = true; - -// Datenbank-Aufrufe nur durchführen, wenn kein Cache existiert -if(!$smarty->is_cached("index.tpl")) { - - // Beispieldaten - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// ausgabe abfangen -$output = $smarty->fetch("index.tpl"); - -// Etwas mit $output anstellen - -echo $output; -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-get-config-vars.xml b/docs/de/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 066e635e..00000000 --- a/docs/de/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - get_config_vars - - - - - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Gibt den Wert der Konfigurationsvariable zurück. Wenn kein Parameter übergeben wird, wird ein Array aller geladenen Variablen zurück gegeben. - </para> - <example> - <title>get_config_vars - -get_config_vars('foo'); - -// alle geladenen konfigurationsvariablen zuweisen -$config_vars = $smarty->get_config_vars(); - -// ausgabe -print_r($config_vars); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-get-registered-object.xml b/docs/de/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 2436759f..00000000 --- a/docs/de/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - get_registered_object - - - - - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Gibt eine Referenz zum registrerten Objekt zurück. Dies ist vorallem sinnvoll, - um von einer eigenen Funktion auf ein registriertes Objekt zuzugreiffen. - </para> - <example> - <title>get_registered_object - -get_registered_object($params['object']); - // $obj_ref ist nun ein pointer zum registrierten objekt - } -} -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-get-template-vars.xml b/docs/de/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index dbf96e3d..00000000 --- a/docs/de/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - get_template_vars (Template-Variablen extrahieren) - - - - - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Gibt ein Array der zugewiesenen Template-Variablen zurück. - </para> - <example> - <title>get_template_vars (Template-Variablen extrahieren) - -get_template_vars('foo'); - -// alle zugewiesenen Template-Variablen extrahieren -$tpl_vars = $smarty->get_template_vars(); - -// Anschauen -print_r($tpl_vars); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-is-cached.xml b/docs/de/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index ce6255cd..00000000 --- a/docs/de/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - is_cached (gecachte Version existiert) - - - - - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Gibt 'true' zurück, wenn ein gültiger Cache für das angegebene Template existiert. - Dies funktioniert nur, wenn <link linkend="variable.caching">caching</link> eingeschaltet ist. - </para> - <example> - <title>is_cached - -caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// Datenbank-Abfragen, Variablen zuweisen... -} - -$smarty->display("index.tpl"); -?> -]]> - - - - Als optionalen zweiten Parameter können Sie die 'cache_id' übergeben, - falls Sie mehrere Caches für ein Template verwenden. - - - 'is_cached' bei mehreren Template-Caches - -caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // Datenbank Abfragen, Variablen zuweisen... -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - - - - Technische Bemerkung - - Wenn is_cached true zurück gibt, wird die Ausgabe geladen. Alle weiteren Aufrufe von display() oder fetch() werden aus diesem Cache bedient. Dies verhindert eine Race Condition, die auftauchen könnte, wenn ein anderes Script das besagte Template aus dem Cache löscht. Das bedeutet natürlich auch, dass clear_cache() und andere Cache spezifische Einstellungen keine Auswirkungen haben, nachdem is_cached true zurückgegeben hat. - - - - - diff --git a/docs/de/programmers/api-functions/api-load-filter.xml b/docs/de/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 54be01b4..00000000 --- a/docs/de/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - load_filter - - - - - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Mit dieser Funktion können Filter-Plugins geladen werden. - Der erste Parameter definiert den Filter-Typ und kann einen der - folgenden Werte haben: 'pre', 'post', oder 'output'. Als zweiter - Parameter wird der Name des Filter-Plugins angegeben, zum Beispiel 'trim'. - </para> - <example> - <title>Filter-Plugins laden - -load_filter('pre', 'trim'); // lade den 'pre'-Filter (Vor-Filter) namens 'trim' -$smarty->load_filter('pre', 'datefooter'); // lade einen zweiten Vor-Filter namens 'datefo -oter' -$smarty->load_filter('output', 'compress'); // lade den 'output'-Filter (Ausgabe-Filter) n -amens 'compress' -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-register-block.xml b/docs/de/programmers/api-functions/api-register-block.xml deleted file mode 100644 index fccbc99d..00000000 --- a/docs/de/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - register_block (Block-Funktion registrieren) - - - - - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Block-Funktion-Plugins dynamisch zu registrieren. - Übergeben Sie dazu den Namen der Block-Funktion und den Namen der - PHP-Callback-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - <example> - <title>register_block (Block-Funktion registrieren) - -register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // übersetze den Inhalt von '$content' - return $translation; - } -} -?> -]]> - - - Wobei das Template wie folgt aussieht: - - - - - - - - diff --git a/docs/de/programmers/api-functions/api-register-compiler-function.xml b/docs/de/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index c73176c1..00000000 --- a/docs/de/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - register_compiler_function (Compiler-Funktion registrieren) - - - - - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Compiler-Funktion-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Compiler-Funktion und den Namen der - PHP-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-register-function.xml b/docs/de/programmers/api-functions/api-register-function.xml deleted file mode 100644 index bc4eaad5..00000000 --- a/docs/de/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Template-Funktion-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Template-Funktion - und den Namen der PHP-Funktion, die die entsprechende Funktionalität bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <para> - <parameter>$cacheable</parameter> und <parameter>$cache_attrs</parameter> können in den meisten Fällen weggelassen werden. Konsultieren Sie <link linkend="caching.cacheable">Die Ausgabe von cachebaren Plugins Kontrollieren</link> für weitere Informationen. - </para> - <example> - <title>register_function (Funktion registrieren) - -register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// Von nun an können Sie {date_now} verwenden, um das aktuelle Datum auszugeben. -// Oder {date_now format="%Y/%m/%d"}, wenn Sie es formatieren wollen. -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-register-modifier.xml b/docs/de/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 8d2e7f9a..00000000 --- a/docs/de/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - register_modifier (Modifikator-Plugin registrieren) - - - - - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um Modifikator-Plugins dynamisch zu - registrieren. Übergeben Sie dazu den Namen der Modifikator-Funktion - und den Namen der PHP-Funktion, die die entsprechende Funktionalität - bereitstellt. - </para> - <para> - Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - <example> - <title>register_modifier (Modifikator-Plugin registrieren) - -register_modifier("sslash", "stripslashes"); - -// Von nun an können Sie {$var|sslash} verwenden, -// um "\"-Zeichen (Backslash) aus Zeichenketten zu entfernen. ('\\' wird zu '\',...) -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-register-object.xml b/docs/de/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 21485f37..00000000 --- a/docs/de/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - register_object - - - - - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet um ein Objekt zu registrieren. Konsultieren Sie den Abschnitt <link linkend="advanced.features.objects">Objekte</link> - für weitere Informationen und Beispiele. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-register-outputfilter.xml b/docs/de/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index bf4ade99..00000000 --- a/docs/de/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter (Ausgabefilter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Verwenden Sie diese Funktion um dynamisch Ausgabefilter zu registrieren, welche - die Template Ausgabe verarbeiten bevor sie angezeigt wird. Konsultieren Sie - den Abschnitt über <link linkend="advanced.features.outputfilters">Ausgabefilter</link> - für mehr Informationen. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-register-postfilter.xml b/docs/de/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 5622314b..00000000 --- a/docs/de/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter ('post'-Filter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um 'post'-Filter dynamisch zu registrieren. 'post'-Filter werden - auf das kompilierte Template angewendet. Konsultieren Sie dazu den - Abschnitt <link linkend="advanced.features.postfilters">template postfilters</link>. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-register-prefilter.xml b/docs/de/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 2eeca3fe..00000000 --- a/docs/de/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter ('pre'-Filter registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um 'pre'-Filter dynamisch zu registrieren. 'pre'-Filter werden - vor der Kompilierung auf das Template angewendet. Konsultieren Sie dazu den - Abschnitt <link linkend="advanced.features.prefilters">'pre'-Filter</link>. - </para> - <para> - Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, - wobei <literal>&$object</literal> eine Referenz zu einem Objekt und <literal>$method</literal> der Name der Methode die aufgerufen werden soll ist, - oder als Array der Form <literal>array(&$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal> - der Name der Methode ist die aufgerufen werden soll, übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-register-resource.xml b/docs/de/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 4261f1ca..00000000 --- a/docs/de/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,69 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource (Ressource registrieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um ein Ressource-Plugin dynamisch zu - registrieren. Übergeben Sie dazu den Ressourcen-Namen und - das Array mit den Namen der PHP-Funktionen, die die Funktionalität implementieren. - Konsultieren Sie den Abschnitt <link linkend="template.resources">template resources</link> - für weitere Informationen zum Thema. - </para> - <note> - <title>Technische Bemerkung - - Ein Ressourcename muss mindestens 2 Zeichen lang sein. Namen mit einem (1) Zeichen - werden ignoriert und als Teil des Pfades verwenden, wie in $smarty->display('c:/path/to/index.tpl');. - - - - Der Parameter resource_funcs muss aus 4 oder 5 Elementen bestehen. Wenn 4 Elemente übergeben werden, - werden diese als Ersatz Callback-Funktionen fü "source", "timestamp", "secure" und "trusted" verwendet. Mit 5 Elementen - muss der erste Parameter eine Referenz auf das Objekt oder die Klasse sein, welche die benötigten Methoden bereitstellt. - - - register_resource (Ressource registrieren) - -register_resource("db", array("db_get_template", -"db_get_timestamp", -"db_get_secure", -"db_get_trusted")); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-template-exists.xml b/docs/de/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 24d9e34c..00000000 --- a/docs/de/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - template_exists (Template existiert) - - - - - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Diese Funktion prüft, ob das angegebene Template existiert. Als Parameter - können entweder ein Pfad im Dateisystem oder eine Ressource übergeben werden. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-trigger-error.xml b/docs/de/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index e5f08230..00000000 --- a/docs/de/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error (Fehler auslösen)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um eine Fehlermeldung via Smarty auszugeben. - Der <parameter>level</parameter>-Parameter kann alle - Werte der 'trigger_error()'-PHP-Funktion haben, - zum Beispiel E_USER_NOTICE, E_USER_WARNING, usw. - Voreingestellt ist E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-block.xml b/docs/de/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 273af855..00000000 --- a/docs/de/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block (Block-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Block-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Block-Funktion. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-compiler-function.xml b/docs/de/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index def48478..00000000 --- a/docs/de/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function (Compiler-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Compiler-Funktionen auszuschalten. - Übergeben Sie dazu den Funktionsnamen der Compiler-Funktion. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-function.xml b/docs/de/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 515f4bb0..00000000 --- a/docs/de/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function (Template-Funktion deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Template-Funktionen auszuschalten. - Übergeben Sie dazu den Namen der Template-Funktion. - </para> - <example> - <title>unregister_function - -unregister_function("fetch"); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-unregister-modifier.xml b/docs/de/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 67923e3f..00000000 --- a/docs/de/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - unregister_modifier (Modifikator deaktivieren) - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Variablen-Modifikatoren auszuschalten. - Übergeben Sie dazu den Modifikator-Namen. - </para> - <example> - <title>unregister_modifier - -unregister_modifier("strip_tags"); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-functions/api-unregister-object.xml b/docs/de/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 621c934f..00000000 --- a/docs/de/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - unregister_object - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Pointer zu einem registrierten Objekt löschen - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-outputfilter.xml b/docs/de/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index ba8505e0..00000000 --- a/docs/de/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter (Ausgabefilter deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Ausgabefilter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-postfilter.xml b/docs/de/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 1316551b..00000000 --- a/docs/de/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter ('post'-Filter deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte 'post'-Filter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-prefilter.xml b/docs/de/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 73d7a9a5..00000000 --- a/docs/de/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter ('pre'-Filter deaktiviern)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte 'pre'-Filter auszuschalten. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/de/programmers/api-functions/api-unregister-resource.xml b/docs/de/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 65321d86..00000000 --- a/docs/de/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource (Ressource deaktivieren)</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Wird verwendet, um registrierte Ressourcen auszuschalten. - Übergeben Sie dazu den Namen der Ressource. - </para> - <example> - <title>unregister_resource (Ressource deaktivieren) - -unregister_resource("db"); -?> -]]> - - - - - diff --git a/docs/de/programmers/api-variables.xml b/docs/de/programmers/api-variables.xml deleted file mode 100644 index 836795f1..00000000 --- a/docs/de/programmers/api-variables.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - Smarty Klassenvariablen (Objekteigenschaften) - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; - - diff --git a/docs/de/programmers/api-variables/variable-autoload-filters.xml b/docs/de/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 7b3068a4..00000000 --- a/docs/de/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - $autoload_filters - - Filter die Sie zu jedem Template laden möchten, können Sie mit Hilfe - dieser Variable festlegen. Smarty wird sie danach automatisch laden. Die Variable - enthält ein assoziatives Array, in dem der Schlüssel den Filter-Typ - und der Wert den Filter-Namen definiert. Zum Beispiel: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - Siehe auch - register_outputfilter(), - register_prefilter(), - register_postfilter() - und - load_filter() - - - - diff --git a/docs/de/programmers/api-variables/variable-cache-dir.xml b/docs/de/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 37569492..00000000 --- a/docs/de/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - $cache_dir - - Definiert den Namen des Verzeichnisses in dem die Template-Caches - angelegt werden. Normalerweise ist dies './cache'. - Das heisst, dass Smarty das Cache-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - Der Webserver muss Schreibrechte für dieses - Verzeichnis haben - (siehe auch Kapitel Installation). - Sie können auch einen eigenen Cache-Handler zur Kontrolle - der Cache-Dateien definieren, der diese Einstellung ignoriert. - Siehe auch - $use_sub_dirs. - - - - Technische Bemerkung - - Die Angabe muss entweder relativ oder absolut angegeben werden. 'include_path' - wird nicht verwendet. - - - - Technische Bemerkung - - Es wird empfohlen ein Verzeichnis ausserhalb der DocumentRoot zu verwenden. - - - - - Siehe auch - $caching, - $use_sub_dirs, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check - und der Abschnitt zum - Caching. - - - - diff --git a/docs/de/programmers/api-variables/variable-cache-handler-func.xml b/docs/de/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index fa7ea1a4..00000000 --- a/docs/de/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $cache_handler_func - - Sie können auch eine eigene Cache-Handler Funktion definieren. - statt nur mit der $cache_dir-Variable - ein eigenes Verzeichnis festzulegen. - Siehe Abschnitt zur custom cache handler Funktion. - - - diff --git a/docs/de/programmers/api-variables/variable-cache-lifetime.xml b/docs/de/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 26a22789..00000000 --- a/docs/de/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - $cache_lifetime - - Definiert die Zeitspanne (in Sekunden) die ein Cache gültig - bleibt. Ist die Zeit abgelaufen, wird der Cache neu generiert. '$caching' - muss eingeschaltet (true) sein, damit '$cache_lifetime' Sinn macht. Der - Wert -1 bewirkt, dass der Cache nie abläuft. Der Wert 0 bewirkt, dass - der Inhalt immer neu generiert wird (nur sinnvoll für Tests, eine - effizientere Methode wäre $caching - auf 'false' zu setzen). - - - Wenn $force_compile - gesetzt ist, wird der Cache immer neu generiert (was einem Ausschalten - von caching gleichkommt). Mit der clear_all_cache() - Funktion können Sie alle Cache-Dateien auf einmal entfernen. Mit der - clear_cache() Funktion können Sie - einzelne Cache-Dateien (oder Gruppen) entfernen. - - - Technische Bemerkung - - Falls Sie bestimmten Templates eine eigene Cache-Lifetime geben wollen, - können Sie dies tun indem Sie $caching - auf 2 stellen und '$cache_lifetime' einen einmaligen Wert zuweisen, bevor Sie - display() - oder fetch() aufrufen. - - - - diff --git a/docs/de/programmers/api-variables/variable-cache-modified-check.xml b/docs/de/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4d2e6cc4..00000000 --- a/docs/de/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - $cache_modified_check - - Wenn auf 1 gesetzt, verwendet Smarty den If-Modified-Since - Header des Clients. Falls sich der Timestamp der Cache-Datei - seit dem letzten Besuch nicht geändert hat, wird der - Header '304 Not Modified' anstatt des Inhalts ausgegeben. Dies - funktioniert nur mit gecachten Inhalten die keine insert - Tags enthalten. - - - - Siehe auch - $caching, - $cache_lifetime, - $cache_handler_func, - und - das Kapitel zum Caching. - - - diff --git a/docs/de/programmers/api-variables/variable-caching.xml b/docs/de/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 37bd5a34..00000000 --- a/docs/de/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - $caching - - Definiert ob Smarty die Template-Ausgabe im Verzeichnis - $cache_dircachen soll. - Normalerweise ist dies ausgeschaltet (disabled, Wert: 0). - Falls Ihre Templates redundante Inhalte erzeugen - ist es empfehlenswert, $caching einzuschalten. - Die Performance wird dadurch signifikant verbessert. - Sie können auch mehrere (multiple) - Caches für ein Template haben. - Die Werte 1 und 2 aktivieren caching. - Bei einem Wert von 1 verwendet Smarty die Variable - $cache_lifetime - um zu berechnen, ob ein Template neu kompiliert werden soll. - Der Wert 2 weist Smarty an, den Wert von $cache_lifetime - zur Zeit der Erzeugung des Cache zu verwenden. - Damit können Sie '$cache_lifetime' setzen bevor Sie das Template einbinden - und haben so eine feine Kontrolle darüber, - wann ein bestimmter Cache abläuft. - Siehe dazu auch: is_cached(). - - - - Wenn $compile_check aktiviert ist, - wird der Cache regeneriert sobald ein Template - oder eine Konfigurations-Variable geändert wurde. - Wenn $force_compile aktiviert ist, - werden die gecachten Inhalte bei jedem Aufruf neu generiert. - - - - Siehe auch - $cache_dir, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check - und - das Kapitel zum Caching. - - - - diff --git a/docs/de/programmers/api-variables/variable-compile-check.xml b/docs/de/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index ceab3831..00000000 --- a/docs/de/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - $compile_check - - Bei jedem Aufruf der PHP-Applikation überprüft Smarty, - ob sich das zugrundeliegende Template seit dem letzten Aufruf - geändert hat. Falls es eine Änderung feststellt, - wird das Template neu kompiliert. Seit Smarty 1.4.0 wird - das Template - falls es nicht existiert - kompiliert, unabhängig - davon welcher Wert '$compile_check' hat. Normalerweise ist der - Wert dieser Variable 'true'. - - - - Wenn eine Applikation produktiv - eingesetzt wird (die Templates ändern sich nicht mehr), kann - der 'compile_check'-Schritt entfallen. Setzen Sie dann - '$compile_check' auf 'false', um die Performance zu steigern. - Achtung: Wenn Sie '$compile_check' auf 'false' setzen und anschliessend - ein Template ändern, wird diese Änderung *nicht* angezeigt. - Wenn $caching - und '$compile_check' eingeschaltet sind, werden die - gecachten Skripts neu kompiliert, sobald eine Änderung an - einem der eingebundenen Templates festgestellt wird. - - Siehe auch $force_compile - und clear_compiled_tpl(). - - - diff --git a/docs/de/programmers/api-variables/variable-compile-dir.xml b/docs/de/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 6230beb6..00000000 --- a/docs/de/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - $compile_dir - - Definiert das Verzeichnis, in das die kompilierten Templates geschrieben - werden. Normalerweise lautet es "./templates_c". - Das heisst, dass Smarty das Kompilier-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - Der Webserver muss Schreibrechte für dieses - Verzeichnis haben - (siehe auch Kapitel Installation). - - - - Technische Bemerkung - - Diese Einstellung kann als relativer oder als absoluter Pfad - angegeben werden. 'include_path' wird nicht verwendet. - - - - Technische Bemerkung - - Dieses Verzeichnis sollte ausserhalb der DocumentRoot - des Webservers liegen. - - - - - Siehe auch $compile_id - und - $use_sub_dirs. - - - diff --git a/docs/de/programmers/api-variables/variable-compile-id.xml b/docs/de/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 98f658f9..00000000 --- a/docs/de/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - $compile_id - - Persistenter 'compile-identifier'. Anstatt jedem Funktionsaufruf die selbe '$compile_id' - zu übergeben, kann eine individuelle '$compile_id' gesetzt werden. Das ist z. B. - sinnvoll, um in Kombination mit einem 'prefilter' verschiedene Sprach-Versionen eines Template - kompilieren. - - - - Mit einer individuellen $compile_id können Sie das Problem beheben, - dass Sie nicht das gleiche - $compile_dir - für unterschiedliche - $template_dirs - verwenden können. - Wenn Sie eine eindeutige $compile_id für jedes - $template_dir setzen, - dann kann Smarty die kompilierten Templates anhand ihrer $compile_id auseinanderhalten. - - - - Ein Beispiel ist die Lokalisierung (also die Übersetzung sprachabhängiger Teile) - durch einen prefilter - während der Kompilierung des Templates. - Sie können dort die aktuelle Sprache als $compile_id verwenden - und erhalten damit für jede Sprache einen eigenen Satz von Templates. - - - - Ein anderes Beispiel ist die Verwendung des selben Compile-Verzeichnisses - für verschiedene Domains / verschiedene Virtual Hosts. - - - $compile_id in einer Virtual Host Umgebung - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - - - - - diff --git a/docs/de/programmers/api-variables/variable-compiler-class.xml b/docs/de/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index a0580855..00000000 --- a/docs/de/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compiler_class - - Definiert den Namen der Compiler-Klasse, die Smarty zum kompilieren - der Templates verwenden soll. Normalerweise 'Smarty_Compiler'. Nur - für fortgeschrittene Anwender. - - - diff --git a/docs/de/programmers/api-variables/variable-config-booleanize.xml b/docs/de/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 671eea8c..00000000 --- a/docs/de/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - $config_booleanize - - Wenn auf 'true' gesetzt, werden die Werte on/true/yes und off/false/no von Variablen aus Konfigurationsdateien automatisch auf true oder false gesetzt. Dies erlaubt eine einfachere Handhabung in Templates, da Sie somit {if #foobar#} ... {/if} benutzen können. Standardwert: true - - - diff --git a/docs/de/programmers/api-variables/variable-config-dir.xml b/docs/de/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index e8483d05..00000000 --- a/docs/de/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - $config_dir - - Definiert das Verzeichnis, in dem die von den Templates verwendeten - Konfigurationsdateien abgelegt sind. - Die Voreinstellung ist "./configs". - Das heisst, dass Smarty das Konfigurations-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - - - - Technische Bemerkung - - Dieses Verzeichnis sollte ausserhalb der DocumentRoot - des Webservers liegen. - - - - diff --git a/docs/de/programmers/api-variables/variable-config-fix-newlines.xml b/docs/de/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index f67d5b58..00000000 --- a/docs/de/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - $config_fix_newlines - - Definiert ob MAC und DOS Zeilenumbrüche (\r und \r\n) in Konfigurationsdateien automatisch in \n umgewandelt werden sollen. Standardwert: true - - - diff --git a/docs/de/programmers/api-variables/variable-config-overwrite.xml b/docs/de/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index c98121ea..00000000 --- a/docs/de/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - $config_overwrite - - - Definiert ob gleichnamige Variablen, die aus - Konfigurationsdateien - gelesen werden, sich gegenseitig überschreiben. - Der Standardwert für $config_overwrite ist true. - - - - Wenn $config_overwrite auf false gesetzt wird, - dann wird aus gleichnamigen Variablen ein Array erstellt. - Um folglich ein Array in Konfigurationsdateien ablegen zu können - brauchen Sie das entsprechende Element einfach nur mehrfach aufzuführen. - - - - Array von Konfigurationswerten - - Dieses Beispiel verwendet - {cycle} - um eine Tabelle abwechselnd mit roten, grünen und blauen - Zeilen auszugeben. - $config_overwrite ist auf false gesetzt um aus den - Farbangaben ein Array zu erzeugen. - - Die Konfigurationsdatei. - - - - - Das Template mit einer - {section} Schleife. - - - - {section name=r loop=$rows} - - ....etc.... - - {/section} - -]]> - - - - Siehe auch - Konfigurationsdateien, - get_config_vars(), - clear_config() - config_load() - und - {config_load}. - - - diff --git a/docs/de/programmers/api-variables/variable-config-read-hidden.xml b/docs/de/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 3fc93dbf..00000000 --- a/docs/de/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $config_read_hidden - - Definiert ob Templates versteckte Abschnitte (deren Name mit einem '.' beginnt) aus - Konfigurationsdateien lesen dürfen. - Der Standardwert ist false. - Normalerweise behält man den Standardwert bei, - da man so sensible Daten (wie z.B. Datenbankzugriffsdaten) - in den Konfigurationsdateien unterbringen kann, - die nicht durch Templates ausgelesen werden können. - - - diff --git a/docs/de/programmers/api-variables/variable-debug-tpl.xml b/docs/de/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 9b56604b..00000000 --- a/docs/de/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - $debug_tpl - - Definiert den Namen des für die Debugging Konsole verwendeten Template. - Normalerweise lautet er "debug.tpl" und befindet sich im - SMARTY_DIR Verzeichnis. - - - - Siehe auch - $debugging - und - Debugging Konsole - - - diff --git a/docs/de/programmers/api-variables/variable-debugging-ctrl.xml b/docs/de/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f9527e0b..00000000 --- a/docs/de/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - $debugging_ctrl - - Definiert Alternativen zur Aktivierung der Debugging Konsole. - NONE verbietet alternative Methoden. - URL aktiviert das Debugging, - wenn das Schlüsselwort 'SMARTY_DEBUG' im QUERY_STRING gefunden wird. - Wenn $debugging auf 'true' gesetzt ist, wird dieser Wert ignoriert. - - - - Siehe auch Debugging Konsole. - - - diff --git a/docs/de/programmers/api-variables/variable-debugging.xml b/docs/de/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 61d1344b..00000000 --- a/docs/de/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - $debugging - - Aktiviert die Debugging Konsole. - - - - Die Konsole besteht aus einem Javascript-Popup-Fenster, - welches Informationen über eingebundene Templates, - von PHP zugewiesene Variablen - und Variablen aus Konfigurationsdateien enthält. - Die Konsole zeigt keine Variablen an, die innerhalb des Templates mit - {assign} zugewiesen wurden. - - - Lesen Sie $debugging_ctrl - um zu sehen wie Sie das Debugging über einen Parameter in der URL aktivieren können. - - - - Siehe auch - {debug}, - $debug_tpl, - und - $debugging_ctrl - - - diff --git a/docs/de/programmers/api-variables/variable-default-modifiers.xml b/docs/de/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index c75a8592..00000000 --- a/docs/de/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $default_modifiers - - Definiert ein Array von Variablen-Modifikatoren, die auf jeder Variable anzuwenden sind. - Wenn Sie zum Beispiel alle Variablen standardmässig HTML-Maskieren wollen, - können Sie array('escape:"htmlall"'); verwenden. Um eine Variable von dieser - Behandlung auszuschliessen, können Sie ihr den Modifikator 'smarty' mit dem Parameter 'nodefaults' - übergeben. Als Beispiel: {$var|smarty:nodefaults}. - Zum Beispiel: {$var|nodefaults}. - - - diff --git a/docs/de/programmers/api-variables/variable-default-resource-type.xml b/docs/de/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 2015e72e..00000000 --- a/docs/de/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $default_resource_type - - Definiert den Ressourcentyp der von Smarty implizit verwendet werden soll. Standardwert - ist 'file', was dazu führt dass $smarty->display('index.tpl'); und - $smarty->display('file:index.tpl'); identisch sind. - Weitere Informationen finden Sie im - Resource-Kapitel. - - - diff --git a/docs/de/programmers/api-variables/variable-default-template-handler-func.xml b/docs/de/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 2971689c..00000000 --- a/docs/de/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $default_template_handler_func - - Diese Funktion wird aufgerufen, wenn ein Template nicht aus der - vorgegebenen Quelle geladen werden kann. - - - diff --git a/docs/de/programmers/api-variables/variable-error-reporting.xml b/docs/de/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index b78ea2bf..00000000 --- a/docs/de/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - $error_reporting - - - Wenn dieser Wert nicht 0 ist, dann setzt er den Wert für das - error_reporting - von PHP beim Aufruf von display() - und fetch(). - Wenn debugging - aktiviert ist, dann wird dieser Wert ignoriert. - - - Siehe auch - trigger_error(), - debugging - und - Troubleshooting. - - - diff --git a/docs/de/programmers/api-variables/variable-force-compile.xml b/docs/de/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 49b501e9..00000000 --- a/docs/de/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - $force_compile - - Veranlasst Smarty dazu, die Templates bei jedem Aufruf neu zu kompilieren. - Diese Einstellung überschreibt - $compile_check. - Normalerweise ist dies ausgeschaltet, kann jedoch für die Entwicklung - und das Debugging - nützlich sein. - In einer Produktivumgebung sollte auf die Verwendung verzichtet werden. - Wenn $caching eingeschaltet ist, - werden die gecachten Dateien bei jedem Aufruf neu kompiliert. - - - diff --git a/docs/de/programmers/api-variables/variable-left-delimiter.xml b/docs/de/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 6bcd2505..00000000 --- a/docs/de/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $left_delimiter - - Das zu verwendende linke Trennzeichen der Template-Sprache. - Die Vorgabe ist '{'. - - - Siehe auch $right_delimiter - und - escaping smarty parsing. - - - diff --git a/docs/de/programmers/api-variables/variable-php-handling.xml b/docs/de/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 95e3dea5..00000000 --- a/docs/de/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - $php_handling - - Definiert wie Smarty mit PHP-Code innerhalb von Templates umgehen soll. - Es gibt 4 verschiedene Einstellungen. Die Voreinstellung ist - SMARTY_PHP_PASSTHRU verwendet. Achtung: '$php_handling' wirkt sich NICHT - auf PHP-Code aus, der zwischen {php}{/php} - Tags steht. - - - SMARTY_PHP_PASSTHRU - Smarty gibt die Tags aus. - SMARTY_PHP_QUOTE - Smarty maskiert die Tags als HTML-Entities. - SMARTY_PHP_REMOVE - Smarty entfernt die Tags. - SMARTY_PHP_ALLOW - Smarty führt den Code als PHP-Code aus. - - - ACHTUNG: Es wird dringend davon abgeraten, PHP-Code in Templates einzubetten. - Bitte verwenden Sie stattdessen custom functions - oder Variablen-Modifikatoren. - - - diff --git a/docs/de/programmers/api-variables/variable-plugins-dir.xml b/docs/de/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 7e1c8d4f..00000000 --- a/docs/de/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - $plugins_dir - - Definiert das Verzeichnis (bzw. die Verzeichnisse) in dem Smarty die zu ladenden Plugins sucht. - Die Voreinstellung ist '"plugins" - unterhalb des SMARTY_DIR-Verzeichnisses. - Wenn Sie einen relativen Pfad angeben, wird Smarty zuerst versuchen das Plugin von - SMARTY_DIR aus zu erreichen, - danach relativ zum aktuellen Verzeichnis (mit 'cwd' - current working directory) - und zum Schluss in jedem Eintrag des PHP-'include_path'. - Wenn $plugins_dir ein Array von Verzeichnissen ist - wird Smarty jedes der angegebenen Verzeichnisse - in der angegebenen Reihenfolge nach dem Plugin durchsuchen. - - - Technische Bemerkung - - Für optimale Performance sollte $plugins_dir entweder absolut - oder relativ zu SMARTY_DIR bzw. dem aktuellen Verzeichnis zu definieren. - Von der Definition des Verzeichnisses im PHP-'include_path' wird abgeraten. - - - - - Ein lokales Plugin-Verzeichnis hinzufügen - -plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - - - - - Mehrere Verzeichnisse im $plugins_dir - -plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - diff --git a/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 72263e07..00000000 --- a/docs/de/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - $request_use_auto_globals - - Definiert ob Smarty PHPs $HTTP_*_VARS[] ($request_use_auto_globals=false) - oder die Voreinstellung $_*[] ($request_use_auto_globals=true) verwenden soll. - Dies betrifft Templates die - {$smarty.request.*}, {$smarty.get.*} - , etc... verwenden. - Achtung: Wenn $request_use_auto_globals auf TRUE gesetzt ist, - hat variable.request.vars.order - keine Auswirkungen, da PHPs Konfigurationswert gpc_order verwendet wird. - - - - diff --git a/docs/de/programmers/api-variables/variable-request-vars-order.xml b/docs/de/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index a18b107d..00000000 --- a/docs/de/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $request_vars_order - - Die Reihenfolge in welcher die Request-Variblen zugewiesen werden. - Verhält sich wie 'variables_order' in der php.ini. - - - Siehe auch $smarty.request - und - $request_use_auto_globals. - - - diff --git a/docs/de/programmers/api-variables/variable-right-delimiter.xml b/docs/de/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 824be275..00000000 --- a/docs/de/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $right_delimiter - - Das zu verwendende rechte Trennzeichen der Template-Sprache. - Die Vorgabe ist '}'. - - - Siehe auch $left_delimiter - und - escaping smarty parsing. - - - diff --git a/docs/de/programmers/api-variables/variable-secure-dir.xml b/docs/de/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 642cb871..00000000 --- a/docs/de/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $secure_dir - - Dies ist ein Array das alle Dateien und Verzeichnisse enthält, - die als sicher angesehen werden. - {include} - und {fetch} - verwenden diese Daten wenn - $security eingeschaltet ist. - - - Siehe auch - Security settings, - und $trusted_dir. - - - diff --git a/docs/de/programmers/api-variables/variable-security-settings.xml b/docs/de/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 6d646189..00000000 --- a/docs/de/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - $security_settings - - Wird verwendet um spezifische Sicherheits-Einstellungen zu ändern, - wenn $security eingeschaltet ist. - - - - - PHP_HANDLING - true/false. - Wenn auf 'true' gesetzt, wird $php_handling ignoriert. - - - - - IF_FUNCS - Ein Array aller erlaubter Funktionen in - {if}-Statements. - - - - - INCLUDE_ANY - true/false. - Wenn 'true', kann das Template aus jedem beliebigen Verzeichnis geladen werden, - auch außerhalb der $secure_dir-Liste. - - - - PHP_TAGS - true/false. - Wenn 'true', sind {php}{/php}-Tags - in Templates erlaubt. - - - - - MODIFIER_FUNCS - Ein Array aller PHP-Funktionen - die als Variablen-Modifikatoren verwendet werden dürfen. - - - - - ALLOW_CONSTANTS - true/false. - Wenn 'true', ist die Verwendung von Konstanten via - {$smarty.const.name} - in Template zulässig. - Aus Sicherheitsgründen ist die Voreinstellung 'false'. - - - - - diff --git a/docs/de/programmers/api-variables/variable-security.xml b/docs/de/programmers/api-variables/variable-security.xml deleted file mode 100644 index 3852dd6e..00000000 --- a/docs/de/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - $security - - '$security' ein-/ausschalten. Normalerweise 'false' (ausgeschaltet). - Aktiviert spezielle Sicherheitseinstellungen. - Mögliche Werte für $security sind 'true' und 'false', - wobei 'false' die Voreinstellung ist. - Die Sicherheitseinstellungen sind sinnvoll, wenn nicht vertrauenswürdigen - Parteien Zugriff auf die Templates gegeben wird (zum Beispiel via FTP). - Mit aktivierter '$security' kann verhindert werden, dass diese das System - via Template-Engine kompromittieren. Die '$security' einzuschalten hat folgende - Auswirkungen auf die Template-Language (ausser sie werden explizit mit - $security_settings überschrieben): - - - - - - Wenn $php_handling auf - SMARTY_PHP_ALLOW gesetzt ist, dann wird der Wert auf SMARTY_PHP_PASSTHRU geändert. - - - - - In {if}-Statements sind keine - PHP-Funktionen zugelassen, die nicht explizit über die - $security_settings - angegeben wurden. - - - - - Templates können nur aus den im - $secure_dir-Array - definierten Verzeichnissen geladen werden. - - - - - Dateien können mit {fetch} - nur aus den in $secure_dir - angegebenen Verzeichnissen geladen werden. - - - - - {php}{/php}-Tags sind nicht erlaubt. - - - - - PHP-Funktionen können nicht als Variablen-Modifikatoren verwendet werden, - wenn sie nicht explizit in - $security_settings - angegeben wurden. - - - - - diff --git a/docs/de/programmers/api-variables/variable-template-dir.xml b/docs/de/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 17700ad9..00000000 --- a/docs/de/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - $template_dir - - Definiert den Namen des Standardverzeichnisses, aus dem die Templates gelesen werden. - Normalerweise lautet er "./templates". - Das heisst, dass Smarty das Template-Verzeichnis im selben Verzeichnis - wie das ausgeführte PHP-Skript erwartet. - Wenn Sie beim Einbinden eines Templates keinen Ressourcen-Typ übergeben, - wird es in diesem Pfad gesucht. - - - Technische Bemerkung - - Dieses Verzeichnis sollte außerhalb der DocumentRoot - des Webservers liegen. - - - - diff --git a/docs/de/programmers/api-variables/variable-trusted-dir.xml b/docs/de/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index e50a10c9..00000000 --- a/docs/de/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $trusted_dir - - $trusted_dir wird nur verwendet wenn - $security eingeschaltet ist. - Der Wert ist ein Array aller Verzeichnisse, die als vertrauenswürdig gelten. - In diesen Verzeichnissen können PHP-Skripte, die man direkt aus einem Template - mit {include_php} aufruft, - abgelegt werden. - - - diff --git a/docs/de/programmers/api-variables/variable-use-sub-dirs.xml b/docs/de/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 1c6a8040..00000000 --- a/docs/de/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - $use_sub_dirs - - Wenn $use_sub_dirs auf 'true' gesetzt ist wird Smarty unterhalb - der Verzeichnisse templates_c - und cache - Unterverzeichnisse anlegen. - In einer Umgebung in der möglicherweise zehntausende Dateien - angelegt werden kann das helfen, die Geschwindigkeit des Zugriffs - auf das Dateisystem zu optimieren. - Andererseits gibt es Umgebungen, in denen PHP-Prozesse nicht - die Berechtigung zum Anlegen von Unterverzeichnissen haben, - so dass diese Funktion nicht genutzt werden kann. - Der Vorgabewert ist 'false', aus Performancegründen wird allerdings - empfohlen diesen Wert auf 'true' zu setzen, - wenn die Systemumgebung dies zulässt. - - - Theoretisch erhält man bei einer Dateistruktur mit 10 Verzeichnissen - mit je 100 Dateien eine deutlich höhere Performance als bei der - Verwendung von nur einem Verzeichnis mit 1000 Dateien. - Dies war auch in der Praxis z.B. bei Solaris (UFS) so. - Mit aktuellen Dateisystemen wie ext3 und vor allem reiserfs - ist dieser Unterschied allerdings inzwischen marginal geworden. - - - Technische Bemerkung - - $use_sub_dirs=true funktioniert nicht mit - safe_mode=On. - Dies ist der Grund, warum man es umschalten kann und warum - die Funktion standardmäß ausgeschaltet ist. - - - - Bemerkung - - Seit Smarty-2.6.2 ist der Vorgabewert für - $use_sub_dirs 'false'. - - - - Siehe auch - $compile_dir, - und - $cache_dir. - - - - diff --git a/docs/de/programmers/caching.xml b/docs/de/programmers/caching.xml deleted file mode 100644 index dee2291f..00000000 --- a/docs/de/programmers/caching.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Caching - - Caching wird verwendet, um display() oder - fetch() Aufrufe durch zwischenspeichern (cachen) - der Ausgabe in einer Datei zu beschleunigen. Falls eine gecachte Version - des Aufrufs existiert, wird diese ausgegeben, anstatt die Ausgabe neu zu generieren. - Caching kann die Performance vor allem dann deutlich verbessern, wenn Templates - längere Rechenzeit beanspruchen. Weil die Ausgabe von display() und fetch() gecached wird, kann ein Cache - verschiedene Templates, Konfigurationsdateien usw. enthalten. - - - Da Templates dynamisch sind ist es wichtig darauf zu achten, welche Inhalte - für für wie lange gecached werden sollen. Wenn sich zum Beispiel die erste Seite Ihrer Website - nur sporadisch ändert, macht es Sinn die Seite für eine - Stunde oder länger zu cachen. Wenn Sie aber eine Seite mit sich minütlich - erneuernden Wetterinformationen haben, macht es möglicherweise keinen Sinn, - die Seite überhaupt zu cachen. - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; -&programmers.caching.caching-cacheable; - - diff --git a/docs/de/programmers/caching/caching-cacheable.xml b/docs/de/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 61fc327c..00000000 --- a/docs/de/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - Die Ausgabe von cachebaren Plugins Kontrollieren - - Seit Smarty-2.6.0 kann bei der Registrierung angegeben werden ob ein - Plugin cached werden soll. Der dritte Parameter für register_block, register_compiler_function - und register_function - heisst $cacheable, der Standardwert ist TRUE, - was das Verhalten von Smarty vor Version 2.6.0 wiederspiegelt. - - - Wenn ein Plugin mit $cacheable=false - registriert wird, wird er bei jedem Besuch der Seite aufgerufen, - selbst wenn die Site aus dem Cache stammt. Die Pluginfunktion - verhält sich ein wenig wie {insert}. - - - Im Gegensatz zu {insert} werden die - Attribute standartmässig nicht gecached. Sie können das - caching jedoch mit dem vierten Parameter - $cache_attrs - kontrollieren. $cache_attrs ist ein Array - aller Attributnamen die gecached werden sollen. - - - - Verhindern des Caching der Ausgabe eines Plugins - -caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // Objekt $obj aus Datenbank dem Template zuweisen - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - Bei folgendem index.tpl: - - -endtime} -]]> - - - Der Wert von $obj->endtime ändert bei jeder Anzeige der Seite, - selbst wenn die Seite gecached wurde. Das Objekt $obj wird nur - geladen wenn die Seite nicht gecached wurde. - - - - Verhindern dass Template Blöcke gecached werden - -caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - Bei folgendem index.tpl: - - - - - - - - Um sicherzustellen dass ein Teil eines Templates nicht gecached - werden soll, kann dieser Abschnitt in einen {dynamic}...{/dynamic} - Block verpackt werden. - - - diff --git a/docs/de/programmers/caching/caching-groups.xml b/docs/de/programmers/caching/caching-groups.xml deleted file mode 100644 index 0f1653e1..00000000 --- a/docs/de/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Cache-Gruppen - - Sie können auch eine feinere Gruppierung vornehmen, indem Sie - 'cache_id'-Gruppen erzeugen. Dies erreichen Sie, indem Sie jede Cache-Untergruppe - durch ein '|'-Zeichen (pipe) in der 'cache_id' abtrennen. Sie können so viele - Untergruppen erstellen, wie Sie möchten. - - - - Man kann Cache-Gruppen wie eine Verzeichnishierarchie - betrachten. Zum Beispiel kann man sich die Cache-Gruppe "a|b|c" als - eine Verzeichnisstruktur "/a/b/c" angesehen weden. clear_cache(null, - 'a|b|c') würde die Dateien '/a/b/c/*' löschen, clear_cache(null, - 'a|b') wäre das Löschen der Dateien '/a/b/*'. Wenn eine Compile-Id - angegeben wurde, wie clear_cache(null, 'a|b', 'foo'), dann wird die - Compile-Id so behandelt, als sei sie an die Cache-Gruppe angehängt, - also wie die Cache-Gruppe '/a/b/foo'. Wenn ein Templatename - angegeben wurde, also wie bei clear_cache('foo.tpl', 'a|b|c'), dann - wir Smarty auch nur '/a/b/c/foo.tpl' löschen. Es ist NICHT möglich, - ein Template unterhalb mehrerer Cache-Gruppen (also - '/a/b/*/foo.tpl') zu löschen. Das Gruppieren der Cache-Gruppen - funktioniert nur von links nach rechts. Man muss die Templates, die - man als eine Gruppe löschen möchte alle unterhalb einer einzigen - Gruppenhierarchy anordnen, um sie als eine Gruppe löschen zu können. - - - - Cache-Gruppen dürfen nicht mit der Hierarchie des - Template-Verzeichnisses verwechselt werden. Die Cache-Gruppen wissen - nicht, wie die Templatehierarchie strukturiert ist. Wenn man - z. B. eine Templatestruktur wir "themes/blue/index.tpl" hat und man - möchte alle Dateien für des "blue"-Theme löschen, dann muss man - händisch eine Cache-Gruppe wie display("themes/blue/index.tpl", - "themes|blue") und kann diese dann mit - clear_cache(null,"themes|blue") löschen. - - - - 'cache_id'-Gruppen - -caching = true; - -// leere alle Caches welche 'sports|basketball' als erste zwei 'cache_id'-Gruppen enthalten -$smarty->clear_cache(null, 'sports|basketball'); - -// leere alle Caches welche 'sports' als erste 'cache_id'-Gruppe haben. Dies schliesst -// 'sports|basketball', oder 'sports|(anything)|(anything)|(anything)|...' ein -$smarty->clear_cache(null, 'sports'); - -$smarty->display('index.tpl', 'sports|basketball'); -?> -]]> - - - - diff --git a/docs/de/programmers/caching/caching-multiple-caches.xml b/docs/de/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 3e88a006..00000000 --- a/docs/de/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - Multiple Caches für eine Seite - - Sie können für Aufrufe von display() oder fetch() auch mehrere Caches erzeugen. - Nehmen wir zum Beispiel an, der Aufruf von display('index.tpl') - erzeuge für verschieden Fälle unterschiedliche Inhalte und Sie - wollen jeden dieser Inhalte separat cachen. Um dies zu erreichen, - können Sie eine 'cache_id' beim Funktionsaufruf übergeben. - - - 'display()' eine 'cache_id' übergeben - -caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Im oberen Beispiel übergeben wir die Variable - $my_cache_id als 'cache_id' an display(). Für jede einmalige - cache_id wird ein eigener Cache von 'index.tpl' - erzeugt. In diesem Beispiel wurde 'article_id' per URL übergeben und - als 'cache_id' verwendet. - - - Technische Bemerkung - - Seien Sie vorsichtig, wenn Sie Smarty (oder jeder anderen PHP-Applikation) - Werte direkt vom Client (Webbrowser) übergeben. Obwohl das Beispiel oben - praktisch aussehen mag, kann es schwerwiegende Konsequenzen haben. Die 'cache_id' - wird verwendet, um im Dateisystem ein Verzeichnis zu erstellen. Wenn ein Benutzer - also überlange Werte übergibt oder ein Skript benutzt, das in hohem - Tempo neue 'article_ids' übermittelt, kann dies auf dem Server zu Problemen - führen. Stellen Sie daher sicher, dass Sie alle empfangenen Werte auf - ihre Gültigkeit überprüfen und unerlaubte Sequenzen entfernen. - Sie wissen möglicherweise, dass ihre 'article_id' nur 10 Zeichen lang sein kann, nur - aus alphanumerischen Zeichen bestehen darf und in der Datenbank eingetragen - sein muss. Überpüfen sie das! - - - - Denken Sie daran, Aufrufen von is_cached() - und clear_cache() als zweiten Parameter - die 'cache_id' zu übergeben. - - - 'is_cached()' mit 'cache_id' aufrufen - -caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Sie können mit clear_cache() - den gesamten Cache einer bestimmten 'cache_id' auf einmal löschen, - wenn Sie als Parameter die 'cache_id' übergeben. - - - Cache einer bestimmten 'cache_id' leeren - -caching = true; - -// Cache mit 'sports' als 'cache_id' löschen -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - - - - Indem Sie allen dieselbe 'cache_id' übergeben, lassen sich Caches gruppieren. - - - diff --git a/docs/de/programmers/caching/caching-setting-up.xml b/docs/de/programmers/caching/caching-setting-up.xml deleted file mode 100644 index b0d6e162..00000000 --- a/docs/de/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - Caching einrichten - - Als erstes muss das Caching eingeschaltet werden. Dies erreicht man, indem - $caching = 1 (oder 2) gesetzt wird. - - - Caching einschalten - -caching = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Wenn Caching eingeschaltet ist, wird der Funktionsaufruf display('index.tpl') - das Template normal rendern, zur selben Zeit jedoch auch eine Datei mit - dem Inhalt in das $cache_dir schreiben - (als gecachte Kopie). Beim nächsten Aufruf von display('index.tpl') wird die - gecachte Kopie verwendet. - - - Technische Bemerkung - - Die im $cache_dir - abgelegen Dateien haben einen ähnlichen Namen wie das Template, - mit dem sie erzeugt wurden. Obwohl sie eine '.php'-Endung - aufweisen, sind sie keine ausführbaren PHP-Skripte. - Editieren Sie diese Dateien NICHT! - - - - Jede gecachte Seite hat eine Lebensdauer, die von $cache_lifetime bestimmt - wird. Normalerweise beträgt der Wert 3600 Sekunden (= 1 - Stunde). Nach Ablauf dieser Lebensdauer wird der Cache neu - generiert. Sie können die Lebensdauer pro Cache bestimmen indem - Sie $caching auf 2 - setzen. Konsultieren Sie den Abschnitt über $cache_lifetime für - weitere Informationen. - - - '$cache_lifetime' pro Cache einstellen - -caching = 2; // Lebensdauer ist pro Cache - -// Standardwert für '$cache_lifetime' auf 5 Minuten setzen -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// '$cache_lifetime' für 'home.tpl' auf 1 Stunde setzen -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// ACHTUNG: die folgende Zuweisung an '$cache_lifetime' wird nicht funktionieren, -// wenn '$caching' auf 2 gestellt ist. Wenn die '$cache_lifetime' für 'home.tpl' bereits -// auf 1 Stunde gesetzt wurde, werden neue Werte ignoriert. -// 'home.tpl' wird nach dieser Zuweisung immer noch eine '$cache_lifetime' von 1 Stunde haben -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - - - - Wenn $compile_check - eingeschaltet ist, werden alle in den Cache eingeflossenen - Templates und Konfigurationsdateien hinsichtlich ihrer letzten - Änderung überprüft. Falls eine der Dateien seit der Erzeugung des - Cache geändert wurde, wird der Cache unverzüglich neu - generiert. Dadurch ergibt sich ein geringer Mehraufwand. Für - optimale Performance sollte $compile_check deshalb auf - 'false' gesetzt werden. - - - '$compile_check' einschalten - -caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Wenn $force_compile eingeschaltet ist, - werden die Cache-Dateien immer neu generiert und das Caching damit wirkungslos gemacht. - $force_compile wird normalerweise nur für die Fehlersuche verwendet. - Ein effizienterer Weg das Caching auszuschalten wäre, - $caching auf 'false' (oder 0) zu setzen. - - - Mit der Funktion is_cached() kann überprüft - werden, ob von einem Template eine gecachte Version vorliegt. - In einem Template, das zum Beispiel Daten aus einer Datenbank bezieht, - können Sie diese Funktion verwenden, um den Prozess zu überspringen. - - - is_cached() verwenden - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // kein Cache gefunden, also Variablen zuweisen - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - Mit der {insert} Funktion können Sie - Teile einer Seite dynamisch halten. Wenn zum Beispiel ein Banner in einer gecachten Seite - nicht gecached werden soll, kann dessen Aufruf mit {insert} dynamisch gehalten werden. - Konsultieren Sie den Abschnitt über insert - für weitere Informationen und Beispiele. - - - Mit der Funktion clear_all_cache() können - Sie den gesamten Template-Cache löschen. Mit clear_cache() - einzelne Templates oder Cache-Gruppen. - - - Cache leeren - -caching = true; - -// alle Cache-Dateien löschen -$smarty->clear_all_cache(); - -// nur Cache von 'index.tpl' löschen -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -?> -]]> - - - - diff --git a/docs/de/programmers/plugins.xml b/docs/de/programmers/plugins.xml deleted file mode 100644 index 5791a2c9..00000000 --- a/docs/de/programmers/plugins.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Smarty durch Plugins erweitern - - In Version 2.0 wurde die Plugin-Architektur eingeführt, welche für fast alle anpassbaren Funktionalitäten - verwendet wird. Unter anderem: - - Funktionen - Modifikatoren - Block-Funktionen - Compiler-Funktionen - 'pre'-Filter - 'post'-Filter - Ausgabefilter - Ressourcen - Inserts - - Für die Abwärtskompatibilität wurden das register_* API zur Funktions-Registrierung - beibehalten. Haben Sie früher nicht die API-Funktionen benutzt, sondern die Klassen-Variablen - $custom_funcs, $custom_mods und andere direkt - geändert, müssen Sie Ihre Skripte so anpassen, dass diese das API verwenden. - Oder sie implementieren die Funktionalitäten alternativ mit Plugins. - - - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; - - diff --git a/docs/de/programmers/plugins/plugins-block-functions.xml b/docs/de/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 8c274501..00000000 --- a/docs/de/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - Block-Funktionen - - - void smarty_function_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Block-Funktionen sind Funktionen, die in der Form {func} .. {/func} notiert - werden. Mit anderen Worten umschliessen sie einen Template-Abschnitt und - arbeiten danach auf dessen Inhalt. Eine Block-Funktion {func} .. {/func} - kann nicht mir einer gleichnamigen Template-Funktion {func} - überschrieben werden. - - - Ihre Funktions-Implementation wird von Smarty zweimal - aufgerufen: einmal für das öffnende und einmal - für das schliessende Tag. (konsultieren Sie den Abschnitt zu &$repeat - um zu erfahren wie Sie dies ändern können.) - - - Nur das Öffnungs-Tag kann Attribute enthalten. Alle so übergebenen Attribute - werden als assoziatives Array $params der Template-Funktion - übergeben. Sie können auf die Werte entweder direkt mit $params['start'] - zugreifen oder sie mit extract($params) in die Symbol-Tabelle - importieren. Die Attribute aus dem Öffnungs-Tag stehen auch beim Aufruf für das - schliessende Tag zur Verfügung. - - - Der Inhalt der $content Variable hängt davon - ab, ob die Funktion für das öffnende Tag oder für das schliessende - Tag aufgerufen wird. Für das öffnende Tag ist der Wert null, - für das schliessende Tag ist es der Inhalt des Template-Abschnitts. - Achtung: Der Template-Abschnitt den Sie erhalten, wurde bereits von - Smarty bearbeitet. Sie erhalten also die Template-Ausgabe, nicht den Template-Quelltext. - - - Der Parameter &$repeat wird als Referenz übergeben und - kontrolliert wie oft ein Block dargestellt werden soll. Standardwert von $repeat - ist beim ersten Aufruf (für das öffnende Tag) true, danach immer - false. - Jedes Mal wenn eine Funktion für &$repeat TRUE zurück gibt, - wird der Inhalt zwischen {func} .. {/func} erneut mit dem veränderten - Inhalt als $content Parameter aufgerufen. - - - Wenn Sie verschachtelte Block-Funktionen haben, können Sie - die Eltern-Block-Funktion mit der $smarty->_tag_stack Variable - herausfinden. Lassen Sie sich ihren Inhalt mit 'var_dump()' ausgeben. - Die Struktur sollte selbsterklärend sein. - - - - Sehen Sie dazu: - register_block(), - unregister_block(). - - - Block-Funktionen - - -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-compiler-functions.xml b/docs/de/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 3c99cc44..00000000 --- a/docs/de/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Compiler-Funktionen - - Compiler-Funktionen werden während der Kompilierung des Template - aufgerufen. Das ist nützlich, um PHP-Code oder zeitkritische statische - Inhalte in ein Template einzufügen. Sind eine Compiler-Funktion und - eine eigene Funktion unter dem selben Namen registriert, wird die - Compiler-Funktion ausgeführt. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Die Compiler-Funktion erhält zwei Parameter: die Tag-Argument Zeichenkette - - also alles ab dem Funktionsnamen bis zum schliessenden Trennzeichen - und - das Smarty Objekt. Gibt den PHP-Code zurück, der in das Template eingefügt werden - soll. - - - - Sehen Sie dazu: - register_compiler_function(), - unregister_compiler_function(). - - - Einfache Compiler-Funktionen - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - - Diese Funktion kann aus dem Template wie folgt aufgerufen werden: - - - - {* diese Funktion wird nur zum Kompilier-Zeitpunkt ausgeführt *} - {tplheader} - - - Der resultierende PHP-Code würde ungefähr so aussehen: - - - -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-functions.xml b/docs/de/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 0837d5f1..00000000 --- a/docs/de/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - Template-Funktionen - - - void smarty_function_name - array $params - object &$smarty - - - - Alle einer Funktion übergebenen Parameter werden in der Variable - $params als assoziatives Array abgelegt. Sie können - auf diese Werte entweder direkt mit $params['start'] zugreifen - oder sie mit extract($params) in die Symbol-Tabelle importieren. - - - Die Ausgabe der Funktion wird verwendet, um das Funktions-Tag im Template - (fetch Funktion, zum Beispiel) zu ersetzen. - Alternativ kann sie auch etwas tun, ohne eine Ausgabe zurückzuliefern - (assign Funktion, zum Beispiel). - - - Falls die Funktion dem Template Variablen zuweisen oder - auf eine andere Smarty-Funktionalität zugreifen möchte, kann dazu das - übergebene $smarty Objekt verwendet werden. - - - - Sehen Sie dazu: - register_function(), - unregister_function(). - - - - Funktionsplugin mit Ausgabe - - -]]> - - - - - - Es kann im Template wie folgt angewendet werden: - - - Question: Will we ever have time travel? - Answer: {eightball}. - - - Funktionsplugin ohne Ausgabe - -trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - - - - - diff --git a/docs/de/programmers/plugins/plugins-howto.xml b/docs/de/programmers/plugins/plugins-howto.xml deleted file mode 100644 index e0bbe920..00000000 --- a/docs/de/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Wie Plugins funktionieren - - Plugins werden immer erst bei Bedarf geladen. Nur die im Template - verwendeten Funktionen, Ressourcen, Variablen-Modifikatoren, etc. werden geladen. - Des weiteren wird jedes Plugin nur einmal geladen, selbst wenn mehrere Smarty-Instanzen - im selben Request erzeugt werden. - - - 'pre'/'post'-Filter machen die Ausnahme. Da sie in den Templates nicht direkt - erwähnt werden, müssen sie zu Beginn der Ausführung explizit via API geladen oder - registriert werden. Die Reihenfolge der Anwendung mehrerer Filter desselben Typs - entspricht der Reihenfolge in der sie geladen/registriert wurden. - - - Die plugins directory Variable kann eine Zeichenkette, - oder ein Array mit Verzeichnisnamen sein. Um einen Plugin zu installieren können Sie ihn einfach - in einem der Verzeichnisse ablegen. - - - diff --git a/docs/de/programmers/plugins/plugins-inserts.xml b/docs/de/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index c0ecccb1..00000000 --- a/docs/de/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - Inserts - - Insert-Plugins werden verwendet, um Funktionen zu implementieren, die - via insert aufgerufen werden. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Als erster Parameter wird der Funktion ein assoziatives Array aller Attribute - übergeben, die im Insert-Tag notiert wurden. Sie können - auf diese Werte entweder direkt mit $params['start'] zugreifen - oder sie mit extract($params) importieren. - - - Als Rückgabewert muss das Resultat der Ausführung geliefert werden, - das danach den Platz des insert-Tags im Template einnimmt. - - - Insert-Plugin - -trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-modifiers.xml b/docs/de/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index a6a6bbfb..00000000 --- a/docs/de/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,115 +0,0 @@ - - - - Variablen-Modifikatoren - - Variablen-Modifikatoren sind kleine Funktionen, die auf eine Variable angewendet - werden, bevor sie ausgegeben oder weiterverwendet wird. Variablen-Modifikatoren können - aneinadergereiht werden. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Der erste an das Modifikator-Plugin übergebene Parameter ist der - Wert mit welchem er arbeiten soll. Die restlichen Parameter sind optional - und hängen von den durchzuführenden Operationen ab. - - - - Der Modifikator muss das Resultat seiner Verarbeitung zurückgeben. - - - Sehen Sie dazu: - register_modifier(), - unregister_modifier(). - - - Einfaches Modifikator-Plugin - - Dieses Plugin dient als Alias einer PHP-Funktion und erwartet keine - zusätzlichen Parameter. - - - -]]> - - - - - Komplexes Modifikator-Plugin - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-naming-conventions.xml b/docs/de/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 90e8ef23..00000000 --- a/docs/de/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - Namenskonvention - - Plugin-Dateien müssen einer klaren Namenskonvention gehorchen, - um von Smarty erkannt zu werden. - - - - Die Plugin-Dateien müssen wie folgt benannt werden: -
    - - - type.name.php - - -
    -
    - - - Wobei Typ einen der folgenden Werte haben kann: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - und Name ein erlaubter Identifikator (bestehend - aus Buchstaben, Zahlen und Unterstrichen) ist. - - - Ein paar Beispiele: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - - Die Plugin-Funktion innerhalb das Plugin-Datei muss wie folgt benannt werden: -
    - - smarty_type_name - -
    -
    - - type und name haben die selbe Bedeutung wie bei den Plugin-Dateien. - - - Smarty gibt Fehlermeldungen aus, falls ein aufgerufenes Plugin nicht existiert, - oder eine Datei mit falscher Namensgebung im Verzeichnis gefunden wurde. - -
    - diff --git a/docs/de/programmers/plugins/plugins-outputfilters.xml b/docs/de/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 1e9069d0..00000000 --- a/docs/de/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Ausgabefilter - - Ausgabefilter werden auf das Template direkt vor der Ausgabe angewendet, - nachdem es geladen und ausgeführt wurde. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Als erster Parameter wird die Template-Ausgabe übergeben, welche - verarbeitet werden soll und als zweiter Parameter das Smarty-Objekt. - Das Plugin muss danach die verarbeitete Template-Ausgabe zurückgeben. - - - Ausgabefilter Plugin - - -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 54e36927..00000000 --- a/docs/de/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - 'pre'/'post'-Filter - - 'pre'-Filter und 'post'-Filter folgen demselben Konzept. Der - einzige Unterschied ist der Zeitpunkt der Ausführung. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - 'pre'-Filter werden verwendet, um die Quellen eines Templates direkt - vor der Kompilierung zu verarbeiten. Als erster Parameter wird die - Template-Quelle, die möglicherweise bereits durch eine weiteren 'pre'-Filter - bearbeitet wurden, übergeben. Das Plugin muss den resultierenden Wert - zurückgeben. Achtung: Diese Werte werden nicht gespeichert und nur - zum Kompilier-Zeitpunkt verwendet. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - 'post'-Filter werden auf die kompilierte Ausgabe direkt vor dem Speichern - angewendet. Als erster Parameter wird der kompilierte Template-Code - übergeben, der möglicherweise zuvor von anderen 'post'-Filtern - bearbeitet wurde. Das Plugin muss den veränderten Template-Code zurückgeben. - - - 'pre'-Filter Plugin - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - 'post'-Filter Plugin - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-resources.xml b/docs/de/programmers/plugins/plugins-resources.xml deleted file mode 100644 index e71727a0..00000000 --- a/docs/de/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - Ressourcen - - Ressourcen-Plugins stellen einen generischen Weg dar, um Smarty mit - Template-Quellen oder PHP-Skripten zu versorgen. Einige Beispiele von Ressourcen: - Datenbanken, LDAP, shared Memory, Sockets, usw. - - - - Für jeden Ressource-Typ müssen 4 Funktionen registriert werden. Jede dieser - Funktionen erhält die verlangte Ressource als ersten Parameter und das Smarty Objekt - als letzten. Die restlichen Parameter hängen von der Funktion ab. - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - Die erste Funktion wird verwendet, um die Ressource zu laden. Der - zweite Parameter ist eine Variable, die via Referenz übergeben - wird und in der das Resultat gespeichert werden soll. Die Funktion - gibt true zurück, wenn der Ladevorgang erfolgreich war - - andernfalls false. - - - - Die zweite Funktion fragt das letzte Änderungsdatum der angeforderten - Ressource (als Unix-Timestamp) ab. Der zweite Parameter ist die Variable, - welche via Referenz übergeben wird und in der das Resultat gespeichert werden soll. - Gibt true zurück, wenn das Änderungsdatum ermittelt - werden konnte und false wenn nicht. - - - - Die dritte Funktion gibt true oder false - zurück, je nachdem ob die angeforderte Ressource als sicher bezeichnet wird - oder nicht. Diese Funktion wird nur für Template-Ressourcen verwendet, - sollte aber in jedem Fall definiert werden. - - - - Die vierte Funktion gibt true oder false - zurück, je nachdem ob die angeforderte Ressource als vertrauenswürdig angesehen wird - oder nicht. Diese Funktion wird nur verwendet, wenn PHP-Skripte via include_php - oder insert eingebunden werden sollen und ein 'src' Attribut übergeben wurde. - Die Funktion sollte aber in jedem Fall definiert werden. - - - Sehen Sie dazu: - register_resource(), - unregister_resource(). - - - Ressourcen Plugin - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // do database call here to populate $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // assume all templates are secure - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // not used for templates -} -?> -]]> - - - - diff --git a/docs/de/programmers/plugins/plugins-writing.xml b/docs/de/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 039bbe75..00000000 --- a/docs/de/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Plugins schreiben - - Plugins können von Smarty automatisch geladen oder - zur Laufzeit dynamisch mit den register_* API-Funktionen - registriert werden. Um registrierte Plugins wieder zu entfernen, - können die unregister_* API-Funktionen verwendet werden. - - - Bei Plugins, die zur Laufzeit geladen werden, müssen keine Namenskonventionen - beachtet werden. - - - Wenn ein Plugin auf die Funktionalität eines anderen Plugins angewiesen - ist (wie dies bei manchen Smarty Standard-Plugins der Fall ist), sollte - folgender Weg gewählt werden, um das benötigte Plugin zu laden: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Das Smarty Objekt wird jedem Plugin immer als letzter Parameter - übergeben (ausser bei Variablen-Modifikatoren und bei Blücken wird - &$repeat nach dem Smarty Objekt übergeben um Rückwärtskompatibel zu bleiben). - - - diff --git a/docs/de/programmers/smarty-constants.xml b/docs/de/programmers/smarty-constants.xml deleted file mode 100644 index 8431d566..00000000 --- a/docs/de/programmers/smarty-constants.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - Konstanten - - - SMARTY_DIR - - Definiert den absoluten - Systempfad zu den Smarty Klassendateien. Falls der Wert - nicht definiert ist, versucht Smarty ihn automatisch zu ermitteln. - Der Pfad muss mit einem '/'-Zeichen - enden. - - - SMARTY_DIR - - -]]> - - - - Siehe auch $smarty.const und - $php_handling - constants - - - - SMARTY_CORE_DIR - - Dies ist der absolute Systempfad zu den Smarty Kerndateien. Wenn - nicht vorher definiert, dann definiert Smarty diesen Wert mit - internals/ unterhalb des Verzeichniss SMARTY_DIR. Wenn angegeben, - dann muss dieser Wert mit einem '/' enden. - - - SMARTY_CORE_DIR - - -]]> - - - - Siehe auch: - $smarty.const - - - - diff --git a/docs/dsssl/.cvsignore b/docs/dsssl/.cvsignore deleted file mode 100755 index 32b7bf7b..00000000 --- a/docs/dsssl/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -html-common.dsl diff --git a/docs/dsssl/common.dsl b/docs/dsssl/common.dsl deleted file mode 100644 index d8ce3c20..00000000 --- a/docs/dsssl/common.dsl +++ /dev/null @@ -1,358 +0,0 @@ -;; -*- Scheme -*- -;; -;; $Id$ -;; -;; This file contains stylesheet customization common to the HTML -;; and print versions. -;; - -;; Stylesheets Localization -(define %default-language% "en") - -(define %root-filename% "index") -(define %use-id-as-filename% #t) -(define %gentext-nav-tblwidth% "100%") -(define %refentry-function% #t) -(define %refentry-generate-name% #f) -(define %funcsynopsis-style% 'ansi) -(define ($legalnotice-link-file$ legalnotice) - (string-append "copyright" %html-ext%)) -(define %generate-legalnotice-link% #t) -(define %footnotes-at-end% #t) -(define %force-chapter-toc% #t) -(define newline "\U-000D") -(define %number-programlisting-lines% #f) -(define %linenumber-mod% 1) -(define %shade-verbatim% #t) -(define %prefers-ordinal-label-name-format% #f) -(define ($generate-book-lot-list$) (list)) - -(define (php-code code) - (make processing-instruction - data: (string-append "php " code "?"))) - -(define quicksort - (quicksort::generic null? car cdr append cons '())) - -(define nl-quicksort - (quicksort::generic node-list-empty? - node-list-first - node-list-rest - node-list - node-list - (empty-node-list))) - -(define quicksort::generic - (lambda(is-null? first others concat add empty) - (letrec ((collect - ;; Collect is an helper function doing the real work - - (lambda (pivot ls lgroup rgroup less?) - (if (is-null? ls) - (concat (impl lgroup less?) - (add pivot (impl rgroup less?))) - (if (less? pivot (first ls)) - (collect pivot (others ls) lgroup - (add (first ls) rgroup) - less?) - (collect pivot (others ls) - (add (first ls) lgroup) - rgroup - less?))))) - (impl - ;; impl first test some trivial sorting case and then call - ;; the procedure collect - (lambda (ls less?) - (if (or (is-null? ls) (is-null? (others ls))) - ls - (collect (first ls) (others ls) empty empty less?))))) - ;; we return the new defined procedure - impl))) - -;; Polish definitions - -(define (gentext-pl-nav-next next) - (make sequence (literal "Nast\U-0119;pny"))) - -(define (book-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "pubdate") - (normalize "copyright") - (normalize "abstract") - (normalize "legalnotice"))) - -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;;; -;;;; render function prototypes, esp. with optional arguments -;;;; for new docbook4 methodsynopsis tag and friends -;;;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -;; helper function generating closing optional brackets -(define (methodsynopsis-generate-closing-optionals nl) - (if (node-list-empty? nl) - (empty-sosofo) ;; empty list -> do nothing - (make sequence ;; process list node - (if (or (and (attribute-string (normalize "choice") (node-list-first nl)) - (string=? "opt" (attribute-string (normalize "choice") (node-list-first nl))) - ) - (has-default-value (node-list-first nl))) - (literal %arg-choice-opt-close-str%) ;; is optional parameter -> close a bracket - (empty-sosofo) - ) - (methodsynopsis-generate-closing-optionals (node-list-rest nl)) ;; process rest of list - ) - ) - ) - -(define (is-true-optional nl) - (and (equal? (gi (parent nl)) (normalize "parameter")) - (equal? 0 (string-length (strip (data (preced nl))))) - (equal? 0 (string-length (strip (data (follow nl))))) - ) - ) - - -(define (has-true-optional nl) - (is-true-optional - (node-list-first-element - (select-elements - (descendants nl) - (normalize "optional")) - ) - ) - ) - - -(define (count-true-optionals nl) - (let loop - ((result 0) - (nl (select-elements (descendants nl) (normalize "optional"))) - ) - (if(node-list-empty? nl) - result - (if(is-true-optional(node-list-first nl)) - (loop (+ result 1) (node-list-rest nl)) - (loop result (node-list-rest nl)) - ) - ) - ) - ) - -(define (has-default-value nl) - (not (node-list-empty? ( select-elements (descendants nl) (normalize "initializer")))) - ) - -;; render classsynopsis -(element classsynopsis - (make sequence - (literal "class ") - (process-children-trim) - (literal "}") - ) -) - -(element ooclass (make sequence (process-children))) - -(element (ooclass classname) - (make sequence - ($bold-seq$ - (process-children-trim) - ) - (literal " { ") - (linebreak) - ) - ) - - - -;; render methodsynopsis -(element methodsynopsis - (make sequence - (process-children) ;; render content - (methodsynopsis-generate-closing-optionals (children (current-node))) ;; close optional brackets - (literal ")") ;; close parameter list - (linebreak) - ) -) - -(element constructorsynopsis - (make sequence - (process-children) ;; render content - (methodsynopsis-generate-closing-optionals (children (current-node))) ;; close optional brackets - (literal ")") ;; close parameter list - (linebreak) - ) -) - -;; render return type -(element (methodsynopsis type) - (make sequence - (process-children-trim) - (literal " ") - ) -) - -;; render function name -(element (methodsynopsis methodname) - (make sequence - ($bold-seq$ - (process-children-trim) - ) - (literal " ( ") ;; start parameter list - ) - ) - -(element (constructorsynopsis methodname) - (make sequence - ($bold-seq$ - (process-children-trim) - ) - (literal " ( ") ;; start parameter list - ) - ) - -;; render parameters -(element (methodsynopsis methodparam) - (make sequence - ;; special case -> first parameter is optional - (if (equal? (gi (ipreced (current-node))) (normalize "methodparam")) - (empty-sosofo) ;; have prev. parameters -> is not first - (if (or (equal? (attribute-string (normalize "choice")) "opt") - (has-default-value (current-node)) - ) - (literal %arg-choice-opt-open-str%) ;; generate opening bracket - (empty-sosofo) - ) - ) - - (process-children-trim) - - ;; have more parameters following me? - (if (equal? (gi (ifollow (current-node))) (normalize "methodparam")) - (make sequence - ;; is next parameter optional? - (if (or (equal? (attribute-string (normalize "choice") (ifollow (current-node))) "opt") - (has-default-value (ifollow (current-node))) - ) - (make sequence - (literal " ") - (literal %arg-choice-opt-open-str%) - ) - (empty-sosofo) - ) - ;; parameter list separator - (literal ", ") - ) - (empty-sosofo) - ) - ) - ) - - -;; render parameters -(element (constructorsynopsis methodparam) - (make sequence - ;; special case -> first parameter is optional - (if (equal? (gi (ipreced (current-node))) (normalize "methodparam")) - (empty-sosofo) ;; have prev. parameters -> is not first - (if (or (equal? (attribute-string (normalize "choice")) "opt") - (has-default-value (current-node)) - ) - (literal %arg-choice-opt-open-str%) ;; generate opening bracket - (empty-sosofo) - ) - ) - - (process-children-trim) - - ;; have more parameters following me? - (if (equal? (gi (ifollow (current-node))) (normalize "methodparam")) - (make sequence - ;; is next parameter optional? - (if (or (equal? (attribute-string (normalize "choice") (ifollow (current-node))) "opt") - (has-default-value (ifollow (current-node))) - ) - (make sequence - (literal " ") - (literal %arg-choice-opt-open-str%) - ) - (empty-sosofo) - ) - ;; parameter list separator - (literal ", ") - ) - (empty-sosofo) - ) - ) - ) - -;; special "void" return type tag -(element (methodsynopsis void) - (literal "void ") -) - - -;; render parameter type -(element (methodparam type) - (make sequence - (process-children-trim) - (literal " ") - ) - ) - -;; render parameter name -(element (methodparam parameter) - (make sequence - (process-children-trim) - ) - ) - -;; render default value -(element (methodparam initializer) - (make sequence - (literal "=") - ($italic-seq$ (process-children-trim)) - ) - ) - - -;; render fieldsynopsis -(element fieldsynopsis - (make sequence - (process-children) - (linebreak) - ) -) - -(element (fieldsynopsis type) - (make sequence - (process-children-trim) - (literal " ") - ) -) -(element (fieldsynopsis varname) - (make sequence - (process-children-trim) - ) -) - - - - -;; render SGML tags -(element sgmltag - (make sequence - ($bold-seq$ (literal "<")) - ($bold-seq$ (process-children)) - ($bold-seq$ (literal ">")) - ) -) - diff --git a/docs/dsssl/defaults/catalog b/docs/dsssl/defaults/catalog deleted file mode 100755 index 11bc0425..00000000 --- a/docs/dsssl/defaults/catalog +++ /dev/null @@ -1,4 +0,0 @@ -PUBLIC "-//James Clark//DTD DSSSL Flow Object Tree//EN" "fot.dtd" -PUBLIC "ISO/IEC 10179:1996//DTD DSSSL Architecture//EN" "dsssl.dtd" -PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" "style-sheet.dtd" -PUBLIC "-//OpenJade//DTD DSSSL Style Sheet//EN" "style-sheet.dtd" diff --git a/docs/dsssl/defaults/dsssl.dtd b/docs/dsssl/defaults/dsssl.dtd deleted file mode 100755 index 50f66baa..00000000 --- a/docs/dsssl/defaults/dsssl.dtd +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/defaults/fot.dtd b/docs/dsssl/defaults/fot.dtd deleted file mode 100755 index afe3576d..00000000 --- a/docs/dsssl/defaults/fot.dtd +++ /dev/null @@ -1,507 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/defaults/style-sheet.dtd b/docs/dsssl/defaults/style-sheet.dtd deleted file mode 100755 index c6e04482..00000000 --- a/docs/dsssl/defaults/style-sheet.dtd +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/BUGS b/docs/dsssl/docbook/BUGS deleted file mode 100755 index 2400c964..00000000 --- a/docs/dsssl/docbook/BUGS +++ /dev/null @@ -1,35 +0,0 @@ -Using Equations w/o titles results in incorrectly numbered - equations with titles. Use InformalEquation instead. - -InlineEquations don't work in the RTF backend. It's not my fault. - -Callout support is somewhat fragile. - -Line numbering of linespecific displays is somewhat fragile. - -In two-sided mode, with the RTF backend, the appropriate - alternation of inner/outer headers and footers does not work - correctly unless %page-number-restart% is true. This is - caused by a limitation in RTF. - -CHAR alignment in tables is not supported - -The stylesheets can't automatically put callout marks on a -PROGRAMLISTING or SCREEN if the text comes from an external file -using the LINESPECIFIC INLINEGRAPHIC trick. - -"Extra"

    elements appear in the HTML output if you put block -elements inside of elements in your source. The problem -is that - - Some text ...

    - -Is translated into - -

    Some text ...

    - -but HTML doesn't allow "table" inside a P, so the begin table -implies an "

    " which makes the

    after the table erroneous. -I don't have a good answer for this, but I'm tempted to make all -

    tags empty in the HTML so that the browser has to imply all -the

    s. diff --git a/docs/dsssl/docbook/PHPDOC-NOTE b/docs/dsssl/docbook/PHPDOC-NOTE deleted file mode 100755 index c3980900..00000000 --- a/docs/dsssl/docbook/PHPDOC-NOTE +++ /dev/null @@ -1,14 +0,0 @@ -This is a minimal version of the DocBook DSSSL Style Sheet -distribution, which you can download from -http://docbook.sourceforge.net/. - -Except the catalog file, nothing is modified in these files, -all files are left untouched, so these are the same files you -can find in the distribution. We omitted some files and -directories though, and only left those that we use for -output generation. - -The reason to put this to phpdoc was to encourage compatibility, -so we don't need to force users to have a specific version of -the DSSSL style sheets locally, but we can still rely on a version -of the sheets we tested our customizations with. \ No newline at end of file diff --git a/docs/dsssl/docbook/README b/docs/dsssl/docbook/README deleted file mode 100755 index 46657433..00000000 --- a/docs/dsssl/docbook/README +++ /dev/null @@ -1,91 +0,0 @@ -README for the DocBook Stylesheets - -These are DSSSL stylesheets for the DocBook DTD. - -For more information, see http://docbook.sourceforge.net/ - -Manifest --------- - -bin/ contains scripts for some (optional) post-processing -common/ contains code common to both stylesheets -contrib/ contains contributions -doc/ contains installation and reference documentation (this is - now distributed in a separate ZIP archive) -docsrc/ contains the SGML source for the documentation -dtds/ contains auxiliary DTDs -frames/ contains support for frames -html/ contains the HTML stylesheet (for use with -t sgml) -images/ contains images used by the HTML stylesheets -lib/ contains DSSSL functions that are believed to be useful but - are totally independent of any particular stylesheet -olink/ contains olink support -print/ contains the print stylesheet - -Changes -------- - -See the ChangeLog in each directory for additional information -about the specific changes. - -See WhatsNew for changes since the last release. - -Installation ------------- - -See doc/install.html and/or http://nwalsh.com/docbook/dsssl/ - -Copyright ---------- - -Copyright (C) 1997-2001 Norman Walsh - -The original inspiration for these stylesheets came from the -work of Jon Bosak, Anders Berglund, Tony Graham, Terry Allen, -James Clark, and many others. I am indebted to them and to the -community of users on dssslist@mulberrytech.com for making -substantial contributions to this work and for answering my many -questions. - -This software may be distributed under the same terms as Jade: - -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 stylesheet 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 Author ---------------------- - -These stylesheets are maintained by Norman Walsh, . diff --git a/docs/dsssl/docbook/VERSION b/docs/dsssl/docbook/VERSION deleted file mode 100755 index f23daf40..00000000 --- a/docs/dsssl/docbook/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.77 \ No newline at end of file diff --git a/docs/dsssl/docbook/catalog b/docs/dsssl/docbook/catalog deleted file mode 100755 index 1d599fe5..00000000 --- a/docs/dsssl/docbook/catalog +++ /dev/null @@ -1,17 +0,0 @@ -OVERRIDE YES - --- Stylesheets -- - -PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" - print/docbook.dsl - -PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" - html/docbook.dsl - -PUBLIC "-//Norman Walsh//DOCUMENT DSSSL Library//EN" - lib/dblib.dsl - -PUBLIC "-//Norman Walsh//DOCUMENT DSSSL Library V2//EN" - lib/dblib.dsl - --- DTDs, Entites, Documents and Declarations are omitted -- \ No newline at end of file diff --git a/docs/dsssl/docbook/common/ChangeLog b/docs/dsssl/docbook/common/ChangeLog deleted file mode 100755 index b347a182..00000000 --- a/docs/dsssl/docbook/common/ChangeLog +++ /dev/null @@ -1,112 +0,0 @@ -2002-06-06 Norman Walsh - - * dbl1tr.dsl: Patch #554930: obvious gentext-tr-intra-label-sep fix - -2002-04-29 Norman Walsh - - * .cvsignore, Makefile: (Incomplete) support for Hebrew - -2002-03-24 Adam Di Carlo - - * .cvsignore, Makefile: suffix rules for the *.ent production; add a rule to create a catalog - automatically form the *.dsl files - - * Makefile: clean shouldn't remove dbl10n.ent - -2002-03-20 Norman Walsh - - * dbl10n.dsl: Remove duplicated comment - -2002-02-22 Norman Walsh - - * dbcommon.dsl: Fix test for articles in books - -2002-02-20 Norman Walsh - - * dbl1fr.dsl: Fix French quotes - -2002-01-03 Norman Walsh - - * .cvsignore, Makefile: Added Thai localization - -2001-12-04 Norman Walsh - - * dbcommon.dsl: Bug #435320: Poor enumeration of LoTs and LoFs - -2001-12-01 Norman Walsh - - * dbcommon.dsl: Bug #473531 numbering of blocks when the root element is not a component - -2001-11-30 Norman Walsh - - * .cvsignore, dbl10n.ent: New file. - - * .cvsignore, dbl10n.ent: Merged V174bugfixes - - * dbcommon.dsl: Patch #473116: Section levels - - * dbl10n.ent: branches: 1.1.2; - file dbl10n.ent was initially added on branch V174bugfixes. - -2001-11-20 Norman Walsh - - * dbcommon.dsl: Support artheader or articleinfo as the info-element of an article - -2001-11-14 Norman Walsh - - * Makefile, dbl10n.dsl, dbl10n.pl, dbl10n.template, dbl1eu.dsl, dbl1nn.dsl, dbl1uk.dsl, dbl1xh.dsl: - Added Basque, Nynorsk, Ukranian, and Xhosa - -2001-09-23 Norman Walsh - - * dbcommon.dsl: Patch #460349, don't check extension for linespecific inclusions - - * dbcommon.dsl: Patch #461632, title sizes for bibliography and index divs - -2001-09-09 Norman Walsh - - * dbcommon.dsl: Bug #459209, allow format attribute to be absent - -2001-09-06 Jirka Kosek - - * dbl1cs.dsl: Synchronized with localization in cs.xml - -2001-08-30 Norman Walsh - - * dbcommon.dsl: Fix XML/SGML discrepancy wrt normalization of notation names; move some common stuff into dbcommon - -2001-07-04 - - * Makefile, dbl10n.dsl, dbl1af.dsl, dbl1tr.dsl: Added Afrikaans and Turkish - -2001-06-20 Norman Walsh - - * dbcommon.dsl, dbl10n.dsl, dbl1ca.dsl, dbl1cs.dsl, dbl1da.dsl, dbl1de.dsl, dbl1el.dsl, dbl1en.dsl, dbl1es.dsl, dbl1et.dsl, dbl1fi.dsl, dbl1fr.dsl, dbl1hu.dsl, dbl1id.dsl, dbl1it.dsl, dbl1ja.dsl, dbl1ko.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ptbr.dsl, dbl1ro.dsl, dbl1ru.dsl, dbl1sk.dsl, dbl1sl.dsl, dbl1sr.dsl, dbl1sv.dsl, dbl1zhcn.dsl, dbl1zhtw.dsl: - Updated support for locale-sensitive commas in lists - -2001-05-11 Norman Walsh - - * dbl10n.dsl, dbl1sr.dsl, dbl1zhtw.dsl: Support Serbian and Traditional Chinese - -2001-05-04 Norman Walsh - - * Makefile: Add (partial support for) Serbian localization - -2001-04-20 Norman Walsh - - * Makefile, cs-hack.pl: Fixed charset issues that caused the .ent files not to work in SGML - -2001-04-09 Norman Walsh - - * dbl1ko.dsl: Updates from Park Yong Joo - -2001-04-02 Norman Walsh - - * .cvsignore: branches: 1.1.2; - Added Makefiles to build common/*.ent - - * Makefile: New file. - - * dbcommon.dsl, dbl10n.dsl, dbl1ca.dsl, dbl1cs.dsl, dbl1da.dsl, dbl1de.dsl, dbl1el.dsl, dbl1en.dsl, dbl1es.dsl, dbl1et.dsl, dbl1fi.dsl, dbl1fr.dsl, dbl1hu.dsl, dbl1id.dsl, dbl1it.dsl, dbl1ja.dsl, dbl1ko.dsl, dbl1nl.dsl, dbl1no.dsl, dbl1null.dsl, dbl1pl.dsl, dbl1pt.dsl, dbl1ptbr.dsl, dbl1ro.dsl, dbl1ru.dsl, dbl1sk.dsl, dbl1sl.dsl, dbl1sv.dsl, dbl1zhcn.dsl, dbtable.dsl: - New file. - diff --git a/docs/dsssl/docbook/common/catalog b/docs/dsssl/docbook/common/catalog deleted file mode 100755 index 69fafdd6..00000000 --- a/docs/dsssl/docbook/common/catalog +++ /dev/null @@ -1,36 +0,0 @@ -OVERRIDE YES -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//AF" "dbl1af.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//CA" "dbl1ca.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//CS" "dbl1cs.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//DA" "dbl1da.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//DE" "dbl1de.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//EL" "dbl1el.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//EN" "dbl1en.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ES" "dbl1es.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ET" "dbl1et.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//EU" "dbl1eu.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//FI" "dbl1fi.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//FR" "dbl1fr.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//HU" "dbl1hu.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//IN" "dbl1id.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//IT" "dbl1it.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//JA" "dbl1ja.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//KO" "dbl1ko.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//NL" "dbl1nl.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//NN" "dbl1nn.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//NO" "dbl1no.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//PL" "dbl1pl.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//PT" "dbl1pt.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//PTBR" "dbl1ptbr.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//RO" "dbl1ro.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//RU" "dbl1ru.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//SK" "dbl1sk.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//SL" "dbl1sl.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//SR" "dbl1sr.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//SV" "dbl1sv.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//TR" "dbl1tr.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//UK" "dbl1uk.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//XH" "dbl1xh.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHCN" "dbl1zhcn.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHTW" "dbl1zhtw.ent" -PUBLIC "-//Norman Walsh//ENTITIES DocBook Stylesheet Localization//ZHHK" "dbl1zhhk.ent" diff --git a/docs/dsssl/docbook/common/cs-hack.pl b/docs/dsssl/docbook/common/cs-hack.pl deleted file mode 100755 index 7f1c1eeb..00000000 --- a/docs/dsssl/docbook/common/cs-hack.pl +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/perl -- # -*- Perl -*- - -# Charset hacking... - -while (<>) { - s/\&\#(\d+);/sprintf("\\U-%04X;", $1)/egs; - print; -} diff --git a/docs/dsssl/docbook/common/dbcommon.dsl b/docs/dsssl/docbook/common/dbcommon.dsl deleted file mode 100755 index ba5c3b95..00000000 --- a/docs/dsssl/docbook/common/dbcommon.dsl +++ /dev/null @@ -1,1904 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; -;; This file contains general functions common to both print and HTML -;; versions of the DocBook stylesheets. -;; - -;; If **ANY** change is made to this file, you _MUST_ alter the -;; following definition: - -(define %docbook-common-version% - "Modular DocBook Stylesheet Common Functions") - -;; === element lists ==================================================== - -;; these have to be functions because they have to be evaluated when -;; there is a current-node so that normalize can know what declaration -;; is in effect - -(define (set-element-list) - (list (normalize "set"))) - -(define (book-element-list) - (list (normalize "book"))) - -(define (division-element-list) - (list (normalize "part"))) - -(define (component-element-list) - (list (normalize "preface") - (normalize "chapter") - (normalize "appendix") - (normalize "article") - (normalize "glossary") - (normalize "bibliography") - (normalize "index") - (normalize "colophon") - (normalize "setindex") - (normalize "reference") - (normalize "refentry") - (normalize "book"))) ;; just in case nothing else matches... - -(define (major-component-element-list) - (list (normalize "preface") - (normalize "chapter") - (normalize "appendix") - (normalize "article") - (normalize "glossary") - (normalize "bibliography") - (normalize "index") - (normalize "colophon") - (normalize "setindex") - (normalize "reference") - (normalize "refentry") - (normalize "part") - (normalize "book"))) ;; just in case nothing else matches... - -(define (section-element-list) - (list (normalize "sect1") - (normalize "sect2") - (normalize "sect3") - (normalize "sect4") - (normalize "sect5") - (normalize "section") - (normalize "simplesect") - (normalize "refsect1") - (normalize "refsect2") - (normalize "refsect3"))) - -(define (block-element-list) - (list (normalize "example") - (normalize "figure") - (normalize "table") - (normalize "equation") - (normalize "procedure"))) - -(define (outer-parent-list) - (list (normalize "toc") - (normalize "lot") - (normalize "appendix") - (normalize "chapter") - (normalize "part") - (normalize "preface") - (normalize "reference") - (normalize "bibliography") - (normalize "glossary") - (normalize "index") - (normalize "setindex") - (normalize "sect1") - (normalize "sect2") - (normalize "sect3") - (normalize "sect4") - (normalize "sect5") - (normalize "simplesect") - (normalize "partintro") - (normalize "bibliodiv") - (normalize "glossdiv") - (normalize "indexdiv") - (normalize "refentry") - (normalize "refsect1") - (normalize "refsect2") - (normalize "refsect3") - (normalize "msgtext") - (normalize "msgexplan"))) - -(define (list-element-list) - (list (normalize "orderedlist") - (normalize "itemizedlist") - (normalize "variablelist") - (normalize "segmentedlist") - (normalize "simplelist") - (normalize "calloutlist") - (normalize "step"))) - -(define (info-element-list) - (list (normalize "appendixinfo") - (normalize "articleinfo") - (normalize "bibliographyinfo") - (normalize "bookinfo") - (normalize "chapterinfo") - (normalize "glossaryinfo") - (normalize "indexinfo") - (normalize "objectinfo") - (normalize "partinfo") - (normalize "prefaceinfo") - (normalize "refentryinfo") - (normalize "referenceinfo") - (normalize "refsect1info") - (normalize "refsect2info") - (normalize "refsect3info") - (normalize "refsynopsisdivinfo") - (normalize "sect1info") - (normalize "sect2info") - (normalize "sect3info") - (normalize "sect4info") - (normalize "sect5info") - (normalize "sectioninfo") - (normalize "setindexinfo") - (normalize "setinfo") - (normalize "sidebarinfo") - ;; historical - (normalize "artheader") - (normalize "docinfo"))) - -;; === automatic TOC ==================================================== - -;; Returns #t if nd should appear in the auto TOC -(define (appears-in-auto-toc? nd) - (if (or (equal? (gi nd) (normalize "refsect1")) - (have-ancestor? (normalize "refsect1") nd)) - #f - #t)) - -;; # return elements of nl for which appears-in-auto-toc? is #t -(define (toc-list-filter nodelist) - (let loop ((toclist (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - toclist - (if (appears-in-auto-toc? (node-list-first nl)) - (loop (node-list toclist (node-list-first nl)) - (node-list-rest nl)) - (loop toclist (node-list-rest nl)))))) - -;; === common =========================================================== - -(define (INLIST?) - (has-ancestor-member? (current-node) (list-element-list))) - -(define (INBLOCK?) - (has-ancestor-member? (current-node) - (list (normalize "example") - (normalize "informalexample") - (normalize "figure") - (normalize "informalfigure") - (normalize "equation") - (normalize "informalequation") - (normalize "funcsynopsis") - (normalize "programlistingco") - (normalize "screenco") - (normalize "graphicco")))) - -(define (PARNUM) - (child-number (parent (current-node)))) - -(define (NESTEDFNUM n fmt) - (if (number? n) - (format-number n fmt) - #f)) - -(define (FNUM n) (NESTEDFNUM n "1")) - -(define (book-start?) - ;; Returns #t if the current-node is in the first division or - ;; component of a book. - (let ((book (ancestor (normalize "book"))) - (nd (ancestor-member - (current-node) - (append (component-element-list) (division-element-list))))) - (let loop ((ch (children book))) - (if (node-list-empty? ch) - #f - (if (member (gi (node-list-first ch)) - (append (component-element-list) (division-element-list))) - (node-list=? (node-list-first ch) nd) - (loop (node-list-rest ch))))))) - -(define (first-chapter?) - ;; Returns #t if the current-node is in the first chapter of a book - (let* ((book (ancestor (normalize "book"))) - (nd (ancestor-member - (current-node) - (append (component-element-list) (division-element-list)))) - (bookch (children book)) - (bookcomp (expand-children bookch (list (normalize "part"))))) - (let loop ((nl bookcomp)) - (if (node-list-empty? nl) - #f - (if (equal? (gi (node-list-first nl)) (normalize "chapter")) - (if (node-list=? (node-list-first nl) nd) - #t - #f) - (loop (node-list-rest nl))))))) - -;; === bibliographic ==================================================== - -;; Localized author-string - -(define (author-list-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of AUTHOR - ;; *including appropriate punctuation* if the AUTHOR occurs in a list - ;; of AUTHORs in an AUTHORGROUP: - ;; - ;; John Doe - ;; or - ;; John Doe and Jane Doe - ;; or - ;; John Doe, Jane Doe, and A. Nonymous - ;; - - (let* ((author-node-list (select-elements - (descendants - (ancestor (normalize "authorgroup") author)) - (normalize "author"))) - (corpauthor-node-list (select-elements - (descendants - (ancestor (normalize "authorgroup") author)) - (normalize "corpauthor"))) - (othercredit-node-list (select-elements - (descendants - (ancestor (normalize "authorgroup") author)) - (normalize "othercredit"))) - (editor-node-list (select-elements - (descendants - (ancestor (normalize "authorgroup"))) - (normalize "editor"))) - (author-count (if (have-ancestor? (normalize "authorgroup") author) - (+ (node-list-length author-node-list) - (node-list-length corpauthor-node-list) - (node-list-length othercredit-node-list) - (node-list-length editor-node-list)) - 1)) - (this-count (if (have-ancestor? (normalize "authorgroup") author) - (+ (node-list-length (preced author)) 1) - 1))) - (string-append - (if (and (> author-count 1) - (last-sibling? author)) - (string-append (gentext-and) " ") - "") - - (author-string author) - - (if (> author-count 2) - (if (> (- author-count this-count) 1) - (gentext-listcomma) - (if (= (- author-count this-count) 1) - (gentext-lastlistcomma) - "")) - "") - (if (and (> author-count 1) - (not (last-sibling? author))) - " " - "")))) - -;; === procedures ======================================================= - -(define ($proc-hierarch-number-format$ depth) - (case (modulo depth 5) - ((1) "1") - ((2) "a") - ((3) "i") - ((4) "A") - (else "I"))) - -(define ($proc-hierarch-number$ nd seperator) - (if (equal? (gi nd) (normalize "step")) - (string-append - (format-number - (child-number nd) - ($proc-hierarch-number-format$ ($proc-step-depth$ nd))) - seperator) - "")) - -(define ($proc-step-depth$ nd) - (let loop ((step nd) (depth 0)) - (if (equal? (gi step) (normalize "procedure")) - depth - (loop (parent step) - (if (equal? (gi step) (normalize "step")) - (+ depth 1) - depth))))) - -(define ($proc-step-number$ nd) - (let* ((step (if (equal? (gi nd) (normalize "step")) nd (parent nd))) - (str ($proc-hierarch-number$ step ""))) - (string-append str (gentext-label-title-sep (normalize "step"))))) - -(define ($proc-step-xref-number$ nd) - (let loop ((step nd) (str "") (first #t)) - (if (equal? (gi step) (normalize "procedure")) - str - (loop (parent step) - (if (equal? (gi step) (normalize "step")) - (string-append - ($proc-hierarch-number$ step - (if first - "" - (gentext-intra-label-sep (normalize "step")))) - str) - str) - (if (equal? (gi step) (normalize "step")) - #f - first))))) - -;; === sections ========================================================= - -(define (section-level-by-gi chunked? gi) - ;; Figure out the heading level of an element by its name. We need - ;; to distinguish between the chunked processing mode (for HTML) and - ;; the non-chunked (print or HTML). It is important that no heading - ;; level is skipped in a document structure (e.g., sect1 = 2, sect2 - ;; = 4); this results in broken PDF bookmarks. - (if chunked? - (cond - ((equal? gi (normalize "sect5")) 5) - ((equal? gi (normalize "sect4")) 4) - ((equal? gi (normalize "sect3")) 3) - ((equal? gi (normalize "sect2")) 2) - ((equal? gi (normalize "sect1")) 1) - ((equal? gi (normalize "refsect3")) 4) - ((equal? gi (normalize "refsect2")) 3) - ((equal? gi (normalize "refsect1")) 2) - ((equal? gi (normalize "refsynopsisdiv")) 2) - ((equal? gi (normalize "bibliography")) 1) - ((equal? gi (normalize "bibliodiv")) 2) - ((equal? gi (normalize "index")) 1) - ((equal? gi (normalize "setindex")) 1) - ((equal? gi (normalize "indexdiv")) 2) - (else 1)) - (cond - ((equal? gi (normalize "sect5")) 6) - ((equal? gi (normalize "sect4")) 5) - ((equal? gi (normalize "sect3")) 4) - ((equal? gi (normalize "sect2")) 3) - ((equal? gi (normalize "sect1")) 2) - ;; The next four are not used by the HTML stylesheets. - ((equal? gi (normalize "refsect3")) 5) - ((equal? gi (normalize "refsect2")) 4) - ((equal? gi (normalize "refsect1")) 3) - ((equal? gi (normalize "refsynopsisdiv")) 3) - ((equal? gi (normalize "bibliography")) 1) - ((equal? gi (normalize "bibliodiv")) 2) - ((equal? gi (normalize "index")) 1) - ((equal? gi (normalize "setindex")) 1) - ((equal? gi (normalize "indexdiv")) 2) - (else 1)))) - -(define (section-level-by-node chunked? sect) - (if (equal? (gi sect) (normalize "section")) - ;; Section is special, it is recursive. - (let ((depth (length (hierarchical-number-recursive - (normalize "section"))))) - (if (> depth 5) - 6 - (+ depth 1))) - (if (equal? (gi sect) (normalize "simplesect")) - ;; SimpleSect is special, it should be level "n+1", where "n" is - ;; the level of the numbered section that contains it. If it is - ;; the *first* sectioning element in a chapter, make it - ;; %default-simplesect-level% - (cond - ((have-ancestor? (normalize "sect5")) - (+ 1 (section-level-by-gi chunked? (normalize "sect5")))) - ((have-ancestor? (normalize "sect4")) - (+ 1 (section-level-by-gi chunked? (normalize "sect4")))) - ((have-ancestor? (normalize "sect3")) - (+ 1 (section-level-by-gi chunked? (normalize "sect3")))) - ((have-ancestor? (normalize "sect2")) - (+ 1 (section-level-by-gi chunked? (normalize "sect2")))) - ((have-ancestor? (normalize "sect1")) - (+ 1 (section-level-by-gi chunked? (normalize "sect1")))) - ((have-ancestor? (normalize "refsect3")) - (+ 1 (section-level-by-gi chunked? (normalize "refsect3")))) - ((have-ancestor? (normalize "refsect2")) - (+ 1 (section-level-by-gi chunked? (normalize "refsect2")))) - ((have-ancestor? (normalize "refsect1")) - (+ 1 (section-level-by-gi chunked? (normalize "refsect1")))) - (else %default-simplesect-level%)) - ;; the rest of the section elements can be identified by name - (section-level-by-gi chunked? (gi sect))))) - -;; === synopsis ========================================================= - -;; The following definitions match those given in the reference -;; documentation for DocBook V3.0 -(define %arg-choice-opt-open-str% "[") -(define %arg-choice-opt-close-str% "]") -(define %arg-choice-req-open-str% "{") -(define %arg-choice-req-close-str% "}") -(define %arg-choice-plain-open-str% " ") -(define %arg-choice-plain-close-str% " ") -(define %arg-choice-def-open-str% "[") -(define %arg-choice-def-close-str% "]") -(define %arg-rep-repeat-str% "...") -(define %arg-rep-norepeat-str% "") -(define %arg-rep-def-str% "") -(define %arg-or-sep% " | ") -(define %cmdsynopsis-hanging-indent% 4pi) - -;; === linking ========================================================== - -;; From the DocBook V3.0 Reference entry for element XREF: -;; -;; Description -;; -;; Cross reference link to another part of the document. XRef is empty, -;; and has common, Linkend, and Endterm attributes. -;; -;; Processing Expectations -;; -;; XRef must have a Linkend, but the Endterm is optional. If it is used, -;; the content of the element it points to is displayed as the text of -;; the cross reference; if it is absent, the XRefLabel of the -;; cross-referenced object is displayed. -;; -;; If neither the ENDTERM nor the XREFLABEL is present, then the cross -;; reference text is taken from the (gentext-xref-strings) function -;; in the localization file, like this -;; -;; A cross reference to an element, the target, begins with the -;; text returned by (gentext-xref-strings (gi target)). Within -;; that text, the following substitutions are made: -;; -;; %p is replaced by the number of the page on which target occurs -;; %g is replaced by the (gentext-element-name) -;; %n is replaced by the label -;; %t is replaced by the title -;; -;; After the "direct" cross reference, a number of indirect references -;; are possible. If the target element is in a different block, section, -;; component, division, or book an indirect cross reference may be made. -;; -;; The indirect cross reference will only be made if -;; -;; (auto-xref-indirect? target ancestor) -;; -;; returns #t. The indirect reference is created by appending the -;; connect returned by (auto-xref-indirect-connector) to the direct -;; reference and then adding a direct refernce to the ancestor. -;; The process is repeated for each ancestral element. -;; -;; For example, if a direct reference to a section returns -;; -;; "the section called %t" -;; -;; and a direct reference to a chapter returns -;; -;; "Chapter %n" -;; -;; and (auto-xref-indirect? sect1 chapter) returns #t, and -;; (auto-xref-indirect-connector chapter) returns "in", then -;; an xref to a section in another chapter will be: -;; -;; "the section called %t in Chapter %n" -;; -;; Where %t and %n will be filled in accordingly. -;; -;; ====================================================================== - -(define (auto-xref-indirect? target ancestor) - ;; This function answers the question: should an indirect reference - ;; to ancestor be made for target? For example: - ;; - ;; (auto-xref-indirect? SECT1 CHAP) - ;; - ;; should return #t iff a reference of the form "in [CHAP-xref]" should - ;; be generated for a reference to SECT1 if SECT1 is in a different - ;; chapter than the XREF to SECT1. - ;; - ;; This function _does not_ have to consider the case of whether or - ;; not target and the xref are in the same ancestor. - ;; - (cond - ;; Always add indirect references to another book - ((member (gi ancestor) (book-element-list)) - #t) - ;; Add indirect references to the section or component a block - ;; is in iff chapters aren't autolabelled. (Otherwise "Figure 1-3" - ;; is sufficient) - ((and (member (gi target) (block-element-list)) - (not %chapter-autolabel%)) - #t) - ;; Add indirect references to the component a section is in if - ;; the sections are not autolabelled - ((and (member (gi target) (section-element-list)) - (member (gi ancestor) (component-element-list)) - (not %section-autolabel%)) - #t) - (else #f))) - -(define (auto-xref-direct target - #!optional - (xref-string (gentext-xref-strings target))) - (let* ((substitute (list - (list "%g" (element-gi-sosofo target)) - (list "%n" (element-label-sosofo target)) - (list "%p" (element-page-number-sosofo target)) - (list "%t" (element-title-xref-sosofo target)))) - (tlist (match-split-list xref-string (assoc-objs substitute)))) - (string-list-sosofo tlist substitute))) - -(define (auto-xref-indirect target - #!optional - (xref-string (gentext-xref-strings target))) - (make sequence - (auto-xref-indirect-connector target) - (auto-xref-direct target xref-string))) - -(define (auto-xref target - #!optional (xref-string (gentext-xref-strings target))) - (let ((source (current-node)) - (cont-blok (ancestor-member target (block-element-list))) - (cont-sect (ancestor-member target (section-element-list))) - (cont-comp (ancestor-member target (component-element-list))) - (cont-divn (ancestor-member target (division-element-list))) - (cont-book (ancestor-member target (book-element-list)))) - (make sequence - (auto-xref-direct target xref-string) - (if (or (node-list=? cont-blok - (ancestor-member source (block-element-list))) - (node-list=? cont-blok target) - (not (auto-xref-indirect? target cont-blok))) - (empty-sosofo) - (auto-xref-indirect cont-blok)) - (if (or (node-list=? cont-sect - (ancestor-member source (section-element-list))) - (node-list=? cont-sect target) - (not (auto-xref-indirect? target cont-sect))) - (empty-sosofo) - (auto-xref-indirect cont-sect)) - (if (or (node-list=? cont-comp - (ancestor-member source (component-element-list))) - (node-list=? cont-comp target) - (not (auto-xref-indirect? target cont-comp))) - (empty-sosofo) - (auto-xref-indirect cont-comp)) - (if (or (node-list=? cont-divn - (ancestor-member source (division-element-list))) - (node-list=? cont-divn target) - (not (auto-xref-indirect? target cont-divn))) - (empty-sosofo) - (auto-xref-indirect cont-divn)) - (if (or (node-list=? cont-book - (ancestor-member source (book-element-list))) - (node-list=? cont-book target) - (not (auto-xref-indirect? target cont-book))) - (empty-sosofo) - (auto-xref-indirect cont-book))))) - -;; ====================================================================== - -(define (set-number-restart-list cmp) (list (normalize "set"))) -(define (book-number-restart-list cmp) (list (normalize "set"))) -(define (part-number-restart-list cmp) (list (normalize "book"))) -(define (reference-number-restart-list cmp) (list (normalize "book"))) -(define (preface-number-restart-list cmp) (list (normalize "book"))) -(define (chapter-number-restart-list cmp) (list (normalize "book"))) -(define (appendix-number-restart-list cmp) (list (normalize "book") - (normalize "article"))) -(define (article-number-restart-list cmp) (list (normalize "book"))) -(define (glossary-number-restart-list cmp) (list (normalize "book"))) -(define (bibliography-number-restart-list cmp) (list (normalize "book"))) -(define (index-number-restart-list cmp) (list (normalize "book"))) -(define (setindex-number-restart-list cmp) (list (normalize "set"))) -(define (refentry-number-restart-list cmp) (list (normalize "reference"))) -(define (default-number-restart-list cmp) (list (normalize "book"))) - -(define (component-number-restart-list cmp) - ;; Return the list of elements at which numbering of 'cmp' should reset. - ;; For example, for CHAPTER, it might return '("BOOK") causing chapters - ;; to be sequentially numbered across a book. If it returned - ;; '("BOOK" "PART") then chapter numbering would restart at each - ;; BOOK or PART. - (let ((name (gi cmp))) - (cond - ((equal? name (normalize "set")) (set-number-restart-list cmp)) - ((equal? name (normalize "book")) (book-number-restart-list cmp)) - ((equal? name (normalize "part")) (part-number-restart-list cmp)) - ((equal? name (normalize "reference")) (reference-number-restart-list cmp)) - ((equal? name (normalize "preface")) (preface-number-restart-list cmp)) - ((equal? name (normalize "chapter")) (chapter-number-restart-list cmp)) - ((equal? name (normalize "appendix")) (appendix-number-restart-list cmp)) - ((equal? name (normalize "article")) (article-number-restart-list cmp)) - ((equal? name (normalize "glossary")) (glossary-number-restart-list cmp)) - ((equal? name (normalize "bibliography")) (bibliography-number-restart-list cmp)) - ((equal? name (normalize "index")) (index-number-restart-list cmp)) - ((equal? name (normalize "setindex")) (setindex-number-restart-list cmp)) - ((equal? name (normalize "refentry")) (refentry-number-restart-list cmp)) - (else (default-number-restart-list cmp))))) - -(define (set-number-ignore-list cmp) '()) -(define (book-number-ignore-list cmp) '()) -(define (part-number-ignore-list cmp) '()) -(define (reference-number-ignore-list cmp) (list (normalize "part"))) -(define (preface-number-ignore-list cmp) (list (normalize "part"))) -(define (chapter-number-ignore-list cmp) (list (normalize "part"))) -(define (appendix-number-ignore-list cmp) (list (normalize "part"))) -(define (article-number-ignore-list cmp) (list (normalize "part"))) -(define (glossary-number-ignore-list cmp) (list (normalize "part"))) -(define (bibliography-number-ignore-list cmp) (list (normalize "part"))) -(define (index-number-ignore-list cmp) (list (normalize "part"))) -(define (setindex-number-ignore-list cmp) (list (normalize "part"))) -(define (refentry-number-ignore-list cmp) '()) -(define (default-number-ignore-list cmp) '()) - -(define (component-number-ignore-list cmp) - ;; Return the list of elements (inside the restart list) which are - ;; hierarchy levels which should be ignored. For example, for CHAPTER, - ;; it might return '("PART") causing chapter numbering inside books - ;; to ignore parts. - ;; - ;; Basically, if you skip up past a component/division element in - ;; the restart list, you better put the element(s) you skipped in - ;; the ignore list or the stylesheet may never see your component - ;; when it's trying to do the numbering. - (let ((name (gi cmp))) - (cond - ((equal? name (normalize "set")) (set-number-ignore-list cmp)) - ((equal? name (normalize "book")) (book-number-ignore-list cmp)) - ((equal? name (normalize "part")) (part-number-ignore-list cmp)) - ((equal? name (normalize "reference")) (reference-number-ignore-list cmp)) - ((equal? name (normalize "preface")) (preface-number-ignore-list cmp)) - ((equal? name (normalize "chapter")) (chapter-number-ignore-list cmp)) - ((equal? name (normalize "appendix")) (appendix-number-ignore-list cmp)) - ((equal? name (normalize "article")) (article-number-ignore-list cmp)) - ((equal? name (normalize "glossary")) (glossary-number-ignore-list cmp)) - ((equal? name (normalize "bibliography")) (bibliography-number-ignore-list cmp)) - ((equal? name (normalize "index")) (index-number-ignore-list cmp)) - ((equal? name (normalize "setindex")) (setindex-number-ignore-list cmp)) - ((equal? name (normalize "refentry")) (refentry-number-ignore-list cmp)) - (else (default-number-ignore-list cmp))))) - -(define (set-number-sibling-list cmp) '()) -(define (book-number-sibling-list cmp) '()) -(define (part-number-sibling-list cmp) '()) -(define (reference-number-sibling-list cmp) '()) -(define (preface-number-sibling-list cmp) '()) -(define (chapter-number-sibling-list cmp) '()) -(define (appendix-number-sibling-list cmp) '()) -(define (article-number-sibling-list cmp) '()) -(define (glossary-number-sibling-list cmp) '()) -(define (bibliography-number-sibling-list cmp) '()) -(define (index-number-sibling-list cmp) '()) -(define (setindex-number-sibling-list cmp) '()) -(define (refentry-number-sibling-list cmp) '()) -(define (default-number-sibling-list cmp) '()) - -(define (component-number-sibling-list cmp) - ;; Return the list of elements with which 'cmp' should be numbered. - ;; For example, for PART it might return '("PART" "REFERENCE") causing - ;; sibling parts and references to be numbered together. - (let ((name (gi cmp))) - (cond - ((equal? name (normalize "set")) (set-number-sibling-list cmp)) - ((equal? name (normalize "book")) (book-number-sibling-list cmp)) - ((equal? name (normalize "part")) (part-number-sibling-list cmp)) - ((equal? name (normalize "reference")) (reference-number-sibling-list cmp)) - ((equal? name (normalize "preface")) (preface-number-sibling-list cmp)) - ((equal? name (normalize "chapter")) (chapter-number-sibling-list cmp)) - ((equal? name (normalize "appendix")) (appendix-number-sibling-list cmp)) - ((equal? name (normalize "article")) (article-number-sibling-list cmp)) - ((equal? name (normalize "glossary")) (glossary-number-sibling-list cmp)) - ((equal? name (normalize "bibliography")) (bibliography-number-sibling-list cmp)) - ((equal? name (normalize "index")) (index-number-sibling-list cmp)) - ((equal? name (normalize "setindex")) (setindex-number-sibling-list cmp)) - ((equal? name (normalize "refentry")) (refentry-number-sibling-list cmp)) - (else (default-number-sibling-list cmp))))) - -(define (component-number component-node) - (let* ((root (ancestor-member component-node - (component-number-restart-list - component-node))) - (clist (expand-children (children root) - (component-number-ignore-list - component-node))) - (slist (append (list (gi component-node)) - (component-number-sibling-list component-node)))) - (let loop ((nl clist) (count 1)) - (if (node-list-empty? nl) - 1 - (if (node-list=? (node-list-first nl) component-node) - count - (if (member (gi (node-list-first nl)) slist) - (loop (node-list-rest nl) (+ count 1)) - (loop (node-list-rest nl) count))))))) - -;; == components and divisions == - -(define (set-autolabel nd #!optional (force-label? #f)) - "") - -(define (book-autolabel nd #!optional (force-label? #f)) - "") - -(define (part-autolabel nd #!optional (force-label? #f)) - (format-number (component-number nd) (label-number-format nd))) - -(define (reference-autolabel nd #!optional (force-label? #f)) - (format-number (component-number nd) (label-number-format nd))) - -(define (preface-autolabel nd #!optional (force-label? #f)) - "") - -(define (chapter-autolabel nd #!optional (force-label? #f)) - (if (or force-label? %chapter-autolabel%) - (format-number (component-number nd) (label-number-format nd)) - "")) - -(define (appendix-autolabel nd #!optional (force-label? #f)) - ;; Abandoned special processing for appendixes in articles. Maybe - ;; it's a good idea, but it can't be done here because it screws - ;; up cross references to appendixes. - (if (or force-label? %chapter-autolabel%) - (format-number (component-number nd) (label-number-format nd)) - "")) - -(define (article-autolabel nd #!optional (force-label? #f)) - "") - -(define (glossary-autolabel nd #!optional (force-label? #f)) - "") - -(define (bibliography-autolabel nd #!optional (force-label? #f)) - "") - -(define (index-autolabel nd #!optional (force-label? #f)) - "") - -(define (indexdiv-autolabel nd #!optional (force-label? #f)) - "") - -(define (colophon-autolabel nd #!optional (force-label? #f)) - "") - -(define (setindex-autolabel nd #!optional (force-label? #f)) - "") - -(define (refentry-autolabel nd #!optional (force-label? #f)) - (let* ((isep (gentext-intra-label-sep nd)) - (refnamediv (select-elements (children nd) - (normalize "refnamediv"))) - (refd (select-elements (children refnamediv) - (normalize "refdescriptor"))) - (refnames (select-elements (children refnamediv) - (normalize "refname")))) - "")) - -;; == /components and divisions == - -(define (dedication-autolabel nd #!optional (force-label? #f)) - "") - -(define (bibliodiv-autolabel nd #!optional (force-label? #f)) - "") - -(define (glossdiv-autolabel nd #!optional (force-label? #f)) - "") - -(define (section-autolabel-prefix nd) - (let* ((isep (gentext-intra-label-sep nd)) - (haschn (not (node-list-empty? (ancestor (normalize "chapter") nd)))) - (hasapn (not (node-list-empty? (ancestor (normalize "appendix") nd))))) - (cond - (haschn (string-append - (element-label (ancestor (normalize "chapter") nd)) isep)) - (hasapn (string-append - (element-label (ancestor (normalize "appendix") nd)) isep)) - (else "")))) - -(define (section-autolabel nd #!optional (force-label? #f)) - (let* ((isep (gentext-intra-label-sep nd)) - (hasprf (not (node-list-empty? (ancestor (normalize "preface") nd)))) - (prefix (section-autolabel-prefix nd))) - (if (and (or force-label? %section-autolabel%) - (or %label-preface-sections% - (not hasprf))) - (cond - ((equal? (gi nd) (normalize "sect1")) - (string-append prefix (format-number (child-number nd) - (label-number-format nd)))) - ((equal? (gi nd) (normalize "sect2")) - (string-append - (element-label (ancestor (normalize "sect1") nd) force-label?) - isep - (format-number (child-number nd) (label-number-format nd)))) - ((equal? (gi nd) (normalize "sect3")) - (string-append - (element-label (ancestor (normalize "sect2") nd) force-label?) - isep - (format-number (child-number nd) (label-number-format nd)))) - ((equal? (gi nd) (normalize "sect4")) - (string-append - (element-label (ancestor (normalize "sect3") nd) force-label?) - isep - (format-number (child-number nd) (label-number-format nd)))) - ((equal? (gi nd) (normalize "sect5")) - (string-append - (element-label (ancestor (normalize "sect4") nd) force-label?) - isep - (format-number (child-number nd) (label-number-format nd)))) - - ((equal? (gi nd) (normalize "simplesect")) - (let* ((possible-sect-ancestors - (node-list (ancestor (normalize "section") nd) - (ancestor (normalize "sect5") nd) - (ancestor (normalize "sect4") nd) - (ancestor (normalize "sect3") nd) - (ancestor (normalize "sect2") nd) - (ancestor (normalize "sect1") nd))) - (section-ancestor (node-list-first possible-sect-ancestors))) - (if (node-list-empty? section-ancestor) - (string-append prefix (format-number (child-number nd) - (label-number-format nd))) - (string-append - (element-label section-ancestor force-label?) - isep - (format-number (child-number nd) (label-number-format nd)))))) - - ((equal? (gi nd) (normalize "section")) - (if (node-list-empty? (ancestor (normalize "section") nd)) - (string-append prefix (format-number (child-number nd) - (label-number-format nd))) - (string-append - (element-label (ancestor (normalize "section") nd) force-label?) - isep - (format-number (child-number nd) (label-number-format nd))))) - (else (string-append (gi nd) " IS NOT A SECTION!"))) - ""))) - -(define (refsection-autolabel nd #!optional (force-label? #f)) - "") - -(define (step-autolabel nd #!optional (force-label? #f)) - ($proc-step-xref-number$ nd)) - -(define (listitem-autolabel nd #!optional (force-label? #f)) - (if (equal? (gi (parent nd)) (normalize "orderedlist")) - (number->string (child-number nd)) - "[xref to LISTITEM only supported in ORDEREDLIST]")) - -(define (sidebar-autolabel nd #!optional (force-label? #f)) - "") - -(define (legalnotice-autolabel nd #!optional (force-label? #f)) - "") - -(define (abstract-autolabel nd #!optional (force-label? #f)) - "") - -(define (block-autolabel nd #!optional (force-label? #f)) - (let* ((chn (element-label (ancestor (normalize "chapter") nd))) - (apn (element-label (ancestor (normalize "appendix") nd))) - (rfn (element-label (ancestor (normalize "refentry") nd))) - ;; If the root of this document isn't in component-element-list, these - ;; things all wind up being numbered 0. To avoid that, we force the - ;; root element to be in the list of components if it isn't already - ;; a component. - (incomp (member (gi (sgml-root-element)) (component-element-list))) - ;; In articles in books, number blocks from book not from article. - ;; Otherwise you get 1, 1, 1, 1, etc. for the first figure in each - ;; article. - (artinbook (and (not (node-list-empty? (ancestor (normalize "article") nd))) - (not (node-list-empty? (ancestor (normalize "book") nd))))) - - (bkn (if artinbook - (format-number (component-child-number - nd - (list (normalize "book"))) - (label-number-format nd)) - (if incomp - (format-number (component-child-number - nd - (component-element-list)) - (label-number-format nd)) - (format-number (component-child-number - nd - (append (component-element-list) - (list (gi (sgml-root-element))))) - (label-number-format nd)))))) - (if (equal? chn "") - (if (equal? apn "") - (if (equal? rfn "") - bkn - (string-append rfn (gentext-intra-label-sep nd) bkn)) - (string-append apn (gentext-intra-label-sep nd) bkn)) - (string-append chn (gentext-intra-label-sep nd) bkn)))) - -;; For all elements, if a LABEL attribute is present, that is the label -;; that they get. Otherwise: -;; BOOK gets the Book volume, by book-autolabel -;; PREFACE gets "", by preface-autolabel -;; CHAPTER gets the Chapter number, by chapter-autolabel -;; APPENDIX gets the Appendix letter, by appendix-autolabel -;; REFERENCE gets "", by reference-autolabel -;; REFENTRY gets "", by refentry-autolabel -;; SECT* gets the nested section number (e.g., 1.3.5), by section-autolabel -;; REFSECT* gets the nested section number, by refsection-autolabel -;; everything else gets numbered by block-autolabel -;; -(define (element-label #!optional (nd (current-node)) (force-label? #f)) - (if (node-list-empty? nd) - "" - (let ((label (attribute-string (normalize "label") nd))) - (if label - label - (cond - ;; Use a seperately defined assoc list? - ((equal? (gi nd) (normalize "abstract")) - (abstract-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "appendix")) - (appendix-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "article")) - (article-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "bibliodiv")) - (bibliodiv-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "bibliography")) - (bibliography-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "book")) - (book-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "chapter")) - (chapter-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "dedication")) - (dedication-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "glossary")) - (glossary-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "glossdiv")) - (glossdiv-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "index")) - (index-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "colophon")) - (colophon-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "indexdiv")) - (indexdiv-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "setindex")) - (setindex-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "legalnotice")) - (legalnotice-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "listitem")) - (listitem-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "part")) - (part-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "preface")) - (preface-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "refentry")) - (refentry-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "reference")) - (reference-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "refsynopsisdiv")) - (refsection-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "refsect1")) - (refsection-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "refsect2")) - (refsection-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "refsect3")) - (refsection-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sect1")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sect2")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sect3")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sect4")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sect5")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "section")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "simplesect")) - (section-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "set")) - (set-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "sidebar")) - (sidebar-autolabel nd force-label?)) - ((equal? (gi nd) (normalize "step")) - (step-autolabel nd force-label?)) - (else (block-autolabel nd force-label?))))))) - -;; ====================================================================== - -;; Returns the element label as a sosofo -;; -(define (element-label-sosofo nd #!optional (force-label? #f)) - (if (string=? (element-label nd force-label?) "") - (empty-sosofo) - (make sequence - (literal (element-label nd force-label?))))) - -;; ====================================================================== - -(define (set-title nd) - (let* ((setinfo (select-elements (children nd) (normalize "setinfo"))) - (sititles (select-elements - (expand-children (children setinfo) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))) - (normalize "title"))) - (settitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? settitles) - sititles - settitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (book-title nd) - (let* ((bookinfo (select-elements (children nd) (normalize "bookinfo"))) - (bititles (select-elements - (expand-children (children bookinfo) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))) - (normalize "title"))) - (chtitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? chtitles) - bititles - chtitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (part-title nd) - (let* ((docinfo (select-elements (children nd) (normalize "docinfo"))) - (dititles (select-elements - (expand-children (children docinfo) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))) - (normalize "title"))) - (chtitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? chtitles) - dititles - chtitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (article-title nd) - (let* ((artchild (children nd)) - (artheader (select-elements artchild (normalize "artheader"))) - (ahtitles (select-elements (children artheader) - (normalize "title"))) - (artitles (select-elements artchild (normalize "title"))) - (titles (if (node-list-empty? artitles) - ahtitles - artitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (preface-title nd) - (chapter-title nd)) - -(define (chapter-title nd) - (let* ((docinfo (select-elements (children nd) (normalize "docinfo"))) - (dititles (select-elements - (expand-children (children docinfo) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))) - (normalize "title"))) - (chtitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? chtitles) - dititles - chtitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (appendix-title nd) - (chapter-title nd)) - -(define (reference-title nd) - (chapter-title nd)) - -(define (refsynopsisdiv-title nd) - (optional-title nd)) - -;; Returns either the REFENTRYTITLE or the first REFNAME. -;; -(define (refentry-title nd) - (let* ((refmeta (select-elements (descendants nd) (normalize "refmeta"))) - (refttl (select-elements (descendants refmeta) (normalize "refentrytitle"))) - (refndiv (select-elements (descendants nd) (normalize "refnamediv"))) - (refname (select-elements (descendants refndiv) (normalize "refname")))) - (if (node-list-empty? refttl) - (if (node-list-empty? refname) - "" - (node-list-first refname)) - (node-list-first refttl)))) - -(define (optional-title nd) - (let* ((docinfo (select-elements (children nd) (normalize "docinfo"))) - (dititles (select-elements (children docinfo) (normalize "title"))) - (chtitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? chtitles) - dititles - chtitles))) - (if (node-list-empty? titles) - (gentext-element-name nd) - (node-list-first titles)))) - -(define (glossary-title nd) - (optional-title nd)) - -(define (bibliography-title nd) - (optional-title nd)) - -(define (index-title nd) - (optional-title nd)) - -(define (setindex-title nd) - (optional-title nd)) - -(define (dedication-title nd) - (optional-title nd)) - -(define (colophon-title nd) - (gentext-element-name nd)) - -(define (section-title nd) - (let* ((info (select-elements (children nd) - (list (normalize "sect1info") - (normalize "sect2info") - (normalize "sect3info") - (normalize "sect4info") - (normalize "sect5info") - (normalize "section")))) - (ititles (select-elements (children info) (normalize "title"))) - (ctitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? ctitles) - ititles - ctitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (refsection-title nd) - (let* ((info (select-elements (children nd) - (list (normalize "refsect1info") - (normalize "refsect2info") - (normalize "refsect3info")))) - (ititles (select-elements (children info) (normalize "title"))) - (ctitles (select-elements (children nd) (normalize "title"))) - (titles (if (node-list-empty? ctitles) - ititles - ctitles))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -(define (block-title nd) - (let ((titles (select-elements (children nd) (normalize "title")))) - (if (node-list-empty? titles) - "" - (node-list-first titles)))) - -;; ====================================================================== - -(define (set-title-sosofo nd) - (let ((title (set-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (book-title-sosofo nd) - (let ((title (book-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (part-title-sosofo nd) - (let ((title (part-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (article-title-sosofo nd) - (let ((title (article-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (preface-title-sosofo nd) - (let ((title (preface-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (chapter-title-sosofo nd) - (let ((title (chapter-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (appendix-title-sosofo nd) - (let ((title (appendix-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (reference-title-sosofo nd) - (let ((title (reference-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (refsynopsisdiv-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (refentry-title-sosofo nd) - (let ((title (refentry-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (optional-title-sosofo nd) - (let ((title (optional-title nd))) - (if (string? title) - (literal title) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (glossary-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (bibliography-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (index-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (setindex-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (dedication-title-sosofo nd) - (optional-title-sosofo nd)) - -(define (colophon-title-sosofo nd) - (literal (gentext-element-name nd))) - -(define (section-title-sosofo nd) - (let ((title (section-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (refsection-title-sosofo nd) - (let ((title (refsection-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(define (block-title-sosofo nd) - (let ((title (block-title nd))) - (if (string? title) - (empty-sosofo) - (with-mode title-sosofo-mode - (process-node-list title))))) - -(mode title-sosofo-mode - (element title - (process-children-trim)) - - (element citetitle - (process-children-trim)) - - (element refname - (process-children-trim)) - - (element refentrytitle - (process-children-trim))) - -;; Returns the title of the element as a sosofo. -;; -(define (element-title-sosofo #!optional (nd (current-node))) - (if (node-list-empty? nd) - (empty-sosofo) - (cond - ;; Use a seperately defined assoc list? - ((equal? (gi nd) (normalize "appendix")) (appendix-title-sosofo nd)) - ((equal? (gi nd) (normalize "article")) (article-title-sosofo nd)) - ((equal? (gi nd) (normalize "bibliography")) (bibliography-title-sosofo nd)) - ((equal? (gi nd) (normalize "book")) (book-title-sosofo nd)) - ((equal? (gi nd) (normalize "chapter")) (chapter-title-sosofo nd)) - ((equal? (gi nd) (normalize "dedication")) (dedication-title-sosofo nd)) - ((equal? (gi nd) (normalize "glossary")) (glossary-title-sosofo nd)) - ((equal? (gi nd) (normalize "index")) (index-title-sosofo nd)) - ((equal? (gi nd) (normalize "colophon")) (colophon-title-sosofo nd)) - ((equal? (gi nd) (normalize "setindex")) (index-title-sosofo nd)) - ((equal? (gi nd) (normalize "part")) (part-title-sosofo nd)) - ((equal? (gi nd) (normalize "preface")) (preface-title-sosofo nd)) - ((equal? (gi nd) (normalize "refentry")) (refentry-title-sosofo nd)) - ((equal? (gi nd) (normalize "reference")) (reference-title-sosofo nd)) - ((equal? (gi nd) (normalize "refsect1")) (refsection-title-sosofo nd)) - ((equal? (gi nd) (normalize "refsect2")) (refsection-title-sosofo nd)) - ((equal? (gi nd) (normalize "refsect3")) (refsection-title-sosofo nd)) - ((equal? (gi nd) (normalize "refsynopsisdiv")) (refsynopsisdiv-title-sosofo nd)) - ((equal? (gi nd) (normalize "sect1")) (section-title-sosofo nd)) - ((equal? (gi nd) (normalize "sect2")) (section-title-sosofo nd)) - ((equal? (gi nd) (normalize "sect3")) (section-title-sosofo nd)) - ((equal? (gi nd) (normalize "sect4")) (section-title-sosofo nd)) - ((equal? (gi nd) (normalize "sect5")) (section-title-sosofo nd)) - ((equal? (gi nd) (normalize "set")) (set-title-sosofo nd)) - (else (block-title-sosofo nd))))) - -;; ====================================================================== - -;; Returns the title of the element; returns a node if possible, or a string -(define (element-title nd) - (if (node-list-empty? nd) - "" - (cond - ;; Use a seperately defined assoc list? - ((equal? (gi nd) (normalize "appendix")) (appendix-title nd)) - ((equal? (gi nd) (normalize "article")) (article-title nd)) - ((equal? (gi nd) (normalize "bibliography")) (bibliography-title nd)) - ((equal? (gi nd) (normalize "book")) (book-title nd)) - ((equal? (gi nd) (normalize "chapter")) (chapter-title nd)) - ((equal? (gi nd) (normalize "dedication")) (dedication-title nd)) - ((equal? (gi nd) (normalize "glossary")) (glossary-title nd)) - ((equal? (gi nd) (normalize "index")) (index-title nd)) - ((equal? (gi nd) (normalize "colophon")) (colophon-title nd)) - ((equal? (gi nd) (normalize "setindex")) (setindex-title nd)) - ((equal? (gi nd) (normalize "part")) (part-title nd)) - ((equal? (gi nd) (normalize "preface")) (preface-title nd)) - ((equal? (gi nd) (normalize "refentry")) (refentry-title nd)) - ((equal? (gi nd) (normalize "reference")) (reference-title nd)) - ((equal? (gi nd) (normalize "refsect1")) (refsection-title nd)) - ((equal? (gi nd) (normalize "refsect2")) (refsection-title nd)) - ((equal? (gi nd) (normalize "refsect3")) (refsection-title nd)) - ((equal? (gi nd) (normalize "refsynopsisdiv")) (refsynopsisdiv-title nd)) - ((equal? (gi nd) (normalize "sect1")) (section-title nd)) - ((equal? (gi nd) (normalize "sect2")) (section-title nd)) - ((equal? (gi nd) (normalize "sect3")) (section-title nd)) - ((equal? (gi nd) (normalize "sect4")) (section-title nd)) - ((equal? (gi nd) (normalize "sect5")) (section-title nd)) - ((equal? (gi nd) (normalize "set")) (set-title nd)) - (else (block-title nd))))) - -;; ====================================================================== -;; Returns the data of a node, carefully excising INDEXTERMs from -;; the data content -;; - -(define (data-of node) - ;; return the data characters of a node, except for the content of - ;; indexterms which are suppressed. - (let loop ((nl (children node)) (result "")) - (if (node-list-empty? nl) - result - (if (equal? (node-property 'class-name (node-list-first nl)) 'element) - (if (or (equal? (gi (node-list-first nl)) (normalize "indexterm")) - (equal? (gi (node-list-first nl)) (normalize "comment")) - (equal? (gi (node-list-first nl)) (normalize "remark"))) - (loop (node-list-rest nl) result) - (loop (node-list-rest nl) - (string-append result (data-of (node-list-first nl))))) - (if (or (equal? (node-property 'class-name (node-list-first nl)) - 'data-char) - (equal? (node-property 'class-name (node-list-first nl)) - 'sdata)) - (loop (node-list-rest nl) - (string-append result (data (node-list-first nl)))) - (loop (node-list-rest nl) result)))))) - -;; ====================================================================== -;; Returns the element title data of nd -;; -(define (element-title-string nd) - (let ((title (element-title nd))) - (if (string? title) - title - (data-of title)))) - -;; ====================================================================== -;; Returns the element gi as a sosofo -;; -(define (element-gi-sosofo nd) - (if (node-list-empty? nd) - (empty-sosofo) - (make sequence - (literal (gentext-element-name nd))))) - -;; ====================================================================== - -(define (titlepage-info-elements node info #!optional (intro (empty-node-list))) - ;; Returns a node-list of the elements that might appear on a title - ;; page. This node-list is constructed as follows: - ;; - ;; 1. The "title" child of node is considered as a possibility - ;; 2. If info is not empty, then node-list starts as the children - ;; of info. If the children of info don't include a title, then - ;; the title from the node is added. - ;; 3. If info is empty, then node-list starts as the children of node, - ;; but with "partintro" filtered out. - - (let* ((title (select-elements (children node) (normalize "title"))) - (nl (if (node-list-empty? info) - (node-list-filter-by-not-gi (children node) - (list (normalize "partintro"))) - (children info))) - (nltitle (node-list-filter-by-gi nl (list (normalize "title"))))) - (if (node-list-empty? info) - (node-list nl - intro) - (node-list (if (node-list-empty? nltitle) - title - (empty-node-list)) - nl - intro)))) - -;; ====================================================================== - -(define (info-element #!optional (nd (current-node))) - ;; Returns the *INFO element for the nd or (empty-node-list) if no - ;; such node exists... - (cond - ((equal? (gi nd) (normalize "set")) - (select-elements (children nd) (normalize "setinfo"))) - ((equal? (gi nd) (normalize "book")) - (select-elements (children nd) (normalize "bookinfo"))) - ((equal? (gi nd) (normalize "section")) - (select-elements (children nd) (normalize "sectioninfo"))) - ((equal? (gi nd) (normalize "sect1")) - (select-elements (children nd) (normalize "sect1info"))) - ((equal? (gi nd) (normalize "sect2")) - (select-elements (children nd) (normalize "sect2info"))) - ((equal? (gi nd) (normalize "sect3")) - (select-elements (children nd) (normalize "sect3info"))) - ((equal? (gi nd) (normalize "sect4")) - (select-elements (children nd) (normalize "sect4info"))) - ((equal? (gi nd) (normalize "sect5")) - (select-elements (children nd) (normalize "sect5info"))) - ((equal? (gi nd) (normalize "refsect1")) - (select-elements (children nd) (normalize "refsect1info"))) - ((equal? (gi nd) (normalize "refsect2")) - (select-elements (children nd) (normalize "refsect2info"))) - ((equal? (gi nd) (normalize "refsect3")) - (select-elements (children nd) (normalize "refsect3info"))) - ((equal? (gi nd) (normalize "refsynopsisdiv")) - (select-elements (children nd) (normalize "refsynopsisdivinfo"))) - ((equal? (gi nd) (normalize "article")) - (node-list-filter-by-gi (children nd) (list - (normalize "artheader") - (normalize "articleinfo")))) - (else ;; BIBLIODIV, GLOSSDIV, INDEXDIV, PARTINTRO, SIMPLESECT - (select-elements (children nd) (normalize "docinfo"))))) - -;; ====================================================================== -;; -;; Bibliography filtering... - -(define (biblio-filter allentries) - (let* ((all (descendants (sgml-root-element))) - (link (select-elements all (normalize "link"))) - (xref (select-elements all (normalize "xref"))) - (cite (select-elements all (normalize "citation"))) - (xref-elements (node-list link xref))) - (let loop ((entries allentries) (used (empty-node-list))) - (if (node-list-empty? entries) - used - (if (or (cited-by-xref (node-list-first entries) xref-elements) - (cited-by-citation (node-list-first entries) cite)) - (loop (node-list-rest entries) - (node-list used (node-list-first entries))) - (loop (node-list-rest entries) used)))))) - -(define (cited-by-xref bib xref-elements) - (let* ((id (attribute-string (normalize "id") bib))) - (if id - (let loop ((links xref-elements)) - (if (node-list-empty? links) - #f - (if (equal? (attribute-string (normalize "linkend") - (node-list-first links)) id) - #t - (loop (node-list-rest links))))) - #f))) - -(define (cited-by-citation bib citations) - (let loop ((links citations)) - (if (node-list-empty? links) - #f - (if (citation-matches-target? (node-list-first links) bib) - #t - (loop (node-list-rest links)))))) - -(define (citation-matches-target? citation target) - (let* ((fchild (node-list-first - (node-list-filter-out-pis - (children target)))) - (abbrev (if (equal? (gi fchild) (normalize "abbrev")) - fchild - (empty-node-list))) - (cite (data-of citation))) - (or (equal? (attribute-string "id" target) (normalize cite)) - (equal? (attribute-string "xreflabel" target) (normalize cite)) - (equal? (normalize cite) (normalize (data-of abbrev)))))) - -(define (bibentry-number bibentry) - (let* ((bgraphy (ancestor-member bibentry - (list (normalize "bibliography")))) - (comps (expand-children (children bgraphy) - (list (normalize "bibliodiv"))))) - (let loop ((nl comps) (count 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? (node-list-first nl) bibentry) - count - (if (or (equal? (gi (node-list-first nl)) - (normalize "biblioentry")) - (equal? (gi (node-list-first nl)) - (normalize "bibliomixed"))) - (loop (node-list-rest nl) (+ count 1)) - (loop (node-list-rest nl) count))))))) - -;; ====================================================================== - -(define (olink-resource-title pubid sysid) - ;; This version of olink-resource-title expects public identifiers - ;; with the following format: - ;; - ;; -//owner//TEXT title Vx.x//EN - ;; - ;; Specifically the title is the description field of the public - ;; identifier minus the first word (TEXT, the type) and the last - ;; word, in my case a version string. Words are blank delimited. - ;; The parsing will fail if a "/" appears anywhere in any field. - ;; The system identifier is ignored - ;; - (let* ((pubidparts (if pubid - (split pubid '(#\/)) - (split "-//none//type version//la" '(#\/)))) - (description (car (cdr (cdr pubidparts)))) - (descparts (split description)) - (titleparts (list-head (cdr descparts) (- (length descparts) 2)))) - (join titleparts))) - -;; ====================================================================== - -(define (orderedlist-listitem-number listitem) - ;; return the number of listitem, taking continuation into account - (let* ((orderedlist (parent listitem)) - (listitems (select-elements (children orderedlist) - (normalize "listitem"))) - (continue? (equal? (attribute-string (normalize "continuation") - orderedlist) - (normalize "continues"))) - -;; If a list is the continuation of a previous list, we must find the -;; list that is continued in order to calculate the starting -;; item number of this list. -;; -;; Of all the lists in this component, only the following are candidates: -;; 1. Lists which precede this list -;; 2. Lists which are not ancestors of this list -;; 3. Lists that do not have ancestors that are lists which precede this one -;; -;; Of the candidates, the last one, in document order, is the preceding -;; list - (all-lists (select-elements - (descendants (ancestor-member orderedlist - (component-element-list))) - (normalize "orderedlist"))) - - (cand1 (if continue? - (let loop ((nl all-lists) - (prec (empty-node-list))) - (if (node-list-empty? nl) - prec - (if (node-list=? (node-list-first nl) - orderedlist) - prec - (loop (node-list-rest nl) - (node-list prec - (node-list-first nl)))))) - (empty-node-list))) - - (cand2 (let loop ((nl cand1) - (cand2lists (empty-node-list))) - (if (node-list-empty? nl) - cand2lists - (loop (node-list-rest nl) - (if (descendant-of? (node-list-first nl) - orderedlist) - cand2lists - (node-list cand2lists - (node-list-first nl))))))) - - ;; now find the last item of cand2 that is not a descendant - ;; of some other element of the cand2 list. - (preclist (let loop ((nl (node-list-reverse cand2))) - (if (node-list-empty? nl) - (empty-node-list) - (if (descendant-member-of? - (node-list-first nl) - (node-list-rest nl)) - (loop (node-list-rest nl)) - (node-list-first nl))))) - - (precitem (if (node-list-empty? preclist) - (empty-node-list) - (node-list-last (children preclist)))) - (precitem-number (if (and continue? (not (node-list-empty? precitem))) - (orderedlist-listitem-number precitem) - 0))) - - (+ precitem-number (child-number listitem)))) - -(define (descendant-member-of? node node-list) - ;; return true if node is a descedant of any member of node-list - (let loop ((nl node-list)) - (if (node-list-empty? nl) - #f - (if (descendant-of? (node-list-first nl) node) - #t - (loop (node-list-rest nl)))))) - -;; ====================================================================== - -(define (orderedlist-listitem-label listitem) - ;; return the formatted number of listitem - (let* ((number (orderedlist-listitem-number listitem)) - (depth (length (hierarchical-number-recursive - (normalize "orderedlist") - listitem))) - (numeration (inherited-attribute-string (normalize "numeration") - listitem)) - ;; rawnum allows for numbering to alternate - (rawnum (cond - ((equal? numeration (normalize "arabic")) 1) - ((equal? numeration (normalize "loweralpha")) 2) - ((equal? numeration (normalize "lowerroman")) 3) - ((equal? numeration (normalize "upperalpha")) 4) - ((equal? numeration (normalize "upperroman")) 0) - (else (modulo depth 5))))) - (case rawnum - ((1) (format-number number "1")) - ((2) (format-number number "a")) - ((3) (format-number number "i")) - ((4) (format-number number "A")) - ((0) (format-number number "I"))))) - -(define (orderedlist-listitem-label-recursive listitem) - ;; return the recursively formatted number of the listitem. - ;; In other words, something of the form 1.2.3 for a third level - ;; nested ordered list - (let loop ((li (parent listitem)) - (label (orderedlist-listitem-label listitem))) - (if (or (node-list-empty? li) - (node-list-empty? (ancestor (normalize "orderedlist") li))) - label - (if (and (equal? (gi li) (normalize "listitem")) - (equal? (gi (parent li)) (normalize "orderedlist"))) - (loop (parent li) - (string-append - (orderedlist-listitem-label li) - (gentext-intra-label-sep li) - label)) - (loop (parent li) label))))) - -(define (question-answer-label #!optional (node (current-node))) - (let* ((inhlabel (inherited-attribute-string (normalize "defaultlabel") - node)) - (deflabel (if inhlabel inhlabel (qanda-defaultlabel))) - (label (attribute-string (normalize "label") node)) - (hnr (hierarchical-number-recursive (normalize "qandadiv") - node)) - - (parsect (ancestor-member node (section-element-list))) - - (defnum (if (and %qanda-inherit-numeration% - %section-autolabel%) - (if (node-list-empty? parsect) - (section-autolabel-prefix node) - (section-autolabel parsect)) - "")) - - (hnumber (let loop ((numlist hnr) (number defnum) - (sep (if (equal? defnum "") "" "."))) - (if (null? numlist) - number - (loop (cdr numlist) - (string-append number - sep - (number->string (car numlist))) - ".")))) - (cnumber (child-number (parent node))) - (number (string-append hnumber - (if (equal? hnumber "") - "" - ".") - (number->string cnumber)))) - (cond - ((equal? deflabel (normalize "qanda")) - (gentext-element-name node)) - ((equal? deflabel (normalize "label")) - label) - ;; Note: only questions are numbered... - ((and (equal? deflabel (normalize "number")) - (equal? (gi node) (normalize "question"))) - (string-append number ".")) - (else "")))) - -;; ====================================================================== -;; Calculate term lengths... - -(define (varlistentry-term-too-long? vle termlength) - (let loop ((nl (select-elements (children vle) (normalize "term"))) - (too-long? #f)) - (if (or too-long? (node-list-empty? nl)) - too-long? - (loop (node-list-rest nl) - (> (string-length (data (node-list-first nl))) - termlength))))) - -(define (variablelist-term-too-long? termlength) - (let loop ((nl (select-elements (children (current-node)) - (normalize "varlistentry"))) - (too-long? #f)) - (if (or too-long? (node-list-empty? nl)) - too-long? - (loop (node-list-rest nl) - (varlistentry-term-too-long? (node-list-first nl) termlength))))) - -;; ====================================================================== -;; bibliography elements - -(define (biblioentry-inline-elements) - (list (normalize "abbrev") - (normalize "affiliation") - (normalize "artpagenums") - (normalize "author") - (normalize "authorgroup") - (normalize "authorinitials") - (normalize "citetitle") - (normalize "collab") - (normalize "confgroup") - (normalize "contractnum") - (normalize "contractsponsor") - (normalize "contrib") - (normalize "copyright") - (normalize "corpauthor") - (normalize "corpname") - (normalize "date") - (normalize "edition") - (normalize "editor") - (normalize "firstname") - (normalize "honorific") - (normalize "invpartnumber") - (normalize "isbn") - (normalize "issn") - (normalize "issuenum") - (normalize "lineage") - (normalize "orgname") - (normalize "othercredit") - (normalize "othername") - (normalize "pagenums") - (normalize "productname") - (normalize "productnumber") - (normalize "pubdate") - (normalize "publisher") - (normalize "publishername") - (normalize "pubsnumber") - (normalize "releaseinfo") - (normalize "seriesvolnums") - (normalize "subtitle") - (normalize "surname") - (normalize "title") - (normalize "titleabbrev") - (normalize "volumenum"))) - -(define (biblioentry-block-elements) - (list (normalize "abstract") - (normalize "address") - (normalize "authorblurb") - (normalize "printhistory") - (normalize "revhistory") - (normalize "seriesinfo"))) - -(define (biblioentry-flatten-elements) - (list (normalize "artheader") - (normalize "biblioset") - (normalize "bookbiblio"))) - -;; === db31 common ====================================================== - -(define (data-filename dataobj) - (let* ((entityref (attribute-string (normalize "entityref") dataobj)) - (fileref (attribute-string (normalize "fileref") dataobj)) - (filename (if fileref - fileref - (system-id-filename entityref))) - (ext (file-extension filename))) - (if (or (not filename) - (not %graphic-default-extension%) - (member ext %graphic-extensions%)) - filename - (string-append filename "." %graphic-default-extension%)))) - -(define (normalized-member string string-list) - (if (string? string) - (let loop ((sl string-list)) - (if (null? sl) - #f - (if (string=? (normalize string) (normalize (car sl))) - #t - (loop (cdr sl))))) - #f)) - -(define (find-displayable-object objlist notlist extlist) - (let loop ((nl objlist)) - (if (node-list-empty? nl) - (empty-node-list) - (let* ((objdata (node-list-filter-by-gi - (children (node-list-first nl)) - (list (normalize "videodata") - (normalize "audiodata") - (normalize "imagedata")))) - (filename (data-filename objdata)) - (extension (file-extension filename)) - (notation (attribute-string (normalize "format") objdata))) - (if (or (normalized-member notation notlist) - (normalized-member extension extlist) - (and notation - (string=? notation (normalize "linespecific")))) - (node-list-first nl) - (loop (node-list-rest nl))))))) - -(define (select-displayable-object objlist) - (let ((pref (find-displayable-object objlist - preferred-mediaobject-notations - preferred-mediaobject-extensions)) - (ok (find-displayable-object objlist - acceptable-mediaobject-notations - acceptable-mediaobject-extensions))) - (if (node-list-empty? pref) - ok - pref))) - -(define ($mediaobject$) - (let* ((objects (node-list-filter-by-gi - (children (current-node)) - (list (normalize "videoobject") - (normalize "imageobject") - (normalize "audioobject")))) - (dobject (select-displayable-object objects)) - (textobj (select-elements (children (current-node)) - (normalize "textobject"))) - (caption (select-elements (children (current-node)) - (normalize "caption")))) - (make sequence - (if (node-list-empty? dobject) - (if (node-list-empty? textobj) - (empty-sosofo) - (process-node-list (node-list-first textobj))) - (process-node-list dobject)) - (process-node-list caption)))) - -;; ====================================================================== diff --git a/docs/dsssl/docbook/common/dbl10n.dsl b/docs/dsssl/docbook/common/dbl10n.dsl deleted file mode 100755 index 7edcd98b..00000000 --- a/docs/dsssl/docbook/common/dbl10n.dsl +++ /dev/null @@ -1,1521 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com. Please use the ISO 639 language -;; code to identify the language. Append a subtag as per RFC 1766, -;; if necessary. - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x and #x -;; keywords. -;; - -;; The following language codes from ISO 639 are recognized: -;; af - Afrikaans 1.71 -;; ca - Catalan -;; cs - Czech -;; da - Danish (previously dk) -;; de - German (previously dege) -;; el - Greek -;; en - English (previously usen) -;; es - Spanish -;; et - Estonian 1.55 -;; eu - Basque 1.74 -;; fi - Finnish -;; fr - French -;; hu - Hungarian 1.55 -;; id - Indonesian 1.55 -;; it - Italian -;; ja - Japanese -;; ko - Korean 1.59 -;; nl - Dutch -;; nn - Nnyorsk 1.74 -;; no - Norwegian (previously bmno) ??? -;; pl - Polish -;; pt - Portuguese -;; pt_br - Portuguese (Brazil) -;; ro - Romanian -;; ru - Russian -;; sk - Slovak -;; sl - Slovenian 1.55 -;; sr - Serbian 1.70 -;; sv - Swedish (previously svse) -;; tr - Turkish 1.71 -;; uk - Ukranian 1.74 -;; xh - Xhosa 1.74 -;; zh_cn - Chinese (Continental) 1.55 -;; zh_tw - Chinese (Traditional) 1.70 -;; zh_hk - Chinese (Hong Kong) 1.70 - -;; The following language codes are recognized for historical reasons: - -;; bmno(no) - Norwegian (Norsk Bokmal) ??? -;; dege(de) - German -;; dk(da) - Danish -;; svse(sv) - Swedish -;; usen(en) - English - -(define %default-language% "en") -(define %gentext-language% #f) -(define %gentext-use-xref-lang% #f) - -(define ($lang$ #!optional (target (current-node)) (xref-context #f)) - (if %gentext-language% - (lang-fix %gentext-language%) - (if (or xref-context %gentext-use-xref-lang%) - (let loop ((here target)) - (if (node-list-empty? here) - (lang-fix %default-language%) - (if (attribute-string (normalize "lang") here) - (lang-fix (attribute-string (normalize "lang") here)) - (loop (parent here))))) - (if (inherited-attribute-string (normalize "lang")) - (lang-fix (inherited-attribute-string (normalize "lang"))) - (lang-fix %default-language%))))) - -(define (lang-fix language) - ;; Lowercase the language - ;; Translate 'xx-yy' to 'xx_yy' - (let ((fixed-lang (if (> (string-index language "-") 0) - (let ((pos (string-index language "-"))) - (string-append - (substring language 0 pos) - "_" - (substring language (+ pos 1) - (string-length language)))) - language))) - (case-fold-down fixed-lang))) - -(define (author-string #!optional (author (current-node))) - (let ((lang (if (string? author) ($lang$) ($lang$ author)))) - (case lang - ;; ISO 639/ISO 3166/RFC 1766 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error (string-append "L10N ERROR: author-string: " - lang)))))) - -(define (gentext-xref-strings target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error (string-append "L10N ERROR: gentext-xref-strings: " - lang)))))) - -(define (auto-xref-indirect-connector before) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: auto-xref-indirect-connector")))) - -(define (generate-toc-in-front) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: generate-toc-in-front")))) - -(define (gentext-element-name target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target #t)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error (string-append "L10N ERROR: gentext-element-name: " - lang - " (" - giname - ")")))))) - -(define (gentext-element-name-space target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-element-name-space"))))) - -(define (gentext-intra-label-sep target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-intra-label-sep"))))) - -(define (gentext-label-title-sep target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-label-title-sep"))))) - -(define (label-number-format target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: label-number-format"))))) - -(define ($lot-title$ lotgi) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: $lot-title$")))) - -(define (gentext-start-quote) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-start-quote")))) - -(define (gentext-end-quote) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-end-quote")))) - -(define (gentext-start-nested-quote) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-start-nested-quote")))) - -(define (gentext-end-nested-quote) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-end-nested-quote")))) - -(define (gentext-by) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-by")))) - -(define (gentext-edited-by) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-edited-by")))) - -(define (gentext-revised-by) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-revised-by")))) - -(define (gentext-page) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-page")))) - -(define (gentext-and) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-and")))) - -(define (gentext-listcomma) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-listcomma")))) - -(define (gentext-lastlistcomma) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-lastlistcomma")))) - -(define (gentext-bibl-pages) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-bibl-pages")))) - -(define (gentext-endnotes) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-endnotes")))) - -(define (gentext-table-endnotes) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-table-endnotes")))) - -(define (gentext-index-see) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-index-see")))) - -(define (gentext-index-seealso) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-index-seealso")))) - -(define (gentext-nav-prev prev) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-prev")))) - -(define (gentext-nav-prev-sibling prevsib) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-prev-sibling ")))) - -(define (gentext-nav-next-sibling nextsib) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-next-sibling")))) - -(define (gentext-nav-next next) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-next")))) - -(define (gentext-nav-up up) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-up")))) - -(define (gentext-nav-home home) - (case ($lang$) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (else (error "L10N ERROR: gentext-nav-home")))) diff --git a/docs/dsssl/docbook/common/dbl10n.ent b/docs/dsssl/docbook/common/dbl10n.ent deleted file mode 100755 index b482b097..00000000 --- a/docs/dsssl/docbook/common/dbl10n.ent +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - - -]]> - - diff --git a/docs/dsssl/docbook/common/dbl10n.pl b/docs/dsssl/docbook/common/dbl10n.pl deleted file mode 100755 index 86838413..00000000 --- a/docs/dsssl/docbook/common/dbl10n.pl +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/perl -w -- # -*- Perl -*- - -use strict; - -my $template = "dbl10n.template"; -my $dbl10n = "dbl10n.dsl"; -my @languages = (); -my %langsection = (); -my $inlist = 0; -my $historical = 0; - -open (F, $template); -open (G, ">$dbl10n"); - -while () { - if (/\%\%\/?LANGUAGES\%\%/ || /\%\%HISTORICAL\%\%/) { - $inlist = 1 if $& eq '%%LANGUAGES%%'; - $inlist = 0 if $& eq '%%/LANGUAGES%%'; - $historical = 1 if $& eq '%%HISTORICAL%%'; - next; - } - - if ($inlist && /^;; (\S+)\s+-/) { - my $lang = $1; - my $section = $1; - - if ($historical) { - $lang =~ /^(\S+)\((\S+)\)/; - $lang = $1; - $section = $2; - } - - $section =~ s/\_//sg; -# print "$lang = $section\n"; - - push (@languages, $lang); - $langsection{$lang} = $section; - } - - if (/ (string-index language "-") 0) - (let ((pos (string-index language "-"))) - (string-append - (substring language 0 pos) - "_" - (substring language (+ pos 1) - (string-length language)))) - language))) - (case-fold-down fixed-lang))) - -;; bmno - Norwegian (Norsk Bokmal) ??? -;; dege - German -;; dk - Danish -;; svse - Swedish -;; usen - English - -(define (author-string #!optional (author (current-node))) - (let ((lang (if (string? author) ($lang$) ($lang$ author)))) - (case lang - ;; ISO 639/ISO 3166/RFC 1766 - - (else (error (string-append "L10N ERROR: author-string: " - lang)))))) - -(define (gentext-xref-strings target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - (else (error (string-append "L10N ERROR: gentext-xref-strings: " - lang)))))) - -(define (auto-xref-indirect-connector before) - (case ($lang$) - - (else (error "L10N ERROR: auto-xref-indirect-connector")))) - -(define (generate-toc-in-front) - (case ($lang$) - - (else (error "L10N ERROR: generate-toc-in-front")))) - -(define (gentext-element-name target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target #t)))) - (case lang - - (else (error (string-append "L10N ERROR: gentext-element-name: " - lang - " (" - giname - ")")))))) - -(define (gentext-element-name-space target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - (else (error "L10N ERROR: gentext-element-name-space"))))) - -(define (gentext-intra-label-sep target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - (else (error "L10N ERROR: gentext-intra-label-sep"))))) - -(define (gentext-label-title-sep target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - (else (error "L10N ERROR: gentext-label-title-sep"))))) - -(define (label-number-format target) - (let ((giname (if (string? target) (normalize target) (gi target))) - (lang (if (string? target) ($lang$) ($lang$ target)))) - (case lang - - (else (error "L10N ERROR: label-number-format"))))) - -(define ($lot-title$ lotgi) - (case ($lang$) - - (else (error "L10N ERROR: $lot-title$")))) - -(define (gentext-start-quote) - (case ($lang$) - - (else (error "L10N ERROR: gentext-start-quote")))) - -(define (gentext-end-quote) - (case ($lang$) - - (else (error "L10N ERROR: gentext-end-quote")))) - -(define (gentext-start-nested-quote) - (case ($lang$) - - (else (error "L10N ERROR: gentext-start-nested-quote")))) - -(define (gentext-end-nested-quote) - (case ($lang$) - - (else (error "L10N ERROR: gentext-end-nested-quote")))) - -(define (gentext-by) - (case ($lang$) - - (else (error "L10N ERROR: gentext-by")))) - -(define (gentext-edited-by) - (case ($lang$) - - (else (error "L10N ERROR: gentext-edited-by")))) - -(define (gentext-revised-by) - (case ($lang$) - - (else (error "L10N ERROR: gentext-revised-by")))) - -(define (gentext-page) - (case ($lang$) - - (else (error "L10N ERROR: gentext-page")))) - -(define (gentext-and) - (case ($lang$) - - (else (error "L10N ERROR: gentext-and")))) - -(define (gentext-listcomma) - (case ($lang$) - - (else (error "L10N ERROR: gentext-listcomma")))) - -(define (gentext-lastlistcomma) - (case ($lang$) - - (else (error "L10N ERROR: gentext-lastlistcomma")))) - -(define (gentext-bibl-pages) - (case ($lang$) - - (else (error "L10N ERROR: gentext-bibl-pages")))) - -(define (gentext-endnotes) - (case ($lang$) - - (else (error "L10N ERROR: gentext-endnotes")))) - -(define (gentext-table-endnotes) - (case ($lang$) - - (else (error "L10N ERROR: gentext-table-endnotes")))) - -(define (gentext-index-see) - (case ($lang$) - - (else (error "L10N ERROR: gentext-index-see")))) - -(define (gentext-index-seealso) - (case ($lang$) - - (else (error "L10N ERROR: gentext-index-seealso")))) - -(define (gentext-nav-prev prev) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-prev")))) - -(define (gentext-nav-prev-sibling prevsib) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-prev-sibling ")))) - -(define (gentext-nav-next-sibling nextsib) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-next-sibling")))) - -(define (gentext-nav-next next) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-next")))) - -(define (gentext-nav-up up) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-up")))) - -(define (gentext-nav-home home) - (case ($lang$) - - (else (error "L10N ERROR: gentext-nav-home")))) diff --git a/docs/dsssl/docbook/common/dbl1af.dsl b/docs/dsssl/docbook/common/dbl1af.dsl deleted file mode 100755 index 12d49d1d..00000000 --- a/docs/dsssl/docbook/common/dbl1af.dsl +++ /dev/null @@ -1,440 +0,0 @@ - -%af.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Modified for Afrikaans - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (af-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (af-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-af-start-quote% - "%t" - %gentext-af-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-af-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (af-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (af-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-af-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (af-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&ISBN;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-af-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (af-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-af-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-af-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-af-intra-label-sep) - (list)) - -(define (af-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-af-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (sep (assoc name (af-intra-label-sep)))) - (if sep - (car (cdr sep)) - ""))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-af-label-title-sep) - (list)) - -(define (af-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-af-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (sep (assoc name (af-label-title-sep)))) - (if sep - (car (cdr sep)) - ""))) - -(define (af-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (af-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (af-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (af-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-af$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (af-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-af-start-quote% (dingbat "ldquo")) - -(define %gentext-af-end-quote% (dingbat "rdquo")) - -(define %gentext-af-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-af-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-af-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-af-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-af-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-af-page% "") - -(define %gentext-af-and% "∧") - -(define %gentext-af-listcomma% "&listcomma;") - -(define %gentext-af-lastlistcomma% "&lastlistcomma;") - -(define %gentext-af-bibl-pages% "&Pgs;") - -(define %gentext-af-endnotes% "&Notes;") - -(define %gentext-af-table-endnotes% "&TableNotes;:") - -(define %gentext-af-index-see% "&See;") - -(define %gentext-af-index-seealso% "&SeeAlso;") - - -(define (gentext-af-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-af-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-af-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-af-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-af-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-af-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1af.ent b/docs/dsssl/docbook/common/dbl1af.ent deleted file mode 100755 index 8aad4fb7..00000000 --- a/docs/dsssl/docbook/common/dbl1af.ent +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ca.dsl b/docs/dsssl/docbook/common/dbl1ca.dsl deleted file mode 100755 index 8da7e4f9..00000000 --- a/docs/dsssl/docbook/common/dbl1ca.dsl +++ /dev/null @@ -1,443 +0,0 @@ - -%ca.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Perceval - Marc Huguet Puig, mhp@nil.fut.es -;; marc*, marc.gonzalez-carnicer@european-go.org - -(define (ca-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ca-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "l'&appendix; de nom %t")) - (list (normalize "article") (string-append %gentext-ca-start-quote% - "%t" - %gentext-ca-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "el &chapter; de nom %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "la §ion; de nom %t")) - (list (normalize "sidebar") "la &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-ca-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ca-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ca-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " al ")) - ((equal? (gi before) (normalize "chapter")) - (literal " al; ")) - ((equal? (gi before) (normalize "sect1")) - (literal " a la; ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-ca-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ca-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ca-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ca-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ca-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ca-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ca-intra-label-sep) - (list)) - -(define (ca-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ca-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ca-intra-label-sep))) - (sep (assoc name (ca-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ca-label-title-sep) - (list)) - -(define (ca-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ca-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ca-label-title-sep))) - (sep (assoc name (ca-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ca-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ca-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ca-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ca-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ca$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ca-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ca-start-quote% (dingbat "ldquo")) - -(define %gentext-ca-end-quote% (dingbat "rdquo")) - -(define %gentext-ca-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ca-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ca-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ca-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ca-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ca-page% "") - -(define %gentext-ca-and% "∧") - -(define %gentext-ca-listcomma% "&listcomma;") - -(define %gentext-ca-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ca-bibl-pages% "&Pgs;") - -(define %gentext-ca-endnotes% "&Notes;") - -(define %gentext-ca-table-endnotes% "&TableNotes;:") - -(define %gentext-ca-index-see% "&See;") - -(define %gentext-ca-index-seealso% "&SeeAlso;") - - -(define (gentext-ca-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ca-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ca-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ca-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ca-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ca-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ca.ent b/docs/dsssl/docbook/common/dbl1ca.ent deleted file mode 100755 index 1bcd3ca5..00000000 --- a/docs/dsssl/docbook/common/dbl1ca.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1cs.dsl b/docs/dsssl/docbook/common/dbl1cs.dsl deleted file mode 100755 index 3686dfdf..00000000 --- a/docs/dsssl/docbook/common/dbl1cs.dsl +++ /dev/null @@ -1,443 +0,0 @@ - -%cs.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Ralf Schleitzer, ralf.schleitzer@ixos.de - -(define (cs-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (cs-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "%n" - "%n \U-2013; \U-201E;%t\U-201C;")) - (list (normalize "article") (string-append %gentext-cs-start-quote% - "%t" - %gentext-cs-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "%n" - "%n \U-2013; \U-201E;%t\U-201C;")) - (list (normalize "equation") "%n") - (list (normalize "example") "%n") - (list (normalize "figure") "%n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "%n \U-2013; \U-201E;%t\U-201C;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "%n \U-2013; \U-201E;%t\U-201C;") - (list (normalize "reference") "%t") - (list (normalize "section") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sect1") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sect2") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sect3") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sect4") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sect5") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "simplesect") (if %section-autolabel% - "%n" - "\U-201E;%t\U-201C;")) - (list (normalize "sidebar") "%t") - (list (normalize "step") "%n") - (list (normalize "table") "%n"))) - -(define (gentext-cs-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (cs-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (cs-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-cs-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (cs-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-cs-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (cs-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-cs-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-cs-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-cs-intra-label-sep) - (list)) - -(define (cs-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-cs-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-cs-intra-label-sep))) - (sep (assoc name (cs-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-cs-label-title-sep) - (list)) - -(define (cs-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-cs-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-cs-label-title-sep))) - (sep (assoc name (cs-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (cs-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (cs-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (cs-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (cs-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-cs$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (cs-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - - -(define %gentext-cs-start-quote% "\U-201E;") - -(define %gentext-cs-end-quote% "\U-201C;") - -(define %gentext-cs-start-nested-quote% "\U-201A;") - -(define %gentext-cs-end-nested-quote% "\U-2018;") - -(define %gentext-cs-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-cs-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-cs-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-cs-page% "") - -(define %gentext-cs-and% "∧") - -(define %gentext-cs-listcomma% "&listcomma;") - -(define %gentext-cs-lastlistcomma% "&lastlistcomma;") - -(define %gentext-cs-bibl-pages% "&Pgs;") - -(define %gentext-cs-endnotes% "&Notes;") - -(define %gentext-cs-table-endnotes% "&TableNotes;:") - -(define %gentext-cs-index-see% "&See;") - -(define %gentext-cs-index-seealso% "&SeeAlso;") - - -(define (gentext-cs-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-cs-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-cs-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-cs-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-cs-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-cs-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1cs.ent b/docs/dsssl/docbook/common/dbl1cs.ent deleted file mode 100755 index bbb263be..00000000 --- a/docs/dsssl/docbook/common/dbl1cs.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1da.dsl b/docs/dsssl/docbook/common/dbl1da.dsl deleted file mode 100755 index b0a9edb9..00000000 --- a/docs/dsssl/docbook/common/dbl1da.dsl +++ /dev/null @@ -1,432 +0,0 @@ - -%da.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Finn Bock, fbo@dde.dk - -(define (da-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (da-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; med navn %t")) - (list (normalize "article") (string-append %gentext-da-start-quote% - "%t" - %gentext-da-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "kapitlet om %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "sektionen med navn %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "sektionen med navn %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "undersektionen med navn %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "undersektionen med navn %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "undersektionen med navn %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "undersektionen med navn %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "undersektionen med navn %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-da-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (da-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (da-auto-xref-indirect-connector before) - (literal " i ")) - -;; Should the TOC come first or last? -;; -(define %generate-da-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (da-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-da-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (da-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-da-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-da-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-da-intra-label-sep) - (list)) - -(define (da-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-da-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-da-intra-label-sep))) - (sep (assoc name (da-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-da-label-title-sep) - (list)) - -(define (da-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-da-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-da-label-title-sep))) - (sep (assoc name (da-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (da-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (da-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (da-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (da-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-da$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (da-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-da-start-quote% (dingbat "ldquo")) - -(define %gentext-da-end-quote% (dingbat "rdquo")) - -(define %gentext-da-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-da-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-da-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-da-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-da-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-da-page% "") - -(define %gentext-da-and% "∧") - -(define %gentext-da-listcomma% "&listcomma;") - -(define %gentext-da-lastlistcomma% "&lastlistcomma;") - -(define %gentext-da-bibl-pages% "&Pgs;") - -(define %gentext-da-endnotes% "&Notes;") - -(define %gentext-da-table-endnotes% "&TableNotes;:") - -(define %gentext-da-index-see% "&See;") - -(define %gentext-da-index-seealso% "&SeeAlso;") - - -(define (gentext-da-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-da-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-da-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-da-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-da-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-da-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1da.ent b/docs/dsssl/docbook/common/dbl1da.ent deleted file mode 100755 index 49282005..00000000 --- a/docs/dsssl/docbook/common/dbl1da.ent +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1de.dsl b/docs/dsssl/docbook/common/dbl1de.dsl deleted file mode 100755 index 1696f3ab..00000000 --- a/docs/dsssl/docbook/common/dbl1de.dsl +++ /dev/null @@ -1,445 +0,0 @@ - -%de.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Rainer Feuerstein, fire@informatik.uni-wuerzburg.de, -;; Christian Leutloff, leutloff@sundancer.oche.de -;; Ulrich Windl, Ulrich.Windl@rz.uni-regensburg.de -;; Christian Kirsch, ck@held.mind.de -;; Joerg Wittenberger, Joerg.Wittenberger@pobox.com - -(define (de-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (de-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&Appendix; namens %t")) - (list (normalize "article") (string-append %gentext-de-start-quote% - "%t" - %gentext-de-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "&Chapter; namens %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "&Section; namens %t")) - (list (normalize "sidebar") "&Sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-de-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (de-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (de-auto-xref-indirect-connector before) - ;; In German one usually says "... in dem Buch ..." (probably because - ;; it's a larger piece of work and more commonly known) - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ dem ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-de-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; -(define (de-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-de-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (de-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-de-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-de-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-de-intra-label-sep) - (list)) - -(define (de-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-de-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-de-intra-label-sep))) - (sep (assoc name (de-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-de-label-title-sep) - (list)) - -(define (de-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-de-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-de-label-title-sep))) - (sep (assoc name (de-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (de-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (de-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (de-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (de-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-de$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (de-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-de-start-quote% "\U-201E;") - -(define %gentext-de-end-quote% "\U-201C;") - -(define %gentext-de-start-nested-quote% "\U-201A;") - -(define %gentext-de-end-nested-quote% "\U-2018;") - -(define %gentext-de-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-de-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-de-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-de-page% "") - -(define %gentext-de-and% "∧") - -(define %gentext-de-listcomma% "&listcomma;") - -(define %gentext-de-lastlistcomma% "&lastlistcomma;") - -(define %gentext-de-bibl-pages% "&Pgs;") - -(define %gentext-de-endnotes% "&Notes;") - -(define %gentext-de-table-endnotes% "&TableNotes;:") - -(define %gentext-de-index-see% "&See;") - -(define %gentext-de-index-seealso% "&SeeAlso;") - - -(define (gentext-de-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-de-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-de-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-de-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-de-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-de-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1de.ent b/docs/dsssl/docbook/common/dbl1de.ent deleted file mode 100755 index 54eb20f3..00000000 --- a/docs/dsssl/docbook/common/dbl1de.ent +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1el.dsl b/docs/dsssl/docbook/common/dbl1el.dsl deleted file mode 100755 index c9804af5..00000000 --- a/docs/dsssl/docbook/common/dbl1el.dsl +++ /dev/null @@ -1,445 +0,0 @@ - -%el.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (el-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (el-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "ôï &appendix; ìå üíïìá %t")) - (list (normalize "article") (string-append %gentext-el-start-quote% - "%t" - %gentext-el-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "ôï &chapter; ìå üíïìá %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "ôï §ion; ìå üíïìá %t")) - (list (normalize "sidebar") "ôï &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - - -(define (gentext-el-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (el-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (el-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-el-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; -(define (el-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-el-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (el-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-el-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-el-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-el-intra-label-sep) - (list)) - -(define (el-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-el-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-el-intra-label-sep))) - (sep (assoc name (el-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-el-label-title-sep) - (list)) - -(define (el-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-el-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-el-label-title-sep))) - (sep (assoc name (el-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (el-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (el-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (el-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (el-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-el$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (el-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-el-start-quote% (dingbat "ldquo")) - -(define %gentext-el-end-quote% (dingbat "rdquo")) - -(define %gentext-el-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-el-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-el-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-el-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-el-revised-by% "&Editedby;") - ;; "Revised by" Jane Doe - -(define %gentext-el-page% "") - -(define %gentext-el-and% "∧") - -(define %gentext-el-listcomma% "&listcomma;") - -(define %gentext-el-lastlistcomma% "&lastlistcomma;") - -(define %gentext-el-bibl-pages% "&Pgs;") - -(define %gentext-el-endnotes% "&Notes;") - -(define %gentext-el-table-endnotes% "&TableNotes;:") - -(define %gentext-el-index-see% "&See;") - -(define %gentext-el-index-seealso% "&SeeAlso;") - - -(define (gentext-el-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-el-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-el-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-el-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-el-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-el-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1el.ent b/docs/dsssl/docbook/common/dbl1el.ent deleted file mode 100755 index 437d3352..00000000 --- a/docs/dsssl/docbook/common/dbl1el.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1en.dsl b/docs/dsssl/docbook/common/dbl1en.dsl deleted file mode 100755 index 8d6e1c65..00000000 --- a/docs/dsssl/docbook/common/dbl1en.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%en.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (en-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (en-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-en-start-quote% - "%t" - %gentext-en-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-en-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (en-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (en-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-en-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (en-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-en-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (en-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-en-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-en-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-en-intra-label-sep) - (list)) - -(define (en-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-en-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-en-intra-label-sep))) - (sep (assoc name (en-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-en-label-title-sep) - (list)) - -(define (en-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-en-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-en-label-title-sep))) - (sep (assoc name (en-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (en-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (en-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (en-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (en-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-en$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (en-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-en-start-quote% (dingbat "ldquo")) - -(define %gentext-en-end-quote% (dingbat "rdquo")) - -(define %gentext-en-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-en-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-en-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-en-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-en-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-en-page% "") - -(define %gentext-en-and% "∧") - -(define %gentext-en-listcomma% "&listcomma;") - -(define %gentext-en-lastlistcomma% "&lastlistcomma;") - -(define %gentext-en-bibl-pages% "&Pgs;") - -(define %gentext-en-endnotes% "&Notes;") - -(define %gentext-en-table-endnotes% "&TableNotes;:") - -(define %gentext-en-index-see% "&See;") - -(define %gentext-en-index-seealso% "&SeeAlso;") - - -(define (gentext-en-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-en-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-en-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-en-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-en-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-en-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1en.ent b/docs/dsssl/docbook/common/dbl1en.ent deleted file mode 100755 index d78b9706..00000000 --- a/docs/dsssl/docbook/common/dbl1en.ent +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1es.dsl b/docs/dsssl/docbook/common/dbl1es.dsl deleted file mode 100755 index 43ffa454..00000000 --- a/docs/dsssl/docbook/common/dbl1es.dsl +++ /dev/null @@ -1,434 +0,0 @@ - -%es.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (es-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (es-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "el &appendix; de nombre %t")) - (list (normalize "article") (string-append %gentext-es-start-quote% - "%t" - %gentext-es-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "el &chapter; de nombre %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "la §ion; de nombre %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-es-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (es-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (es-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-es-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (es-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-es-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (es-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-es-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-es-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-es-intra-label-sep) - (list)) - -(define (es-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-es-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-es-intra-label-sep))) - (sep (assoc name (es-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-es-label-title-sep) - (list)) - -(define (es-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-es-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-es-label-title-sep))) - (sep (assoc name (es-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (es-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (es-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (es-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (es-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-es$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (es-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-es-start-quote% (dingbat "ldquo")) - -(define %gentext-es-end-quote% (dingbat "rdquo")) - -(define %gentext-es-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-es-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-es-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-es-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-es-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-es-page% "") - -(define %gentext-es-and% "∧") - -(define %gentext-es-listcomma% "&listcomma;") - -(define %gentext-es-lastlistcomma% "&lastlistcomma;") - -(define %gentext-es-bibl-pages% "&Pgs;") - -(define %gentext-es-endnotes% "&Notes;") - -(define %gentext-es-table-endnotes% "&TableNotes;:") - -(define %gentext-es-index-see% "&See;") - -(define %gentext-es-index-seealso% "&SeeAlso;") - - -(define (gentext-es-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-es-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-es-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-es-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-es-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-es-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1es.ent b/docs/dsssl/docbook/common/dbl1es.ent deleted file mode 100755 index fd579378..00000000 --- a/docs/dsssl/docbook/common/dbl1es.ent +++ /dev/null @@ -1,150 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1et.dsl b/docs/dsssl/docbook/common/dbl1et.dsl deleted file mode 100755 index 74956b8b..00000000 --- a/docs/dsssl/docbook/common/dbl1et.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%et.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (et-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (et-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; %t")) - (list (normalize "article") (string-append %gentext-et-start-quote% - "%t" - %gentext-et-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "&chapter; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-et-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (et-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (et-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-et-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (et-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-et-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (et-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-et-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-et-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-et-intra-label-sep) - (list)) - -(define (et-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-et-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (et-intra-label-sep))) - (sep (assoc name (en-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-et-label-title-sep) - (list)) - -(define (et-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-et-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-et-label-title-sep))) - (sep (assoc name (et-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (et-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (et-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (et-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (et-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-et$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (et-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-et-start-quote% (dingbat "ldquo")) - -(define %gentext-et-end-quote% (dingbat "rdquo")) - -(define %gentext-et-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-et-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-et-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-et-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-et-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-et-page% "") - -(define %gentext-et-and% "∧") - -(define %gentext-et-listcomma% "&listcomma;") - -(define %gentext-et-lastlistcomma% "&lastlistcomma;") - -(define %gentext-et-bibl-pages% "&Pgs;") - -(define %gentext-et-endnotes% "&Notes;") - -(define %gentext-et-table-endnotes% "&TableNotes;:") - -(define %gentext-et-index-see% "&See;") - -(define %gentext-et-index-seealso% "&SeeAlso;") - - -(define (gentext-et-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-et-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-et-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-et-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-et-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-et-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1et.ent b/docs/dsssl/docbook/common/dbl1et.ent deleted file mode 100755 index a8fed8bf..00000000 --- a/docs/dsssl/docbook/common/dbl1et.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1eu.dsl b/docs/dsssl/docbook/common/dbl1eu.dsl deleted file mode 100755 index 803888f0..00000000 --- a/docs/dsssl/docbook/common/dbl1eu.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%eu.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (eu-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (eu-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-eu-start-quote% - "%t" - %gentext-eu-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-eu-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (eu-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (eu-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-eu-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (eu-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-eu-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (eu-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-eu-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-eu-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-eu-intra-label-sep) - (list)) - -(define (eu-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-eu-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-eu-intra-label-sep))) - (sep (assoc name (eu-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-eu-label-title-sep) - (list)) - -(define (eu-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-eu-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-eu-label-title-sep))) - (sep (assoc name (eu-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (eu-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (eu-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (eu-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (eu-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-eu$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (eu-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-eu-start-quote% (dingbat "ldquo")) - -(define %gentext-eu-end-quote% (dingbat "rdquo")) - -(define %gentext-eu-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-eu-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-eu-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-eu-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-eu-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-eu-page% "") - -(define %gentext-eu-and% "∧") - -(define %gentext-eu-listcomma% "&listcomma;") - -(define %gentext-eu-lastlistcomma% "&lastlistcomma;") - -(define %gentext-eu-bibl-pages% "&Pgs;") - -(define %gentext-eu-endnotes% "&Notes;") - -(define %gentext-eu-table-endnotes% "&TableNotes;:") - -(define %gentext-eu-index-see% "&See;") - -(define %gentext-eu-index-seealso% "&SeeAlso;") - - -(define (gentext-eu-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-eu-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-eu-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-eu-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-eu-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-eu-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1eu.ent b/docs/dsssl/docbook/common/dbl1eu.ent deleted file mode 100755 index b45ad35b..00000000 --- a/docs/dsssl/docbook/common/dbl1eu.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1fi.dsl b/docs/dsssl/docbook/common/dbl1fi.dsl deleted file mode 100755 index e69031c6..00000000 --- a/docs/dsssl/docbook/common/dbl1fi.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%fi.words; -]> - - - - - -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (fi-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (fi-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "%t")) - (list (normalize "article") (string-append %gentext-fi-start-quote% - "%t" - %gentext-fi-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "%t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "%t")) - (list (normalize "sidebar") "%t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-fi-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (fi-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (fi-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-fi-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (fi-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-fi-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (fi-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-fi-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-fi-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-fi-intra-label-sep) - (list)) - -(define (fi-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-fi-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-fi-intra-label-sep))) - (sep (assoc name (fi-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-fi-label-title-sep) - (list)) - -(define (fi-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-fi-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-fi-label-title-sep))) - (sep (assoc name (fi-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (fi-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (fi-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (fi-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (fi-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-fi$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (fi-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-fi-start-quote% (dingbat "ldquo")) - -(define %gentext-fi-end-quote% (dingbat "rdquo")) - -(define %gentext-fi-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-fi-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-fi-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-fi-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-fi-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-fi-page% "") - -(define %gentext-fi-and% "∧") - -(define %gentext-fi-listcomma% "&listcomma;") - -(define %gentext-fi-lastlistcomma% "&lastlistcomma;") - -(define %gentext-fi-bibl-pages% "&Pgs;") - -(define %gentext-fi-endnotes% "&Notes;") - -(define %gentext-fi-table-endnotes% "&TableNotes;:") - -(define %gentext-fi-index-see% "&See;") - -(define %gentext-fi-index-seealso% "&SeeAlso;") - - -(define (gentext-fi-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-fi-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-fi-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-fi-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-fi-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-fi-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1fi.ent b/docs/dsssl/docbook/common/dbl1fi.ent deleted file mode 100755 index 69293ca0..00000000 --- a/docs/dsssl/docbook/common/dbl1fi.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1fr.dsl b/docs/dsssl/docbook/common/dbl1fr.dsl deleted file mode 100755 index de92c317..00000000 --- a/docs/dsssl/docbook/common/dbl1fr.dsl +++ /dev/null @@ -1,436 +0,0 @@ - -%fr.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Rainer Feuerstein, fire@informatik.uni-wuerzburg.de -;; Christian Leutloff, leutloff@sundancer.oche.de -;; Eric Bischoff, e.bischoff@noos.fr -;; Frederik Fouvry, fouvry@CoLi.Uni-SB.DE - -(define (fr-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (fr-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "l'annexe intitulée %t")) - (list (normalize "article") (string-append %gentext-fr-start-quote% - "%t" - %gentext-fr-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "le chapitre intitulé %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "la section intitulée %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-fr-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (fr-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (fr-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-fr-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (fr-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-fr-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (fr-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-fr-element-name : &unexpectedelementname; : " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-fr-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-fr-intra-label-sep) - (list)) - -(define (fr-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-fr-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-fr-intra-label-sep))) - (sep (assoc name (fr-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-fr-label-title-sep) - (list)) - -(define (fr-label-title-sep) - (list - (list (normalize "abstract") "\U-00A0;: ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") "\U-00A0;: ") - (list (normalize "glossseealso") "\U-00A0;: ") - (list (normalize "important") "\U-00A0;: ") - (list (normalize "note") "\U-00A0;: ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") "\U-00A0;: ") - (list (normalize "warning") "") - )) - -(define (gentext-fr-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-fr-label-title-sep))) - (sep (assoc name (fr-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (fr-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (fr-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (fr-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (fr-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-fr$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (fr-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;\U-00A0;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - ; nbsp; -(define %gentext-fr-start-quote% (string-append (dingbat "laquo") "\U-00A0;")) - -(define %gentext-fr-end-quote% (string-append "\U-00A0;" (dingbat "raquo"))) - -(define %gentext-fr-start-nested-quote% (string-append (dingbat "lsaquo") "\U-00A0;")) - -(define %gentext-fr-end-nested-quote% (string-append (dingbat "rsaquo") "\U-00A0;")) - -(define %gentext-fr-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-fr-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-fr-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-fr-page% "") - -(define %gentext-fr-and% "∧") - -(define %gentext-fr-listcomma% "&listcomma;") - -(define %gentext-fr-lastlistcomma% "&lastlistcomma;") - -(define %gentext-fr-bibl-pages% "&Pgs;") - -(define %gentext-fr-endnotes% "&Notes;") - -(define %gentext-fr-table-endnotes% "&TableNotes;\U-00A0;:") - -(define %gentext-fr-index-see% "&See;") - -(define %gentext-fr-index-seealso% "&SeeAlso;") - -(define (gentext-fr-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-fr-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-fr-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-fr-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-fr-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-fr-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - diff --git a/docs/dsssl/docbook/common/dbl1fr.ent b/docs/dsssl/docbook/common/dbl1fr.ent deleted file mode 100755 index fc1b74bb..00000000 --- a/docs/dsssl/docbook/common/dbl1fr.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1he.ent b/docs/dsssl/docbook/common/dbl1he.ent deleted file mode 100755 index 9e9cf2e9..00000000 --- a/docs/dsssl/docbook/common/dbl1he.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1hu.dsl b/docs/dsssl/docbook/common/dbl1hu.dsl deleted file mode 100755 index 180bdb3a..00000000 --- a/docs/dsssl/docbook/common/dbl1hu.dsl +++ /dev/null @@ -1,447 +0,0 @@ - -%hu.words; -]> - - - - - -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Hojtsy Gabor, hgoba@freemail.c3.hu -;; - -(define (hu-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (hu-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "%n &Appendix;" - "%t")) - (list (normalize "article") (string-append %gentext-hu-start-quote% - "%t" - %gentext-hu-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "%n &chapter;" - "%t")) - (list (normalize "equation") "%n &Equation;") - (list (normalize "example") "%n &Example;") - (list (normalize "figure") "%n &Figure;") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "%n &Part;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "%n, %t &Procedure; ") - (list (normalize "reference") "%n, %t &Reference; ") - (list (normalize "section") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sect1") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sect2") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sect3") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sect4") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sect5") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "simplesect") (if %section-autolabel% - "%n &Section;" - "%t")) - (list (normalize "sidebar") "%t") - (list (normalize "step") "%n &step;") - (list (normalize "table") "%n &Table;"))) - -(define (gentext-hu-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (hu-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (hu-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-hu-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (hu-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-hu-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (hu-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-hu-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-hu-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-hu-intra-label-sep) - (list)) - -(define (hu-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-hu-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-hu-intra-label-sep))) - (sep (assoc name (hu-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-hu-label-title-sep) - (list)) - -(define (hu-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-hu-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-hu-label-title-sep))) - (sep (assoc name (hu-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (hu-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (hu-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (hu-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (hu-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-hu$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (hu-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-hu-start-quote% (dingbat "ldquo")) - -(define %gentext-hu-end-quote% (dingbat "rdquo")) - -(define %gentext-hu-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-hu-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-hu-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-hu-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-hu-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-hu-page% "") - -(define %gentext-hu-and% "∧") - -(define %gentext-hu-listcomma% "&listcomma;") - -(define %gentext-hu-lastlistcomma% "&lastlistcomma;") - -(define %gentext-hu-bibl-pages% "&Pgs;") - -(define %gentext-hu-endnotes% "&Notes;") - -(define %gentext-hu-table-endnotes% "&TableNotes;:") - -(define %gentext-hu-index-see% "&See;") - -(define %gentext-hu-index-seealso% "&SeeAlso;") - - -(define (gentext-hu-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-hu-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-hu-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-hu-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-hu-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-hu-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1hu.ent b/docs/dsssl/docbook/common/dbl1hu.ent deleted file mode 100755 index 60cebc3d..00000000 --- a/docs/dsssl/docbook/common/dbl1hu.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1id.dsl b/docs/dsssl/docbook/common/dbl1id.dsl deleted file mode 100755 index 907f9dc0..00000000 --- a/docs/dsssl/docbook/common/dbl1id.dsl +++ /dev/null @@ -1,608 +0,0 @@ - -%id.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Mohammad DAMT, mdamt@cdl2000.com -;; - -(define (id-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (id-appendix-xref-string gi-or-name) - (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; berjudul %t")) - -(define (id-article-xref-string gi-or-name) - (string-append %gentext-id-start-quote% - "%t" - %gentext-id-end-quote%)) - -(define (id-bibliography-xref-string gi-or-name) - "%t") - -(define (id-book-xref-string gi-or-name) - "%t") - -(define (id-chapter-xref-string gi-or-name) - (if %chapter-autolabel% - "&Chapter; %n" - "&chapter; berjudul %t")) - -(define (id-equation-xref-string gi-or-name) - "&Equation; %n") - -(define (id-example-xref-string gi-or-name) - "&Example; %n") - -(define (id-figure-xref-string gi-or-name) - "&Figure; %n") - -(define (id-glossary-xref-string gi-or-name) - "%t") - -(define (id-index-xref-string gi-or-name) - "%t") - -(define (id-listitem-xref-string gi-or-name) - "%n") - -(define (id-part-xref-string gi-or-name) - "&Part; %n") - -(define (id-preface-xref-string gi-or-name) - "%t") - -(define (id-procedure-xref-string gi-or-name) - "&Procedure; %n, %t") - -(define (id-reference-xref-string gi-or-name) - "&Reference; %n, %t") - -(define (id-sectioning-xref-string gi-or-name) - (if %section-autolabel% - "&Section; %n" - "§ion; berjudul %t")) - -(define (id-sect1-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-sect2-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-sect3-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-sect4-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-sect5-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-section-xref-string gi-or-name) - (id-sectioning-xref-string gi-or-name)) - -(define (id-sidebar-xref-string gi-or-name) - "the &sidebar; %t") - -(define (id-step-xref-string gi-or-name) - "&step; %n") - -(define (id-table-xref-string gi-or-name) - "&Table; %n") - -(define (id-default-xref-string gi-or-name) - (let* ((giname (if (string? gi-or-name) gi-or-name (gi gi-or-name))) - (msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)) - -(define (gentext-id-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond - ((equal? name (normalize "appendix")) (id-appendix-xref-string gind)) - ((equal? name (normalize "article")) (id-article-xref-string gind)) - ((equal? name (normalize "bibliography")) (id-bibliography-xref-string gind)) - ((equal? name (normalize "book")) (id-book-xref-string gind)) - ((equal? name (normalize "chapter")) (id-chapter-xref-string gind)) - ((equal? name (normalize "equation")) (id-equation-xref-string gind)) - ((equal? name (normalize "example")) (id-example-xref-string gind)) - ((equal? name (normalize "figure")) (id-figure-xref-string gind)) - ((equal? name (normalize "glossary")) (id-glossary-xref-string gind)) - ((equal? name (normalize "index")) (id-index-xref-string gind)) - ((equal? name (normalize "listitem")) (id-listitem-xref-string gind)) - ((equal? name (normalize "part")) (id-part-xref-string gind)) - ((equal? name (normalize "preface")) (id-preface-xref-string gind)) - ((equal? name (normalize "procedure")) (id-procedure-xref-string gind)) - ((equal? name (normalize "reference")) (id-reference-xref-string gind)) - ((equal? name (normalize "sect1")) (id-sect1-xref-string gind)) - ((equal? name (normalize "sect2")) (id-sect2-xref-string gind)) - ((equal? name (normalize "sect3")) (id-sect3-xref-string gind)) - ((equal? name (normalize "sect4")) (id-sect4-xref-string gind)) - ((equal? name (normalize "sect5")) (id-sect5-xref-string gind)) - ((equal? name (normalize "section")) (id-section-xref-string gind)) - ((equal? name (normalize "simplesect")) (id-section-xref-string gind)) - ((equal? name (normalize "sidebar")) (id-sidebar-xref-string gind)) - ((equal? name (normalize "step")) (id-step-xref-string gind)) - ((equal? name (normalize "table")) (id-table-xref-string gind)) - (else (id-default-xref-string gind))))) - -(define (id-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-id-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; -(define id-abstract-name "&Abstract;") -(define id-answer-name "&Answer;") -(define id-appendix-name "&Appendix;") -(define id-article-name "&Article;") -(define id-bibliography-name "&Bibliography;") -(define id-book-name "&Book;") -(define id-calloutlist-name "") -(define id-caution-name "&Caution;") -(define id-chapter-name "&Chapter;") -(define id-copyright-name "&Copyright;") -(define id-dedication-name "&Dedication;") -(define id-edition-name "&Edition;") -(define id-equation-name "&Equation;") -(define id-example-name "&Example;") -(define id-figure-name "&Figure;") -(define id-glossary-name "&Glossary;") -(define id-glosssee-name "&GlossSee;") -(define id-glossseealso-name "&GlossSeeAlso;") -(define id-important-name "&Important;") -(define id-index-name "&Index;") -(define id-colophon-name "&Colophon;") -(define id-setindex-name "&SetIndex;") -(define id-isbn-name "&isbn;") -(define id-legalnotice-name "&LegalNotice;") -(define id-msgaud-name "&MsgAud;") -(define id-msglevel-name "&MsgLevel;") -(define id-msgorig-name "&MsgOrig;") -(define id-note-name "&Note;") -(define id-part-name "&Part;") -(define id-preface-name "&Preface;") -(define id-procedure-name "&Procedure;") -(define id-pubdate-name "&Published;") -(define id-question-name "&Question;") -(define id-refentry-name "&RefEntry;") -(define id-reference-name "&Reference;") -(define id-refname-name "&RefName;") -(define id-revhistory-name "&RevHistory;") -(define id-refsect1-name "&RefSection;") -(define id-refsect2-name "&RefSection;") -(define id-refsect3-name "&RefSection;") -(define id-refsynopsisdiv-name "&RefSynopsisDiv;") -(define id-revision-name "&Revision;") -(define id-sect1-name "&Section;") -(define id-sect2-name "&Section;") -(define id-sect3-name "&Section;") -(define id-sect4-name "&Section;") -(define id-sect5-name "&Section;") -(define id-section-name "&Section;") -(define id-simplesect-name "&Section;") -(define id-seeie-name "&See;") -(define id-seealsoie-name "&Seealso;") -(define id-set-name "&Set;") -(define id-sidebar-name "&Sidebar;") -(define id-step-name "&step;") -(define id-table-name "&Table;") -(define id-tip-name "&Tip;") -(define id-toc-name "&TableofContents;") -(define id-warning-name "&Warning;") - -(define (gentext-id-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond - ((equal? name (normalize "abstract")) id-abstract-name) - ((equal? name (normalize "answer")) id-answer-name) - ((equal? name (normalize "appendix")) id-appendix-name) - ((equal? name (normalize "article")) id-article-name) - ((equal? name (normalize "bibliography")) id-bibliography-name) - ((equal? name (normalize "book")) id-book-name) - ((equal? name (normalize "calloutlist")) id-calloutlist-name) - ((equal? name (normalize "caution")) id-caution-name) - ((equal? name (normalize "chapter")) id-chapter-name) - ((equal? name (normalize "copyright")) id-copyright-name) - ((equal? name (normalize "dedication")) id-dedication-name) - ((equal? name (normalize "edition")) id-edition-name) - ((equal? name (normalize "equation")) id-equation-name) - ((equal? name (normalize "example")) id-example-name) - ((equal? name (normalize "figure")) id-figure-name) - ((equal? name (normalize "glossary")) id-glossary-name) - ((equal? name (normalize "glosssee")) id-glosssee-name) - ((equal? name (normalize "glossseealso")) id-glossseealso-name) - ((equal? name (normalize "important")) id-important-name) - ((equal? name (normalize "index")) id-index-name) - ((equal? name (normalize "colophon")) id-colophon-name) - ((equal? name (normalize "setindex")) id-setindex-name) - ((equal? name (normalize "isbn")) id-isbn-name) - ((equal? name (normalize "legalnotice")) id-legalnotice-name) - ((equal? name (normalize "msgaud")) id-msgaud-name) - ((equal? name (normalize "msglevel")) id-msglevel-name) - ((equal? name (normalize "msgorig")) id-msgorig-name) - ((equal? name (normalize "note")) id-note-name) - ((equal? name (normalize "part")) id-part-name) - ((equal? name (normalize "preface")) id-preface-name) - ((equal? name (normalize "procedure")) id-procedure-name) - ((equal? name (normalize "pubdate")) id-pubdate-name) - ((equal? name (normalize "question")) id-question-name) - ((equal? name (normalize "refentry")) id-refentry-name) - ((equal? name (normalize "reference")) id-reference-name) - ((equal? name (normalize "refname")) id-refname-name) - ((equal? name (normalize "revhistory")) id-revhistory-name) - ((equal? name (normalize "refsect1")) id-refsect1-name) - ((equal? name (normalize "refsect2")) id-refsect2-name) - ((equal? name (normalize "refsect3")) id-refsect3-name) - ((equal? name (normalize "refsynopsisdiv")) id-refsynopsisdiv-name) - ((equal? name (normalize "revision")) id-revision-name) - ((equal? name (normalize "sect1")) id-sect1-name) - ((equal? name (normalize "sect2")) id-sect2-name) - ((equal? name (normalize "sect3")) id-sect3-name) - ((equal? name (normalize "sect4")) id-sect4-name) - ((equal? name (normalize "sect5")) id-sect5-name) - ((equal? name (normalize "section")) id-section-name) - ((equal? name (normalize "simplesect")) id-simplesect-name) - ((equal? name (normalize "seeie")) id-seeie-name) - ((equal? name (normalize "seealsoie")) id-seealsoie-name) - ((equal? name (normalize "set")) id-set-name) - ((equal? name (normalize "sidebar")) id-sidebar-name) - ((equal? name (normalize "step")) id-step-name) - ((equal? name (normalize "table")) id-table-name) - ((equal? name (normalize "tip")) id-tip-name) - ((equal? name (normalize "toc")) id-toc-name) - ((equal? name (normalize "warning")) id-warning-name) - (else (let* ((msg (string-append "gentext-id-element-name: &unexpectedelementname;: " name)) - (err (node-list-error msg (current-node)))) - msg))))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-id-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define id-equation-intra-label-sep "-") -(define id-informalequation-intra-label-sep "-") -(define id-example-intra-label-sep "-") -(define id-figure-intra-label-sep "-") -(define id-listitem-intra-label-sep ".") -(define id-procedure-intra-label-sep ".") -(define id-refentry-intra-label-sep ".") -(define id-reference-intra-label-sep ".") -(define id-refname-intra-label-sep ", ") -(define id-refsect1-intra-label-sep ".") -(define id-refsect2-intra-label-sep ".") -(define id-refsect3-intra-label-sep ".") -(define id-sect1-intra-label-sep ".") -(define id-sect2-intra-label-sep ".") -(define id-sect3-intra-label-sep ".") -(define id-sect4-intra-label-sep ".") -(define id-sect5-intra-label-sep ".") -(define id-section-intra-label-sep ".") -(define id-simplesect-intra-label-sep ".") -(define id-step-intra-label-sep ".") -(define id-table-intra-label-sep "-") -(define id-_pagenumber-intra-label-sep "-") -(define id-default-intra-label-sep "") - -(define (gentext-id-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond - ((equal? name (normalize "equation")) id-equation-intra-label-sep) - ((equal? name (normalize "informalequation")) id-informalequation-intra-label-sep) - ((equal? name (normalize "example")) id-example-intra-label-sep) - ((equal? name (normalize "figure")) id-figure-intra-label-sep) - ((equal? name (normalize "listitem")) id-listitem-intra-label-sep) - ((equal? name (normalize "procedure")) id-procedure-intra-label-sep) - ((equal? name (normalize "refentry")) id-refentry-intra-label-sep) - ((equal? name (normalize "reference")) id-reference-intra-label-sep) - ((equal? name (normalize "refname")) id-refname-intra-label-sep) - ((equal? name (normalize "refsect1")) id-refsect1-intra-label-sep) - ((equal? name (normalize "refsect2")) id-refsect2-intra-label-sep) - ((equal? name (normalize "refsect3")) id-refsect3-intra-label-sep) - ((equal? name (normalize "sect1")) id-sect1-intra-label-sep) - ((equal? name (normalize "sect2")) id-sect2-intra-label-sep) - ((equal? name (normalize "sect3")) id-sect3-intra-label-sep) - ((equal? name (normalize "sect4")) id-sect4-intra-label-sep) - ((equal? name (normalize "sect5")) id-sect5-intra-label-sep) - ((equal? name (normalize "section")) id-section-intra-label-sep) - ((equal? name (normalize "simplesect")) id-simplesect-intra-label-sep) - ((equal? name (normalize "step")) id-step-intra-label-sep) - ((equal? name (normalize "table")) id-table-intra-label-sep) - ((equal? name (normalize "_pagenumber")) id-_pagenumber-intra-label-sep) - (else id-default-intra-label-sep)))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define id-abstract-label-title-sep ": ") -(define id-answer-label-title-sep " ") -(define id-appendix-label-title-sep ". ") -(define id-caution-label-title-sep "") -(define id-chapter-label-title-sep ". ") -(define id-equation-label-title-sep ". ") -(define id-example-label-title-sep ". ") -(define id-figure-label-title-sep ". ") -(define id-footnote-label-title-sep ". ") -(define id-glosssee-label-title-sep ": ") -(define id-glossseealso-label-title-sep ": ") -(define id-important-label-title-sep ": ") -(define id-note-label-title-sep ": ") -(define id-orderedlist-label-title-sep ". ") -(define id-part-label-title-sep ". ") -(define id-procedure-label-title-sep ". ") -(define id-prefix-label-title-sep ". ") -(define id-question-label-title-sep " ") -(define id-refentry-label-title-sep "") -(define id-reference-label-title-sep ". ") -(define id-refsect1-label-title-sep ". ") -(define id-refsect2-label-title-sep ". ") -(define id-refsect3-label-title-sep ". ") -(define id-sect1-label-title-sep ". ") -(define id-sect2-label-title-sep ". ") -(define id-sect3-label-title-sep ". ") -(define id-sect4-label-title-sep ". ") -(define id-sect5-label-title-sep ". ") -(define id-section-label-title-sep ". ") -(define id-simplesect-label-title-sep ". ") -(define id-seeie-label-title-sep " ") -(define id-seealsoie-label-title-sep " ") -(define id-step-label-title-sep ". ") -(define id-table-label-title-sep ". ") -(define id-tip-label-title-sep ": ") -(define id-warning-label-title-sep "") -(define id-default-label-title-sep "") - -(define (gentext-id-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond - ((equal? name (normalize "abstract")) id-abstract-label-title-sep) - ((equal? name (normalize "answer")) id-answer-label-title-sep) - ((equal? name (normalize "appendix")) id-appendix-label-title-sep) - ((equal? name (normalize "caution")) id-caution-label-title-sep) - ((equal? name (normalize "chapter")) id-chapter-label-title-sep) - ((equal? name (normalize "equation")) id-equation-label-title-sep) - ((equal? name (normalize "example")) id-example-label-title-sep) - ((equal? name (normalize "figure")) id-figure-label-title-sep) - ((equal? name (normalize "footnote")) id-footnote-label-title-sep) - ((equal? name (normalize "glosssee")) id-glosssee-label-title-sep) - ((equal? name (normalize "glossseealso")) id-glossseealso-label-title-sep) - ((equal? name (normalize "important")) id-important-label-title-sep) - ((equal? name (normalize "note")) id-note-label-title-sep) - ((equal? name (normalize "orderedlist")) id-orderedlist-label-title-sep) - ((equal? name (normalize "part")) id-part-label-title-sep) - ((equal? name (normalize "procedure")) id-procedure-label-title-sep) - ((equal? name (normalize "prefix")) id-prefix-label-title-sep) - ((equal? name (normalize "question")) id-question-label-title-sep) - ((equal? name (normalize "refentry")) id-refentry-label-title-sep) - ((equal? name (normalize "reference")) id-reference-label-title-sep) - ((equal? name (normalize "refsect1")) id-refsect1-label-title-sep) - ((equal? name (normalize "refsect2")) id-refsect2-label-title-sep) - ((equal? name (normalize "refsect3")) id-refsect3-label-title-sep) - ((equal? name (normalize "sect1")) id-sect1-label-title-sep) - ((equal? name (normalize "sect2")) id-sect2-label-title-sep) - ((equal? name (normalize "sect3")) id-sect3-label-title-sep) - ((equal? name (normalize "sect4")) id-sect4-label-title-sep) - ((equal? name (normalize "sect5")) id-sect5-label-title-sep) - ((equal? name (normalize "section")) id-section-label-title-sep) - ((equal? name (normalize "simplesect")) id-simplesect-label-title-sep) - ((equal? name (normalize "seeie")) id-seeie-label-title-sep) - ((equal? name (normalize "seealsoie")) id-seealsoie-label-title-sep) - ((equal? name (normalize "step")) id-step-label-title-sep) - ((equal? name (normalize "table")) id-table-label-title-sep) - ((equal? name (normalize "tip")) id-tip-label-title-sep) - ((equal? name (normalize "warning")) id-warning-label-title-sep) - (else id-default-label-title-sep)))) - -(define (id-set-label-number-format gind) "1") -(define (id-book-label-number-format gind) "1") -(define (id-prefix-label-number-format gind) "1") -(define (id-part-label-number-format gind) "I") -(define (id-chapter-label-number-format gind) "1") -(define (id-appendix-label-number-format gind) "A") -(define (id-reference-label-number-format gind) "I") -(define (id-example-label-number-format gind) "1") -(define (id-figure-label-number-format gind) "1") -(define (id-table-label-number-format gind) "1") -(define (id-procedure-label-number-format gind) "1") -(define (id-step-label-number-format gind) "1") -(define (id-refsect1-label-number-format gind) "1") -(define (id-refsect2-label-number-format gind) "1") -(define (id-refsect3-label-number-format gind) "1") -(define (id-sect1-label-number-format gind) "1") -(define (id-sect2-label-number-format gind) "1") -(define (id-sect3-label-number-format gind) "1") -(define (id-sect4-label-number-format gind) "1") -(define (id-sect5-label-number-format gind) "1") -(define (id-section-label-number-format gind) "1") -(define (id-default-label-number-format gind) "1") - -(define (id-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond - ((equal? name (normalize "set")) (id-set-label-number-format gind)) - ((equal? name (normalize "book")) (id-book-label-number-format gind)) - ((equal? name (normalize "prefix")) (id-prefix-label-number-format gind)) - ((equal? name (normalize "part")) (id-part-label-number-format gind)) - ((equal? name (normalize "chapter")) (id-chapter-label-number-format gind)) - ((equal? name (normalize "appendix")) (id-appendix-label-number-format gind)) - ((equal? name (normalize "reference")) (id-reference-label-number-format gind)) - ((equal? name (normalize "example")) (id-example-label-number-format gind)) - ((equal? name (normalize "figure")) (id-figure-label-number-format gind)) - ((equal? name (normalize "table")) (id-table-label-number-format gind)) - ((equal? name (normalize "procedure")) (id-procedure-label-number-format gind)) - ((equal? name (normalize "step")) (id-step-label-number-format gind)) - ((equal? name (normalize "refsect1")) (id-refsect1-label-number-format gind)) - ((equal? name (normalize "refsect2")) (id-refsect2-label-number-format gind)) - ((equal? name (normalize "refsect3")) (id-refsect3-label-number-format gind)) - ((equal? name (normalize "sect1")) (id-sect1-label-number-format gind)) - ((equal? name (normalize "sect2")) (id-sect2-label-number-format gind)) - ((equal? name (normalize "sect3")) (id-sect3-label-number-format gind)) - ((equal? name (normalize "sect4")) (id-sect4-label-number-format gind)) - ((equal? name (normalize "sect5")) (id-sect5-label-number-format gind)) - ((equal? name (normalize "section")) (id-section-label-number-format gind)) - (else (id-default-label-number-format gind))))) - -(define ($lot-title-id$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname))) - (cond ((equal? name (normalize "table")) "&ListofTables;") - ((equal? name (normalize "example")) "&ListofExamples;") - ((equal? name (normalize "figure")) "&ListofFigures;") - ((equal? name (normalize "equation")) "&ListofEquations;") - (else (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg))))) - -(define %gentext-id-start-quote% (dingbat "ldquo")) - -(define %gentext-id-end-quote% (dingbat "rdquo")) - -(define %gentext-id-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-id-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-id-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-id-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-id-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-id-page% "") - -(define %gentext-id-and% "∧") - -(define %gentext-id-listcomma% "&listcomma;") - -(define %gentext-id-lastlistcomma% "&lastlistcomma;") - -(define %gentext-id-bibl-pages% "&Pgs;") - -(define %gentext-id-endnotes% "&Notes;") - -(define %gentext-id-table-endnotes% "&TableNotes;:") - -(define %gentext-id-index-see% "&See;") - -(define %gentext-id-index-seealso% "&SeeAlso;") - - -(define (gentext-id-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-id-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-id-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-id-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-id-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-id-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1id.ent b/docs/dsssl/docbook/common/dbl1id.ent deleted file mode 100755 index b062c29f..00000000 --- a/docs/dsssl/docbook/common/dbl1id.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1it.dsl b/docs/dsssl/docbook/common/dbl1it.dsl deleted file mode 100755 index cebfa1f5..00000000 --- a/docs/dsssl/docbook/common/dbl1it.dsl +++ /dev/null @@ -1,471 +0,0 @@ - -%it.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; camille@mandrakesoft.com - -(define (it-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (it-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; %t")) - (list (normalize "article") (string-append %gentext-it-start-quote% - "%t" - %gentext-it-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "il &chapter; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sect1") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sect2") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sect3") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sect4") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sect5") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "la &Section; %n" - "la §ion; %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-it-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (it-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (it-auto-xref-indirect-connector before) - (cond - ((member (gi before) - (list (normalize "part") - (normalize "set") - (normalize "revision") - (normalize "dedication") - (normalize "bibliography") - (normalize "preface") - (normalize "figure") - (normalize "procedure") - (normalize "sidebar") - (normalize "table") - (normalize "sect1") - (normalize "sect2") - (normalize "sect3") - (normalize "sect4") - (normalize "sect5") - (normalize "simplesect"))) - (literal " nella ")) - ((member (gi before) - (list (normalize "appendix") - (normalize "index") - (normalize "abstract") - (normalize "equation") - (normalize "example") - (normalize "article"))) - (literal " nell'")) - ((member (gi before) - (list (normalize "book") - (normalize "chapter") - (normalize "step") - (normalize "reference") - (normalize "glossary"))) - (literal " nel ")) -;; This is supposed never to be triggered! -;; I think the above conditions cover all the possible kinds of link -;; target containers (it's probably a superset, indeed). If they -;; don't, add the offending element to the correspondant list. - (else - (literal "[&unexpectedelementname;]")))) - -;; Should the TOC come first or last? -;; -(define %generate-it-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (it-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-it-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (it-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-it-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-it-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-it-intra-label-sep) - (list)) - -(define (it-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-it-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-it-intra-label-sep))) - (sep (assoc name (it-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-it-label-title-sep) - (list)) - -(define (it-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-it-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-it-label-title-sep))) - (sep (assoc name (it-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (it-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (it-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (it-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (it-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-it$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (it-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-it-start-quote% (dingbat "ldquo")) - -(define %gentext-it-end-quote% (dingbat "rdquo")) - -(define %gentext-it-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-it-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-it-by% "") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-it-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-it-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-it-page% "") - -(define %gentext-it-and% "∧") - -(define %gentext-it-listcomma% "&listcomma;") - -(define %gentext-it-lastlistcomma% "&lastlistcomma;") - -(define %gentext-it-bibl-pages% "&Pgs;") - -(define %gentext-it-endnotes% "&Notes;") - -(define %gentext-it-table-endnotes% "&TableNotes;:") - -(define %gentext-it-index-see% "&See;") - -(define %gentext-it-index-seealso% "&SeeAlso;") - - -(define (gentext-it-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-it-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-it-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-it-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-it-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-it-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1it.ent b/docs/dsssl/docbook/common/dbl1it.ent deleted file mode 100755 index 3b34114d..00000000 --- a/docs/dsssl/docbook/common/dbl1it.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ja.dsl b/docs/dsssl/docbook/common/dbl1ja.dsl deleted file mode 100755 index 68ee1c3b..00000000 --- a/docs/dsssl/docbook/common/dbl1ja.dsl +++ /dev/null @@ -1,445 +0,0 @@ - -%ja.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Karl Critz, kcritz@mathworks.com, contributed the original dbl1ja.ent file -;; ISHIDA Eri, eri@laser5.co.jp -;; Ryan Shaw, ryan@silveregg.co.jp - -(define (ja-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ja-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix;%n" - "%t&appendix;")) - (list (normalize "article") (string-append %gentext-ja-start-quote% - "%t" - %gentext-ja-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter1;%n&Chapter2;" - "%t&chapter;")) - (list (normalize "equation") "&Equation;%n") - (list (normalize "example") "&Example;%n") - (list (normalize "figure") "&Figure;%n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part;%n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure;%n, %t") - (list (normalize "reference") "&Reference;%n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sect1") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sect2") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sect3") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sect4") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sect5") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section;%n" - "%t§ion;")) - (list (normalize "sidebar") "%t&sidebar;") - (list (normalize "step") "&step;%n") - (list (normalize "table") "&Table;%n"))) - -(define (gentext-ja-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ja-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ja-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal "∈")) - ((equal? (gi before) (normalize "chapter")) - (literal "∈")) - ((equal? (gi before) (normalize "sect1")) - (literal "∈")) - (else - (literal "∈")))) - -;; Should the TOC come first or last? -;; -(define %generate-ja-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ja-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter1;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ja-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ja-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ja-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ja-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ja-intra-label-sep) - (list)) - -(define (ja-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ja-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ja-intra-label-sep))) - (sep (assoc name (ja-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ja-label-title-sep) - (list)) - -(define (ja-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") "&Chapter2;") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ja-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ja-label-title-sep))) - (sep (assoc name (ja-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ja-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ja-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ja-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ja-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ja$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ja-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ja-start-quote% (dingbat "ldquo")) - -(define %gentext-ja-end-quote% (dingbat "rdquo")) - -(define %gentext-ja-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ja-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ja-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ja-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ja-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ja-page% "") - -(define %gentext-ja-and% "∧") - -(define %gentext-ja-listcomma% "&listcomma;") - -(define %gentext-ja-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ja-bibl-pages% "&Pgs;") - -(define %gentext-ja-endnotes% "&Notes;") - -(define %gentext-ja-table-endnotes% "&TableNotes;:") - -(define %gentext-ja-index-see% "&See;") - -(define %gentext-ja-index-seealso% "&SeeAlso;") - - -(define (gentext-ja-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ja-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ja-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ja-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ja-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ja-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ja.ent b/docs/dsssl/docbook/common/dbl1ja.ent deleted file mode 100755 index 65ccfc53..00000000 --- a/docs/dsssl/docbook/common/dbl1ja.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ko.dsl b/docs/dsssl/docbook/common/dbl1ko.dsl deleted file mode 100755 index cf809057..00000000 --- a/docs/dsssl/docbook/common/dbl1ko.dsl +++ /dev/null @@ -1,455 +0,0 @@ - -%ko.words; -]> - - - - - -;; -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributor: -;; Park Yong Joo (yongjoo@kldp.org) 2001/01/06 -;; - -(define (ko-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, Surname, FirstName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. SurNameFirstName [OtherName], Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - - - ;; Format is "SurNameFirstName" for Korean naming rules. - (if has_s (string-append - (if has_h " " "") - (data-of (node-list-first s_nl))) "") - (if has_f (string-append - (if (or has_h) " " "") - (data-of (node-list-first f_nl))) "") - ;; If you need "SurName FirstName" format, - ;; comment out upper 6 lines and use this. - ;; (if has_s (string-append - ;; (if has_h " " "") - ;; (data-of (node-list-first s_nl))) "") - ;; (if has_f (string-append - ;; (if (or has_h has_s) " " "") - ;; (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_s has_f ) " " "") - (data-of (node-list-first o_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ko-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "\U-C81C;\U-BAA9;\U-C774; %t\U-C778; &appendix;")) - (list (normalize "article") (string-append %gentext-ko-start-quote% - "%t" - %gentext-ko-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "%n\U-C7A5;" - "`%t' &chapter;")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "%n &Part;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sect1") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sect2") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sect3") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sect4") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sect5") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "simplesect") (if %section-autolabel% - "%n\U-C808;" - "`%t' §ion;")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-ko-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ko-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ko-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal "\U-C758; ")) - ((equal? (gi before) (normalize "chapter")) - (literal "\U-C758; ")) - ((equal? (gi before) (normalize "sect1")) - (literal "\U-C758; ")) - (else - (literal "\U-C758; ")))) - -;; Should the TOC come first or last? -;; -(define %generate-ko-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ko-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&ISBN;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ko-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ko-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ko-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ko-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ko-intra-label-sep) - (list)) - -(define (ko-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ko-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ko-intra-label-sep))) - (sep (assoc name (ko-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ko-label-title-sep) - (list)) - -(define (ko-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ko-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ko-label-title-sep))) - (sep (assoc name (ko-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ko-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ko-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ko-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ko-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ko$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ko-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ko-start-quote% (dingbat "ldquo")) - -(define %gentext-ko-end-quote% (dingbat "rdquo")) - -(define %gentext-ko-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ko-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ko-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ko-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ko-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ko-page% "") - -(define %gentext-ko-and% "∧") - -(define %gentext-ko-listcomma% "&listcomma;") - -(define %gentext-ko-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ko-bibl-pages% "&Pgs;") - -(define %gentext-ko-endnotes% "&Notes;") - -(define %gentext-ko-table-endnotes% "&TableNotes;:") - -(define %gentext-ko-index-see% "&See;") - -(define %gentext-ko-index-seealso% "&SeeAlso;") - - -(define (gentext-ko-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ko-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ko-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ko-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ko-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ko-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ko.ent b/docs/dsssl/docbook/common/dbl1ko.ent deleted file mode 100755 index 6ecccf61..00000000 --- a/docs/dsssl/docbook/common/dbl1ko.ent +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1nl.dsl b/docs/dsssl/docbook/common/dbl1nl.dsl deleted file mode 100755 index c10bc335..00000000 --- a/docs/dsssl/docbook/common/dbl1nl.dsl +++ /dev/null @@ -1,440 +0,0 @@ - -%nl.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- -;; -;; This is the Dutch localization -;; -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Hugo van der Kooij, hvdkooij@caiw.nl -;; Frederik Fouvry, fouvry@essex.ac.uk - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (nl-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (nl-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; %t")) - (list (normalize "article") (string-append %gentext-nl-start-quote% - "%t" - %gentext-nl-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "&chapter; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "§ion; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-nl-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (nl-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (nl-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-nl-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (nl-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-nl-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (nl-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-nl-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-nl-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-nl-intra-label-sep) - (list)) - -(define (nl-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-nl-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-nl-intra-label-sep))) - (sep (assoc name (nl-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-nl-label-title-sep) - (list)) - -(define (nl-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-nl-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-nl-label-title-sep))) - (sep (assoc name (nl-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (nl-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (nl-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (nl-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (nl-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-nl$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (nl-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-nl-start-quote% (dingbat "ldquo")) - -(define %gentext-nl-end-quote% (dingbat "rdquo")) - -(define %gentext-nl-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-nl-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-nl-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-nl-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-nl-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-nl-page% "") - -(define %gentext-nl-and% "∧") - -(define %gentext-nl-listcomma% "&listcomma;") - -(define %gentext-nl-lastlistcomma% "&lastlistcomma;") - -(define %gentext-nl-bibl-pages% "&Pgs;") - -(define %gentext-nl-endnotes% "&Notes;") - -(define %gentext-nl-table-endnotes% "&TableNotes;:") - -(define %gentext-nl-index-see% "&See;") - -(define %gentext-nl-index-seealso% "&SeeAlso;") - - -(define (gentext-nl-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-nl-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-nl-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-nl-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-nl-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-nl-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1nl.ent b/docs/dsssl/docbook/common/dbl1nl.ent deleted file mode 100755 index 15b7c822..00000000 --- a/docs/dsssl/docbook/common/dbl1nl.ent +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1nn.dsl b/docs/dsssl/docbook/common/dbl1nn.dsl deleted file mode 100755 index 1d99b002..00000000 --- a/docs/dsssl/docbook/common/dbl1nn.dsl +++ /dev/null @@ -1,445 +0,0 @@ - -%nn.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (nn-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (nn-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-nn-start-quote% - "%t" - %gentext-nn-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-nn-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (nn-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (nn-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-nn-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (nn-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-nn-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (nn-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-nn-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-nn-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-nn-intra-label-sep) - (list)) - -(define (nn-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-nn-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-nn-intra-label-sep))) - (sep (assoc name (nn-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-nn-label-title-sep) - (list)) - -(define (nn-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-nn-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-nn-label-title-sep))) - (sep (assoc name (nn-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (nn-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (nn-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (nn-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (nn-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-nn$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (nn-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-nn-start-quote% (dingbat "ldquo")) - -(define %gentext-nn-end-quote% (dingbat "rdquo")) - -(define %gentext-nn-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-nn-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-nn-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-nn-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-nn-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-nn-page% "") - -(define %gentext-nn-and% "∧") - -(define %gentext-nn-listcomma% "&listcomma;") - -(define %gentext-nn-lastlistcomma% "&lastlistcomma;") - -(define %gentext-nn-bibl-pages% "&Pgs;") - -(define %gentext-nn-endnotes% "&Notes;") - -(define %gentext-nn-table-endnotes% "&TableNotes;:") - -(define %gentext-nn-index-see% "&See;") - -(define %gentext-nn-index-seealso% "&SeeAlso;") - - -(define (gentext-nn-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-nn-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-nn-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-nn-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-nn-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-nn-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1nn.ent b/docs/dsssl/docbook/common/dbl1nn.ent deleted file mode 100755 index 6a177309..00000000 --- a/docs/dsssl/docbook/common/dbl1nn.ent +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1no.dsl b/docs/dsssl/docbook/common/dbl1no.dsl deleted file mode 100755 index fb0b33c0..00000000 --- a/docs/dsssl/docbook/common/dbl1no.dsl +++ /dev/null @@ -1,437 +0,0 @@ - -%lat1; - -%no.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; Norsk Bokm\U-00E5;l localization. (a-ring) -;; Translated by Stig S. Bakken, ssb@guardian.no -;; Send changes to Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (no-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (no-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "tillegget kalt %t")) - (list (normalize "article") (string-append %gentext-no-start-quote% - "%t" - %gentext-no-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "kapittelet kalt %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "seksjonen kalt %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-no-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (no-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (no-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-no-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (no-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-no-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (no-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-no-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-no-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-no-intra-label-sep) - (list)) - -(define (no-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-no-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-no-intra-label-sep))) - (sep (assoc name (no-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-no-label-title-sep) - (list)) - -(define (no-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-no-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-no-label-title-sep))) - (sep (assoc name (no-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (no-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (no-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (no-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (no-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-no$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (no-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-no-start-quote% (dingbat "ldquo")) - -(define %gentext-no-end-quote% (dingbat "rdquo")) - -(define %gentext-no-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-no-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-no-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-no-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-no-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-no-page% "") - -(define %gentext-no-and% "∧") - -(define %gentext-no-listcomma% "&listcomma;") - -(define %gentext-no-lastlistcomma% "&lastlistcomma;") - -(define %gentext-no-bibl-pages% "&Pgs;") - -(define %gentext-no-endnotes% "&Notes;") - -(define %gentext-no-table-endnotes% "&TableNotes;:") - -(define %gentext-no-index-see% "&See;") - -(define %gentext-no-index-seealso% "&SeeAlso;") - - -(define (gentext-no-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-no-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-no-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-no-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-no-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-no-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1no.ent b/docs/dsssl/docbook/common/dbl1no.ent deleted file mode 100755 index 5a5d4c03..00000000 --- a/docs/dsssl/docbook/common/dbl1no.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1null.dsl b/docs/dsssl/docbook/common/dbl1null.dsl deleted file mode 100755 index d95bbb4a..00000000 --- a/docs/dsssl/docbook/common/dbl1null.dsl +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - -;; No definitions... - - - - diff --git a/docs/dsssl/docbook/common/dbl1pl.dsl b/docs/dsssl/docbook/common/dbl1pl.dsl deleted file mode 100755 index 44682c86..00000000 --- a/docs/dsssl/docbook/common/dbl1pl.dsl +++ /dev/null @@ -1,434 +0,0 @@ - -%pl.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; Polish localization. - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Rafa\263 Kleger-Rudomin, ip011@osi.gda.pl - -(define (pl-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (pl-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "dodatek %t")) - (list (normalize "article") (string-append %gentext-pl-start-quote% - "%t" - %gentext-pl-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "rozdzia³ %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "sekcja %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-pl-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (pl-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (pl-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-pl-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (pl-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-pl-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (pl-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-pl-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-pl-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-pl-intra-label-sep) - (list)) - -(define (pl-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-pl-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-pl-intra-label-sep))) - (sep (assoc name (pl-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-pl-label-title-sep) - (list)) - -(define (pl-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-pl-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-pl-label-title-sep))) - (sep (assoc name (pl-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (pl-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (pl-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (pl-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (pl-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-pl$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (pl-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-pl-start-quote% (dingbat "ldquor")) - -(define %gentext-pl-end-quote% (dingbat "rdquor")) - -(define %gentext-pl-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-pl-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-pl-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-pl-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-pl-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-pl-page% "") - -(define %gentext-pl-and% "∧") - -(define %gentext-pl-listcomma% "&listcomma;") - -(define %gentext-pl-lastlistcomma% "&lastlistcomma;") - -(define %gentext-pl-bibl-pages% "&Pgs;") - -(define %gentext-pl-endnotes% "&Notes;") - -(define %gentext-pl-table-endnotes% "&TableNotes;:") - -(define %gentext-pl-index-see% "&See;") - -(define %gentext-pl-index-seealso% "&SeeAlso;") - - -(define (gentext-pl-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-pl-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-pl-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-pl-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-pl-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-pl-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1pl.ent b/docs/dsssl/docbook/common/dbl1pl.ent deleted file mode 100755 index 01940eac..00000000 --- a/docs/dsssl/docbook/common/dbl1pl.ent +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1pt.dsl b/docs/dsssl/docbook/common/dbl1pt.dsl deleted file mode 100755 index 949eb72a..00000000 --- a/docs/dsssl/docbook/common/dbl1pt.dsl +++ /dev/null @@ -1,433 +0,0 @@ - -%pt.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (pt-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (pt-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "o &appendix; %t")) - (list (normalize "article") (string-append %gentext-pt-start-quote% - "%t" - %gentext-pt-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "o &chapter; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "o §ion; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-pt-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (pt-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (pt-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-pt-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (pt-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-pt-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (pt-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-pt-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-pt-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-pt-intra-label-sep) - (list)) - -(define (pt-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-pt-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-pt-intra-label-sep))) - (sep (assoc name (pt-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-pt-label-title-sep) - (list)) - -(define (pt-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-pt-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-pt-label-title-sep))) - (sep (assoc name (pt-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (pt-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (pt-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (pt-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (pt-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-pt$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (pt-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-pt-start-quote% (dingbat "ldquo")) - -(define %gentext-pt-end-quote% (dingbat "rdquo")) - -(define %gentext-pt-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-pt-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-pt-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-pt-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-pt-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-pt-page% "") - -(define %gentext-pt-and% "∧") - -(define %gentext-pt-listcomma% "&listcomma;") - -(define %gentext-pt-lastlistcomma% "&lastlistcomma;") - -(define %gentext-pt-bibl-pages% "&Pgs;") - -(define %gentext-pt-endnotes% "&Notes;") - -(define %gentext-pt-table-endnotes% "&TableNotes;:") - -(define %gentext-pt-index-see% "&See;") - -(define %gentext-pt-index-seealso% "&SeeAlso;") - - -(define (gentext-pt-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-pt-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-pt-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-pt-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-pt-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-pt-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1pt.ent b/docs/dsssl/docbook/common/dbl1pt.ent deleted file mode 100755 index 671ed9e1..00000000 --- a/docs/dsssl/docbook/common/dbl1pt.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ptbr.dsl b/docs/dsssl/docbook/common/dbl1ptbr.dsl deleted file mode 100755 index 419ee3bc..00000000 --- a/docs/dsssl/docbook/common/dbl1ptbr.dsl +++ /dev/null @@ -1,434 +0,0 @@ - -%ptbr.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (ptbr-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ptbr-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "o &appendix; %t")) - (list (normalize "article") (string-append %gentext-ptbr-start-quote% - "%t" - %gentext-ptbr-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "o &chapter; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "a §ion; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-ptbr-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ptbr-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ptbr-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-ptbr-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ptbr-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "notes") "&Notes;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ptbr-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ptbr-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ptbr-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ptbr-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ptbr-intra-label-sep) - (list)) - -(define (ptbr-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ptbr-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ptbr-intra-label-sep))) - (sep (assoc name (ptbr-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ptbr-label-title-sep) - (list)) - -(define (ptbr-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ptbr-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ptbr-label-title-sep))) - (sep (assoc name (ptbr-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ptbr-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ptbr-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ptbr-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ptbr-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ptbr$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ptbr-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ptbr-start-quote% (dingbat "ldquo")) - -(define %gentext-ptbr-end-quote% (dingbat "rdquo")) - -(define %gentext-ptbr-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ptbr-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ptbr-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ptbr-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ptbr-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ptbr-page% "") - -(define %gentext-ptbr-and% "∧") - -(define %gentext-ptbr-listcomma% "&listcomma;") - -(define %gentext-ptbr-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ptbr-bibl-pages% "&Pgs;") - -(define %gentext-ptbr-endnotes% "&Notes;") - -(define %gentext-ptbr-table-endnotes% "&TableNotes;:") - -(define %gentext-ptbr-index-see% "&See;") - -(define %gentext-ptbr-index-seealso% "&SeeAlso;") - - -(define (gentext-ptbr-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ptbr-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ptbr-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ptbr-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ptbr-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ptbr-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ptbr.ent b/docs/dsssl/docbook/common/dbl1ptbr.ent deleted file mode 100755 index b0cf5443..00000000 --- a/docs/dsssl/docbook/common/dbl1ptbr.ent +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ro.dsl b/docs/dsssl/docbook/common/dbl1ro.dsl deleted file mode 100755 index 162b852e..00000000 --- a/docs/dsssl/docbook/common/dbl1ro.dsl +++ /dev/null @@ -1,434 +0,0 @@ - -%lat1; - -%lat2; - -%ro.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Provided by Dan N. Pomohaci -;; Updated by Claudiu Costin - -(define (ro-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ro-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-ro-start-quote% - "%t" - %gentext-ro-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "§ion; numit\U-0103; %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-ro-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ro-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ro-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-ro-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ro-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ro-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ro-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ro-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ro-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ro-intra-label-sep) - (list)) - -(define (ro-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ro-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ro-intra-label-sep))) - (sep (assoc name (ro-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ro-label-title-sep) - (list)) - -(define (ro-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ro-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ro-label-title-sep))) - (sep (assoc name (ro-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ro-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ro-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ro-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ro-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ro$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ro-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ro-start-quote% (dingbat "ldquo")) - -(define %gentext-ro-end-quote% (dingbat "rdquo")) - -(define %gentext-ro-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ro-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ro-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ro-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ro-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ro-page% "") - -(define %gentext-ro-and% "∧") - -(define %gentext-ro-listcomma% "&listcomma;") - -(define %gentext-ro-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ro-bibl-pages% "&Pgs;") - -(define %gentext-ro-endnotes% "&Notes;") - -(define %gentext-ro-table-endnotes% "&TableNotes;:") - -(define %gentext-ro-index-see% "&See;") - -(define %gentext-ro-index-seealso% "&SeeAlso;") - - -(define (gentext-ro-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ro-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ro-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ro-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ro-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ro-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - diff --git a/docs/dsssl/docbook/common/dbl1ro.ent b/docs/dsssl/docbook/common/dbl1ro.ent deleted file mode 100755 index 7b80900d..00000000 --- a/docs/dsssl/docbook/common/dbl1ro.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ru.dsl b/docs/dsssl/docbook/common/dbl1ru.dsl deleted file mode 100755 index 3ffcaa07..00000000 --- a/docs/dsssl/docbook/common/dbl1ru.dsl +++ /dev/null @@ -1,446 +0,0 @@ - -%cyr1; - -%ru.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; This is revised Russian Localization version by Norman Walsh, modified by -;; Ilia V. Kouznetsov, ilia@syntext.com - -;; Suggestion of I. Kouznetsov: According to my experience of writing -;; documentation, Russian Words for cross references had better be -;; abbreviated (just like it is usually done in Russian documents) -;; because the ends of not abbreviated cross references may vary from -;; place to place due to the cases of Russian language. Due to this reason -;; entities with ".abr" syffix are added. - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (ru-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (ru-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix.abr; %n" - "&Appendix.abr; %t")) - (list (normalize "article") (string-append %gentext-ru-start-quote% - "%t" - %gentext-ru-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter.abr; %n" - "&Chapter.abr; %t")) - (list (normalize "equation") "&Equation.abr; %n") - (list (normalize "example") "&Example.abr; %n") - (list (normalize "figure") "&Figure.abr; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part.abr; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure.abr; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section.abr; %n" - "&Section.abr; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table.abr; %n"))) - -(define (gentext-ru-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (ru-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (ru-auto-xref-indirect-connector before) - (literal " ∈ ")) - -;; Should the TOC come first or last? -;; -(define %generate-ru-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (ru-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-ru-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (ru-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-ru-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-ru-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-ru-intra-label-sep) - (list)) - -(define (ru-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-ru-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ru-intra-label-sep))) - (sep (assoc name (ru-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-ru-label-title-sep) - (list)) - -(define (ru-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-ru-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-ru-label-title-sep))) - (sep (assoc name (ru-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (ru-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (ru-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (ru-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (ru-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-ru$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (ru-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-ru-start-quote% (dingbat "ldquo")) - -(define %gentext-ru-end-quote% (dingbat "rdquo")) - -(define %gentext-ru-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-ru-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-ru-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-ru-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-ru-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-ru-page% "") - -(define %gentext-ru-and% "∧") - -(define %gentext-ru-listcomma% "&listcomma;") - -(define %gentext-ru-lastlistcomma% "&lastlistcomma;") - -(define %gentext-ru-bibl-pages% "&Pgs;") - -(define %gentext-ru-endnotes% "&Notes;") - -(define %gentext-ru-table-endnotes% "&TableNotes;:") - -(define %gentext-ru-index-see% "&See;") - -(define %gentext-ru-index-seealso% "&SeeAlso;") - - -(define (gentext-ru-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-ru-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-ru-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-ru-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-ru-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-ru-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1ru.ent b/docs/dsssl/docbook/common/dbl1ru.ent deleted file mode 100755 index 6eaca52d..00000000 --- a/docs/dsssl/docbook/common/dbl1ru.ent +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sk.dsl b/docs/dsssl/docbook/common/dbl1sk.dsl deleted file mode 100755 index b98d4db5..00000000 --- a/docs/dsssl/docbook/common/dbl1sk.dsl +++ /dev/null @@ -1,442 +0,0 @@ - -%sk.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Contributors: -;; Ralf Schleitzer, ralf.schleitzer@ixos.de - -(define (sk-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (sk-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&appendix; nazvan\U-00E1; %t")) - (list (normalize "article") (string-append %gentext-sk-start-quote% - "%t" - %gentext-sk-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "&chapter; nazvan\U-00E1; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "§ion; nazvan\U-00E1; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-sk-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (sk-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (sk-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-sk-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (sk-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-sk-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (sk-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-sk-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-sk-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-sk-intra-label-sep) - (list)) - -(define (sk-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-sk-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sk-intra-label-sep))) - (sep (assoc name (sk-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-sk-label-title-sep) - (list)) - -(define (sk-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-sk-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sk-label-title-sep))) - (sep (assoc name (sk-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (sk-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (sk-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (sk-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (sk-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-sk$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (sk-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-sk-start-quote% "\U-201E;") - -(define %gentext-sk-end-quote% "\U-201C;") - -(define %gentext-sk-start-nested-quote% "\U-201A;") - -(define %gentext-sk-end-nested-quote% "\U-2018;") - -(define %gentext-sk-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-sk-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-sk-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-sk-page% "") - -(define %gentext-sk-and% "∧") - -(define %gentext-sk-listcomma% "&listcomma;") - -(define %gentext-sk-lastlistcomma% "&lastlistcomma;") - -(define %gentext-sk-bibl-pages% "&Pgs;") - -(define %gentext-sk-endnotes% "&Notes;") - -(define %gentext-sk-table-endnotes% "&TableNotes;:") - -(define %gentext-sk-index-see% "&See;") - -(define %gentext-sk-index-seealso% "&SeeAlso;") - - -(define (gentext-sk-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-sk-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-sk-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-sk-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-sk-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-sk-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sk.ent b/docs/dsssl/docbook/common/dbl1sk.ent deleted file mode 100755 index 211f6d5a..00000000 --- a/docs/dsssl/docbook/common/dbl1sk.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sl.dsl b/docs/dsssl/docbook/common/dbl1sl.dsl deleted file mode 100755 index b3ec3ae8..00000000 --- a/docs/dsssl/docbook/common/dbl1sl.dsl +++ /dev/null @@ -1,446 +0,0 @@ - -%lat2; - -%sl.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (sl-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (sl-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-sl-start-quote% - "%t" - %gentext-sl-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-sl-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (sl-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (sl-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-sl-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (sl-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-sl-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (sl-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-sl-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-sl-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-sl-intra-label-sep) - (list)) - -(define (sl-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-sl-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sl-intra-label-sep))) - (sep (assoc name (sl-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-sl-label-title-sep) - (list)) - -(define (sl-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-sl-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sl-label-title-sep))) - (sep (assoc name (sl-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (sl-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (sl-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (sl-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (sl-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-sl$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (sl-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-sl-start-quote% (dingbat "ldquo")) - -(define %gentext-sl-end-quote% (dingbat "rdquo")) - -(define %gentext-sl-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-sl-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-sl-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-sl-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-sl-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-sl-page% "") - -(define %gentext-sl-and% "∧") - -(define %gentext-sl-listcomma% "&listcomma;") - -(define %gentext-sl-lastlistcomma% "&lastlistcomma;") - -(define %gentext-sl-bibl-pages% "&Pgs;") - -(define %gentext-sl-endnotes% "&Notes;") - -(define %gentext-sl-table-endnotes% "&TableNotes;:") - -(define %gentext-sl-index-see% "&See;") - -(define %gentext-sl-index-seealso% "&SeeAlso;") - - -(define (gentext-sl-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-sl-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-sl-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-sl-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-sl-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-sl-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sl.ent b/docs/dsssl/docbook/common/dbl1sl.ent deleted file mode 100755 index c63bb3ce..00000000 --- a/docs/dsssl/docbook/common/dbl1sl.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sr.dsl b/docs/dsssl/docbook/common/dbl1sr.dsl deleted file mode 100755 index 8e789c86..00000000 --- a/docs/dsssl/docbook/common/dbl1sr.dsl +++ /dev/null @@ -1,446 +0,0 @@ - -%lat2; - -%sr.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (sr-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (sr-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-sr-start-quote% - "%t" - %gentext-sr-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-sr-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (sr-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (sr-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-sr-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (sr-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&ISBN;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-sr-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (sr-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-sr-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-sr-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-sr-intra-label-sep) - (list)) - -(define (sr-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-sr-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sr-intra-label-sep))) - (sep (assoc name (sr-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-sr-label-title-sep) - (list)) - -(define (sr-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-sr-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sr-label-title-sep))) - (sep (assoc name (sr-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (sr-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (sr-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (sr-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (sr-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-sr$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (sr-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-sr-start-quote% (dingbat "ldquo")) - -(define %gentext-sr-end-quote% (dingbat "rdquo")) - -(define %gentext-sr-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-sr-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-sr-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-sr-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-sr-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-sr-page% "") - -(define %gentext-sr-and% "∧") - -(define %gentext-sr-listcomma% "&listcomma;") - -(define %gentext-sr-lastlistcomma% "&lastlistcomma;") - -(define %gentext-sr-bibl-pages% "&Pgs;") - -(define %gentext-sr-endnotes% "&Notes;") - -(define %gentext-sr-table-endnotes% "&TableNotes;:") - -(define %gentext-sr-index-see% "&See;") - -(define %gentext-sr-index-seealso% "&SeeAlso;") - - -(define (gentext-sr-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-sr-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-sr-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-sr-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-sr-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-sr-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sr.ent b/docs/dsssl/docbook/common/dbl1sr.ent deleted file mode 100755 index 804004ee..00000000 --- a/docs/dsssl/docbook/common/dbl1sr.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sv.dsl b/docs/dsssl/docbook/common/dbl1sv.dsl deleted file mode 100755 index e8301370..00000000 --- a/docs/dsssl/docbook/common/dbl1sv.dsl +++ /dev/null @@ -1,448 +0,0 @@ - -%sv.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Marcus Better, marcus@dactylis.se -;; - -(define (sv-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (sv-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "&Appendix; som &called; %t")) - (list (normalize "article") (string-append %gentext-sv-start-quote% - "%t" - %gentext-sv-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "&Chapter; som &called; %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "&Section; som &called; %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-sv-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (sv-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (sv-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " in ")) - ((equal? (gi before) (normalize "chapter")) - (literal " in ")) - ((equal? (gi before) (normalize "sect1")) - (literal " in ")) - (else - (literal " in ")))) - -;; Should the TOC come first or last? -;; -(define %generate-sv-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (sv-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-sv-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (sv-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-sv-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-sv-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-sv-intra-label-sep) - (list)) - -(define (sv-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-sv-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sv-intra-label-sep))) - (sep (assoc name (sv-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-sv-label-title-sep) - (list)) - -(define (sv-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-sv-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-sv-label-title-sep))) - (sep (assoc name (sv-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (sv-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (sv-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (sv-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (sv-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-sv$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (sv-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-sv-start-quote% (dingbat "ldquo")) - -(define %gentext-sv-end-quote% (dingbat "rdquo")) - -(define %gentext-sv-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-sv-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-sv-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-sv-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-sv-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-sv-page% "") - -(define %gentext-sv-and% "∧") - -(define %gentext-sv-listcomma% "&listcomma;") - -(define %gentext-sv-lastlistcomma% "&lastlistcomma;") - -(define %gentext-sv-bibl-pages% "&Pgs;") - -(define %gentext-sv-endnotes% "&Notes;") - -(define %gentext-sv-table-endnotes% "&TableNotes;:") - -(define %gentext-sv-index-see% "&See;") - -(define %gentext-sv-index-seealso% "&SeeAlso;") - - -(define (gentext-sv-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-sv-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-sv-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-sv-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-sv-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-sv-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1sv.ent b/docs/dsssl/docbook/common/dbl1sv.ent deleted file mode 100755 index 10b7ea40..00000000 --- a/docs/dsssl/docbook/common/dbl1sv.ent +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1th.ent b/docs/dsssl/docbook/common/dbl1th.ent deleted file mode 100755 index 2ddaf839..00000000 --- a/docs/dsssl/docbook/common/dbl1th.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1tr.dsl b/docs/dsssl/docbook/common/dbl1tr.dsl deleted file mode 100755 index 6d5d8358..00000000 --- a/docs/dsssl/docbook/common/dbl1tr.dsl +++ /dev/null @@ -1,443 +0,0 @@ - -%tr.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; Modified for Turkish by Baurjan Ismagulov, ibr@gantek.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (tr-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (tr-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-tr-start-quote% - "%t" - %gentext-tr-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-tr-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (tr-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (tr-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-tr-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (tr-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&ISBN;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-tr-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (tr-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-tr-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-tr-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the separator to be inserted -;; between multiple occurrences of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-tr-intra-label-sep) - (list)) - -(define (tr-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-tr-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-tr-intra-label-sep))) - (sep (assoc name (tr-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the separator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-tr-label-title-sep) - (list)) - -(define (tr-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-tr-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (sep (assoc name (tr-label-title-sep)))) - (if sep - (car (cdr sep)) - ""))) - -(define (tr-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (tr-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (tr-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (tr-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-tr$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (tr-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-tr-start-quote% (dingbat "ldquo")) - -(define %gentext-tr-end-quote% (dingbat "rdquo")) - -(define %gentext-tr-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-tr-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-tr-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-tr-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-tr-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-tr-page% "") - -(define %gentext-tr-and% "∧") - -(define %gentext-tr-listcomma% "&listcomma;") - -(define %gentext-tr-lastlistcomma% "&lastlistcomma;") - -(define %gentext-tr-bibl-pages% "&Pgs;") - -(define %gentext-tr-endnotes% "&Notes;") - -(define %gentext-tr-table-endnotes% "&TableNotes;:") - -(define %gentext-tr-index-see% "&See;") - -(define %gentext-tr-index-seealso% "&SeeAlso;") - - -(define (gentext-tr-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-tr-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-tr-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-tr-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-tr-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-tr-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1tr.ent b/docs/dsssl/docbook/common/dbl1tr.ent deleted file mode 100755 index 3d88b650..00000000 --- a/docs/dsssl/docbook/common/dbl1tr.ent +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1uk.dsl b/docs/dsssl/docbook/common/dbl1uk.dsl deleted file mode 100755 index ac2e5eaf..00000000 --- a/docs/dsssl/docbook/common/dbl1uk.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%uk.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (uk-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (uk-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-uk-start-quote% - "%t" - %gentext-uk-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-uk-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (uk-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (uk-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-uk-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (uk-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-uk-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (uk-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-uk-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-uk-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-uk-intra-label-sep) - (list)) - -(define (uk-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-uk-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-uk-intra-label-sep))) - (sep (assoc name (uk-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-uk-label-title-sep) - (list)) - -(define (uk-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-uk-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-uk-label-title-sep))) - (sep (assoc name (uk-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (uk-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (uk-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (uk-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (uk-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-uk$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (uk-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-uk-start-quote% (dingbat "ldquo")) - -(define %gentext-uk-end-quote% (dingbat "rdquo")) - -(define %gentext-uk-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-uk-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-uk-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-uk-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-uk-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-uk-page% "") - -(define %gentext-uk-and% "∧") - -(define %gentext-uk-listcomma% "&listcomma;") - -(define %gentext-uk-lastlistcomma% "&lastlistcomma;") - -(define %gentext-uk-bibl-pages% "&Pgs;") - -(define %gentext-uk-endnotes% "&Notes;") - -(define %gentext-uk-table-endnotes% "&TableNotes;:") - -(define %gentext-uk-index-see% "&See;") - -(define %gentext-uk-index-seealso% "&SeeAlso;") - - -(define (gentext-uk-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-uk-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-uk-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-uk-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-uk-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-uk-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1uk.ent b/docs/dsssl/docbook/common/dbl1uk.ent deleted file mode 100755 index b679a5f2..00000000 --- a/docs/dsssl/docbook/common/dbl1uk.ent +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1xh.dsl b/docs/dsssl/docbook/common/dbl1xh.dsl deleted file mode 100755 index ce31fba8..00000000 --- a/docs/dsssl/docbook/common/dbl1xh.dsl +++ /dev/null @@ -1,444 +0,0 @@ - -%xh.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; - -(define (xh-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (xh-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-xh-start-quote% - "%t" - %gentext-xh-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "&Chapter; %n" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "&Part; %n") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "&Section; %n" - "the §ion; called %t")) - (list (normalize "sidebar") "the &sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-xh-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (xh-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (xh-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-xh-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (xh-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-xh-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (xh-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-xh-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-xh-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-xh-intra-label-sep) - (list)) - -(define (xh-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-xh-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-xh-intra-label-sep))) - (sep (assoc name (xh-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-xh-label-title-sep) - (list)) - -(define (xh-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-xh-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-xh-label-title-sep))) - (sep (assoc name (xh-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (xh-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (xh-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (xh-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (xh-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-xh$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (xh-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-xh-start-quote% (dingbat "ldquo")) - -(define %gentext-xh-end-quote% (dingbat "rdquo")) - -(define %gentext-xh-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-xh-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-xh-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-xh-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-xh-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-xh-page% "") - -(define %gentext-xh-and% "∧") - -(define %gentext-xh-listcomma% "&listcomma;") - -(define %gentext-xh-lastlistcomma% "&lastlistcomma;") - -(define %gentext-xh-bibl-pages% "&Pgs;") - -(define %gentext-xh-endnotes% "&Notes;") - -(define %gentext-xh-table-endnotes% "&TableNotes;:") - -(define %gentext-xh-index-see% "&See;") - -(define %gentext-xh-index-seealso% "&SeeAlso;") - - -(define (gentext-xh-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-xh-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-xh-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-xh-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-xh-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-xh-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1xh.ent b/docs/dsssl/docbook/common/dbl1xh.ent deleted file mode 100755 index 2266adf4..00000000 --- a/docs/dsssl/docbook/common/dbl1xh.ent +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhcn.dsl b/docs/dsssl/docbook/common/dbl1zhcn.dsl deleted file mode 100755 index b7a849fa..00000000 --- a/docs/dsssl/docbook/common/dbl1zhcn.dsl +++ /dev/null @@ -1,447 +0,0 @@ - -%zhcn.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Frederik Fouvry -;; - -(define (zhcn-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (zhcn-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-zhcn-start-quote% - "%t" - %gentext-zhcn-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "µÚ %n &Chapter;" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "µÚ %n &Part;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-zhcn-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (zhcn-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (zhcn-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-zhcn-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (zhcn-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-zhcn-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (zhcn-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-zhcn-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-zhcn-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-zhcn-intra-label-sep) - (list)) - -(define (zhcn-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-zhcn-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-zhcn-intra-label-sep))) - (sep (assoc name (zhcn-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-zhcn-label-title-sep) - (list)) - -(define (zhcn-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-zhcn-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-zhcn-label-title-sep))) - (sep (assoc name (zhcn-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (zhcn-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (zhcn-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (zhcn-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (zhcn-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-zhcn$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (zhcn-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-zhcn-start-quote% (dingbat "ldquo")) - -(define %gentext-zhcn-end-quote% (dingbat "rdquo")) - -(define %gentext-zhcn-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-zhcn-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-zhcn-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-zhcn-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-zhcn-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-zhcn-page% "") - -(define %gentext-zhcn-and% "∧") - -(define %gentext-zhcn-listcomma% "&listcomma;") - -(define %gentext-zhcn-lastlistcomma% "&lastlistcomma;") - -(define %gentext-zhcn-bibl-pages% "&Pgs;") - -(define %gentext-zhcn-endnotes% "&Notes;") - -(define %gentext-zhcn-table-endnotes% "&TableNotes;:") - -(define %gentext-zhcn-index-see% "&See;") - -(define %gentext-zhcn-index-seealso% "&SeeAlso;") - - -(define (gentext-zhcn-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-zhcn-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-zhcn-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-zhcn-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-zhcn-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-zhcn-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhcn.ent b/docs/dsssl/docbook/common/dbl1zhcn.ent deleted file mode 100755 index 3f752b42..00000000 --- a/docs/dsssl/docbook/common/dbl1zhcn.ent +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhhk.dsl b/docs/dsssl/docbook/common/dbl1zhhk.dsl deleted file mode 100755 index 54db6872..00000000 --- a/docs/dsssl/docbook/common/dbl1zhhk.dsl +++ /dev/null @@ -1,435 +0,0 @@ - -%zhhk.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Glace Cheung -;; - -(define (zhhk-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (zhhk-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-zhhk-start-quote% - "%t" - %gentext-zhhk-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "%n &Chapter;" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "%n &Part;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "%n §ion;" - "the §ion; called %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-zhhk-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (zhhk-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (zhhk-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-zhhk-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (zhhk-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&ISBN;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-zhhk-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (zhhk-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-zhhk-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-zhhk-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (zhhk-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ",") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-zhhk-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (sep (assoc name (zhhk-intra-label-sep)))) - (if sep - (car (cdr sep)) - ""))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (zhhk-label-title-sep) - (list - (list (normalize "abstract") ":") - (list (normalize "answer") " ") - (list (normalize "appendix") ".") - (list (normalize "caution") "") - (list (normalize "chapter") ".") - (list (normalize "equation") ".") - (list (normalize "example") ".") - (list (normalize "figure") ".") - (list (normalize "footnote") ".") - (list (normalize "glosssee") ":") - (list (normalize "glossseealso") ":") - (list (normalize "important") ":") - (list (normalize "note") ":") - (list (normalize "orderedlist") ".") - (list (normalize "part") ".") - (list (normalize "procedure") ".") - (list (normalize "prefix") ".") - (list (normalize "question") " ") - (list (normalize "refentry") " ") - (list (normalize "reference") ".") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ".") - (list (normalize "table") ".") - (list (normalize "tip") ":") - (list (normalize "warning") "") - )) - -(define (gentext-zhhk-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (sep (assoc name (zhhk-label-title-sep)))) - (if sep - (car (cdr sep)) - ""))) - -(define (zhhk-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (zhhk-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (zhhk-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (zhhk-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-zhhk$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (zhhk-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-zhhk-start-quote% (dingbat "ldquo")) - -(define %gentext-zhhk-end-quote% (dingbat "rdquo")) - -(define %gentext-zhhk-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-zhhk-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-zhhk-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-zhhk-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-zhhk-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-zhhk-page% "") - -(define %gentext-zhhk-and% "∧") - -(define %gentext-zhhk-listcomma% "&listcomma;") - -(define %gentext-zhhk-lastlistcomma% "&lastlistcomma;") - -(define %gentext-zhhk-bibl-pages% "&Pgs;") - -(define %gentext-zhhk-endnotes% "&Notes;") - -(define %gentext-zhhk-table-endnotes% "&TableNotes;:") - -(define %gentext-zhhk-index-see% "&See;") - -(define %gentext-zhhk-index-seealso% "&SeeAlso;") - - -(define (gentext-zhhk-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-zhhk-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-zhhk-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-zhhk-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-zhhk-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-zhhk-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhhk.ent b/docs/dsssl/docbook/common/dbl1zhhk.ent deleted file mode 100755 index 8dc0846a..00000000 --- a/docs/dsssl/docbook/common/dbl1zhhk.ent +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhtw.dsl b/docs/dsssl/docbook/common/dbl1zhtw.dsl deleted file mode 100755 index 59306640..00000000 --- a/docs/dsssl/docbook/common/dbl1zhtw.dsl +++ /dev/null @@ -1,447 +0,0 @@ - -%zhtw.words; -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ----------------------------- Localization ----------------------------- - -;; If you create a new version of this file, please send it to -;; Norman Walsh, ndw@nwalsh.com - -;; The generated text for cross references to elements. See dblink.dsl -;; for a discussion of how substitution is performed on the %x -;; keywords. -;; -;; Contributors: -;; Frederik Fouvry -;; - -(define (zhtw-author-string #!optional (author (current-node))) - ;; Return a formatted string representation of the contents of: - ;; AUTHOR: - ;; Handles Honorific, FirstName, SurName, and Lineage. - ;; If %author-othername-in-middle% is #t, also OtherName - ;; Handles *only* the first of each. - ;; Format is "Honorific. FirstName [OtherName] SurName, Lineage" - ;; CORPAUTHOR: - ;; returns (data corpauthor) - (let* ((h_nl (select-elements (descendants author) (normalize "honorific"))) - (f_nl (select-elements (descendants author) (normalize "firstname"))) - (o_nl (select-elements (descendants author) (normalize "othername"))) - (s_nl (select-elements (descendants author) (normalize "surname"))) - (l_nl (select-elements (descendants author) (normalize "lineage"))) - (has_h (not (node-list-empty? h_nl))) - (has_f (not (node-list-empty? f_nl))) - (has_o (and %author-othername-in-middle% - (not (node-list-empty? o_nl)))) - (has_s (not (node-list-empty? s_nl))) - (has_l (not (node-list-empty? l_nl)))) - (if (or (equal? (gi author) (normalize "author")) - (equal? (gi author) (normalize "editor")) - (equal? (gi author) (normalize "othercredit"))) - (string-append - (if has_h (string-append (data-of (node-list-first h_nl)) - %honorific-punctuation%) "") - (if has_f (string-append - (if has_h " " "") - (data-of (node-list-first f_nl))) "") - (if has_o (string-append - (if (or has_h has_f) " " "") - (data-of (node-list-first o_nl))) "") - (if has_s (string-append - (if (or has_h has_f has_o) " " "") - (data-of (node-list-first s_nl))) "") - (if has_l (string-append ", " (data-of (node-list-first l_nl))) "")) - (data-of author)))) - -(define (zhtw-xref-strings) - (list (list (normalize "appendix") (if %chapter-autolabel% - "&Appendix; %n" - "the &appendix; called %t")) - (list (normalize "article") (string-append %gentext-zhtw-start-quote% - "%t" - %gentext-zhtw-end-quote%)) - (list (normalize "bibliography") "%t") - (list (normalize "book") "%t") - (list (normalize "chapter") (if %chapter-autolabel% - "µÚ %n &Chapter;" - "the &chapter; called %t")) - (list (normalize "equation") "&Equation; %n") - (list (normalize "example") "&Example; %n") - (list (normalize "figure") "&Figure; %n") - (list (normalize "glossary") "%t") - (list (normalize "index") "%t") - (list (normalize "listitem") "%n") - (list (normalize "part") "µÚ %n &Part;") - (list (normalize "preface") "%t") - (list (normalize "procedure") "&Procedure; %n, %t") - (list (normalize "reference") "&Reference; %n, %t") - (list (normalize "section") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect1") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect2") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect3") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect4") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sect5") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "simplesect") (if %section-autolabel% - "µÚ %n §ion;" - "the §ion; called %t")) - (list (normalize "sidebar") "&sidebar; %t") - (list (normalize "step") "&step; %n") - (list (normalize "table") "&Table; %n"))) - -(define (gentext-zhtw-xref-strings gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (xref (assoc name (zhtw-xref-strings)))) - (if xref - (car (cdr xref)) - (let* ((msg (string-append "[&xrefto; " - (if giname giname "&nonexistantelement;") - " &unsupported;]")) - (err (node-list-error msg (current-node)))) - msg)))) - -(define (zhtw-auto-xref-indirect-connector before) - ;; In English, the (cond) is unnecessary since the word is always the - ;; same, but in other languages, that's not the case. I've set this - ;; one up with the (cond) so it stands as an example. - (cond - ((equal? (gi before) (normalize "book")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "chapter")) - (literal " ∈ ")) - ((equal? (gi before) (normalize "sect1")) - (literal " ∈ ")) - (else - (literal " ∈ ")))) - -;; Should the TOC come first or last? -;; -(define %generate-zhtw-toc-in-front% #t) - -;; gentext-element-name returns the generated text that should be -;; used to make reference to the selected element. -;; - -(define (zhtw-element-name) - (list - (list (normalize "abstract") "&Abstract;") - (list (normalize "answer") "&Answer;") - (list (normalize "appendix") "&Appendix;") - (list (normalize "article") "&Article;") - (list (normalize "bibliography") "&Bibliography;") - (list (normalize "book") "&Book;") - (list (normalize "calloutlist") "") - (list (normalize "caution") "&Caution;") - (list (normalize "chapter") "&Chapter;") - (list (normalize "copyright") "&Copyright;") - (list (normalize "dedication") "&Dedication;") - (list (normalize "edition") "&Edition;") - (list (normalize "equation") "&Equation;") - (list (normalize "example") "&Example;") - (list (normalize "figure") "&Figure;") - (list (normalize "glossary") "&Glossary;") - (list (normalize "glosssee") "&GlossSee;") - (list (normalize "glossseealso") "&GlossSeeAlso;") - (list (normalize "important") "&Important;") - (list (normalize "index") "&Index;") - (list (normalize "colophon") "&Colophon;") - (list (normalize "setindex") "&SetIndex;") - (list (normalize "isbn") "&isbn;") - (list (normalize "legalnotice") "&LegalNotice;") - (list (normalize "msgaud") "&MsgAud;") - (list (normalize "msglevel") "&MsgLevel;") - (list (normalize "msgorig") "&MsgOrig;") - (list (normalize "note") "&Note;") - (list (normalize "part") "&Part;") - (list (normalize "preface") "&Preface;") - (list (normalize "procedure") "&Procedure;") - (list (normalize "pubdate") "&Published;") - (list (normalize "question") "&Question;") - (list (normalize "refentry") "&RefEntry;") - (list (normalize "reference") "&Reference;") - (list (normalize "refname") "&RefName;") - (list (normalize "revhistory") "&RevHistory;") - (list (normalize "refsect1") "&RefSection;") - (list (normalize "refsect2") "&RefSection;") - (list (normalize "refsect3") "&RefSection;") - (list (normalize "refsynopsisdiv") "&RefSynopsisDiv;") - (list (normalize "revision") "&Revision;") - (list (normalize "sect1") "&Section;") - (list (normalize "sect2") "&Section;") - (list (normalize "sect3") "&Section;") - (list (normalize "sect4") "&Section;") - (list (normalize "sect5") "&Section;") - (list (normalize "section") "&Section;") - (list (normalize "simplesect") "&Section;") - (list (normalize "seeie") "&See;") - (list (normalize "seealsoie") "&Seealso;") - (list (normalize "set") "&Set;") - (list (normalize "sidebar") "&Sidebar;") - (list (normalize "step") "&step;") - (list (normalize "table") "&Table;") - (list (normalize "tip") "&Tip;") - (list (normalize "toc") "&TableofContents;") - (list (normalize "warning") "&Warning;") - )) - -(define (gentext-zhtw-element-name gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (pname (assoc name (zhtw-element-name)))) - (if pname - (car (cdr pname)) - (let* ((msg (string-append - "gentext-zhtw-element-name: &unexpectedelementname;: " - name)) - (err (node-list-error msg (current-node)))) - msg)))) - -;; gentext-element-name-space returns gentext-element-name with a -;; trailing space, if gentext-element-name isn't "". -;; -(define (gentext-zhtw-element-name-space giname) - (string-with-space (gentext-element-name giname))) - -;; gentext-intra-label-sep returns the seperator to be inserted -;; between multiple occurances of a label (or parts of a label) -;; for the specified element. Most of these are for enumerated -;; labels like "Figure 2-4", but this function is used elsewhere -;; (e.g. REFNAME) with a little abuse. -;; - -(define (local-zhtw-intra-label-sep) - (list)) - -(define (zhtw-intra-label-sep) - (list - (list (normalize "equation") "-") - (list (normalize "informalequation") "-") - (list (normalize "example") "-") - (list (normalize "figure") "-") - (list (normalize "listitem") ".") - (list (normalize "procedure") ".") - (list (normalize "refentry") ".") - (list (normalize "reference") ".") - (list (normalize "refname") ", ") - (list (normalize "refsect1") ".") - (list (normalize "refsect2") ".") - (list (normalize "refsect3") ".") - (list (normalize "sect1") ".") - (list (normalize "sect2") ".") - (list (normalize "sect3") ".") - (list (normalize "sect4") ".") - (list (normalize "sect5") ".") - (list (normalize "section") ".") - (list (normalize "simplesect") ".") - (list (normalize "step") ".") - (list (normalize "table") "-") - (list (normalize "_pagenumber") "-") - )) - -(define (gentext-zhtw-intra-label-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-zhtw-intra-label-sep))) - (sep (assoc name (zhtw-intra-label-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -;; gentext-label-title-sep returns the seperator to be inserted -;; between a label and the text following the label for the -;; specified element. Most of these are for use between -;; enumerated labels and titles like "1. Chapter One Title", but -;; this function is used elsewhere (e.g. NOTE) with a little -;; abuse. -;; - -(define (local-zhtw-label-title-sep) - (list)) - -(define (zhtw-label-title-sep) - (list - (list (normalize "abstract") ": ") - (list (normalize "answer") " ") - (list (normalize "appendix") ". ") - (list (normalize "caution") "") - (list (normalize "chapter") ". ") - (list (normalize "equation") ". ") - (list (normalize "example") ". ") - (list (normalize "figure") ". ") - (list (normalize "footnote") ". ") - (list (normalize "glosssee") ": ") - (list (normalize "glossseealso") ": ") - (list (normalize "important") ": ") - (list (normalize "note") ": ") - (list (normalize "orderedlist") ". ") - (list (normalize "part") ". ") - (list (normalize "procedure") ". ") - (list (normalize "prefix") ". ") - (list (normalize "question") " ") - (list (normalize "refentry") "") - (list (normalize "reference") ". ") - (list (normalize "refsect1") ". ") - (list (normalize "refsect2") ". ") - (list (normalize "refsect3") ". ") - (list (normalize "sect1") ". ") - (list (normalize "sect2") ". ") - (list (normalize "sect3") ". ") - (list (normalize "sect4") ". ") - (list (normalize "sect5") ". ") - (list (normalize "section") ". ") - (list (normalize "simplesect") ". ") - (list (normalize "seeie") " ") - (list (normalize "seealsoie") " ") - (list (normalize "step") ". ") - (list (normalize "table") ". ") - (list (normalize "tip") ": ") - (list (normalize "warning") "") - )) - -(define (gentext-zhtw-label-title-sep gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (lsep (assoc name (local-zhtw-label-title-sep))) - (sep (assoc name (zhtw-label-title-sep)))) - (if lsep - (car (cdr lsep)) - (if sep - (car (cdr sep)) - "")))) - -(define (zhtw-label-number-format-list) - (list - (list (normalize "set") "1") - (list (normalize "book") "1") - (list (normalize "prefix") "1") - (list (normalize "part") "I") - (list (normalize "chapter") "1") - (list (normalize "appendix") "A") - (list (normalize "reference") "I") - (list (normalize "example") "1") - (list (normalize "figure") "1") - (list (normalize "table") "1") - (list (normalize "procedure") "1") - (list (normalize "step") "1") - (list (normalize "refsect1") "1") - (list (normalize "refsect2") "1") - (list (normalize "refsect3") "1") - (list (normalize "sect1") "1") - (list (normalize "sect2") "1") - (list (normalize "sect3") "1") - (list (normalize "sect4") "1") - (list (normalize "sect5") "1") - (list (normalize "section") "1") - )) - -(define (zhtw-label-number-format gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (format (assoc name (zhtw-label-number-format-list)))) - (if format - (car (cdr format)) - "1"))) - -(define (zhtw-lot-title) - (list - (list (normalize "table") "&ListofTables;") - (list (normalize "example") "&ListofExamples;") - (list (normalize "figure") "&ListofFigures;") - (list (normalize "equation") "&ListofEquations;") - )) - -(define ($lot-title-zhtw$ gind) - (let* ((giname (if (string? gind) gind (gi gind))) - (name (normalize giname)) - (title (assoc name (zhtw-lot-title)))) - (if title - (car (cdr title)) - (let* ((msg (string-append "&ListofUnknown;: " name)) - (err (node-list-error msg (current-node)))) - msg)))) - -(define %gentext-zhtw-start-quote% (dingbat "ldquo")) - -(define %gentext-zhtw-end-quote% (dingbat "rdquo")) - -(define %gentext-zhtw-start-nested-quote% (dingbat "lsquo")) - -(define %gentext-zhtw-end-nested-quote% (dingbat "rsquo")) - -(define %gentext-zhtw-by% "&by;") ;; e.g. Copyright 1997 "by" A. Nonymous - ;; Authored "by" Jane Doe - -(define %gentext-zhtw-edited-by% "&Editedby;") - ;; "Edited by" Jane Doe - -(define %gentext-zhtw-revised-by% "&Revisedby;") - ;; "Revised by" Jane Doe - -(define %gentext-zhtw-page% "") - -(define %gentext-zhtw-and% "∧") - -(define %gentext-zhtw-listcomma% "&listcomma;") - -(define %gentext-zhtw-lastlistcomma% "&lastlistcomma;") - -(define %gentext-zhtw-bibl-pages% "&Pgs;") - -(define %gentext-zhtw-endnotes% "&Notes;") - -(define %gentext-zhtw-table-endnotes% "&TableNotes;:") - -(define %gentext-zhtw-index-see% "&See;") - -(define %gentext-zhtw-index-seealso% "&SeeAlso;") - - -(define (gentext-zhtw-nav-prev prev) - (make sequence (literal "&nav-prev;"))) - -(define (gentext-zhtw-nav-prev-sibling prevsib) - (make sequence (literal "&nav-prev-sibling;"))) - -(define (gentext-zhtw-nav-next-sibling nextsib) - (make sequence (literal "&nav-next-sibling;"))) - -(define (gentext-zhtw-nav-next next) - (make sequence (literal "&nav-next;"))) - -(define (gentext-zhtw-nav-up up) - (make sequence (literal "&nav-up;"))) - -(define (gentext-zhtw-nav-home home) - (make sequence (literal "&nav-home;"))) - - - - - diff --git a/docs/dsssl/docbook/common/dbl1zhtw.ent b/docs/dsssl/docbook/common/dbl1zhtw.ent deleted file mode 100755 index 0923241a..00000000 --- a/docs/dsssl/docbook/common/dbl1zhtw.ent +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/common/dbtable.dsl b/docs/dsssl/docbook/common/dbtable.dsl deleted file mode 100755 index 7b8050ad..00000000 --- a/docs/dsssl/docbook/common/dbtable.dsl +++ /dev/null @@ -1,244 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; -;; This file contains table functions common to both print and HTML -;; versions of the DocBook stylesheets. -;; - -;; If **ANY** change is made to this file, you _MUST_ alter the -;; following definition: - -(define %docbook-common-table-version% - "Modular DocBook Stylesheet Common Table Functions") - -;; == Table Support ===================================================== - -;; ---------------------------------------------------------------------- -;; Functions for finding/retrieving table attributes - -(define (tgroup-align tgroup) - (attribute-string (normalize "align") tgroup)) - -(define (tgroup-colsep tgroup) - (attribute-string (normalize "colsep") tgroup)) - -(define (tgroup-rowsep tgroup) - (attribute-string (normalize "rowsep") tgroup)) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(define (find-tgroup #!optional (nd (current-node))) - ;; for our purposes, an entrytbl functions as a tgroup. - ;; ENTRYTBL IS ONLY SUPPORTED IN THE HTML BACKEND!!! - (if (or (equal? (gi nd) (normalize "tgroup")) - (equal? (gi nd) (normalize "entrytbl"))) - nd - (if (node-list-empty? (ancestor (normalize "entrytbl") nd)) - (ancestor (normalize "tgroup") nd) - (ancestor (normalize "entrytbl") nd)))) - -(define (find-colspec colname) - (let* ((tgroup (find-tgroup)) - (colspecs (select-elements (descendants tgroup) - (normalize "colspec")))) - (let loop ((nl colspecs)) - (if (node-list-empty? nl) - ;; we've run out of places to look, stop looking... - (error (string-append "Could not find COLSPEC named " colname)) - (if (equal? colname - (attribute-string (normalize "colname") - (node-list-first nl))) - (node-list-first nl) - (loop (node-list-rest nl))))))) - -(define (find-colspec-by-number colnum) - (let* ((tgroup (find-tgroup)) - (colspecs (select-elements (children tgroup) (normalize "colspec")))) - (let loop ((nl colspecs)) - (if (node-list-empty? nl) - ;; we've run out of places to look, stop looking... - (empty-node-list) - (if (equal? (colspec-colnum (node-list-first nl)) colnum) - (node-list-first nl) - (loop (node-list-rest nl))))))) - -(define (colspec-align colspec) - (attribute-string (normalize "align") colspec)) - -(define (colspec-char colspec) - (attribute-string (normalize "char") colspec)) - -(define (colspec-charoff colspec) - (let ((charoff (attribute-string (normalize "charoff") colspec))) - (if charoff - (string->number charoff) - #f))) - -(define (colspec-colnum colspec) - ;; returns the column number of the associated colspec...which is - ;; either the value of COLNUM or obtained by counting - (let* ((tgroup (find-tgroup colspec)) - (colspecs (select-elements (children tgroup) (normalize "colspec")))) - (if (attribute-string (normalize "colnum") colspec) - (string->number (attribute-string (normalize "colnum") colspec)) - (let loop ((nl colspecs) (curcol 1)) - (let ((colnum (attribute-string (normalize "colnum") (node-list-first nl)))) - (if (node-list=? (node-list-first nl) colspec) - curcol - (if colnum - (loop (node-list-rest nl) (+ (string->number colnum) 1)) - (loop (node-list-rest nl) (+ curcol 1))))))))) - -(define (colspec-colname colspec) - (attribute-string (normalize "colname") colspec)) - -(define (colspec-colsep colspec) - (attribute-string (normalize "colsep") colspec)) - -(define (colspec-colwidth colspec) - (if (attribute-string (normalize "colwidth") colspec) - (attribute-string (normalize "colwidth") colspec) - "1*")) - -(define (colspec-rowsep colspec) - (attribute-string (normalize "rowsep") colspec)) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(define (find-spanspec spanname) - (let* ((tgroup (find-tgroup)) - (spanspecs (select-elements (descendants tgroup) - (normalize (normalize "spanspec"))))) - (let loop ((nl spanspecs)) - (if (node-list-empty? nl) - (error (string-append "Could not find SPANSPEC named " spanname)) - (if (equal? spanname - (attribute-string (normalize "spanname") - (node-list-first nl))) - (node-list-first nl) - (loop (node-list-rest nl))))))) - -(define (spanspec-align spanspec) - (attribute-string (normalize "align") spanspec)) - -(define (spanspec-char spanspec) - (attribute-string (normalize "char") spanspec)) - -(define (spanspec-charoff spanspec) - (let ((charoff (attribute-string (normalize "charoff") spanspec))) - (if charoff - (string->number charoff) - #f))) - -(define (spanspec-colsep spanspec) - (attribute-string (normalize "colsep") spanspec)) - -(define (spanspec-nameend spanspec) - (attribute-string (normalize "nameend") spanspec)) - -(define (spanspec-namest spanspec) - (attribute-string (normalize "namest") spanspec)) - -(define (spanspec-rowsep spanspec) - (attribute-string (normalize "rowsep") spanspec)) - -(define (spanspec-spanname spanspec) - (attribute-string (normalize "spanname") spanspec)) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;; Calculate spans - -(define (hspan entry) - ;; Returns the horizontal span of an entry - (let* ((spanname (attribute-string (normalize "spanname") entry)) - (namest (if spanname - (spanspec-namest (find-spanspec spanname)) - (attribute-string (normalize "namest") entry))) - (nameend (if spanname - (spanspec-nameend (find-spanspec spanname)) - (attribute-string (normalize "nameend") entry))) - (colst (if namest - (colspec-colnum (find-colspec namest)) - #f)) - (colend (if nameend - (colspec-colnum (find-colspec nameend)) - #f))) - (if (and namest nameend) - (+ (- colend colst) 1) - 1))) - -(define (vspan entry) - ;; Returns the vertical span of an entry. Note that this is one more - ;; than the specified MOREROWS attribute. - (let* ((morerows (attribute-string (normalize "morerows") entry))) - (if morerows - (+ (string->number morerows) 1) - 1))) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;; Update the "overhang" list - -(define (adjust-overhang overhang oldoverhang entry) - (let* ((colst (cell-column-number entry oldoverhang)) - (span (hspan entry))) - (if (> (vspan entry) 1) - (list-put overhang colst (- (vspan entry) 1) span) - overhang))) - -(define (overhang-skip overhang startcol) - (if (> startcol (length overhang)) - ;; this is a _broken_ table. should I output a debug message!? - startcol - (let loop ((overtail (list-tail overhang (- startcol 1))) (col startcol)) - (if (null? overtail) - col - (if (equal? (car overtail) 0) - col - (loop (cdr overtail) (+ col 1))))))) - -(define (update-overhang row oldoverhang) - (let loop ((overhang (decrement-list-members oldoverhang)) - (entries (node-list-filter-out-pis (children row)))) - (if (node-list-empty? entries) - overhang - (loop (adjust-overhang overhang oldoverhang - (node-list-first entries)) - (node-list-rest entries))))) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;; Calculate information about cells - -(define (cell-prev-cell entry) - ;; Return the cell which precedes entry in the current row. - (let loop ((nd (ipreced entry))) - (if (node-list-empty? nd) - nd - (if (equal? (node-property 'class-name nd) 'element) - nd - (loop (ipreced nd)))))) - -(define (cell-column-number entry overhang) - (let* ((entry (ancestor-member entry (list (normalize "entry") (normalize "entrytbl")))) - (row (ancestor (normalize "row") entry)) - (preventry (cell-prev-cell entry)) - (prevspan (if (node-list-empty? preventry) 1 (hspan preventry))) - (colname (attribute-string (normalize "colname") entry)) - (namest (attribute-string (normalize "namest") entry)) - (nameend (attribute-string (normalize "nameend") entry)) - (spanname (attribute-string (normalize "spanname") entry))) - (if colname - (colspec-colnum (find-colspec colname)) - (if spanname - (colspec-colnum (find-colspec - (spanspec-namest (find-spanspec spanname)))) - (if namest - (colspec-colnum (find-colspec namest)) - (if (node-list-empty? preventry) - (overhang-skip overhang 1) - (overhang-skip overhang - (+ (cell-column-number preventry overhang) - prevspan)))))))) - -;; ====================================================================== diff --git a/docs/dsssl/docbook/html/ChangeLog b/docs/dsssl/docbook/html/ChangeLog deleted file mode 100755 index a77e7b19..00000000 --- a/docs/dsssl/docbook/html/ChangeLog +++ /dev/null @@ -1,183 +0,0 @@ -2002-06-09 Norman Walsh - - * dbbibl.dsl, dbttlpg.dsl: Fix bug #502337: remove 'by' from copyright statements - -2002-05-21 Norman Walsh - - * dbttlpg.dsl: Make sure email addresses in info elements are links - -2002-05-12 Norman Walsh - - * dbttlpg.dsl: Bug #494693: bad formalpara formatting on title pages - - * dbverb.dsl: Bugs #429663 and #474328 fixed (allow external linespecific content to be indented and numbered). Eight bit or unicode external linespecific content may be problematic though. - -2002-05-09 Norman Walsh - - * dbgraph.dsl: Bug #448732: make image-library work with imagedata - - * dblink.dsl: Allow xref to refnamediv - -2002-05-06 Norman Walsh - - * dbbibl.dsl: Fix broken style attribute on biblioentries - -2002-04-29 Norman Walsh - - * dbefsyn.dsl: Format synopsis elements correctly outside of classsynopsis - -2002-04-21 Norman Walsh - - * db31.dsl, dbadmon.dsl, dbblock.dsl, dbcompon.dsl, dbdivis.dsl, dbgloss.dsl, dbindex.dsl, dblists.dsl, dbrfntry.dsl, dbsect.dsl, dbtable.dsl, dbttlpg.dsl: - Make sure named anchors are closed - -2002-03-24 Adam Di Carlo - - * Makefile: add a clean rule here - -2002-03-21 Norman Walsh - - * dbfootn.dsl: Fix footnote bugs (Adam, please double-check) - -2002-03-20 Norman Walsh - - * dbefsyn.dsl: Support freestanding {method,field,constructor,destructor}synopsis - -2002-03-16 Adam Di Carlo - - * dbfootn.dsl: footnotes go in a CSS class "footnote"; reduce code, additional modularity -- to change footnote rendering, - you just have to provide a different "$footnote-literal$" procedure - -2002-02-22 Norman Walsh - - * dblink.dsl: Add element-page-number-sosofo back in; always produce "???" - -2002-02-20 Norman Walsh - - * dblink.dsl: Remove bogus page-number rules - -2002-01-03 Norman Walsh - - * dbindex.dsl: Wrap DIVs around index lists - -2001-12-06 Norman Walsh - - * db31.dsl, dbadmon.dsl, dbblock.dsl, dbcompon.dsl, dbdivis.dsl, dbgloss.dsl, dbindex.dsl, dblists.dsl, dbrfntry.dsl, dbsect.dsl, dbttlpg.dsl: - Make anchors empty so that they don't imply style for the things they wrap - -2001-12-01 Norman Walsh - - * docbook.dsl: Bug #462406 legalnotice-link breaks HTML manifest - -2001-11-30 Norman Walsh - - * dbsect.dsl: Patch #473116: Section levels - -2001-11-18 Norman Walsh - - * dbparam.dsl: Bug #482355: use legalnotice id when use-id-as-filename is true - -2001-11-14 Norman Walsh - - * docbook.dsl: Added Basque, Nynorsk, Ukranian, and Xhosa - -2001-11-03 Norman Walsh - - * dbinline.dsl: Support pubwork=article on citetitle - -2001-10-13 Jirka Kosek - - * dbinline.dsl: Fixed bug #470840 - added support for methodname. - -2001-10-01 Norman Walsh - - * dbverb.dsl: Support linenumbering attribute on verbatim environments - -2001-09-29 Norman Walsh - - * dbcallou.dsl: Bug #449494: make callouts work even if they appear on the last line of a verbatim environment - -2001-09-23 Norman Walsh - - * db31.dsl: ImageData should use the image function from dbgraph.dsl - - * dbgraph.dsl: Patch #421990: support width and depth attributes on graphics - - * dbverb.dsl: Patch #461901, make %fix-para-wrappers% affect verbatim - -2001-09-18 Nik Clayton - - * dbcompon.dsl, dbparam.dsl: Add $generate-article-lot-list$, initially empty, which controls what - whether or not a list of titles is generated for articles. - - Currently HTML only. - -2001-08-30 Norman Walsh - - * db31.dsl: Fix XML/SGML discrepancy wrt normalization of notation names; move some common stuff into dbcommon - -2001-08-25 Norman Walsh - - * dbinline.dsl: Fix erroneous literals - - * dbsect.dsl: Bug #451005: no id anchor for bridgehead - -2001-08-06 Norman Walsh - - * dbinline.dsl, dbparam.dsl: Support 'bold' and 'strong' roles on emphasis in the expected way, added %{emphasis,phrase}-propagates-style% parameters - -2001-07-05 Norman Walsh - - * dbautoc.dsl, dbhtml.dsl: Patch #420730, use dingbat-sosofo instead of literal to create emdash - - * dbnavig.dsl: Patch #418401, add accesskey attributes to HTML navigation - - * dbparam.dsl: Patch #420012, Add colon to content-title-end-punct - -2001-07-04 - - * docbook.dsl: Added Afrikaans and Turkish - -2001-05-11 Norman Walsh - - * docbook.dsl: Support Serbian and Traditional Chinese - -2001-05-04 Norman Walsh - - * dbprocdr.dsl: Support links to procedures and steps - -2001-05-03 Jirka Kosek - - * dbinline.dsl: Attributes marked up by are now in monospace (same as in XSL and print DSSSL). - -2001-04-21 Norman Walsh - - * dbblock.dsl: Output anchors for formalparas with IDs - - * dbinline.dsl: Bug #417697: workaround Netscape limitation with trade named entity. - -2001-04-20 Norman Walsh - - * dbbibl.dsl: Make sure anchors are produced for bibliomixed elements - -2001-04-18 Norman Walsh - - * dbinline.dsl, dbparam.dsl: Bug #413982, easy support for man page CGI links on citerefentry - -2001-04-16 Norman Walsh - - * dbnavig.dsl: Added summary attribute to navigation tables - -2001-04-04 Norman Walsh - - * Makefile: New file. - -2001-04-03 Norman Walsh - - * db31.dsl: Fix bug 412548, allow WMF in media objects - -2001-04-02 Norman Walsh - - * .cvsignore, catalog, db31.dsl, dbadmon.dsl, dbautoc.dsl, dbbibl.dsl, dbblock.dsl, dbcallou.dsl, dbchunk.dsl, dbcompon.dsl, dbdivis.dsl, dbefsyn.dsl, dbfootn.dsl, dbgloss.dsl, dbgraph.dsl, dbhtml.dsl, dbindex.dsl, dbinfo.dsl, dbinline.dsl, dblink.dsl, dblists.dsl, dblot.dsl, dbmath.dsl, dbmsgset.dsl, dbnavig.dsl, dbparam.dsl, dbpi.dsl, dbprocdr.dsl, dbrfntry.dsl, dbsect.dsl, dbsynop.dsl, dbtable.dsl, dbtitle.dsl, dbttlpg.dsl, dbverb.dsl, docbook.dsl, version.dsl: - New file. - diff --git a/docs/dsssl/docbook/html/XREF b/docs/dsssl/docbook/html/XREF deleted file mode 100755 index 5dd16207..00000000 --- a/docs/dsssl/docbook/html/XREF +++ /dev/null @@ -1,7931 +0,0 @@ -Symbol Defined In Used In -================== ============================= ============================= -$admon-graphic$ html/dbparam.dsl html/dbadmon.dsl - -$admon-graphic-width$ - html/dbparam.dsl html/dbadmon.dsl - -$admonition$ html/dbadmon.dsl html/dbadmon.dsl - -$admonpara$ html/dbadmon.dsl html/dbadmon.dsl - -$block-container$ html/dbhtml.dsl html/dbrfntry.dsl - html/dbbibl.dsl - html/dbblock.dsl - html/dbmsgset.dsl - -$bold-italic-seq$ html/dbhtml.dsl - -$bold-mono-seq$ html/dbhtml.dsl html/dbinline.dsl - -$bold-seq$ html/dbhtml.dsl html/dbinline.dsl - -$book-revhistory$ html/dbbibl.dsl html/dbbibl.dsl - html/dbblock.dsl - html/dbinfo.dsl - -$callout-area-format$ - html/dbcallou.dsl html/dbcallou.dsl - -$callout-area-match$ - html/dbcallou.dsl html/dbcallou.dsl - -$callout-bug$ html/dbcallou.dsl html/dbcallou.dsl - -$callout-mark$ html/dbcallou.dsl html/dblists.dsl - html/dbcallou.dsl - html/dblink.dsl - -$callout-verbatim-content$ - html/dbcallou.dsl html/dbcallou.dsl - -$callout-verbatim-display$ - html/dbcallou.dsl html/dbcallou.dsl - -$chapter-toc$ html/dbcompon.dsl html/dbcompon.dsl - -$charseq$ html/dbhtml.dsl html/dbrfntry.dsl - html/dbbibl.dsl - html/dbblock.dsl - html/dbinline.dsl - -$chunk-footnote-number$ - html/dbfootn.dsl html/dbfootn.dsl - -$component$ html/dbcompon.dsl html/db31.dsl - html/dbcompon.dsl - -$component-body$ html/dbcompon.dsl html/dbcompon.dsl - -$component-separator$ - html/dbcompon.dsl html/dbindex.dsl - html/dbbibl.dsl - html/dbcompon.dsl - -$component-title$ html/dbcompon.dsl html/dbindex.dsl - html/dbbibl.dsl - html/dbcompon.dsl - html/dbgloss.dsl - -$footnote-literal$ html/dbfootn.dsl html/dbfootn.dsl - -$footnote-number$ html/dbfootn.dsl html/dbfootn.dsl - -$formal-object$ html/dbblock.dsl html/dbblock.dsl - html/dbmath.dsl - -$format-indent$ html/dbverb.dsl html/dbverb.dsl - -$format-linenumber$ - html/dbverb.dsl html/dbverb.dsl - -$generate-article-lot-list$ - html/dbparam.dsl html/dbcompon.dsl - -$generate-book-lot-list$ - html/dbparam.dsl html/dbdivis.dsl - -$generate-chapter-toc$ - html/dbparam.dsl html/dbcompon.dsl - -$generate-citerefentry-link$ - html/dbinline.dsl html/dbinline.dsl - -$generate-qandaset-toc$ - html/dbparam.dsl html/db31.dsl - -$genhead-para$ html/dbmsgset.dsl html/dbmsgset.dsl - -$glossary-body$ html/dbgloss.dsl html/dbgloss.dsl - -$glossary-frontmatter$ - html/dbgloss.dsl html/dbgloss.dsl - -$glossary-glossentrys$ - html/dbgloss.dsl html/dbgloss.dsl - -$graphic$ html/dbgraph.dsl html/dbgraph.dsl - -$graphical-admonition$ - html/dbadmon.dsl html/dbadmon.dsl - -$html-body-content-end$ - html/dbhtml.dsl html/dbnavig.dsl - -$html-body-content-start$ - html/dbhtml.dsl html/dbnavig.dsl - -$html-body-end$ html/dbhtml.dsl html/dbnavig.dsl - -$html-body-start$ html/dbhtml.dsl html/dbnavig.dsl - -$img$ html/dbgraph.dsl html/db31.dsl - html/dbgraph.dsl - html/dbmath.dsl - -$indent-para-container$ - html/dbhtml.dsl html/dbmsgset.dsl - -$informal-object$ html/dbblock.dsl html/dbsynop.dsl - html/dbblock.dsl - html/db31.dsl - html/dbmath.dsl - -$inline-object$ html/dbblock.dsl html/dbmath.dsl - -$inpre$ html/dbverb.dsl html/dbverb.dsl - -$italic-mono-seq$ html/dbhtml.dsl html/dbinline.dsl - -$italic-seq$ html/dbhtml.dsl html/dbinline.dsl - html/dbgloss.dsl - html/dblink.dsl - -$lang$ common/dbl10n.dsl common/dbl10n.dsl - -$legalnotice-link-file$ - html/dbparam.dsl html/dbttlpg.dsl - -$line-start$ html/dbverb.dsl html/dbverb.dsl - html/dbcallou.dsl - -$linenumber-space$ html/dbparam.dsl html/dbverb.dsl - -$linespecific-display$ - html/dbverb.dsl html/dbbibl.dsl - html/dbttlpg.dsl - html/dbverb.dsl - -$look-for-callout$ html/dbcallou.dsl html/dbcallou.dsl - -$lot-title$ common/dbl10n.dsl html/dbautoc.dsl - common/dbl10n.dsl - -$lot-title-af$ common/dbl1af.dsl common/dbl10n.dsl - -$lot-title-ca$ common/dbl1ca.dsl common/dbl10n.dsl - -$lot-title-cs$ common/dbl1cs.dsl common/dbl10n.dsl - -$lot-title-da$ common/dbl1da.dsl common/dbl10n.dsl - -$lot-title-de$ common/dbl1de.dsl common/dbl10n.dsl - -$lot-title-el$ common/dbl1el.dsl common/dbl10n.dsl - -$lot-title-en$ common/dbl1en.dsl common/dbl10n.dsl - -$lot-title-es$ common/dbl1es.dsl common/dbl10n.dsl - -$lot-title-et$ common/dbl1et.dsl common/dbl10n.dsl - -$lot-title-eu$ common/dbl1eu.dsl common/dbl10n.dsl - -$lot-title-fi$ common/dbl1fi.dsl common/dbl10n.dsl - -$lot-title-fr$ common/dbl1fr.dsl common/dbl10n.dsl - -$lot-title-hu$ common/dbl1hu.dsl common/dbl10n.dsl - -$lot-title-id$ common/dbl1id.dsl common/dbl10n.dsl - -$lot-title-it$ common/dbl1it.dsl common/dbl10n.dsl - -$lot-title-ja$ common/dbl1ja.dsl common/dbl10n.dsl - -$lot-title-ko$ common/dbl1ko.dsl common/dbl10n.dsl - -$lot-title-nl$ common/dbl1nl.dsl common/dbl10n.dsl - -$lot-title-nn$ common/dbl1nn.dsl common/dbl10n.dsl - -$lot-title-no$ common/dbl1no.dsl common/dbl10n.dsl - -$lot-title-pl$ common/dbl1pl.dsl common/dbl10n.dsl - -$lot-title-pt$ common/dbl1pt.dsl common/dbl10n.dsl - -$lot-title-ptbr$ common/dbl1ptbr.dsl common/dbl10n.dsl - -$lot-title-ro$ common/dbl1ro.dsl common/dbl10n.dsl - -$lot-title-ru$ common/dbl1ru.dsl common/dbl10n.dsl - -$lot-title-sk$ common/dbl1sk.dsl common/dbl10n.dsl - -$lot-title-sl$ common/dbl1sl.dsl common/dbl10n.dsl - -$lot-title-sr$ common/dbl1sr.dsl common/dbl10n.dsl - -$lot-title-sv$ common/dbl1sv.dsl common/dbl10n.dsl - -$lot-title-tr$ common/dbl1tr.dsl common/dbl10n.dsl - -$lot-title-uk$ common/dbl1uk.dsl common/dbl10n.dsl - -$lot-title-xh$ common/dbl1xh.dsl common/dbl10n.dsl - -$lot-title-zhcn$ common/dbl1zhcn.dsl common/dbl10n.dsl - -$lot-title-zhtw$ common/dbl1zhtw.dsl common/dbl10n.dsl - -$lot-title-zhhk$ common/dbl1zhhk.dsl common/dbl10n.dsl - -$lowtitle$ html/dbtitle.dsl html/dbrfntry.dsl - html/dblists.dsl - -$lowtitlewithsosofo$ - html/dbtitle.dsl html/dbrfntry.dsl - html/dbtitle.dsl - -$mediaobject$ common/dbcommon.dsl html/db31.dsl - -$mono-seq$ html/dbhtml.dsl html/dbttlpg.dsl - html/db31.dsl - html/dbinline.dsl - -$object-titles-after$ - html/dbparam.dsl html/dbblock.dsl - -$paragraph$ html/dbhtml.dsl html/dblot.dsl - html/dbsynop.dsl - html/dbblock.dsl - html/dblists.dsl - -$peril$ html/dbadmon.dsl html/dbadmon.dsl - -$proc-hierarch-number$ - common/dbcommon.dsl common/dbcommon.dsl - -$proc-hierarch-number-format$ - common/dbcommon.dsl common/dbcommon.dsl - html/dbprocdr.dsl - -$proc-section-info$ - html/dbsect.dsl html/dbsect.dsl - -$proc-step-depth$ common/dbcommon.dsl common/dbcommon.dsl - html/dbprocdr.dsl - -$proc-step-number$ common/dbcommon.dsl - -$proc-step-xref-number$ - common/dbcommon.dsl common/dbcommon.dsl - -$process-cell$ html/dbtable.dsl html/dbtable.dsl - -$process-partintro$ - html/dbdivis.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - html/dbdivis.dsl - -$process-row$ html/dbtable.dsl html/dbtable.dsl - -$process-table-body$ - html/dbtable.dsl html/dbtable.dsl - -$refentry-body$ html/dbrfntry.dsl html/dbrfntry.dsl - -$refsect1-info$ html/dbsect.dsl html/dbsect.dsl - -$refsect2-info$ html/dbsect.dsl html/dbsect.dsl - -$refsect3-info$ html/dbsect.dsl html/dbsect.dsl - -$runinhead$ html/dbtitle.dsl html/dbblock.dsl - html/dbttlpg.dsl - html/dbmsgset.dsl - -$sect1-info$ html/dbsect.dsl html/dbsect.dsl - -$sect2-info$ html/dbsect.dsl html/dbsect.dsl - -$sect3-info$ html/dbsect.dsl html/dbsect.dsl - -$sect4-info$ html/dbsect.dsl html/dbsect.dsl - -$sect5-info$ html/dbsect.dsl html/dbsect.dsl - -$section$ html/dbsect.dsl html/dbsect.dsl - html/db31.dsl - html/dbcompon.dsl - -$section-body$ html/dbsect.dsl html/dbsect.dsl - html/dbdivis.dsl - -$section-info$ html/dbsect.dsl html/dbsect.dsl - -$section-separator$ - html/dbsect.dsl html/dbindex.dsl - html/dbsect.dsl - html/dbbibl.dsl - -$section-title$ html/dbsect.dsl html/dbindex.dsl - html/dbsect.dsl - html/dbbibl.dsl - html/dbgloss.dsl - -$semiformal-object$ - html/dbblock.dsl html/dbbibl.dsl - html/dbblock.dsl - html/dbttlpg.dsl - html/dbinfo.dsl - -$shade-verbatim-attr$ - html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -$sp-to-nbsp-sosofo$ - html/dbverb.dsl html/dbverb.dsl - -$standard-html-header$ - html/dbhtml.dsl html/dbttlpg.dsl - html/dbhtml.dsl - -$table-element-list$ - html/dbparam.dsl - -$table-footnote-number$ - html/dbfootn.dsl html/dbfootn.dsl - -$table-width$ html/dbparam.dsl html/dbadmon.dsl - html/dbbibl.dsl - html/dbttlpg.dsl - html/dbtable.dsl - html/dbparam.dsl - -$user-footer-navigation$ - html/dbnavig.dsl html/dbnavig.dsl - -$user-header-navigation$ - html/dbnavig.dsl html/dbnavig.dsl - -$user-html-header$ html/dbhtml.dsl html/dbhtml.dsl - -$verbatim-display$ html/dbverb.dsl html/dbsynop.dsl - html/dbefsyn.dsl - html/dbverb.dsl - -$verbatim-line-by-line$ - html/dbverb.dsl html/dbverb.dsl - -$x-generate-citerefentry-link$ - html/dbinline.dsl - -%admon-graphics% html/dbparam.dsl html/dbadmon.dsl - -%admon-graphics-path% - html/dbparam.dsl html/dbparam.dsl - -%always-format-variablelist-as-table% - html/dbparam.dsl html/dblists.dsl - -%annotate-toc% html/dbparam.dsl html/dbautoc.dsl - -%arg-or-sep% common/dbcommon.dsl html/dbsynop.dsl - -%author-othername-in-middle% - html/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%biblend% html/dbbibl.dsl html/dbbibl.dsl - -%biblioentry-in-entry-order% - html/dbbibl.dsl html/dbbibl.dsl - -%biblsep% html/dbbibl.dsl html/dbbibl.dsl - -%body-attr% html/dbparam.dsl html/dbttlpg.dsl - html/dbhtml.dsl - -%callout-default-col% - html/dbparam.dsl html/dbcallou.dsl - -%callout-graphics% html/dbparam.dsl html/dbcallou.dsl - -%callout-graphics-extension% - html/dbparam.dsl html/dbcallou.dsl - -%callout-graphics-number-limit% - html/dbparam.dsl html/dbcallou.dsl - -%callout-graphics-path% - html/dbparam.dsl html/dbcallou.dsl - -%cals-rule-default% - html/dbtable.dsl html/dbtable.dsl - -%cals-table-class% html/dbparam.dsl html/dbtable.dsl - -%cals-valign-default% - html/dbtable.dsl html/dbtable.dsl - -%chapter-autolabel% - html/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1no.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - html/dbcompon.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%citerefentry-link% - html/dbparam.dsl html/dbinline.dsl - -%cmdsynopsis-hanging-indent% - common/dbcommon.dsl - -%content-title-end-punct% - html/dbparam.dsl html/dbtitle.dsl - -%css-decoration% html/dbparam.dsl html/dblists.dsl - -%css-liststyle-alist% - html/dbparam.dsl html/dblists.dsl - -%default-classsynopsis-language% - html/dbefsyn.dsl html/dbefsyn.dsl - -%default-language% common/dbl10n.dsl common/dbl10n.dsl - html/dbchunk.dsl - -%default-quadding% html/dbparam.dsl html/dbhtml.dsl - -%default-simplesect-level% - html/dbparam.dsl common/dbcommon.dsl - -%default-title-end-punct% - html/dbparam.dsl html/dbtitle.dsl - -%default-variablelist-termlength% - html/dbparam.dsl html/dblists.dsl - -%docbook-common-table-version% - common/dbtable.dsl - -%docbook-common-version% - common/dbcommon.dsl - -%emphasis-propagates-style% - html/dbparam.dsl html/dbinline.dsl - -%equation-autolabel% - html/dbmath.dsl html/dbmath.dsl - -%equation-rules% html/dbparam.dsl - -%example-rules% html/dbparam.dsl html/dbblock.dsl - -%figure-rules% html/dbparam.dsl html/dbblock.dsl - -%fix-para-wrappers% - html/dbparam.dsl html/dbhtml.dsl - -%footer-navigation% - html/dbparam.dsl html/dbnavig.dsl - -%footnotes-at-end% html/dbparam.dsl html/dbhtml.dsl - html/dblists.dsl - html/dbfootn.dsl - -%force-chapter-toc% - html/dbparam.dsl html/dbautoc.dsl - -%funcsynopsis-decoration% - html/dbparam.dsl html/dbsynop.dsl - -%funcsynopsis-style% - html/dbparam.dsl html/dbsynop.dsl - -%generate-af-toc-in-front% - common/dbl1af.dsl common/dbl10n.dsl - -%generate-article-titlepage% - html/dbparam.dsl html/dbcompon.dsl - -%generate-article-toc% - html/dbparam.dsl html/dbcompon.dsl - -%generate-book-titlepage% - html/dbparam.dsl html/dbdivis.dsl - -%generate-book-toc% - html/dbparam.dsl html/dbdivis.dsl - -%generate-ca-toc-in-front% - common/dbl1ca.dsl common/dbl10n.dsl - -%generate-cs-toc-in-front% - common/dbl1cs.dsl common/dbl10n.dsl - -%generate-da-toc-in-front% - common/dbl1da.dsl common/dbl10n.dsl - -%generate-de-toc-in-front% - common/dbl1de.dsl common/dbl10n.dsl - -%generate-el-toc-in-front% - common/dbl1el.dsl common/dbl10n.dsl - -%generate-en-toc-in-front% - common/dbl1en.dsl common/dbl10n.dsl - -%generate-es-toc-in-front% - common/dbl1es.dsl common/dbl10n.dsl - -%generate-et-toc-in-front% - common/dbl1et.dsl common/dbl10n.dsl - -%generate-eu-toc-in-front% - common/dbl1eu.dsl common/dbl10n.dsl - -%generate-fi-toc-in-front% - common/dbl1fi.dsl common/dbl10n.dsl - -%generate-fr-toc-in-front% - common/dbl1fr.dsl common/dbl10n.dsl - -%generate-hu-toc-in-front% - common/dbl1hu.dsl common/dbl10n.dsl - -%generate-id-toc-in-front% - common/dbl1id.dsl common/dbl10n.dsl - -%generate-it-toc-in-front% - common/dbl1it.dsl common/dbl10n.dsl - -%generate-ja-toc-in-front% - common/dbl1ja.dsl common/dbl10n.dsl - -%generate-ko-toc-in-front% - common/dbl1ko.dsl common/dbl10n.dsl - -%generate-legalnotice-link% - html/dbparam.dsl html/dbttlpg.dsl - -%generate-nl-toc-in-front% - common/dbl1nl.dsl common/dbl10n.dsl - -%generate-nn-toc-in-front% - common/dbl1nn.dsl common/dbl10n.dsl - -%generate-no-toc-in-front% - common/dbl1no.dsl common/dbl10n.dsl - -%generate-part-titlepage% - html/dbparam.dsl html/dbdivis.dsl - -%generate-part-toc% - html/dbparam.dsl html/dbttlpg.dsl - html/dbdivis.dsl - -%generate-part-toc-on-titlepage% - html/dbparam.dsl html/dbttlpg.dsl - html/dbdivis.dsl - -%generate-partintro-on-titlepage% - html/dbparam.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - html/dbdivis.dsl - -%generate-pl-toc-in-front% - common/dbl1pl.dsl common/dbl10n.dsl - -%generate-pt-toc-in-front% - common/dbl1pt.dsl common/dbl10n.dsl - -%generate-ptbr-toc-in-front% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%generate-reference-titlepage% - html/dbparam.dsl html/dbrfntry.dsl - -%generate-reference-toc% - html/dbparam.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - -%generate-reference-toc-on-titlepage% - html/dbparam.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - -%generate-ro-toc-in-front% - common/dbl1ro.dsl common/dbl10n.dsl - -%generate-ru-toc-in-front% - common/dbl1ru.dsl common/dbl10n.dsl - -%generate-set-titlepage% - html/dbparam.dsl html/dbdivis.dsl - -%generate-set-toc% html/dbparam.dsl html/dbdivis.dsl - -%generate-sk-toc-in-front% - common/dbl1sk.dsl common/dbl10n.dsl - -%generate-sl-toc-in-front% - common/dbl1sl.dsl common/dbl10n.dsl - -%generate-sr-toc-in-front% - common/dbl1sr.dsl common/dbl10n.dsl - -%generate-sv-toc-in-front% - common/dbl1sv.dsl common/dbl10n.dsl - -%generate-tr-toc-in-front% - common/dbl1tr.dsl common/dbl10n.dsl - -%generate-uk-toc-in-front% - common/dbl1uk.dsl common/dbl10n.dsl - -%generate-xh-toc-in-front% - common/dbl1xh.dsl common/dbl10n.dsl - -%generate-zhcn-toc-in-front% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%generate-zhtw-toc-in-front% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%generate-zhhk-toc-in-front% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-af-and% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-bibl-pages% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-by% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-edited-by% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-end-nested-quote% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-end-quote% - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -%gentext-af-endnotes% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-index-see% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-index-seealso% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-lastlistcomma% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-listcomma% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-page% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-revised-by% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-start-nested-quote% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-start-quote% - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -%gentext-af-table-endnotes% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-ca-and% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-bibl-pages% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-by% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-edited-by% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-end-nested-quote% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-end-quote% - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -%gentext-ca-endnotes% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-index-see% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-index-seealso% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-lastlistcomma% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-listcomma% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-page% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-revised-by% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-start-nested-quote% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-start-quote% - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -%gentext-ca-table-endnotes% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-cs-and% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-bibl-pages% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-by% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-edited-by% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-end-nested-quote% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-end-quote% - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -%gentext-cs-endnotes% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-index-see% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-index-seealso% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-lastlistcomma% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-listcomma% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-page% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-revised-by% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-start-nested-quote% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-start-quote% - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -%gentext-cs-table-endnotes% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-da-and% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-bibl-pages% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-by% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-edited-by% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-end-nested-quote% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-end-quote% - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -%gentext-da-endnotes% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-index-see% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-index-seealso% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-lastlistcomma% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-listcomma% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-page% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-revised-by% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-start-nested-quote% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-start-quote% - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -%gentext-da-table-endnotes% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-de-and% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-bibl-pages% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-by% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-edited-by% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-end-nested-quote% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-end-quote% - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -%gentext-de-endnotes% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-index-see% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-index-seealso% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-lastlistcomma% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-listcomma% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-page% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-revised-by% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-start-nested-quote% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-start-quote% - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -%gentext-de-table-endnotes% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-el-and% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-bibl-pages% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-by% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-edited-by% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-end-nested-quote% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-end-quote% - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -%gentext-el-endnotes% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-index-see% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-index-seealso% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-lastlistcomma% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-listcomma% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-page% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-revised-by% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-start-nested-quote% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-start-quote% - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -%gentext-el-table-endnotes% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-en-and% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-bibl-pages% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-by% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-edited-by% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-end-nested-quote% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-end-quote% - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -%gentext-en-endnotes% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-index-see% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-index-seealso% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-lastlistcomma% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-listcomma% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-page% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-revised-by% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-start-nested-quote% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-start-quote% - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -%gentext-en-table-endnotes% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-es-and% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-bibl-pages% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-by% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-edited-by% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-end-nested-quote% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-end-quote% - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -%gentext-es-endnotes% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-index-see% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-index-seealso% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-lastlistcomma% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-listcomma% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-page% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-revised-by% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-start-nested-quote% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-start-quote% - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -%gentext-es-table-endnotes% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-et-and% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-bibl-pages% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-by% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-edited-by% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-end-nested-quote% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-end-quote% - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -%gentext-et-endnotes% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-index-see% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-index-seealso% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-lastlistcomma% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-listcomma% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-page% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-revised-by% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-start-nested-quote% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-start-quote% - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -%gentext-et-table-endnotes% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-eu-and% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-bibl-pages% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-by% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-edited-by% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-end-nested-quote% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-end-quote% - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -%gentext-eu-endnotes% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-index-see% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-index-seealso% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-lastlistcomma% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-listcomma% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-page% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-revised-by% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-start-nested-quote% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-start-quote% - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -%gentext-eu-table-endnotes% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-fi-and% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-bibl-pages% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-by% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-edited-by% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-end-nested-quote% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-end-quote% - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -%gentext-fi-endnotes% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-index-see% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-index-seealso% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-lastlistcomma% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-listcomma% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-page% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-revised-by% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-start-nested-quote% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-start-quote% - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -%gentext-fi-table-endnotes% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fr-and% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-bibl-pages% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-by% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-edited-by% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-end-nested-quote% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-end-quote% - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -%gentext-fr-endnotes% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-index-see% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-index-seealso% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-lastlistcomma% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-listcomma% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-page% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-revised-by% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-start-nested-quote% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-start-quote% - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -%gentext-fr-table-endnotes% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-hu-and% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-bibl-pages% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-by% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-edited-by% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-end-nested-quote% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-end-quote% - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -%gentext-hu-endnotes% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-index-see% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-index-seealso% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-lastlistcomma% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-listcomma% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-page% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-revised-by% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-start-nested-quote% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-start-quote% - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -%gentext-hu-table-endnotes% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-id-and% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-bibl-pages% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-by% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-edited-by% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-end-nested-quote% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-end-quote% - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -%gentext-id-endnotes% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-index-see% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-index-seealso% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-lastlistcomma% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-listcomma% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-page% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-revised-by% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-start-nested-quote% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-start-quote% - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -%gentext-id-table-endnotes% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-it-and% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-bibl-pages% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-by% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-edited-by% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-end-nested-quote% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-end-quote% - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -%gentext-it-endnotes% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-index-see% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-index-seealso% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-lastlistcomma% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-listcomma% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-page% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-revised-by% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-start-nested-quote% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-start-quote% - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -%gentext-it-table-endnotes% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-ja-and% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-bibl-pages% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-by% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-edited-by% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-end-nested-quote% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-end-quote% - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -%gentext-ja-endnotes% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-index-see% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-index-seealso% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-lastlistcomma% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-listcomma% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-page% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-revised-by% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-start-nested-quote% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-start-quote% - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -%gentext-ja-table-endnotes% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ko-and% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-bibl-pages% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-by% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-edited-by% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-end-nested-quote% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-end-quote% - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -%gentext-ko-endnotes% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-index-see% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-index-seealso% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-lastlistcomma% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-listcomma% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-page% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-revised-by% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-start-nested-quote% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-start-quote% - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -%gentext-ko-table-endnotes% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-language% common/dbl10n.dsl common/dbl10n.dsl - -%gentext-nav-tblwidth% - html/dbparam.dsl html/dbnavig.dsl - -%gentext-nav-use-ff% - html/dbparam.dsl html/dbnavig.dsl - -%gentext-nav-use-tables% - html/dbparam.dsl html/dbnavig.dsl - -%gentext-nl-and% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-bibl-pages% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-by% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-edited-by% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-end-nested-quote% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-end-quote% - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -%gentext-nl-endnotes% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-index-see% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-index-seealso% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-lastlistcomma% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-listcomma% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-page% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-revised-by% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-start-nested-quote% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-start-quote% - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -%gentext-nl-table-endnotes% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nn-and% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-bibl-pages% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-by% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-edited-by% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-end-nested-quote% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-end-quote% - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -%gentext-nn-endnotes% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-index-see% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-index-seealso% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-lastlistcomma% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-listcomma% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-page% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-revised-by% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-start-nested-quote% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-start-quote% - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -%gentext-nn-table-endnotes% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-no-and% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-bibl-pages% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-by% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-edited-by% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-end-nested-quote% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-end-quote% - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -%gentext-no-endnotes% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-index-see% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-index-seealso% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-lastlistcomma% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-listcomma% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-page% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-revised-by% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-start-nested-quote% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-start-quote% - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -%gentext-no-table-endnotes% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-pl-and% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-bibl-pages% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-by% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-edited-by% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-end-nested-quote% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-end-quote% - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -%gentext-pl-endnotes% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-index-see% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-index-seealso% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-lastlistcomma% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-listcomma% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-page% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-revised-by% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-start-nested-quote% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-start-quote% - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -%gentext-pl-table-endnotes% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pt-and% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-bibl-pages% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-by% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-edited-by% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-end-nested-quote% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-end-quote% - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -%gentext-pt-endnotes% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-index-see% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-index-seealso% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-lastlistcomma% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-listcomma% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-page% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-revised-by% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-start-nested-quote% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-start-quote% - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -%gentext-pt-table-endnotes% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-ptbr-and% common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-bibl-pages% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-by% common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-edited-by% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-end-nested-quote% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-end-quote% - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -%gentext-ptbr-endnotes% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-index-see% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-index-seealso% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-lastlistcomma% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-listcomma% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-page% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-revised-by% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-start-nested-quote% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-start-quote% - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -%gentext-ptbr-table-endnotes% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ro-and% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-bibl-pages% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-by% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-edited-by% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-end-nested-quote% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-end-quote% - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -%gentext-ro-endnotes% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-index-see% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-index-seealso% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-lastlistcomma% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-listcomma% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-page% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-revised-by% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-start-nested-quote% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-start-quote% - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -%gentext-ro-table-endnotes% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ru-and% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-bibl-pages% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-by% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-edited-by% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-end-nested-quote% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-end-quote% - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -%gentext-ru-endnotes% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-index-see% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-index-seealso% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-lastlistcomma% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-listcomma% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-page% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-revised-by% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-start-nested-quote% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-start-quote% - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -%gentext-ru-table-endnotes% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-sk-and% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-bibl-pages% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-by% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-edited-by% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-end-nested-quote% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-end-quote% - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -%gentext-sk-endnotes% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-index-see% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-index-seealso% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-lastlistcomma% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-listcomma% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-page% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-revised-by% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-start-nested-quote% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-start-quote% - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -%gentext-sk-table-endnotes% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sl-and% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-bibl-pages% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-by% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-edited-by% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-end-nested-quote% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-end-quote% - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -%gentext-sl-endnotes% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-index-see% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-index-seealso% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-lastlistcomma% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-listcomma% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-page% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-revised-by% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-start-nested-quote% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-start-quote% - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -%gentext-sl-table-endnotes% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sr-and% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-bibl-pages% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-by% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-edited-by% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-end-nested-quote% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-end-quote% - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -%gentext-sr-endnotes% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-index-see% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-index-seealso% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-lastlistcomma% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-listcomma% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-page% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-revised-by% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-start-nested-quote% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-start-quote% - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -%gentext-sr-table-endnotes% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sv-and% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-bibl-pages% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-by% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-edited-by% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-end-nested-quote% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-end-quote% - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -%gentext-sv-endnotes% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-index-see% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-index-seealso% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-lastlistcomma% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-listcomma% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-page% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-revised-by% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-start-nested-quote% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-start-quote% - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -%gentext-sv-table-endnotes% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-tr-and% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-bibl-pages% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-by% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-edited-by% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-end-nested-quote% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-end-quote% - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -%gentext-tr-endnotes% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-index-see% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-index-seealso% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-lastlistcomma% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-listcomma% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-page% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-revised-by% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-start-nested-quote% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-start-quote% - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -%gentext-tr-table-endnotes% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-uk-and% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-bibl-pages% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-by% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-edited-by% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-end-nested-quote% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-end-quote% - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -%gentext-uk-endnotes% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-index-see% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-index-seealso% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-lastlistcomma% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-listcomma% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-page% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-revised-by% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-start-nested-quote% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-start-quote% - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -%gentext-uk-table-endnotes% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-use-xref-lang% - common/dbl10n.dsl common/dbl10n.dsl - -%gentext-xh-and% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-bibl-pages% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-by% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-edited-by% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-end-nested-quote% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-end-quote% - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -%gentext-xh-endnotes% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-index-see% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-index-seealso% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-lastlistcomma% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-listcomma% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-page% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-revised-by% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-start-nested-quote% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-start-quote% - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -%gentext-xh-table-endnotes% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-zhcn-and% common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-bibl-pages% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-by% common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-edited-by% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-end-nested-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-end-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -%gentext-zhcn-endnotes% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-index-see% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-index-seealso% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-lastlistcomma% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-listcomma% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-page% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-revised-by% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-start-nested-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-start-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -%gentext-zhcn-table-endnotes% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhtw-and% common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-bibl-pages% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-by% common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-edited-by% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-end-nested-quote% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-end-quote% - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -%gentext-zhtw-endnotes% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-index-see% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-index-seealso% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-lastlistcomma% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-listcomma% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-page% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-revised-by% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-start-nested-quote% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-start-quote% - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -%gentext-zhtw-table-endnotes% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhhk-and% common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-bibl-pages% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-by% common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-edited-by% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-end-nested-quote% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-end-quote% - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -%gentext-zhhk-endnotes% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-index-see% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-index-seealso% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-lastlistcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-listcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-page% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-revised-by% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-nested-quote% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-quote% - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -%gentext-zhhk-table-endnotes% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%graphic-default-extension% - html/dbparam.dsl common/dbcommon.dsl - html/dbgraph.dsl - -%graphic-extensions% - html/dbparam.dsl common/dbcommon.dsl - html/dbgraph.dsl - -%header-navigation% - html/dbparam.dsl html/dbnavig.dsl - -%honorific-punctuation% - html/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%html-ext% html/dbparam.dsl html/dbchunk.dsl - html/dbparam.dsl - -%html-header-tags% html/dbparam.dsl html/dbhtml.dsl - -%html-prefix% html/dbparam.dsl html/dbchunk.dsl - -%html-pubid% html/dbparam.dsl html/dbttlpg.dsl - html/dbhtml.dsl - -%html-use-lang-in-filename% - html/dbparam.dsl html/dbchunk.dsl - -%html40% html/dbparam.dsl html/dbtable.dsl - html/dblists.dsl - -%indent-address-lines% - html/dbparam.dsl html/dbbibl.dsl - html/dbttlpg.dsl - html/dbverb.dsl - -%indent-classsynopsisinfo-lines% - html/dbefsyn.dsl html/dbefsyn.dsl - -%indent-funcsynopsisinfo-lines% - html/dbparam.dsl html/dbsynop.dsl - -%indent-literallayout-lines% - html/dbparam.dsl html/dbverb.dsl - -%indent-programlisting-lines% - html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -%indent-screen-lines% - html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -%indent-synopsis-lines% - html/dbparam.dsl html/dbsynop.dsl - -%informalequation-rules% - html/dbparam.dsl html/dbmath.dsl - -%informalexample-rules% - html/dbparam.dsl html/dbblock.dsl - -%informalfigure-rules% - html/dbparam.dsl html/db31.dsl - -%informaltable-rules% - html/dbparam.dsl html/dbblock.dsl - -%label-preface-sections% - html/dbparam.dsl common/dbcommon.dsl - -%linenumber-length% - html/dbparam.dsl html/dbverb.dsl - -%linenumber-mod% html/dbparam.dsl html/dbverb.dsl - -%linenumber-padchar% - html/dbparam.dsl html/dbverb.dsl - -%link-mailto-url% html/dbparam.dsl html/dbhtml.dsl - -%may-format-variablelist-as-table% - html/dbparam.dsl html/dblists.dsl - -%number-address-lines% - html/dbparam.dsl html/dbbibl.dsl - html/dbttlpg.dsl - html/dbverb.dsl - -%number-classsynopsisinfo-lines% - html/dbefsyn.dsl html/dbefsyn.dsl - -%number-funcsynopsisinfo-lines% - html/dbparam.dsl html/dbsynop.dsl - -%number-literallayout-lines% - html/dbparam.dsl html/dbverb.dsl - -%number-programlisting-lines% - html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -%number-screen-lines% - html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -%number-synopsis-lines% - html/dbparam.dsl html/dbsynop.dsl - -%olink-fragid% html/dbparam.dsl html/dblink.dsl - -%olink-outline-ext% - html/dbparam.dsl html/dblink.dsl - -%olink-pubid% html/dbparam.dsl html/dblink.dsl - -%olink-resolution% html/dbparam.dsl html/dblink.dsl - -%olink-sysid% html/dbparam.dsl html/dblink.dsl - -%output-dir% html/dbparam.dsl html/dbchunk.dsl - -%phrase-propagates-style% - html/dbparam.dsl html/dbinline.dsl - -%qanda-inherit-numeration% - html/dbparam.dsl common/dbcommon.dsl - -%refentry-generate-name% - html/dbparam.dsl html/dbrfntry.dsl - -%refentry-xref-italic% - html/dbparam.dsl html/dbinline.dsl - html/dblink.dsl - -%refentry-xref-manvolnum% - html/dbparam.dsl html/dbrfntry.dsl - html/dblink.dsl - -%root-filename% html/dbparam.dsl html/dbchunk.dsl - -%section-autolabel% - html/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%shade-verbatim% html/dbparam.dsl html/dbverb.dsl - html/dbcallou.dsl - -%show-comments% html/dbparam.dsl html/dbblock.dsl - html/dbfootn.dsl - -%simplelist-column-width% - html/dbparam.dsl html/dblists.dsl - -%spacing-paras% html/dbparam.dsl html/dbadmon.dsl - html/dbblock.dsl - html/dblists.dsl - -%stylesheet% html/dbparam.dsl html/dbhtml.dsl - -%stylesheet-type% html/dbparam.dsl html/dbhtml.dsl - -%table-rules% html/dbparam.dsl html/dbblock.dsl - -%titlepage-in-info-order% - html/dbparam.dsl html/dbttlpg.dsl - -%use-id-as-filename% - html/dbparam.dsl html/dbchunk.dsl - html/dbparam.dsl - -%writing-mode% html/dbparam.dsl html/dbparam.dsl - -FNUM common/dbcommon.dsl common/dbcommon.dsl - -INBLOCK? common/dbcommon.dsl - -INLIST? common/dbcommon.dsl - -NESTEDFNUM common/dbcommon.dsl common/dbcommon.dsl - -PARNUM common/dbcommon.dsl - -PROCSTEP html/dbprocdr.dsl - -SECTLEVEL html/dbsect.dsl html/dbsect.dsl - html/dbbibl.dsl - html/db31.dsl - -abs-next-chunk html/dbchunk.dsl html/dbchunk.dsl - -abs-next-peer-chunk-element - html/dbchunk.dsl html/dbchunk.dsl - -abs-prev-chunk html/dbchunk.dsl html/dbchunk.dsl - -abs-prev-peer-chunk-element - html/dbchunk.dsl html/dbchunk.dsl - -abstract-autolabel common/dbcommon.dsl common/dbcommon.dsl - -acceptable-mediaobject-extensions - html/db31.dsl common/dbcommon.dsl - -acceptable-mediaobject-notations - html/db31.dsl common/dbcommon.dsl - -adjust-overhang common/dbtable.dsl common/dbtable.dsl - -af-author-string common/dbl1af.dsl common/dbl10n.dsl - -af-auto-xref-indirect-connector - common/dbl1af.dsl common/dbl10n.dsl - -af-element-name common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-intra-label-sep common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-label-number-format - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-label-number-format-list - common/dbl1af.dsl common/dbl1af.dsl - -af-label-title-sep common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-lot-title common/dbl1af.dsl common/dbl1af.dsl - -af-xref-strings common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -appears-in-auto-toc? - common/dbcommon.dsl common/dbcommon.dsl - -appendix-autolabel common/dbcommon.dsl common/dbcommon.dsl - -appendix-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -appendix-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -appendix-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-title common/dbcommon.dsl common/dbcommon.dsl - -appendix-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -article-autolabel common/dbcommon.dsl common/dbcommon.dsl - -article-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -article-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -article-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -article-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -article-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -article-title common/dbcommon.dsl html/dbttlpg.dsl - html/dbcompon.dsl - common/dbcommon.dsl - -article-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -article-titlepage html/dbttlpg.dsl html/dbttlpg.dsl - html/dbcompon.dsl - -article-titlepage-abbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-abstract - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-address - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-affiliation - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-artpagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-author - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-authorblurb - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-authorgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-authorinitials - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-before - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-bibliomisc - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-biblioset - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-bookbiblio - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-citetitle - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-collab - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-confgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-content? - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-contractnum - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-contractsponsor - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-contrib - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-corpauthor - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-corpname - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-date - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-default - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-edition - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-editor - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-element - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-firstname - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-graphic - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-honorific - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-indexterm - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-invpartnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-isbn - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-issn - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-issuenum - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-itermset - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-keywordset - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-lineage - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-mediaobject - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-modespec - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-orgname - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-othercredit - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-othername - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-pagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-partintro - html/dbttlpg.dsl - -article-titlepage-printhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-productname - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-productnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-pubdate - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-publisher - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-publishername - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-pubsnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-recto-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-releaseinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-revhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-separator - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-seriesinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-seriesvolnums - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-subjectset - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-subtitle - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-surname - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-title - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-titleabbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-verso-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -article-titlepage-volumenum - html/dbttlpg.dsl html/dbttlpg.dsl - -author-list-string common/dbcommon.dsl html/dbbibl.dsl - html/dbttlpg.dsl - html/dblink.dsl - -author-string common/dbl10n.dsl html/dbttlpg.dsl - common/dbcommon.dsl - common/dbl10n.dsl - html/dblink.dsl - -auto-xref common/dbcommon.dsl common/dbcommon.dsl - common/dbl10n.dsl - html/dblink.dsl - -auto-xref-direct common/dbcommon.dsl common/dbcommon.dsl - -auto-xref-indirect common/dbcommon.dsl common/dbcommon.dsl - common/dbl10n.dsl - -auto-xref-indirect-connector - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -auto-xref-indirect? - common/dbcommon.dsl common/dbcommon.dsl - -bibentry-number common/dbcommon.dsl html/dbbibl.dsl - html/dblink.dsl - -biblio-citation-check - html/dbparam.dsl html/dbinline.dsl - -biblio-filter common/dbcommon.dsl html/dbbibl.dsl - -biblio-filter-used html/dbparam.dsl html/dbbibl.dsl - -biblio-number html/dbparam.dsl html/dbbibl.dsl - html/dblink.dsl - -biblio-xref-title html/dbparam.dsl html/dblink.dsl - -bibliodiv-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -biblioentry-block-elements - common/dbcommon.dsl html/dbbibl.dsl - -biblioentry-block-end - html/dbbibl.dsl html/dbbibl.dsl - -biblioentry-block-sep - html/dbbibl.dsl html/dbbibl.dsl - -biblioentry-flatten-elements - common/dbcommon.dsl html/dbbibl.dsl - -biblioentry-inline-elements - common/dbcommon.dsl html/dbbibl.dsl - -biblioentry-inline-end - html/dbbibl.dsl html/dbbibl.dsl - -biblioentry-inline-sep - html/dbbibl.dsl html/dbbibl.dsl - -bibliography-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-content - html/dbbibl.dsl html/dbbibl.dsl - -bibliography-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -bibliography-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -bibliography-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-table html/dbbibl.dsl html/dbbibl.dsl - -bibliography-title common/dbcommon.dsl common/dbcommon.dsl - -bibliography-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -bibltable html/dbbibl.dsl html/dbbibl.dsl - -block-autolabel common/dbcommon.dsl common/dbcommon.dsl - -block-element-list common/dbcommon.dsl common/dbcommon.dsl - -block-title common/dbcommon.dsl common/dbcommon.dsl - -block-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -book-autolabel common/dbcommon.dsl common/dbcommon.dsl - -book-element-list common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - common/dbcommon.dsl - html/dbchunk.dsl - -book-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -book-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -book-html-base html/dbchunk.dsl html/dbchunk.dsl - -book-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -book-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -book-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -book-start? common/dbcommon.dsl - -book-title common/dbcommon.dsl html/dbttlpg.dsl - common/dbcommon.dsl - html/dbdivis.dsl - -book-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -book-titlepage html/dbttlpg.dsl html/dbttlpg.dsl - html/dbdivis.dsl - -book-titlepage-abbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-abstract - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-address - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-affiliation - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-artpagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-author - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-authorblurb - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-authorgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-authorinitials - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-before - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-bibliomisc - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-biblioset - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-bookbiblio - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-citetitle - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-collab - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-confgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-content? - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-contractnum - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-contractsponsor - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-contrib - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-corpauthor - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-corpname - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-date - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-default - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-edition - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-editor - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-element - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-firstname - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-graphic - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-honorific - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-indexterm - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-invpartnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-isbn - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-issn - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-issuenum - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-itermset - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-keywordset - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-lineage - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-mediaobject - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-modespec - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-orgname - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-othercredit - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-othername - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-pagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-printhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-productname - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-productnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-pubdate - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-publisher - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-publishername - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-pubsnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-recto-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-releaseinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-revhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-separator - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-seriesinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-seriesvolnums - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-subjectset - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-subtitle - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-surname - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-title - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-titleabbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-verso-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -book-titlepage-volumenum - html/dbttlpg.dsl html/dbttlpg.dsl - -break-node-list html/dbindex.dsl html/dbindex.dsl - -build-lot html/dbautoc.dsl html/dbcompon.dsl - html/dbdivis.dsl - -build-toc html/dbautoc.dsl html/dbsect.dsl - html/dbrfntry.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - html/dbdivis.dsl - html/dbautoc.dsl - -ca-author-string common/dbl1ca.dsl common/dbl10n.dsl - -ca-auto-xref-indirect-connector - common/dbl1ca.dsl common/dbl10n.dsl - -ca-element-name common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-intra-label-sep common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-label-number-format - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-label-number-format-list - common/dbl1ca.dsl common/dbl1ca.dsl - -ca-label-title-sep common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-lot-title common/dbl1ca.dsl common/dbl1ca.dsl - -ca-xref-strings common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -cals-relative-colwidth - html/dbtable.dsl html/dbtable.dsl - -cals-relative-colwidth? - html/dbtable.dsl html/dbtable.dsl - -cell-align html/dbtable.dsl html/dbtable.dsl - -cell-column-number common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -cell-colwidth html/dbtable.dsl html/dbtable.dsl - -cell-prev-cell common/dbtable.dsl common/dbtable.dsl - -cell-relative-colwidth - html/dbtable.dsl html/dbtable.dsl - -cell-valign html/dbtable.dsl html/dbtable.dsl - -chapter-autolabel common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - html/dbcompon.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -chapter-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -chapter-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -chapter-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-title common/dbcommon.dsl common/dbcommon.dsl - -chapter-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -chunk-children html/dbchunk.dsl html/dbchunk.dsl - -chunk-element-list html/dbchunk.dsl html/dbchunk.dsl - -chunk-level-parent html/dbchunk.dsl html/dbchunk.dsl - -chunk-parent html/dbchunk.dsl html/dbchunk.dsl - html/dbfootn.dsl - -chunk-section-depth - html/dbchunk.dsl html/dbchunk.dsl - -chunk-skip-first-element-list - html/dbchunk.dsl html/dbchunk.dsl - -chunk? html/dbchunk.dsl html/dbautoc.dsl - html/dbchunk.dsl - html/dbhtml.dsl - -citation-matches-target? - common/dbcommon.dsl common/dbcommon.dsl - html/dbinline.dsl - -cited-by-citation common/dbcommon.dsl common/dbcommon.dsl - -cited-by-xref common/dbcommon.dsl common/dbcommon.dsl - -colophon-autolabel common/dbcommon.dsl common/dbcommon.dsl - -colophon-title common/dbcommon.dsl common/dbcommon.dsl - -colophon-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -colspec-align common/dbtable.dsl html/dbtable.dsl - -colspec-char common/dbtable.dsl - -colspec-charoff common/dbtable.dsl - -colspec-colname common/dbtable.dsl - -colspec-colnum common/dbtable.dsl common/dbtable.dsl - -colspec-colsep common/dbtable.dsl - -colspec-colwidth common/dbtable.dsl html/dbtable.dsl - -colspec-rowsep common/dbtable.dsl - -colwidth-length html/dbtable.dsl html/dbtable.dsl - -combined-chunk? html/dbchunk.dsl html/dbchunk.dsl - -component-element-list - common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbbibl.dsl - html/dbcompon.dsl - common/dbcommon.dsl - html/dbautoc.dsl - html/dbchunk.dsl - -component-html-base - html/dbchunk.dsl html/dbchunk.dsl - -component-number common/dbcommon.dsl common/dbcommon.dsl - -component-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -component-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -component-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -count-footnote? html/dbfootn.dsl html/dbfootn.dsl - -cpp-method-synopsis - html/dbefsyn.dsl html/dbefsyn.dsl - -cs-author-string common/dbl1cs.dsl common/dbl10n.dsl - -cs-auto-xref-indirect-connector - common/dbl1cs.dsl common/dbl10n.dsl - -cs-element-name common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-intra-label-sep common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-label-number-format - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-label-number-format-list - common/dbl1cs.dsl common/dbl1cs.dsl - -cs-label-title-sep common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-lot-title common/dbl1cs.dsl common/dbl1cs.dsl - -cs-xref-strings common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -da-author-string common/dbl1da.dsl common/dbl10n.dsl - -da-auto-xref-indirect-connector - common/dbl1da.dsl common/dbl10n.dsl - -da-element-name common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-intra-label-sep common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-label-number-format - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-label-number-format-list - common/dbl1da.dsl common/dbl1da.dsl - -da-label-title-sep common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-lot-title common/dbl1da.dsl common/dbl1da.dsl - -da-xref-strings common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -data-filename common/dbcommon.dsl html/db31.dsl - common/dbcommon.dsl - -data-of common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - html/dblink.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -dbhtml-findvalue html/dbpi.dsl html/dbpi.dsl - -dbhtml-value html/dbpi.dsl html/dbpi.dsl - html/dbnavig.dsl - html/dbbibl.dsl - html/dbchunk.dsl - -de-author-string common/dbl1de.dsl common/dbl10n.dsl - -de-auto-xref-indirect-connector - common/dbl1de.dsl common/dbl10n.dsl - -de-element-name common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-intra-label-sep common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-label-number-format - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-label-number-format-list - common/dbl1de.dsl common/dbl1de.dsl - -de-label-title-sep common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-lot-title common/dbl1de.dsl common/dbl1de.dsl - -de-xref-strings common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -dedication-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -dedication-title common/dbcommon.dsl common/dbcommon.dsl - -dedication-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -default-footer-nav-notbl - html/dbnavig.dsl html/dbnavig.dsl - -default-footer-nav-tbl - html/dbnavig.dsl html/dbnavig.dsl - -default-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -default-header-nav-notbl-ff - html/dbnavig.dsl html/dbnavig.dsl - -default-header-nav-notbl-noff - html/dbnavig.dsl html/dbnavig.dsl - -default-header-nav-tbl-ff - html/dbnavig.dsl html/dbnavig.dsl - -default-header-nav-tbl-noff - html/dbnavig.dsl html/dbnavig.dsl - -default-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -default-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -default-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -default-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -descendant-member-of? - common/dbcommon.dsl common/dbcommon.dsl - -dingbat html/dbhtml.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - html/dbrfntry.dsl - html/dbbibl.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - html/dbttlpg.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - html/dbautoc.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - html/dbhtml.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -dingbat-sosofo html/dbhtml.dsl html/dbbibl.dsl - html/dbttlpg.dsl - html/dbautoc.dsl - -division-element-list - common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbttlpg.dsl - common/dbcommon.dsl - html/dbautoc.dsl - html/dbchunk.dsl - -division-html-base html/dbchunk.dsl html/dbchunk.dsl - -el-author-string common/dbl1el.dsl common/dbl10n.dsl - -el-auto-xref-indirect-connector - common/dbl1el.dsl common/dbl10n.dsl - -el-element-name common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-intra-label-sep common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-label-number-format - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-label-number-format-list - common/dbl1el.dsl common/dbl1el.dsl - -el-label-title-sep common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-lot-title common/dbl1el.dsl common/dbl1el.dsl - -el-xref-strings common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -element-gi-sosofo common/dbcommon.dsl common/dbcommon.dsl - -element-html-base html/dbchunk.dsl html/dbchunk.dsl - -element-id html/dbhtml.dsl html/dbsect.dsl - html/dbsynop.dsl - html/dbrfntry.dsl - html/dbbibl.dsl - html/dbblock.dsl - html/dbttlpg.dsl - html/db31.dsl - html/dbcompon.dsl - html/dbdivis.dsl - html/dbchunk.dsl - html/dbhtml.dsl - html/dblists.dsl - -element-label common/dbcommon.dsl html/dbnavig.dsl - html/dbsect.dsl - html/dbblock.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - common/dbcommon.dsl - html/dbautoc.dsl - html/dbmath.dsl - html/dblists.dsl - -element-label-sosofo - common/dbcommon.dsl html/dbnavig.dsl - common/dbcommon.dsl - -element-page-number-sosofo - html/dblink.dsl common/dbcommon.dsl - -element-title common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbsect.dsl - html/dbrfntry.dsl - html/dbbibl.dsl - html/dbcompon.dsl - common/dbcommon.dsl - html/dbautoc.dsl - html/dbgloss.dsl - html/dbhtml.dsl - html/dblists.dsl - html/dblink.dsl - -element-title-sosofo - common/dbcommon.dsl html/dbnavig.dsl - html/dbsect.dsl - html/dbrfntry.dsl - html/dbbibl.dsl - html/dbcompon.dsl - html/dbautoc.dsl - html/dblists.dsl - html/dblink.dsl - -element-title-string - common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbsect.dsl - html/dbrfntry.dsl - html/dbcompon.dsl - html/dbgloss.dsl - html/dbhtml.dsl - -element-title-xref-sosofo - html/dblink.dsl common/dbcommon.dsl - -empty-cell? html/dbtable.dsl html/dbtable.dsl - -en-author-string common/dbl1en.dsl common/dbl10n.dsl - -en-auto-xref-indirect-connector - common/dbl1en.dsl common/dbl10n.dsl - -en-element-name common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-intra-label-sep common/dbl1en.dsl common/dbl1et.dsl - common/dbl10n.dsl - common/dbl1en.dsl - -en-label-number-format - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-label-number-format-list - common/dbl1en.dsl common/dbl1en.dsl - -en-label-title-sep common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-lot-title common/dbl1en.dsl common/dbl1en.dsl - -en-xref-strings common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -es-author-string common/dbl1es.dsl common/dbl10n.dsl - -es-auto-xref-indirect-connector - common/dbl1es.dsl common/dbl10n.dsl - -es-element-name common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-intra-label-sep common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-label-number-format - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-label-number-format-list - common/dbl1es.dsl common/dbl1es.dsl - -es-label-title-sep common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-lot-title common/dbl1es.dsl common/dbl1es.dsl - -es-xref-strings common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -et-author-string common/dbl1et.dsl common/dbl10n.dsl - -et-auto-xref-indirect-connector - common/dbl1et.dsl common/dbl10n.dsl - -et-element-name common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-intra-label-sep common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-label-number-format - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - common/dbl1id.dsl - -et-label-number-format-list - common/dbl1et.dsl common/dbl1et.dsl - -et-label-title-sep common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-lot-title common/dbl1et.dsl common/dbl1et.dsl - -et-xref-strings common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -eu-author-string common/dbl1eu.dsl common/dbl10n.dsl - -eu-auto-xref-indirect-connector - common/dbl1eu.dsl common/dbl10n.dsl - -eu-element-name common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-intra-label-sep common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-label-number-format - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-label-number-format-list - common/dbl1eu.dsl common/dbl1eu.dsl - -eu-label-title-sep common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-lot-title common/dbl1eu.dsl common/dbl1eu.dsl - -eu-xref-strings common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -fi-author-string common/dbl1fi.dsl common/dbl10n.dsl - -fi-auto-xref-indirect-connector - common/dbl1fi.dsl common/dbl10n.dsl - -fi-element-name common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-intra-label-sep common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-label-number-format - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-label-number-format-list - common/dbl1fi.dsl common/dbl1fi.dsl - -fi-label-title-sep common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-lot-title common/dbl1fi.dsl common/dbl1fi.dsl - -fi-xref-strings common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -find-colspec common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -find-colspec-by-number - common/dbtable.dsl html/dbtable.dsl - -find-displayable-object - common/dbcommon.dsl common/dbcommon.dsl - -find-spanspec common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -find-tgroup common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -first-chapter? common/dbcommon.dsl - -firstterm-bold html/dbparam.dsl html/dbgloss.dsl - -footer-navigation html/dbnavig.dsl html/dbnavig.dsl - html/dbttlpg.dsl - html/dbhtml.dsl - -fr-author-string common/dbl1fr.dsl common/dbl10n.dsl - -fr-auto-xref-indirect-connector - common/dbl1fr.dsl common/dbl10n.dsl - -fr-element-name common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-intra-label-sep common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-label-number-format - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-label-number-format-list - common/dbl1fr.dsl common/dbl1fr.dsl - -fr-label-title-sep common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-lot-title common/dbl1fr.dsl common/dbl1fr.dsl - -fr-xref-strings common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -funcsynopsis-function - html/dbsynop.dsl html/dbsynop.dsl - -generate-anchor html/dbhtml.dsl html/dbindex.dsl - html/dbhtml.dsl - html/dbfootn.dsl - -generate-toc-in-front - common/dbl10n.dsl html/dbrfntry.dsl - html/dbcompon.dsl - html/dbdivis.dsl - common/dbl10n.dsl - -generate-xptr html/dbhtml.dsl - -gentext-af-element-name - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -gentext-af-element-name-space - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-intra-label-sep - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-label-title-sep - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-home - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-next - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-next-sibling - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-prev - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-prev-sibling - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-up common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-xref-strings - common/dbl1af.dsl common/dbl10n.dsl - -gentext-and common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-bibl-pages common/dbl10n.dsl common/dbl10n.dsl - -gentext-by common/dbl10n.dsl html/dbttlpg.dsl - common/dbl10n.dsl - -gentext-ca-element-name - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -gentext-ca-element-name-space - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-intra-label-sep - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-label-title-sep - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-home - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-next - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-next-sibling - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-prev - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-prev-sibling - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-up common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-xref-strings - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-cs-element-name - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -gentext-cs-element-name-space - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-intra-label-sep - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-label-title-sep - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-home - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-next - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-next-sibling - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-prev - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-prev-sibling - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-up common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-xref-strings - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-da-element-name - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -gentext-da-element-name-space - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-intra-label-sep - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-label-title-sep - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-home - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-next - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-next-sibling - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-prev - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-prev-sibling - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-up common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-xref-strings - common/dbl1da.dsl common/dbl10n.dsl - -gentext-de-element-name - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -gentext-de-element-name-space - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-intra-label-sep - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-label-title-sep - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-home - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-next - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-next-sibling - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-prev - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-prev-sibling - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-up common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-xref-strings - common/dbl1de.dsl common/dbl10n.dsl - -gentext-edited-by common/dbl10n.dsl html/dbbibl.dsl - html/dbttlpg.dsl - common/dbl10n.dsl - -gentext-el-element-name - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -gentext-el-element-name-space - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-intra-label-sep - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-label-title-sep - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-home - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-next - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-next-sibling - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-prev - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-prev-sibling - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-up common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-xref-strings - common/dbl1el.dsl common/dbl10n.dsl - -gentext-element-name - common/dbl10n.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - html/dbindex.dsl - common/dbl1et.dsl - html/dbnavig.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - html/dbrfntry.dsl - html/dbadmon.dsl - html/dbbibl.dsl - html/dbblock.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - html/dbautoc.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - html/dbgloss.dsl - common/dbl1id.dsl - html/dbmsgset.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - html/dblists.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - html/dblink.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -gentext-element-name-space - common/dbl10n.dsl html/dbnavig.dsl - html/dbbibl.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - common/dbl10n.dsl - -gentext-en-element-name - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -gentext-en-element-name-space - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-intra-label-sep - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-label-title-sep - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-home - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-next - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-next-sibling - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-prev - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-prev-sibling - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-up common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-xref-strings - common/dbl1en.dsl common/dbl10n.dsl - -gentext-end-nested-quote - common/dbl10n.dsl html/dbinline.dsl - common/dbl10n.dsl - -gentext-end-quote common/dbl10n.dsl html/dbbibl.dsl - html/dbinline.dsl - common/dbl10n.dsl - -gentext-endnotes common/dbl10n.dsl common/dbl10n.dsl - html/dbfootn.dsl - -gentext-es-element-name - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -gentext-es-element-name-space - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-intra-label-sep - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-label-title-sep - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-home - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-next - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-next-sibling - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-prev - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-prev-sibling - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-up common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-xref-strings - common/dbl1es.dsl common/dbl10n.dsl - -gentext-et-element-name - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -gentext-et-element-name-space - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-intra-label-sep - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-label-title-sep - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-home - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-next - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-next-sibling - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-prev - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-prev-sibling - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-up common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-xref-strings - common/dbl1et.dsl common/dbl10n.dsl - -gentext-eu-element-name - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -gentext-eu-element-name-space - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-intra-label-sep - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-label-title-sep - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-home - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-next - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-next-sibling - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-prev - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-prev-sibling - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-up common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-xref-strings - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-fi-element-name - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -gentext-fi-element-name-space - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-intra-label-sep - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-label-title-sep - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-home - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-next - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-next-sibling - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-prev - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-prev-sibling - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-up common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-xref-strings - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fr-element-name - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -gentext-fr-element-name-space - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-intra-label-sep - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-label-title-sep - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-home - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-next - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-next-sibling - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-prev - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-prev-sibling - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-up common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-xref-strings - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-hu-element-name - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -gentext-hu-element-name-space - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-intra-label-sep - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-label-title-sep - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-home - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-next - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-next-sibling - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-prev - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-prev-sibling - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-up common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-xref-strings - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-id-element-name - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -gentext-id-element-name-space - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-intra-label-sep - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-label-title-sep - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-home - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-next - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-next-sibling - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-prev - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-prev-sibling - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-up common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-xref-strings - common/dbl1id.dsl common/dbl10n.dsl - -gentext-index-see common/dbl10n.dsl common/dbl10n.dsl - -gentext-index-seealso - common/dbl10n.dsl common/dbl10n.dsl - -gentext-intra-label-sep - common/dbl10n.dsl html/dbsect.dsl - html/dbrfntry.dsl - common/dbcommon.dsl - common/dbl10n.dsl - -gentext-it-element-name - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -gentext-it-element-name-space - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-intra-label-sep - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-label-title-sep - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-home - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-next - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-next-sibling - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-prev - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-prev-sibling - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-up common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-xref-strings - common/dbl1it.dsl common/dbl10n.dsl - -gentext-ja-element-name - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -gentext-ja-element-name-space - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-intra-label-sep - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-label-title-sep - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-home - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-next - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-next-sibling - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-prev - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-prev-sibling - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-up common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-xref-strings - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ko-element-name - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -gentext-ko-element-name-space - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-intra-label-sep - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-label-title-sep - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-home - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-next - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-next-sibling - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-prev - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-prev-sibling - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-up common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-xref-strings - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-label-title-sep - common/dbl10n.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbsect.dsl - html/dbadmon.dsl - html/dbblock.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - common/dbcommon.dsl - html/dbautoc.dsl - common/dbl10n.dsl - html/dbgloss.dsl - html/dblists.dsl - html/dbfootn.dsl - html/dblink.dsl - -gentext-lastlistcomma - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-listcomma common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-nav-home common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nav-next common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nav-next-sibling - common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nav-prev common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nav-prev-sibling - common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nav-up common/dbl10n.dsl html/dbnavig.dsl - common/dbl10n.dsl - -gentext-nl-element-name - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -gentext-nl-element-name-space - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-intra-label-sep - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-label-title-sep - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-home - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-next - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-next-sibling - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-prev - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-prev-sibling - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-up common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-xref-strings - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nn-element-name - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -gentext-nn-element-name-space - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-intra-label-sep - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-label-title-sep - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-home - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-next - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-next-sibling - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-prev - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-prev-sibling - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-up common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-xref-strings - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-no-element-name - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -gentext-no-element-name-space - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-intra-label-sep - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-label-title-sep - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-home - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-next - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-next-sibling - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-prev - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-prev-sibling - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-up common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-xref-strings - common/dbl1no.dsl common/dbl10n.dsl - -gentext-page common/dbl10n.dsl common/dbl10n.dsl - -gentext-pl-element-name - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -gentext-pl-element-name-space - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-intra-label-sep - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-label-title-sep - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-home - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-next - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-next-sibling - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-prev - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-prev-sibling - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-up common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-xref-strings - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pt-element-name - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -gentext-pt-element-name-space - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-intra-label-sep - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-label-title-sep - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-home - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-next - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-next-sibling - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-prev - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-prev-sibling - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-up common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-xref-strings - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-ptbr-element-name - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -gentext-ptbr-element-name-space - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-home - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-next - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-next-sibling - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-prev - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-prev-sibling - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-up - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-xref-strings - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-revised-by common/dbl10n.dsl html/dbbibl.dsl - html/dbttlpg.dsl - common/dbl10n.dsl - -gentext-ro-element-name - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -gentext-ro-element-name-space - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-intra-label-sep - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-label-title-sep - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-home - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-next - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-next-sibling - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-prev - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-prev-sibling - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-up common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-xref-strings - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ru-element-name - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -gentext-ru-element-name-space - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-intra-label-sep - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-label-title-sep - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-home - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-next - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-next-sibling - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-prev - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-prev-sibling - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-up common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-xref-strings - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-sk-element-name - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -gentext-sk-element-name-space - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-intra-label-sep - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-label-title-sep - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-home - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-next - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-next-sibling - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-prev - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-prev-sibling - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-up common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-xref-strings - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sl-element-name - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -gentext-sl-element-name-space - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-intra-label-sep - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-label-title-sep - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-home - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-next - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-next-sibling - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-prev - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-prev-sibling - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-up common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-xref-strings - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sr-element-name - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -gentext-sr-element-name-space - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-intra-label-sep - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-label-title-sep - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-home - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-next - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-next-sibling - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-prev - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-prev-sibling - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-up common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-xref-strings - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-start-nested-quote - common/dbl10n.dsl html/dbinline.dsl - common/dbl10n.dsl - -gentext-start-quote - common/dbl10n.dsl html/dbbibl.dsl - html/dbinline.dsl - common/dbl10n.dsl - -gentext-sv-element-name - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -gentext-sv-element-name-space - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-intra-label-sep - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-label-title-sep - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-home - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-next - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-next-sibling - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-prev - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-prev-sibling - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-up common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-xref-strings - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-table-endnotes - common/dbl10n.dsl common/dbl10n.dsl - html/dbfootn.dsl - -gentext-tr-element-name - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -gentext-tr-element-name-space - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-intra-label-sep - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-label-title-sep - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-home - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-next - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-next-sibling - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-prev - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-prev-sibling - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-up common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-xref-strings - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-uk-element-name - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -gentext-uk-element-name-space - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-intra-label-sep - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-label-title-sep - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-home - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-next - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-next-sibling - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-prev - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-prev-sibling - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-up common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-xref-strings - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-xh-element-name - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -gentext-xh-element-name-space - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-intra-label-sep - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-label-title-sep - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-home - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-next - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-next-sibling - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-prev - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-prev-sibling - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-up common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-xref-strings - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xref-strings - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-zhcn-element-name - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -gentext-zhcn-element-name-space - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-home - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-next - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-next-sibling - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-prev - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-prev-sibling - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-up - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-xref-strings - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhtw-element-name - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -gentext-zhtw-element-name-space - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-home - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-next - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-next-sibling - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-prev - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-prev-sibling - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-up - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-xref-strings - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-element-name - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -gentext-zhhk-element-name-space - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-home - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-next - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-next-sibling - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-prev - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-prev-sibling - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-up - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-xref-strings - common/dbl1zhhk.dsl common/dbl10n.dsl - -glossary-autolabel common/dbcommon.dsl common/dbcommon.dsl - -glossary-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -glossary-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -glossary-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-title common/dbcommon.dsl common/dbcommon.dsl - -glossary-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -glossdiv-autolabel common/dbcommon.dsl common/dbcommon.dsl - -graphic-attrs html/dbgraph.dsl html/dbgraph.dsl - -graphic-file html/dbgraph.dsl html/dbttlpg.dsl - html/dbgraph.dsl - -have-sibling? html/dbttlpg.dsl - -header-navigation html/dbnavig.dsl html/dbnavig.dsl - html/dbttlpg.dsl - html/dbhtml.dsl - -href-to html/dbchunk.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbsynop.dsl - html/db31.dsl - html/dbinline.dsl - html/dbautoc.dsl - html/dbgloss.dsl - html/dbhtml.dsl - html/dbcallou.dsl - html/dbfootn.dsl - html/dblink.dsl - -hspan common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -html-base-filename html/dbchunk.dsl html/dbchunk.dsl - -html-document html/dbhtml.dsl html/dbindex.dsl - html/dbsect.dsl - html/dbrfntry.dsl - html/dbbibl.dsl - html/dbcompon.dsl - html/dbdivis.dsl - html/dbgloss.dsl - -html-entity-file html/dbchunk.dsl html/dbindex.dsl - html/dbttlpg.dsl - html/dbhtml.dsl - -html-file html/dbchunk.dsl html/dbchunk.dsl - html/dbhtml.dsl - html/dbfootn.dsl - -html-index html/dbparam.dsl html/dbindex.dsl - -html-index-filename - html/dbparam.dsl html/dbindex.dsl - -html-manifest html/dbparam.dsl - -html-manifest-filename - html/dbparam.dsl - -html-prefix html/dbchunk.dsl html/dbchunk.dsl - -htmlindexattr html/dbindex.dsl html/dbindex.dsl - -htmlindexterm html/dbindex.dsl html/dbindex.dsl - -htmlindexzone html/dbindex.dsl html/dbindex.dsl - -htmlindexzone1 html/dbindex.dsl html/dbindex.dsl - -htmlnewline html/dbindex.dsl html/dbindex.dsl - -hu-author-string common/dbl1hu.dsl common/dbl10n.dsl - -hu-auto-xref-indirect-connector - common/dbl1hu.dsl common/dbl10n.dsl - -hu-element-name common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-intra-label-sep common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-label-number-format - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-label-number-format-list - common/dbl1hu.dsl common/dbl1hu.dsl - -hu-label-title-sep common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-lot-title common/dbl1hu.dsl common/dbl1hu.dsl - -hu-xref-strings common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -id-_pagenumber-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-abstract-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-abstract-name common/dbl1id.dsl common/dbl1id.dsl - -id-answer-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-answer-name common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-name common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-article-name common/dbl1id.dsl common/dbl1id.dsl - -id-article-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-author-string common/dbl1id.dsl common/dbl10n.dsl - -id-auto-xref-indirect-connector - common/dbl1id.dsl common/dbl10n.dsl - -id-based-filename html/dbchunk.dsl html/dbchunk.dsl - -id-bibliography-name - common/dbl1id.dsl common/dbl1id.dsl - -id-bibliography-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-book-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-book-name common/dbl1id.dsl common/dbl1id.dsl - -id-book-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-calloutlist-name - common/dbl1id.dsl common/dbl1id.dsl - -id-caution-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-caution-name common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-name common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-colophon-name common/dbl1id.dsl common/dbl1id.dsl - -id-copyright-name common/dbl1id.dsl common/dbl1id.dsl - -id-dedication-name common/dbl1id.dsl common/dbl1id.dsl - -id-default-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-default-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-default-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-default-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-edition-name common/dbl1id.dsl common/dbl1id.dsl - -id-equation-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-equation-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-equation-name common/dbl1id.dsl common/dbl1id.dsl - -id-equation-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-example-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-example-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-example-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-example-name common/dbl1id.dsl common/dbl1id.dsl - -id-example-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-name common/dbl1id.dsl common/dbl1id.dsl - -id-figure-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-footnote-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glossary-name common/dbl1id.dsl common/dbl1id.dsl - -id-glossary-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-glosssee-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glosssee-name common/dbl1id.dsl common/dbl1id.dsl - -id-glossseealso-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glossseealso-name - common/dbl1id.dsl common/dbl1id.dsl - -id-important-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-important-name common/dbl1id.dsl common/dbl1id.dsl - -id-index-name common/dbl1id.dsl common/dbl1id.dsl - -id-index-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-informalequation-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-isbn-name common/dbl1id.dsl common/dbl1id.dsl - -id-label-number-format - common/dbl1id.dsl common/dbl10n.dsl - -id-legalnotice-name - common/dbl1id.dsl common/dbl1id.dsl - -id-listitem-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-listitem-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-msgaud-name common/dbl1id.dsl common/dbl1id.dsl - -id-msglevel-name common/dbl1id.dsl common/dbl1id.dsl - -id-msgorig-name common/dbl1id.dsl common/dbl1id.dsl - -id-note-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-note-name common/dbl1id.dsl common/dbl1id.dsl - -id-orderedlist-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-part-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-part-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-part-name common/dbl1id.dsl common/dbl1id.dsl - -id-part-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-preface-name common/dbl1id.dsl common/dbl1id.dsl - -id-preface-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-prefix-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-prefix-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-name common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-pubdate-name common/dbl1id.dsl common/dbl1id.dsl - -id-question-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-question-name common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-name common/dbl1id.dsl common/dbl1id.dsl - -id-reference-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-name common/dbl1id.dsl common/dbl1id.dsl - -id-reference-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-refname-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refname-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsynopsisdiv-name - common/dbl1id.dsl common/dbl1id.dsl - -id-revhistory-name common/dbl1id.dsl common/dbl1id.dsl - -id-revision-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-section-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-section-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-section-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-section-name common/dbl1id.dsl common/dbl1id.dsl - -id-section-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sectioning-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-seealsoie-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-seealsoie-name common/dbl1id.dsl common/dbl1id.dsl - -id-seeie-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-seeie-name common/dbl1id.dsl common/dbl1id.dsl - -id-set-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-set-name common/dbl1id.dsl common/dbl1id.dsl - -id-setindex-name common/dbl1id.dsl common/dbl1id.dsl - -id-sidebar-name common/dbl1id.dsl common/dbl1id.dsl - -id-sidebar-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-name common/dbl1id.dsl common/dbl1id.dsl - -id-step-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-step-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-step-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-step-name common/dbl1id.dsl common/dbl1id.dsl - -id-step-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-table-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-table-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-table-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-table-name common/dbl1id.dsl common/dbl1id.dsl - -id-table-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-tip-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-tip-name common/dbl1id.dsl common/dbl1id.dsl - -id-toc-name common/dbl1id.dsl common/dbl1id.dsl - -id-warning-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-warning-name common/dbl1id.dsl common/dbl1id.dsl - -idl-method-synopsis - html/dbefsyn.dsl html/dbefsyn.dsl - -ifollow-by-gi html/dbchunk.dsl html/dbchunk.dsl - -image-library html/dbparam.dsl html/dbgraph.dsl - -image-library-filename - html/dbparam.dsl html/dbgraph.dsl - -index-autolabel common/dbcommon.dsl common/dbcommon.dsl - -index-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -index-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -index-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -index-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -index-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -index-title common/dbcommon.dsl common/dbcommon.dsl - -index-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -indexdiv-autolabel common/dbcommon.dsl common/dbcommon.dsl - -indexentry-link html/dbindex.dsl html/dbindex.dsl - -info-element common/dbcommon.dsl html/dbnavig.dsl - html/dbsect.dsl - html/dbrfntry.dsl - html/dbcompon.dsl - html/dbdivis.dsl - html/dbhtml.dsl - -info-element-list common/dbcommon.dsl - -inherited-dbhtml-value - html/dbpi.dsl html/dbnavig.dsl - html/dbchunk.dsl - -inherited-pi-value html/dbpi.dsl html/dbchunk.dsl - -ipreced-by-gi html/dbchunk.dsl html/dbchunk.dsl - -is-first-element html/dbchunk.dsl html/dbchunk.dsl - -it-author-string common/dbl1it.dsl common/dbl10n.dsl - -it-auto-xref-indirect-connector - common/dbl1it.dsl common/dbl10n.dsl - -it-element-name common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-intra-label-sep common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-label-number-format - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-label-number-format-list - common/dbl1it.dsl common/dbl1it.dsl - -it-label-title-sep common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-lot-title common/dbl1it.dsl common/dbl1it.dsl - -it-xref-strings common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -ja-author-string common/dbl1ja.dsl common/dbl10n.dsl - -ja-auto-xref-indirect-connector - common/dbl1ja.dsl common/dbl10n.dsl - -ja-element-name common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-intra-label-sep common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-label-number-format - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-label-number-format-list - common/dbl1ja.dsl common/dbl1ja.dsl - -ja-label-title-sep common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-lot-title common/dbl1ja.dsl common/dbl1ja.dsl - -ja-xref-strings common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -java-method-synopsis - html/dbefsyn.dsl html/dbefsyn.dsl - -ko-author-string common/dbl1ko.dsl common/dbl10n.dsl - -ko-auto-xref-indirect-connector - common/dbl1ko.dsl common/dbl10n.dsl - -ko-element-name common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-intra-label-sep common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-label-number-format - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-label-number-format-list - common/dbl1ko.dsl common/dbl1ko.dsl - -ko-label-title-sep common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-lot-title common/dbl1ko.dsl common/dbl1ko.dsl - -ko-xref-strings common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -label-number-format - common/dbl10n.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -lang-fix common/dbl10n.dsl common/dbl10n.dsl - -last-chunk-element html/dbchunk.dsl html/dbchunk.dsl - -legalnotice-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -link-target html/dbhtml.dsl html/dbgloss.dsl - -list-element-list common/dbcommon.dsl common/dbcommon.dsl - -listitem-autolabel common/dbcommon.dsl common/dbcommon.dsl - -local-af-intra-label-sep - common/dbl1af.dsl - -local-af-label-title-sep - common/dbl1af.dsl - -local-ca-intra-label-sep - common/dbl1ca.dsl common/dbl1ca.dsl - -local-ca-label-title-sep - common/dbl1ca.dsl common/dbl1ca.dsl - -local-cs-intra-label-sep - common/dbl1cs.dsl common/dbl1cs.dsl - -local-cs-label-title-sep - common/dbl1cs.dsl common/dbl1cs.dsl - -local-da-intra-label-sep - common/dbl1da.dsl common/dbl1da.dsl - -local-da-label-title-sep - common/dbl1da.dsl common/dbl1da.dsl - -local-de-intra-label-sep - common/dbl1de.dsl common/dbl1de.dsl - -local-de-label-title-sep - common/dbl1de.dsl common/dbl1de.dsl - -local-el-intra-label-sep - common/dbl1el.dsl common/dbl1el.dsl - -local-el-label-title-sep - common/dbl1el.dsl common/dbl1el.dsl - -local-en-intra-label-sep - common/dbl1en.dsl common/dbl1en.dsl - -local-en-label-title-sep - common/dbl1en.dsl common/dbl1en.dsl - -local-es-intra-label-sep - common/dbl1es.dsl common/dbl1es.dsl - -local-es-label-title-sep - common/dbl1es.dsl common/dbl1es.dsl - -local-et-intra-label-sep - common/dbl1et.dsl - -local-et-label-title-sep - common/dbl1et.dsl common/dbl1et.dsl - -local-eu-intra-label-sep - common/dbl1eu.dsl common/dbl1eu.dsl - -local-eu-label-title-sep - common/dbl1eu.dsl common/dbl1eu.dsl - -local-fi-intra-label-sep - common/dbl1fi.dsl common/dbl1fi.dsl - -local-fi-label-title-sep - common/dbl1fi.dsl common/dbl1fi.dsl - -local-fr-intra-label-sep - common/dbl1fr.dsl common/dbl1fr.dsl - -local-fr-label-title-sep - common/dbl1fr.dsl common/dbl1fr.dsl - -local-hu-intra-label-sep - common/dbl1hu.dsl common/dbl1hu.dsl - -local-hu-label-title-sep - common/dbl1hu.dsl common/dbl1hu.dsl - -local-it-intra-label-sep - common/dbl1it.dsl common/dbl1it.dsl - -local-it-label-title-sep - common/dbl1it.dsl common/dbl1it.dsl - -local-ja-intra-label-sep - common/dbl1ja.dsl common/dbl1ja.dsl - -local-ja-label-title-sep - common/dbl1ja.dsl common/dbl1ja.dsl - -local-ko-intra-label-sep - common/dbl1ko.dsl common/dbl1ko.dsl - -local-ko-label-title-sep - common/dbl1ko.dsl common/dbl1ko.dsl - -local-nl-intra-label-sep - common/dbl1nl.dsl common/dbl1nl.dsl - -local-nl-label-title-sep - common/dbl1nl.dsl common/dbl1nl.dsl - -local-nn-intra-label-sep - common/dbl1nn.dsl common/dbl1nn.dsl - -local-nn-label-title-sep - common/dbl1nn.dsl common/dbl1nn.dsl - -local-no-intra-label-sep - common/dbl1no.dsl common/dbl1no.dsl - -local-no-label-title-sep - common/dbl1no.dsl common/dbl1no.dsl - -local-pl-intra-label-sep - common/dbl1pl.dsl common/dbl1pl.dsl - -local-pl-label-title-sep - common/dbl1pl.dsl common/dbl1pl.dsl - -local-pt-intra-label-sep - common/dbl1pt.dsl common/dbl1pt.dsl - -local-pt-label-title-sep - common/dbl1pt.dsl common/dbl1pt.dsl - -local-ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -local-ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -local-ro-intra-label-sep - common/dbl1ro.dsl common/dbl1ro.dsl - -local-ro-label-title-sep - common/dbl1ro.dsl common/dbl1ro.dsl - -local-ru-intra-label-sep - common/dbl1ru.dsl common/dbl1ru.dsl - -local-ru-label-title-sep - common/dbl1ru.dsl common/dbl1ru.dsl - -local-sk-intra-label-sep - common/dbl1sk.dsl common/dbl1sk.dsl - -local-sk-label-title-sep - common/dbl1sk.dsl common/dbl1sk.dsl - -local-sl-intra-label-sep - common/dbl1sl.dsl common/dbl1sl.dsl - -local-sl-label-title-sep - common/dbl1sl.dsl common/dbl1sl.dsl - -local-sr-intra-label-sep - common/dbl1sr.dsl common/dbl1sr.dsl - -local-sr-label-title-sep - common/dbl1sr.dsl common/dbl1sr.dsl - -local-sv-intra-label-sep - common/dbl1sv.dsl common/dbl1sv.dsl - -local-sv-label-title-sep - common/dbl1sv.dsl common/dbl1sv.dsl - -local-tr-intra-label-sep - common/dbl1tr.dsl common/dbl1tr.dsl - -local-tr-label-title-sep - common/dbl1tr.dsl - -local-uk-intra-label-sep - common/dbl1uk.dsl common/dbl1uk.dsl - -local-uk-label-title-sep - common/dbl1uk.dsl common/dbl1uk.dsl - -local-xh-intra-label-sep - common/dbl1xh.dsl common/dbl1xh.dsl - -local-xh-label-title-sep - common/dbl1xh.dsl common/dbl1xh.dsl - -local-zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -local-zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -local-zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -local-zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -local-zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -local-zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -lot-entry html/dbautoc.dsl html/dbautoc.dsl - -major-component-element-list - common/dbcommon.dsl html/dbchunk.dsl - -make-endnote-header - html/dbfootn.dsl html/dbfootn.dsl - -make-endnotes html/dbfootn.dsl html/dbnavig.dsl - html/dbdivis.dsl - -make-table-endnote-header - html/dbfootn.dsl html/dbfootn.dsl - -make-table-endnotes - html/dbfootn.dsl html/dbtable.dsl - -named-formal-objects - html/dbblock.dsl html/dbblock.dsl - -nav-banner html/dbnavig.dsl html/dbnavig.dsl - -nav-banner? html/dbnavig.dsl html/dbnavig.dsl - -nav-context html/dbnavig.dsl html/dbnavig.dsl - -nav-context-sosofo html/dbnavig.dsl html/dbnavig.dsl - -nav-context? html/dbnavig.dsl html/dbnavig.dsl - -nav-footer html/dbnavig.dsl html/dbnavig.dsl - -nav-home html/dbnavig.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - html/dbnavig.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - html/dbhtml.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -nav-home-link html/dbnavig.dsl html/dbnavig.dsl - -nav-home? html/dbnavig.dsl html/dbnavig.dsl - html/dbhtml.dsl - -nav-up html/dbnavig.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - html/dbnavig.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - html/dbhtml.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -nav-up-sosofo html/dbnavig.dsl html/dbnavig.dsl - -nav-up? html/dbnavig.dsl html/dbnavig.dsl - html/dbhtml.dsl - -navigate-to? html/dbchunk.dsl html/dbchunk.dsl - -next-chunk-element html/dbchunk.dsl html/dbnavig.dsl - html/dbchunk.dsl - html/dbhtml.dsl - -next-chunk-skip-children - html/dbchunk.dsl html/dbchunk.dsl - -next-chunk-with-children - html/dbchunk.dsl html/dbchunk.dsl - -next-major-component-chunk-element - html/dbchunk.dsl html/dbnavig.dsl - html/dbchunk.dsl - html/dbhtml.dsl - -next-peer-chunk-element - html/dbchunk.dsl html/dbchunk.dsl - -nl-author-string common/dbl1nl.dsl common/dbl10n.dsl - -nl-auto-xref-indirect-connector - common/dbl1nl.dsl common/dbl10n.dsl - -nl-element-name common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-intra-label-sep common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-label-number-format - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-label-number-format-list - common/dbl1nl.dsl common/dbl1nl.dsl - -nl-label-title-sep common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-lot-title common/dbl1nl.dsl common/dbl1nl.dsl - -nl-xref-strings common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nn-author-string common/dbl1nn.dsl common/dbl10n.dsl - -nn-auto-xref-indirect-connector - common/dbl1nn.dsl common/dbl10n.dsl - -nn-element-name common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-intra-label-sep common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-label-number-format - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-label-number-format-list - common/dbl1nn.dsl common/dbl1nn.dsl - -nn-label-title-sep common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-lot-title common/dbl1nn.dsl common/dbl1nn.dsl - -nn-xref-strings common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -no-author-string common/dbl1no.dsl common/dbl10n.dsl - -no-auto-xref-indirect-connector - common/dbl1no.dsl common/dbl10n.dsl - -no-element-name common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-intra-label-sep common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-label-number-format - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-label-number-format-list - common/dbl1no.dsl common/dbl1no.dsl - -no-label-title-sep common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-lot-title common/dbl1no.dsl common/dbl1no.dsl - -no-xref-strings common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -nochunks html/dbparam.dsl html/dbsect.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - html/dbchunk.dsl - html/dbhtml.dsl - html/dbfootn.dsl - html/dbparam.dsl - -non-table-footnotes - html/dbfootn.dsl html/dbfootn.dsl - -nontable-biblioentry - html/dbbibl.dsl html/dbbibl.dsl - -nontable-bibliomixed - html/dbbibl.dsl html/dbbibl.dsl - -normalized-member common/dbcommon.dsl common/dbcommon.dsl - -object-title-after html/dbblock.dsl html/dbblock.dsl - -olink-href html/dblink.dsl html/dblink.dsl - -olink-link html/dblink.dsl html/dblink.dsl - -olink-outline html/dblink.dsl html/dblink.dsl - -olink-outline-xref html/dblink.dsl html/dblink.dsl - -olink-resource-title - common/dbcommon.dsl html/dblink.dsl - -olink-simple html/dblink.dsl html/dblink.dsl - -optional-title common/dbcommon.dsl common/dbcommon.dsl - -optional-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -orderedlist-listitem-label - common/dbcommon.dsl common/dbcommon.dsl - html/dblink.dsl - -orderedlist-listitem-label-recursive - common/dbcommon.dsl html/dblink.dsl - -orderedlist-listitem-number - common/dbcommon.dsl common/dbcommon.dsl - html/dblists.dsl - -outer-parent-list common/dbcommon.dsl - -overhang-skip common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -para-check html/dbhtml.dsl html/dbverb.dsl - html/dblists.dsl - -paramdef-parameter html/dbsynop.dsl html/dbsynop.dsl - -part-autolabel common/dbcommon.dsl common/dbcommon.dsl - -part-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -part-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -part-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -part-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -part-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -part-title common/dbcommon.dsl html/dbttlpg.dsl - common/dbcommon.dsl - html/dbdivis.dsl - -part-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -part-titlepage html/dbttlpg.dsl html/dbttlpg.dsl - html/dbdivis.dsl - -part-titlepage-abbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-abstract - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-address - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-affiliation - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-artpagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-author - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-authorblurb - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-authorgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-authorinitials - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-before - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-bibliomisc - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-biblioset - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-bookbiblio - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-citetitle - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-collab - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-confgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-content? - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-contractnum - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-contractsponsor - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-contrib - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-corpauthor - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-corpname - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-date - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-default - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-edition - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-editor - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-element - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-firstname - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-graphic - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-honorific - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-indexterm - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-invpartnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-isbn - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-issn - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-issuenum - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-itermset - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-keywordset - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-lineage - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-mediaobject - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-modespec - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-orgname - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-othercredit - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-othername - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-pagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-partintro - html/dbttlpg.dsl - -part-titlepage-printhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-productname - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-productnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-pubdate - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-publisher - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-publishername - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-pubsnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-recto-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-releaseinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-revhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-separator - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-seriesinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-seriesvolnums - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-subjectset - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-subtitle - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-surname - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-title - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-titleabbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-verso-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -part-titlepage-volumenum - html/dbttlpg.dsl html/dbttlpg.dsl - -perl-method-synopsis - html/dbefsyn.dsl html/dbefsyn.dsl - -pi-value html/dbpi.dsl html/dbpi.dsl - html/dbchunk.dsl - -pl-author-string common/dbl1pl.dsl common/dbl10n.dsl - -pl-auto-xref-indirect-connector - common/dbl1pl.dsl common/dbl10n.dsl - -pl-element-name common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-intra-label-sep common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-label-number-format - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-label-number-format-list - common/dbl1pl.dsl common/dbl1pl.dsl - -pl-label-title-sep common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-lot-title common/dbl1pl.dsl common/dbl1pl.dsl - -pl-xref-strings common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -preface-autolabel common/dbcommon.dsl common/dbcommon.dsl - -preface-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -preface-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -preface-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-title common/dbcommon.dsl common/dbcommon.dsl - -preface-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -preferred-mediaobject-extensions - html/db31.dsl common/dbcommon.dsl - -preferred-mediaobject-notations - html/db31.dsl common/dbcommon.dsl - -prev-chunk-element html/dbchunk.dsl html/dbnavig.dsl - html/dbchunk.dsl - html/dbhtml.dsl - -prev-major-component-chunk-element - html/dbchunk.dsl html/dbnavig.dsl - html/dbchunk.dsl - html/dbhtml.dsl - -prev-peer-chunk-element - html/dbchunk.dsl html/dbchunk.dsl - -process-nonterminal - html/dbindex.dsl html/dbindex.dsl - -process-primary html/dbindex.dsl html/dbindex.dsl - -process-qanda-toc html/db31.dsl html/db31.dsl - -process-secondary html/dbindex.dsl html/dbindex.dsl - -process-terminal html/dbindex.dsl html/dbindex.dsl - -process-tertiary html/dbindex.dsl html/dbindex.dsl - -pt-author-string common/dbl1pt.dsl common/dbl10n.dsl - -pt-auto-xref-indirect-connector - common/dbl1pt.dsl common/dbl10n.dsl - -pt-element-name common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-intra-label-sep common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-label-number-format - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-label-number-format-list - common/dbl1pt.dsl common/dbl1pt.dsl - -pt-label-title-sep common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-lot-title common/dbl1pt.dsl common/dbl1pt.dsl - -pt-xref-strings common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -ptbr-author-string common/dbl1ptbr.dsl common/dbl10n.dsl - -ptbr-auto-xref-indirect-connector - common/dbl1ptbr.dsl common/dbl10n.dsl - -ptbr-element-name common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-label-number-format - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-label-number-format-list - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-lot-title common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -ptbr-xref-strings common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -python-method-synopsis - html/dbefsyn.dsl html/dbefsyn.dsl - -qanda-defaultlabel html/db31.dsl html/db31.dsl - common/dbcommon.dsl - -qanda-section-level - html/db31.dsl html/db31.dsl - -qandadiv-section-level - html/db31.dsl html/db31.dsl - -question-answer-label - common/dbcommon.dsl html/db31.dsl - html/dblink.dsl - -refentry-autolabel common/dbcommon.dsl common/dbcommon.dsl - -refentry-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -refentry-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -refentry-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-title common/dbcommon.dsl common/dbcommon.dsl - -refentry-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -reference-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -reference-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -reference-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -reference-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-title common/dbcommon.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - common/dbcommon.dsl - -reference-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -reference-titlepage - html/dbttlpg.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - -reference-titlepage-abbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-abstract - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-address - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-affiliation - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-artpagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-author - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-authorblurb - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-authorgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-authorinitials - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-before - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-bibliomisc - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-biblioset - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-bookbiblio - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-citetitle - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-collab - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-confgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-content? - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-contractnum - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-contractsponsor - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-contrib - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-corpauthor - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-corpname - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-date - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-default - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-edition - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-editor - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-element - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-firstname - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-graphic - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-honorific - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-indexterm - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-invpartnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-isbn - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-issn - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-issuenum - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-itermset - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-keywordset - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-lineage - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-mediaobject - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-modespec - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-orgname - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-othercredit - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-othername - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-pagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-printhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-productname - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-productnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-pubdate - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-publisher - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-publishername - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-pubsnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-recto-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-releaseinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-revhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-separator - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-seriesinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-seriesvolnums - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-subjectset - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-subtitle - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-surname - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-title - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-titleabbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-verso-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -reference-titlepage-volumenum - html/dbttlpg.dsl html/dbttlpg.dsl - -refsection-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -refsection-title common/dbcommon.dsl common/dbcommon.dsl - -refsection-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -refsynopsisdiv-title - common/dbcommon.dsl common/dbcommon.dsl - -refsynopsisdiv-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -ro-author-string common/dbl1ro.dsl common/dbl10n.dsl - -ro-auto-xref-indirect-connector - common/dbl1ro.dsl common/dbl10n.dsl - -ro-element-name common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-intra-label-sep common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-label-number-format - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-label-number-format-list - common/dbl1ro.dsl common/dbl1ro.dsl - -ro-label-title-sep common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-lot-title common/dbl1ro.dsl common/dbl1ro.dsl - -ro-xref-strings common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -root-rel-path html/dbchunk.dsl html/dbadmon.dsl - html/dbcallou.dsl - -rootchunk html/dbparam.dsl html/dbhtml.dsl - -ru-author-string common/dbl1ru.dsl common/dbl10n.dsl - -ru-auto-xref-indirect-connector - common/dbl1ru.dsl common/dbl10n.dsl - -ru-element-name common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-intra-label-sep common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-label-number-format - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-label-number-format-list - common/dbl1ru.dsl common/dbl1ru.dsl - -ru-label-title-sep common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-lot-title common/dbl1ru.dsl common/dbl1ru.dsl - -ru-xref-strings common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -section-autolabel common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -section-autolabel-prefix - common/dbcommon.dsl common/dbcommon.dsl - -section-element-depth - html/dbchunk.dsl html/dbchunk.dsl - -section-element-list - common/dbcommon.dsl html/dbindex.dsl - html/dbnavig.dsl - html/dbbibl.dsl - common/dbcommon.dsl - html/dbautoc.dsl - html/dbchunk.dsl - -section-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -section-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -section-html-base html/dbchunk.dsl html/dbchunk.dsl - -section-level-by-gi - common/dbcommon.dsl html/dbsect.dsl - common/dbcommon.dsl - -section-level-by-node - common/dbcommon.dsl html/dbsect.dsl - -section-title common/dbcommon.dsl html/dbindex.dsl - html/dbsect.dsl - html/dbbibl.dsl - common/dbcommon.dsl - html/dbgloss.dsl - -section-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -select-displayable-object - common/dbcommon.dsl common/dbcommon.dsl - -set-autolabel common/dbcommon.dsl common/dbcommon.dsl - -set-element-list common/dbcommon.dsl - -set-footer-navigation - html/dbnavig.dsl html/dbnavig.dsl - -set-header-navigation - html/dbnavig.dsl html/dbnavig.dsl - -set-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -set-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -set-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -set-title common/dbcommon.dsl html/dbttlpg.dsl - common/dbcommon.dsl - html/dbdivis.dsl - -set-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -set-titlepage html/dbttlpg.dsl html/dbttlpg.dsl - html/dbdivis.dsl - -set-titlepage-abbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-abstract - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-address - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-affiliation - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-artpagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-author - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-authorblurb - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-authorgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-authorinitials - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-before - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-bibliomisc - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-biblioset - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-bookbiblio - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-citetitle - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-collab - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-confgroup - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-content? - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-contractnum - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-contractsponsor - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-contrib - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-corpauthor - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-corpname - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-date html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-default - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-edition - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-editor - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-element - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-firstname - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-graphic - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-honorific - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-indexterm - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-invpartnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-isbn html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-issn html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-issuenum - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-itermset - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-keywordset - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-lineage - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-mediaobject - html/dbttlpg.dsl - -set-titlepage-modespec - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-orgname - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-othercredit - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-othername - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-pagenums - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-printhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-productname - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-productnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-pubdate - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-publisher - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-publishername - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-pubsnumber - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-recto-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-releaseinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-revhistory - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-separator - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-seriesinfo - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-seriesvolnums - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-subjectset - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-subtitle - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-surname - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-title - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-titleabbrev - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-verso-elements - html/dbttlpg.dsl html/dbttlpg.dsl - -set-titlepage-volumenum - html/dbttlpg.dsl html/dbttlpg.dsl - -setindex-autolabel common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-title common/dbcommon.dsl common/dbcommon.dsl - -setindex-title-sosofo - common/dbcommon.dsl - -sidebar-autolabel common/dbcommon.dsl common/dbcommon.dsl - -simplelist-entry html/dblists.dsl html/dblists.dsl - -simplelist-row html/dblists.dsl html/dblists.dsl - -simplelist-table html/dblists.dsl html/dblists.dsl - -sk-author-string common/dbl1sk.dsl common/dbl10n.dsl - -sk-auto-xref-indirect-connector - common/dbl1sk.dsl common/dbl10n.dsl - -sk-element-name common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-intra-label-sep common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-label-number-format - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-label-number-format-list - common/dbl1sk.dsl common/dbl1sk.dsl - -sk-label-title-sep common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-lot-title common/dbl1sk.dsl common/dbl1sk.dsl - -sk-xref-strings common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sl-author-string common/dbl1sl.dsl common/dbl10n.dsl - -sl-auto-xref-indirect-connector - common/dbl1sl.dsl common/dbl10n.dsl - -sl-element-name common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-intra-label-sep common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-label-number-format - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-label-number-format-list - common/dbl1sl.dsl common/dbl1sl.dsl - -sl-label-title-sep common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-lot-title common/dbl1sl.dsl common/dbl1sl.dsl - -sl-xref-strings common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -spanspec-align common/dbtable.dsl html/dbtable.dsl - -spanspec-char common/dbtable.dsl - -spanspec-charoff common/dbtable.dsl - -spanspec-colsep common/dbtable.dsl - -spanspec-nameend common/dbtable.dsl common/dbtable.dsl - -spanspec-namest common/dbtable.dsl common/dbtable.dsl - -spanspec-rowsep common/dbtable.dsl - -spanspec-spanname common/dbtable.dsl - -split-node-list html/dbchunk.dsl html/dbchunk.dsl - -sr-author-string common/dbl1sr.dsl common/dbl10n.dsl - -sr-auto-xref-indirect-connector - common/dbl1sr.dsl common/dbl10n.dsl - -sr-element-name common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-intra-label-sep common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-label-number-format - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-label-number-format-list - common/dbl1sr.dsl common/dbl1sr.dsl - -sr-label-title-sep common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-lot-title common/dbl1sr.dsl common/dbl1sr.dsl - -sr-xref-strings common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -step-autolabel common/dbcommon.dsl common/dbcommon.dsl - -stylesheet-version html/version.dsl html/dbhtml.dsl - -sv-author-string common/dbl1sv.dsl common/dbl10n.dsl - -sv-auto-xref-indirect-connector - common/dbl1sv.dsl common/dbl10n.dsl - -sv-element-name common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-intra-label-sep common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-label-number-format - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-label-number-format-list - common/dbl1sv.dsl common/dbl1sv.dsl - -sv-label-title-sep common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-lot-title common/dbl1sv.dsl common/dbl1sv.dsl - -sv-xref-strings common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -table-biblioentry html/dbbibl.dsl html/dbbibl.dsl - -table-bibliomixed html/dbbibl.dsl html/dbbibl.dsl - -table-footnote-number - html/dbfootn.dsl html/dbfootn.dsl - -tgroup-align common/dbtable.dsl html/dbtable.dsl - -tgroup-colsep common/dbtable.dsl - -tgroup-rowsep common/dbtable.dsl - -titlepage-content? html/dbttlpg.dsl html/dbttlpg.dsl - -titlepage-gi-list-by-elements - html/dbttlpg.dsl html/dbbibl.dsl - html/dbttlpg.dsl - -titlepage-gi-list-by-nodelist - html/dbttlpg.dsl html/dbbibl.dsl - html/dbttlpg.dsl - -titlepage-info-elements - common/dbcommon.dsl html/dbrfntry.dsl - html/dbcompon.dsl - html/dbdivis.dsl - -titlepage-nodelist html/dbttlpg.dsl html/dbttlpg.dsl - -titlepage-recto-copyright - html/dbttlpg.dsl html/dbttlpg.dsl - -titlepage-recto-legalnotice - html/dbttlpg.dsl html/dbttlpg.dsl - -toc-annotation html/dbautoc.dsl html/dbautoc.dsl - -toc-depth html/dbautoc.dsl html/dbrfntry.dsl - html/dbttlpg.dsl - html/dbcompon.dsl - html/dbdivis.dsl - -toc-entry html/dbautoc.dsl html/dbautoc.dsl - -toc-list-filter common/dbcommon.dsl html/dbautoc.dsl - -tr-author-string common/dbl1tr.dsl common/dbl10n.dsl - -tr-auto-xref-indirect-connector - common/dbl1tr.dsl common/dbl10n.dsl - -tr-element-name common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-intra-label-sep common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-label-number-format - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-label-number-format-list - common/dbl1tr.dsl common/dbl1tr.dsl - -tr-label-title-sep common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-lot-title common/dbl1tr.dsl common/dbl1tr.dsl - -tr-xref-strings common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -uk-author-string common/dbl1uk.dsl common/dbl10n.dsl - -uk-auto-xref-indirect-connector - common/dbl1uk.dsl common/dbl10n.dsl - -uk-element-name common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-intra-label-sep common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-label-number-format - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-label-number-format-list - common/dbl1uk.dsl common/dbl1uk.dsl - -uk-label-title-sep common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-lot-title common/dbl1uk.dsl common/dbl1uk.dsl - -uk-xref-strings common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -update-overhang common/dbtable.dsl html/dbtable.dsl - -use-output-dir html/dbparam.dsl html/dbchunk.dsl - -variablelist-term-too-long? - common/dbcommon.dsl html/dblists.dsl - -varlistentry-term-too-long? - common/dbcommon.dsl common/dbcommon.dsl - html/dblists.dsl - -vspan common/dbtable.dsl common/dbtable.dsl - html/dbtable.dsl - -xh-author-string common/dbl1xh.dsl common/dbl10n.dsl - -xh-auto-xref-indirect-connector - common/dbl1xh.dsl common/dbl10n.dsl - -xh-element-name common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-intra-label-sep common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-label-number-format - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-label-number-format-list - common/dbl1xh.dsl common/dbl1xh.dsl - -xh-label-title-sep common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-lot-title common/dbl1xh.dsl common/dbl1xh.dsl - -xh-xref-strings common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xref-author html/dblink.dsl html/dblink.dsl - -xref-authorgroup html/dblink.dsl html/dblink.dsl - -xref-biblioentry html/dblink.dsl html/dblink.dsl - -xref-general html/dblink.dsl html/dblink.dsl - -xref-glossentry html/dblink.dsl html/dblink.dsl - -xref-refentry html/dblink.dsl html/dblink.dsl - -xref-refnamediv html/dblink.dsl html/dblink.dsl - -xreflabel-sosofo html/dblink.dsl html/dblink.dsl - -zhcn-author-string common/dbl1zhcn.dsl common/dbl10n.dsl - -zhcn-auto-xref-indirect-connector - common/dbl1zhcn.dsl common/dbl10n.dsl - -zhcn-element-name common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-label-number-format - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-label-number-format-list - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-lot-title common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -zhcn-xref-strings common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhtw-author-string common/dbl1zhtw.dsl common/dbl10n.dsl - -zhtw-auto-xref-indirect-connector - common/dbl1zhtw.dsl common/dbl10n.dsl - -zhtw-element-name common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-label-number-format - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-label-number-format-list - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-lot-title common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -zhtw-xref-strings common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - - -zhhk-author-string common/dbl1zhhk.dsl common/dbl10n.dsl - -zhhk-auto-xref-indirect-connector - common/dbl1zhhk.dsl common/dbl10n.dsl - -zhhk-element-name common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-label-number-format - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-label-number-format-list - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-lot-title common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -zhhk-xref-strings common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - diff --git a/docs/dsssl/docbook/html/catalog b/docs/dsssl/docbook/html/catalog deleted file mode 100755 index f5ce23a1..00000000 --- a/docs/dsssl/docbook/html/catalog +++ /dev/null @@ -1,3 +0,0 @@ -CATALOG "../catalog" - - diff --git a/docs/dsssl/docbook/html/db31.dsl b/docs/dsssl/docbook/html/db31.dsl deleted file mode 100755 index 6738edf8..00000000 --- a/docs/dsssl/docbook/html/db31.dsl +++ /dev/null @@ -1,301 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; This module implements support for elements introduced in DocBook 3.1. -;; When DocBook 3.1 is officially released, these rules will get folded -;; into more appropriate modules. - -;; ====================================================================== -;; MediaObject and friends... - -(define preferred-mediaobject-notations - (list "JPG" "JPEG" "PNG" "linespecific")) - -(define preferred-mediaobject-extensions - (list "jpeg" "jpg" "png" "avi" "mpg" "mpeg" "qt")) - -(define acceptable-mediaobject-notations - (list "GIF" "GIF87a" "GIF89a" "BMP" "WMF")) - -(define acceptable-mediaobject-extensions - (list "gif" "bmp" "wmf")) - -(element mediaobject - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "P" - ($mediaobject$)))) - -(element inlinemediaobject - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - ($mediaobject$))) - -(element mediaobjectco - (process-children)) - -(element imageobjectco - (process-children)) - -(element objectinfo - (empty-sosofo)) - -(element videoobject - (process-children)) - -(element videodata - (let ((filename (data-filename (current-node)))) - (make element gi: "EMBED" - attributes: (list (list "SRC" filename))))) - -(element audioobject - (process-children)) - -(element audiodata - (let ((filename (data-filename (current-node)))) - (make element gi: "EMBED" - attributes: (list (list "SRC" filename))))) - -(element imageobject - (process-children)) - -(element imagedata - (let* ((filename (data-filename (current-node))) - (mediaobj (parent (parent (current-node)))) - (textobjs (select-elements (children mediaobj) - (normalize "textobject"))) - (alttext (let loop ((nl textobjs) (alttext #f)) - (if (or alttext (node-list-empty? nl)) - alttext - (let ((phrase (select-elements - (children - (node-list-first nl)) - (normalize "phrase")))) - (if (node-list-empty? phrase) - (loop (node-list-rest nl) #f) - (loop (node-list-rest nl) - (data (node-list-first phrase)))))))) - (fileref (attribute-string (normalize "fileref"))) - (entityref (attribute-string (normalize "entityref"))) - (format (if (attribute-string (normalize "format")) - (attribute-string (normalize "format")) - (if entityref - (entity-notation entityref) - #f)))) - (if (equal? format (normalize "linespecific")) - (if fileref - (include-file fileref) - (include-file (entity-generated-system-id entityref))) - ($img$ (current-node) alttext)))) - -(element textobject - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - -(element caption - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - -;; ====================================================================== -;; InformalFigure - -(element informalfigure - ($informal-object$ %informalfigure-rules% %informalfigure-rules%)) - -;; ====================================================================== -;; Colophon - -(element colophon - ($component$)) - -;; ====================================================================== -;; section -;; sectioninfo - -(element section ($section$)) -(element (section title) (empty-sosofo)) - -;; ====================================================================== -;; QandASet and friends - -(define (qanda-defaultlabel) - (normalize "number")) - -(define (qanda-section-level) - ;; FIXME: what if they nest inside each other? - (let* ((enclsect (ancestor-member (current-node) - (list (normalize "section") - (normalize "simplesect") - (normalize "sect5") - (normalize "sect4") - (normalize "sect3") - (normalize "sect2") - (normalize "sect1") - (normalize "refsect3") - (normalize "refsect2") - (normalize "refsect1"))))) - (SECTLEVEL enclsect))) - -(define (qandadiv-section-level) - (let ((depth (length (hierarchical-number-recursive - (normalize "qandadiv"))))) - (+ (qanda-section-level) depth))) - -(element qandaset - (let ((title (select-elements (children (current-node)) - (normalize "title"))) - ;; process title and rest separately so that we can put the TOC - ;; in the rigth place... - (rest (node-list-filter-by-not-gi (children (current-node)) - (list (normalize "title"))))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-node-list title) - (if ($generate-qandaset-toc$) - (process-qanda-toc) - (empty-sosofo)) - (process-node-list rest)))) - -(element (qandaset title) - (let* ((htmlgi (string-append "H" (number->string - (+ (qanda-section-level) 1))))) - (make element gi: htmlgi - attributes: (list (list "CLASS" (gi (current-node)))) - (process-children)))) - -(element qandadiv - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - -(element (qandadiv title) - (let* ((hnr (hierarchical-number-recursive (normalize "qandadiv") - (current-node))) - (number (let loop ((numlist hnr) (number "") (sep "")) - (if (null? numlist) - number - (loop (cdr numlist) - (string-append number - sep - (number->string (car numlist))) - ".")))) - (htmlgi (string-append "H" (number->string - (+ (qandadiv-section-level) 1))))) - (make element gi: htmlgi - (make element gi: "A" - attributes: (list (list "NAME" (element-id - (parent (current-node))))) - (empty-sosofo)) - (literal number ". ") - (process-children)))) - -(element qandaentry - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - -(element question - (let* ((chlist (children (current-node))) - (firstch (node-list-first chlist)) - (restch (node-list-rest chlist))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "P" - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (make element gi: "B" - (literal (question-answer-label (current-node)) " ")) - (process-node-list (children firstch))) - (process-node-list restch)))) - -(element answer - (let* ((inhlabel (inherited-attribute-string (normalize "defaultlabel"))) - (deflabel (if inhlabel inhlabel (qanda-defaultlabel))) - (label (attribute-string (normalize "label"))) - (chlist (children (current-node))) - (firstch (node-list-first chlist)) - (restch (node-list-rest chlist))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "P" - (make element gi: "B" - (literal (question-answer-label (current-node)) " ")) - (process-node-list (children firstch))) - (process-node-list restch)))) - -;; = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = - -(define (process-qanda-toc #!optional (node (current-node))) - (let* ((divs (node-list-filter-by-gi (children node) - (list (normalize "qandadiv")))) - (entries (node-list-filter-by-gi (children node) - (list (normalize "qandaentry")))) - (inhlabel (inherited-attribute-string (normalize "defaultlabel"))) - (deflabel (if inhlabel inhlabel (qanda-defaultlabel)))) - (make element gi: "DL" - (with-mode qandatoc - (process-node-list divs)) - (with-mode qandatoc - (process-node-list entries))))) - -(mode qandatoc - (element qandadiv - (let ((title (select-elements (children (current-node)) - (normalize "title")))) - (make sequence - (make element gi: "DT" - (process-node-list title)) - (make element gi: "DD" - (process-qanda-toc))))) - - (element (qandadiv title) - (let* ((hnr (hierarchical-number-recursive (normalize "qandadiv") - (current-node))) - (number (let loop ((numlist hnr) (number "") (sep "")) - (if (null? numlist) - number - (loop (cdr numlist) - (string-append number - sep - (number->string (car numlist))) - "."))))) - (make sequence - (literal number ". ") - (make element gi: "A" - attributes: (list (list "HREF" - (href-to (parent (current-node))))) - (process-children))))) - - (element qandaentry - (process-children)) - - (element question - (let* ((chlist (children (current-node))) - (firstch (node-list-first chlist))) - (make element gi: "DT" - (literal (question-answer-label (current-node)) " ") - (make element gi: "A" - attributes: (list (list "HREF" (href-to (current-node)))) - (process-node-list (children firstch)))))) - - (element answer - (empty-sosofo)) -) - -;; ====================================================================== -;; constant - -(element constant - ($mono-seq$)) - -;; ====================================================================== -;; varname - -(element varname - ($mono-seq$)) diff --git a/docs/dsssl/docbook/html/dbadmon.dsl b/docs/dsssl/docbook/html/dbadmon.dsl deleted file mode 100755 index 7aab7834..00000000 --- a/docs/dsssl/docbook/html/dbadmon.dsl +++ /dev/null @@ -1,171 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================ ADMONITIONS ============================= - -(define ($graphical-admonition$) - (let* ((adm (current-node)) - (id (attribute-string (normalize "id"))) - (title (select-elements (children adm) - (normalize "title"))) - (title? (not (node-list-empty? title))) - (adm-title (if title? - (with-mode title-sosofo-mode - (process-node-list (node-list-first title))) - (literal (gentext-element-name adm)))) - (gr-cell (make element gi: "TD" - attributes: (list - (list "WIDTH" - ($admon-graphic-width$)) - (list "ALIGN" "CENTER") - (list "VALIGN" "TOP")) - (make empty-element gi: "IMG" - attributes: (list - (list "SRC" - (root-rel-path - ($admon-graphic$))) - (list "HSPACE" "5") - (list "ALT" - (gentext-element-name adm)))))) - (ttl-cell (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "CENTER")) - (make element gi: "B" adm-title))) - (body-cell (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP")) - (process-children)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi adm))) - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (make element gi: "TABLE" - attributes: (list (list "CLASS" (gi)) - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (if title? - (make sequence - (make element gi: "TR" - gr-cell - ttl-cell) - (make element gi: "TR" - (make element gi: "TD" - (make entity-ref name: "nbsp")) - body-cell)) - (make sequence - (make element gi: "TR" - gr-cell - body-cell))))))) - -(define ($admonition$) - (let ((id (attribute-string (normalize "id")))) - (if %admon-graphics% - ($graphical-admonition$) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ;; The DIV isn't strictly necessary, of course, but it - ;; is consistent with the graphical-admonition case. - (make element gi: "BLOCKQUOTE" - attributes: (list - (list "CLASS" (gi))) - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - (process-children)))))) - -(define ($admonpara$) - (let* ((title (select-elements - (children (parent (current-node))) (normalize "title"))) - (has-title (not (node-list-empty? title))) - (adm-title (if has-title - (make sequence - (with-mode title-sosofo-mode - (process-node-list (node-list-first title))) - (literal (gentext-label-title-sep - (gi (parent (current-node)))))) - (literal - (gentext-element-name - (gi (parent (current-node)))) - (gentext-label-title-sep - (gi (parent (current-node)))))))) - (make element gi: "P" - (if (and (not %admon-graphics%) (= (child-number) 1)) - (make element gi: "B" - adm-title) - (empty-sosofo)) - (process-children)))) - -(element important ($admonition$)) -(element (important title) (empty-sosofo)) -(element (important para) ($admonpara$)) -(element (important simpara) ($admonpara$)) -(element note ($admonition$)) -(element (note title) (empty-sosofo)) -(element (note para) ($admonpara$)) -(element (note simpara) ($admonpara$)) -(element tip ($admonition$)) -(element (tip title) (empty-sosofo)) -(element (tip para) ($admonpara$)) -(element (tip simpara) ($admonpara$)) - -;; perils are given special treatment by generating a centered title -;; and throwing a box around them -;; -(define ($peril$) - (let* ((title (select-elements - (children (current-node)) (normalize "title"))) - (has-title (not (node-list-empty? title))) - (adm-title (if has-title - (make sequence - (with-mode title-sosofo-mode - (process-node-list (node-list-first title)))) - (literal - (gentext-element-name - (gi (current-node)))))) - (id (attribute-string (normalize "id")))) - (if %admon-graphics% - ($graphical-admonition$) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ;; The DIV isn't strictly necessary, of course, but it - ;; is consistent with the graphical-admonition case. - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (make element gi: "TABLE" - attributes: (list - (list "CLASS" (gi)) - (list "BORDER" "1") - (list "WIDTH" ($table-width$))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "CENTER")) - (make element gi: "B" - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - adm-title))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (process-children)))))))) - -(element caution ($peril$)) -(element warning ($peril$)) -(element (caution title) (empty-sosofo)) -(element (warning title) (empty-sosofo)) diff --git a/docs/dsssl/docbook/html/dbautoc.dsl b/docs/dsssl/docbook/html/dbautoc.dsl deleted file mode 100755 index 0a7cf539..00000000 --- a/docs/dsssl/docbook/html/dbautoc.dsl +++ /dev/null @@ -1,128 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================== TABLE OF CONTENTS ========================= - -;; Returns the depth of auto TOC that should be made at the nd-level -(define (toc-depth nd) - (if (string=? (gi nd) (normalize "book")) - 3 - 1)) - -(define (toc-entry tocentry) - (make element gi: "DT" - (make sequence - (if (equal? (element-label tocentry) "") - (empty-sosofo) - (make sequence - (literal (element-label tocentry)) - (literal (gentext-label-title-sep - (gi tocentry))))) - - ;; If the tocentry isn't in its own - ;; chunk, don't make a link... - (if (and #f (not (chunk? tocentry))) - (element-title-sosofo tocentry) - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to tocentry))) - (element-title-sosofo tocentry))) - - ;; Maybe annotate... - (if (and %annotate-toc% - (equal? (gi tocentry) (normalize "refentry"))) - (make sequence - (dingbat-sosofo "nbsp"); - (dingbat-sosofo "em-dash"); - (dingbat-sosofo "nbsp"); - (toc-annotation tocentry)) - (empty-sosofo))))) - -(define (toc-annotation tocentry) - ;; only handles refentry at the moment - (let* ((refnamediv (select-elements (children tocentry) - (normalize "refnamediv"))) - (refpurpose (select-elements (children refnamediv) - (normalize "refpurpose")))) - (process-node-list (children refpurpose)))) - -(define (build-toc nd depth #!optional (chapter-toc? #f) (first? #t)) - (let ((toclist (toc-list-filter - (node-list-filter-by-gi (children nd) - (append (division-element-list) - (component-element-list) - (section-element-list))))) - (wrappergi (if first? "DIV" "DD")) - (wrapperattr (if first? '(("CLASS" "TOC")) '()))) - (if (or (<= depth 0) - (node-list-empty? toclist) - (and chapter-toc? - (not %force-chapter-toc%) - (<= (node-list-length toclist) 1))) - (empty-sosofo) - (make element gi: wrappergi - attributes: wrapperattr - (make element gi: "DL" - (if first? - (make element gi: "DT" - (make element gi: "B" - (literal (gentext-element-name (normalize "toc"))))) - (empty-sosofo)) - (let loop ((nl toclist)) - (if (node-list-empty? nl) - (empty-sosofo) - (sosofo-append - (toc-entry (node-list-first nl)) - (build-toc (node-list-first nl) - (- depth 1) chapter-toc? #f) - (loop (node-list-rest nl)))))))))) - -;; Print the LOT entry -(define (lot-entry tocentry) - (make element gi: "DT" - (make sequence - (if (equal? (element-label tocentry) "") - (empty-sosofo) - (make sequence - (literal (element-label tocentry)) - (literal (gentext-label-title-sep - (gi tocentry))))) - - ;; If the tocentry isn't in its own - ;; chunk, don't make a link... - (if (and #f (not (chunk? tocentry))) - (element-title-sosofo tocentry) - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to tocentry))) - (element-title-sosofo tocentry)))))) - -;; Build a LOT starting at nd for all the lotgi's it contains. -;; The optional arguments are used on recursive calls to build-toc -;; and shouldn't be set by the initial caller... -;; - -(define (build-lot nd lotgi) - (let* ((lotlist (select-elements (descendants nd) - (normalize lotgi)))) - (if (node-list-empty? lotlist) - (empty-sosofo) - (make element gi: "DIV" - attributes: '(("CLASS" "LOT")) - (make element gi: "DL" - attributes: '(("CLASS" "LOT")) - (make element gi: "DT" - (make element gi: "B" - (literal ($lot-title$ - (gi (node-list-first lotlist)))))) - (let loop ((lote lotlist)) - (if (node-list-empty? lote) - (empty-sosofo) - (make sequence - (lot-entry (node-list-first lote)) - (loop (node-list-rest lote)))))))))) diff --git a/docs/dsssl/docbook/html/dbbibl.dsl b/docs/dsssl/docbook/html/dbbibl.dsl deleted file mode 100755 index 0f0355a7..00000000 --- a/docs/dsssl/docbook/html/dbbibl.dsl +++ /dev/null @@ -1,997 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ......................... BIBLIOGRAPHY PARAMS ......................... - -;; these should be in dbparam... -(define %biblsep% ", ") -(define %biblend% ".") -(define bibltable #f) - -(define (bibliography-table) - (let* ((bibliography (ancestor-member (current-node) - (list (normalize "bibliography")))) - (biblpi (dbhtml-value bibliography "bibliography-format"))) - (and (or bibltable (equal? biblpi "table")) - (not (equal? biblpi "list"))))) - -(define %biblioentry-in-entry-order% #t) - -;; .................... BIBLIOGRAPHY and BIBLIODIV ...................... - -(define (bibliography-content) - ;; Note that the code below works for both the case where the bibliography - ;; has BIBLIODIVs and the case where it doesn't, by the slightly subtle - ;; fact that if it does, then allentries will be (empty-node-list). - (let* ((allbibcontent (children (current-node))) - (prebibcontent (node-list-filter-by-not-gi - allbibcontent - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (allentries (node-list-filter-by-gi - allbibcontent - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (entries (if biblio-filter-used - (biblio-filter allentries) - allentries))) - (make sequence - (process-node-list prebibcontent) - (if (bibliography-table) - (make element gi: "TABLE" - attributes: '(("BORDER" "0")) - (process-node-list entries)) - (process-node-list entries))))) - -(element (book bibliography) - (let ((title (element-title-sosofo (current-node))) - (body (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - ($component-separator$) - ($component-title$) - (bibliography-content)))) - (html-document title body))) - -(element (article bibliography) - (let ((title (element-title-sosofo (current-node))) - (body (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - ($component-separator$) - ($component-title$) - (bibliography-content)))) - (html-document title body))) - -(element bibliography - ;; A bibliography that's inside something else...or root - (if (sgml-root-element? (current-node)) - (let ((title (element-title-sosofo (current-node))) - (body (make sequence - (make element gi: "A" - attributes: (list (list "NAME" - (element-id))) - (empty-sosofo)) - ($component-separator$) - ($component-title$) - (bibliography-content)))) - (html-document title body)) - (let* ((sect (ancestor-member (current-node) - (append (section-element-list) - (component-element-list)))) - (hlevel (+ (SECTLEVEL sect) 1)) - (helem (string-append "H" (number->string (+ hlevel 1))))) - (make sequence - (make element gi: helem - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (element-title-sosofo (current-node)))) - (bibliography-content))))) - -(element (bibliography title) (empty-sosofo)) - -(element bibliodiv - (let* ((allentries (node-list-filter-by-gi (children (current-node)) - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (entries (if biblio-filter-used - (biblio-filter allentries) - allentries))) - (if (and biblio-filter-used (node-list-empty? entries)) - (empty-sosofo) - (make sequence - ($section-separator$) - ($section-title$) - (if (bibliography-table) - (make element gi: "TABLE" - attributes: '(("BORDER" "0")) - (process-node-list entries)) - (process-node-list entries)))))) - -(element (bibliodiv title) (empty-sosofo)) - -;; ..................... BIBLIOGRAPHY ENTRIES ......................... - -(define (biblioentry-inline-sep node rest) - ;; Output the character that should separate inline node from rest - (cond - ((and (equal? (gi node) (normalize "title")) - (equal? (gi (node-list-first rest)) (normalize "subtitle"))) - (make element gi: "I" - (literal ": "))) - (else - (literal %biblsep%)))) - -(define (biblioentry-inline-end blocks) - ;; Output the character that should occur at the end of inline - (literal %biblend%)) - -(define (biblioentry-block-sep node rest) - ;; Output the character that should separate block node from rest - (empty-sosofo)) - -(define (biblioentry-block-end) - ;; Output the character that should occur at the end of block - (empty-sosofo)) - -(define (nontable-biblioentry - xreflabel leading-abbrev inline-children block-children) - (let ((has-leading-abbrev? - (not (or (node-list-empty? leading-abbrev) biblio-number)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (make element gi: "P" - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number - (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]") - (make entity-ref name: "nbsp")) - (empty-sosofo)) - - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-inline-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-inline-end block-children) - (biblioentry-inline-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl)))))) - - (make element gi: "DIV" - attributes: '(("CLASS" "BIBLIOENTRYBLOCK") - ("STYLE" "margin-left: 0.5in")) - (let loop ((nl block-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-block-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-block-end) - (biblioentry-block-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl))))))))) - -(define (table-biblioentry - xreflabel leading-abbrev inline-children block-children) - (let ((has-leading-abbrev? - (not (or (node-list-empty? leading-abbrev) biblio-number)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "10%")) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number - (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]")) - (make entity-ref name: "nbsp"))) - - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "90%")) - (make element gi: "P" - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-inline-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-inline-end block-children) - (biblioentry-inline-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl)))))) - - (let loop ((nl block-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-block-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-block-end) - (biblioentry-block-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl))))) - - (if (node-list-empty? block-children) - (empty-sosofo) - (make element gi: "P" - ;; get the table row spacing right - (empty-sosofo))))))) - -(element biblioentry - (let* ((expanded-children (expand-children - (children (current-node)) - (biblioentry-flatten-elements))) - (all-inline-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-inline-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-inline-elements) - expanded-children))) - (block-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-block-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-block-elements) - expanded-children))) - (leading-abbrev (if (equal? (normalize "abbrev") - (gi (node-list-first - all-inline-children))) - (node-list-first all-inline-children) - (empty-node-list))) - (inline-children (if (node-list-empty? leading-abbrev) - all-inline-children - (node-list-rest all-inline-children))) - (has-leading-abbrev? (not (node-list-empty? leading-abbrev))) - (xreflabel (if (or has-leading-abbrev? biblio-number) - #f - (attribute-string (normalize "xreflabel"))))) - (if (bibliography-table) - (table-biblioentry xreflabel leading-abbrev inline-children block-children) - (nontable-biblioentry xreflabel leading-abbrev inline-children block-children)))) - -(mode biblioentry-inline-mode - (element abbrev - (make sequence - (process-children))) - - (element affiliation - (let ((inline-children (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "address"))))) - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (process-node-list (node-list-first nl)) - (if (node-list-empty? (node-list-rest nl)) - (empty-sosofo) - (literal ", ")) - (loop (node-list-rest nl))))))) - - (element artpagenums - (make sequence - (process-children))) - - (element author - (make element gi: "SPAN" - attributes: '(("CLASS" "AUTHOR")) - (literal (author-list-string)))) - - (element authorgroup - (process-children)) - - (element authorinitials - (make sequence - (process-children))) - - (element collab - (let* ((nl (children (current-node))) - (collabname (node-list-first nl)) - (affil (node-list-rest nl))) - (make sequence - (process-node-list collabname) - (if (node-list-empty? affil) - (empty-sosofo) - (let loop ((nl affil)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (literal ", ") - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl))))))))) - - (element (collab collabname) - (process-children)) - - (element confgroup - (let ((inline-children (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "address"))))) - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (process-node-list (node-list-first nl)) - (if (node-list-empty? (node-list-rest nl)) - (empty-sosofo) - (literal ", ")) - (loop (node-list-rest nl))))))) - - (element contractnum - (process-children)) - - (element contractsponsor - (process-children)) - - (element contrib - (process-children)) - - (element copyright - ;; Just print the year(s) - (let ((years (select-elements (children (current-node)) - (normalize "year")))) - (process-node-list years))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (process-children))) - - (element corpname - (make sequence - (process-children))) - - (element date - (make sequence - (process-children))) - - (element edition - (make sequence - (process-children))) - - (element editor - (make element gi: "SPAN" - attributes: '(("CLASS" "EDITOR")) - (if (first-sibling?) - (make sequence - (literal (gentext-edited-by)) - (literal " ")) - (empty-sosofo)) - (literal (author-list-string)))) - - (element firstname - (make sequence - (process-children))) - - (element honorific - (make sequence - (process-children))) - - (element invpartnumber - (make sequence - (process-children))) - - (element isbn - (make sequence - (process-children))) - - (element issn - (make sequence - (process-children))) - - (element issuenum - (make sequence - (process-children))) - - (element lineage - (make sequence - (process-children))) - - (element orgname - (make sequence - (process-children))) - - (element othercredit - (make element gi: "SPAN" - attributes: '(("CLASS" "OTHERCREDIT")) - (literal (author-list-string)))) - - (element othername - (make sequence - (process-children))) - - (element pagenums - (make sequence - (process-children))) - - (element productname - (make sequence - ($charseq$) -; this is actually a problem since "trade" is the default value for -; the class attribute. we can put this back in in DocBook 5.0, when -; class becomes #IMPLIED -; (if (equal? (attribute-string "class") (normalize "trade")) -; (dingbat-sosofo "trademark") -; (empty-sosofo)) - )) - - (element productnumber - (make sequence - (process-children))) - - (element pubdate - (make sequence - (process-children))) - - (element publisher - (let ((pubname (select-elements (children (current-node)) - (normalize "publishername"))) - (cities (select-elements (descendants (current-node)) - (normalize "city")))) - (make sequence - (process-node-list pubname) - (if (node-list-empty? cities) - (empty-sosofo) - (literal ", ")) - (process-node-list cities)))) - - (element publishername - (make sequence - (process-children))) - - (element (publisher address city) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element pubsnumber - (make sequence - (process-children))) - - (element releaseinfo - (make sequence - (process-children))) - - (element seriesvolnums - (make sequence - (process-children))) - - (element subtitle - (make element gi: "I" - (process-children))) - - (element surname - (make sequence - (process-children))) - - (element title - (make element gi: "I" - (process-children))) - - (element titleabbrev - (make sequence - (process-children))) - - (element volumenum - (make sequence - (process-children))) - - (element (bibliomixed title) - (make element gi: "I" - (process-children))) - - (element (bibliomixed subtitle) - (make element gi: "I" - (process-children))) - - (element (biblioset title) - (let ((rel (case-fold-up - (inherited-attribute-string (normalize "relation"))))) - (cond - ((equal? rel "ARTICLE") (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote)))) - (else (make element gi: "I" - (process-children)))))) - - (element (bibliomset title) - (let ((rel (case-fold-up - (inherited-attribute-string (normalize "relation"))))) - (cond - ((equal? rel "ARTICLE") (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote)))) - (else (make element gi: "I" - (process-children)))))) -) - -(mode biblioentry-block-mode - (element abstract - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element (abstract title) - (make element gi: "P" - (make element gi: "B" - (process-children)))) - - (element address - ($linespecific-display$ %indent-address-lines% %number-address-lines%)) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element printhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (node-list-filter-by-gi - (descendants (current-node)) - (list (normalize "revremark") - (normalize "revdescription"))))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - (element (revision revdescription) (process-children)) - - (element seriesinfo - ;; This is a nearly biblioentry recursively... - (let* ((expanded-children (expand-children - (children (current-node)) - (biblioentry-flatten-elements))) - (all-inline-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-inline-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-inline-elements) - expanded-children))) - (block-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-block-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-block-elements) - expanded-children))) - (inline-children all-inline-children)) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "P" - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-inline-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-inline-end block-children) - (biblioentry-inline-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl)))))) - - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (let loop ((nl block-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-block-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-block-end) - (biblioentry-block-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl))))))))) -) - -(define (nontable-bibliomixed - xreflabel leading-abbrev inline-children) - (let* ((has-leading-abbrev? (not (node-list-empty? leading-abbrev)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number - (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]") - (make entity-ref name: "nbsp")) - (empty-sosofo)) - - (with-mode biblioentry-inline-mode - (process-node-list inline-children)))))) - -(define (table-bibliomixed - xreflabel leading-abbrev inline-children) - (let* ((has-leading-abbrev? (not (node-list-empty? leading-abbrev)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "10%")) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number - (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]")) - (make entity-ref name: "nbsp"))) - - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "90%")) - (with-mode biblioentry-inline-mode - (process-node-list inline-children)))))) - -(element bibliomixed - (let* ((all-inline-children (children (current-node))) - (leading-abbrev (if (equal? (normalize "abbrev") - (gi (node-list-first - all-inline-children))) - (node-list-first all-inline-children) - (empty-node-list))) - (inline-children (if (node-list-empty? leading-abbrev) - all-inline-children - (node-list-rest all-inline-children))) - (has-leading-abbrev? (not (node-list-empty? leading-abbrev))) - (xreflabel (if (or has-leading-abbrev? biblio-number) - #f - (attribute-string (normalize "xreflabel"))))) - (if (bibliography-table) - (table-bibliomixed xreflabel leading-abbrev inline-children) - (nontable-bibliomixed xreflabel leading-abbrev inline-children)))) - -;; ....................... BIBLIOGRAPHY ELEMENTS ....................... - -;; These are element construction rules for bibliography elements that -;; may occur outside of a BIBLIOENTRY or BIBLIOMIXED. - -(element bibliomisc (process-children)) -(element bibliomset (process-children)) -(element biblioset (process-children)) -(element bookbiblio (process-children)) - -(element street ($charseq$)) -(element pob ($charseq$)) -(element postcode ($charseq$)) -(element city ($charseq$)) -(element state ($charseq$)) -(element country ($charseq$)) -(element phone ($charseq$)) -(element fax ($charseq$)) -(element otheraddr ($charseq$)) -(element affiliation ($charseq$)) -(element shortaffil ($charseq$)) -(element jobtitle ($charseq$)) -(element orgdiv ($charseq$)) -(element artpagenums ($charseq$)) - -(element author - (make sequence - (literal (author-list-string)))) - -(element authorgroup (process-children)) - -(element collab (process-children)) -(element collabname ($charseq$)) -(element authorinitials ($charseq$)) -(element confgroup (process-children)) -(element confdates ($charseq$)) -(element conftitle ($charseq$)) -(element confnum ($charseq$)) -(element confsponsor ($charseq$)) -(element contractnum ($charseq$)) -(element contractsponsor ($charseq$)) - -(element copyright - (make sequence - (literal (gentext-element-name (gi (current-node)))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - -(element year - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - -(element holder ($charseq$)) - -(element corpauthor - (make sequence - (literal (author-list-string)))) - -(element corpname ($charseq$)) -(element date ($charseq$)) -(element edition ($charseq$)) -(element editor ($charseq$)) -(element isbn ($charseq$)) -(element issn ($charseq$)) -(element invpartnumber ($charseq$)) -(element issuenum ($charseq$)) - -(element legalnotice ($semiformal-object$)) -(element (legalnotice title) (empty-sosofo)) - -(element modespec (empty-sosofo)) - -(element orgname ($charseq$)) - -(element othercredit - (make sequence - (literal (author-list-string)))) - -(element pagenums ($charseq$)) -(element contrib ($charseq$)) - -(element firstname ($charseq$)) -(element honorific ($charseq$)) -(element lineage ($charseq$)) -(element othername ($charseq$)) -(element surname ($charseq$)) - -(element printhistory (empty-sosofo)) - - (element productname - (make sequence - ($charseq$) -; this is actually a problem since "trade" is the default value for -; the class attribute. we can put this back in in DocBook 5.0, when -; class becomes #IMPLIED -; (if (equal? (attribute-string "class") (normalize "trade")) -; (dingbat-sosofo "trademark") -; (empty-sosofo)) - )) - -(element productnumber ($charseq$)) -(element pubdate ($charseq$)) -(element publisher (process-children)) -(element publishername ($charseq$)) -(element pubsnumber ($charseq$)) -(element releaseinfo (empty-sosofo)) -(element revision ($charseq$)) -(element revnumber ($charseq$)) -(element revremark ($charseq$)) -(element revdescription ($block-container$)) -(element seriesvolnums ($charseq$)) -(element volumenum ($charseq$)) - -(element (bookbiblio revhistory) ($book-revhistory$)) - -;; The (element (bookinfo revhistory)) construction rule is in dbinfo.dsl -;; It calls $book-revhistory$... -(define ($book-revhistory$) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - -(element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (node-list-filter-by-gi - (descendants (current-node)) - (list (normalize "revremark") - (normalize "revdescription"))))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - -(element (revision revnumber) (process-children-trim)) -(element (revision date) (process-children-trim)) -(element (revision authorinitials) (process-children-trim)) -(element (revision revremark) (process-children-trim)) diff --git a/docs/dsssl/docbook/html/dbblock.dsl b/docs/dsssl/docbook/html/dbblock.dsl deleted file mode 100755 index e4990a6d..00000000 --- a/docs/dsssl/docbook/html/dbblock.dsl +++ /dev/null @@ -1,281 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(element highlights ($block-container$)) - -(element revhistory ($book-revhistory$)) - -(element blockquote - (let ((id (element-id)) - (attrib (select-elements (children (current-node)) - (normalize "attribution"))) - (paras (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "attribution"))))) - (make sequence - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - - (if (node-list-empty? attrib) - (make element gi: "BLOCKQUOTE" - attributes: '(("CLASS" "BLOCKQUOTE")) - (process-children)) - (make element gi: "TABLE" - attributes: '(("BORDER" "0") - ("WIDTH" "100%") - ("CELLSPACING" "0") - ("CELLPADDING" "0") - ("CLASS" "BLOCKQUOTE")) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("WIDTH" "10%") - ("VALIGN" "TOP")) - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("WIDTH" "80%") - ("VALIGN" "TOP")) - (process-node-list paras)) - (make element gi: "TD" - attributes: '(("WIDTH" "10%") - ("VALIGN" "TOP")) - (make entity-ref name: "nbsp"))) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("COLSPAN" "2") - ("ALIGN" "RIGHT") - ("VALIGN" "TOP")) - (make sequence - (literal "--") - (process-node-list attrib))) - (make element gi: "TD" - attributes: '(("WIDTH" "10%")) - (make entity-ref name: "nbsp")))))))) - -(element epigraph - (let* ((attrib (select-elements (children (current-node)) - (normalize "attribution"))) - (paras (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "attribution"))))) - (make element gi: "TABLE" - attributes: '(("BORDER" "0") - ("WIDTH" "100%") - ("CELLSPACING" "0") - ("CELLPADDING" "0") - ("CLASS" "EPIGRAPH")) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("WIDTH" "45%")) - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("WIDTH" "45%") - ("ALIGN" "LEFT") - ("VALIGN" "TOP")) - (make element gi: "I" - (process-node-list paras)))) - (if (node-list-empty? attrib) - (empty-sosofo) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("WIDTH" "45%")) - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("WIDTH" "45%") - ("ALIGN" "RIGHT") - ("VALIGN" "TOP")) - (make element gi: "I" - (process-node-list attrib)))))))) - -(element attribution ($charseq$)) - -(element (epigraph para) - (make element gi: "P" - (make element gi: "I" - (process-children-trim)))) - -(element para ($paragraph$)) -(element simpara ($paragraph$)) - -(element formalpara - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "P" - (if (attribute-string (normalize "id")) - (make element gi: "A" - attributes: (list - (list "NAME" - (attribute-string - (normalize "id")))) - (empty-sosofo)) - (empty-sosofo)) - (process-children)))) - -(element (formalpara title) ($runinhead$)) - -(element (formalpara para) - (process-children)) - -(element sidebar - (make element gi: "TABLE" - attributes: (list - (list "CLASS" (gi)) - (list "BORDER" "1") - (list "CELLPADDING" "5")) - (make element gi: "TR" - (make element gi: "TD" - ($semiformal-object$))))) - -(element (sidebar title) - (empty-sosofo)) - -(element abstract - (make element gi: "BLOCKQUOTE" - attributes: '(("CLASS" "ABSTRACT")) - ($semiformal-object$))) - -(element (abstract title) (empty-sosofo)) - -(element authorblurb ($block-container$)) - -(element ackno ($paragraph$)) - -(define ($inline-object$) - (process-children)) - -(define ($informal-object$ #!optional (rule-before? #f) (rule-after? #f)) - (let ((id (element-id))) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - - (if rule-before? - (make empty-element gi: "HR") - (empty-sosofo)) - - (process-children) - - (if rule-after? - (make empty-element gi: "HR") - (empty-sosofo)) - - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo))))) - -(define (object-title-after #!optional (node (current-node))) - (if (member (gi node) ($object-titles-after$)) - #t - #f)) - -(define (named-formal-objects) - (list (normalize "figure") - (normalize "table") - (normalize "example") - (normalize "equation"))) - -(define ($formal-object$ #!optional (rule-before? #f) (rule-after? #f)) - (let* ((nsep (gentext-label-title-sep (gi))) - (id (element-id)) - (title-inline-sosofo - (make sequence - (if (member (gi) (named-formal-objects)) - (make sequence - (literal (gentext-element-name (gi))) - (if (string=? (element-label) "") - (literal nsep) - (literal " " (element-label) nsep))) - (empty-sosofo)) - (with-mode title-mode - (process-node-list - (select-elements (children (current-node)) - (normalize "title")))))) - (title-sosofo (make element gi: "P" - (make element gi: "B" - title-inline-sosofo))) - (object-sosofo (process-children))) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - - (if rule-before? - (make empty-element gi: "HR") - (empty-sosofo)) - - (if id - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - - (if (object-title-after) - (make sequence - object-sosofo - title-sosofo) - (make sequence - title-sosofo - object-sosofo)) - - (if rule-after? - (make empty-element gi: "HR") - (empty-sosofo))))) - -(define ($semiformal-object$) - ;; semiformal means optional title... - (if (node-list-empty? (select-elements (children (current-node)) - (normalize "title"))) - ($informal-object$) - ($formal-object$))) - -(element example - ($formal-object$ %example-rules% %example-rules%)) - -(element (example title) (empty-sosofo)) ; don't show caption below example - -(element informalexample - ($informal-object$ %informalexample-rules% %informalexample-rules%)) - -(element (figure title) (empty-sosofo)) ; don't show caption below figure - -(element figure - ($formal-object$ %figure-rules% %figure-rules%)) - -(element informaltable - ($informal-object$ %informaltable-rules% %informaltable-rules%)) - -(element table - ($formal-object$ %table-rules% %table-rules%)) - -(element (table title) (empty-sosofo)) - -(element comment - (if %show-comments% - (make element gi: "P" - attributes: '(("CLASS" "COMMENT")) - (process-children)) - (empty-sosofo))) - -;; In DocBook V4.0 comment became remark -(element remark - (if %show-comments% - (make element gi: "P" - attributes: '(("CLASS" "COMMENT")) - (process-children)) - (empty-sosofo))) - diff --git a/docs/dsssl/docbook/html/dbcallou.dsl b/docs/dsssl/docbook/html/dbcallou.dsl deleted file mode 100755 index 8f5d7f29..00000000 --- a/docs/dsssl/docbook/html/dbcallou.dsl +++ /dev/null @@ -1,206 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; The support provided below is a little primitive because there's no way -;; to do line-addressing in Jade. -;; -;; CO's are supported with the CO element or, in SCREENCO and -;; PROGRAMLISTINGCO only, AREAs. -;; -;; Notes on the use of AREAs: -;; -;; - Processing is very slow. Jade loops through each AREA for -;; every column on every line. -;; - Only the LINECOLUMN units are supported, and they are #IMPLIED -;; - If a COORDS only specifies a line, the %callout-default-col% will -;; be used for the column. -;; - If the column is beyond the end of the line, that will work OK, but -;; if more than one callout has to get placed beyond the end of the same -;; line, that doesn't work so well. -;; - Embedded tabs foul up the column counting. -;; - Embedded markup fouls up the column counting. -;; - Embedded markup with embedded line breaks fouls up the line counting. -;; - The callout bugs occur immediately before the LINE COLUMN specified. -;; - You can't point to an AREASET, that doesn't make any sense in HTML -;; since it would imply a one-to-many link -;; -;; There's still no support for a stylesheet drawing the callouts on a -;; GRAPHIC, and I don't think there ever will be. -;; - -(element areaspec (empty-sosofo)) -(element area (empty-sosofo)) -(element areaset (empty-sosofo)) - -(element co - ($callout-mark$ (current-node) #t)) - -(element programlistingco (process-children)) -(element screenco (process-children)) -(element graphicco (process-children)) - -(element (screenco screen) - ($callout-verbatim-display$ %indent-screen-lines% %number-screen-lines%)) - -(element (programlistingco programlisting) - ($callout-verbatim-display$ %indent-programlisting-lines% - %number-programlisting-lines%)) - -;; ---------------------------------------------------------------------- - -(define ($callout-bug$ conumber) - (let ((number (if conumber (format-number conumber "1") "0"))) - (if conumber - (if %callout-graphics% - (if (<= conumber %callout-graphics-number-limit%) - (make empty-element gi: "IMG" - attributes: (list (list "SRC" - (root-rel-path - (string-append - %callout-graphics-path% - number - %callout-graphics-extension%))) - (list "HSPACE" "0") - (list "VSPACE" "0") - (list "BORDER" "0") - (list "ALT" - (string-append - "(" number ")")))) - (make element gi: "B" - (literal "(" (format-number conumber "1") ")"))) - (make element gi: "B" - (literal "(" (format-number conumber "1") ")"))) - (make element gi: "B" - (literal "(??)"))))) - -(define ($callout-mark$ co anchor?) - ;; Print the callout mark for co - (let* ((id (attribute-string (normalize "id") co)) - (attr (if anchor? - (list (list "NAME" id)) - (list (list "HREF" (href-to co)))))) - (make element gi: "A" - attributes: attr - (if (equal? (gi co) (normalize "co")) - ($callout-bug$ (if (node-list-empty? co) - #f - (child-number co))) - (let ((areanum (if (node-list-empty? co) - 0 - (if (equal? (gi (parent co)) (normalize "areaset")) - (absolute-child-number (parent co)) - (absolute-child-number co))))) - ($callout-bug$ (if (node-list-empty? co) - #f - areanum))))))) - -(define ($look-for-callout$ line col #!optional (eol? #f)) - ;; Look to see if a callout should be printed at line col, and print - ;; it if it should - (let* ((areaspec (select-elements (children (parent (current-node))) - (normalize "areaspec"))) - (areas (expand-children (children areaspec) - (list (normalize "areaset"))))) - (let loop ((areanl areas)) - (if (node-list-empty? areanl) - (empty-sosofo) - (make sequence - (if ($callout-area-match$ (node-list-first areanl) line col eol?) - ($callout-area-format$ (node-list-first areanl) line col eol?) - (empty-sosofo)) - (loop (node-list-rest areanl))))))) - -(define ($callout-area-match$ area line col eol?) - ;; Does AREA area match line col? - (let* ((coordlist (split (attribute-string (normalize "coords") area))) - (aline (string->number (car coordlist))) - (acol (if (null? (cdr coordlist)) - #f - (string->number (car (cdr coordlist))))) - (units (if (inherited-attribute-string (normalize "units") area) - (inherited-attribute-string (normalize "units") area) - (normalize "linecolumn")))) - (and (equal? units (normalize "linecolumn")) - (or - (and (equal? line aline) - (equal? col acol)) - (and (equal? line aline) - eol? - (or (not acol) (> acol col))))))) - -(define ($callout-area-format$ area line col eol?) - ;; Format AREA area at the appropriate place - (let* ((coordlist (split (attribute-string (normalize "coords") area))) - (aline (string->number (car coordlist))) - (acol (if (null? (cdr coordlist)) - #f - (string->number (car (cdr coordlist)))))) - (if (and (equal? line aline) - eol? - (or (not acol) (> acol col))) - (make sequence - (let loop ((atcol col)) - (if (>= atcol (if acol acol %callout-default-col%)) - (empty-sosofo) - (make sequence - (literal " ") - (loop (+ atcol 1))))) - ($callout-mark$ area #t)) - ($callout-mark$ area #t)))) - -(define ($callout-verbatim-display$ indent line-numbers?) - (let* ((content (make element gi: "PRE" - attributes: (list - (list "CLASS" (gi))) - ($callout-verbatim-content$ indent line-numbers?)))) - (if %shade-verbatim% - (make element gi: "TABLE" - attributes: ($shade-verbatim-attr$) - (make element gi: "TR" - (make element gi: "TD" - content))) - content))) - -(define ($callout-verbatim-content$ indent line-numbers?) - ;; Print linespecific content in a callout with line numbers - (make sequence - ($line-start$ indent line-numbers? 1) - (let loop ((kl (children (current-node))) - (linecount 1) - (colcount 1) - (res (empty-sosofo))) - (if (node-list-empty? kl) - (sosofo-append res - ($look-for-callout$ linecount colcount #t) - (empty-sosofo)) - (loop - (node-list-rest kl) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - (+ linecount 1) - linecount) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - 1 - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-0000) - colcount - (+ colcount 1))) - (let ((c (node-list-first kl))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-000D) - (sosofo-append res - ($look-for-callout$ linecount colcount #t) - (process-node-list c) - ($line-start$ indent - line-numbers? - (+ linecount 1))) - (sosofo-append res - ($look-for-callout$ linecount colcount) - (process-node-list c))))))))) - -;; EOF dbcallout.dsl - diff --git a/docs/dsssl/docbook/html/dbchunk.dsl b/docs/dsssl/docbook/html/dbchunk.dsl deleted file mode 100755 index 3d39b01f..00000000 --- a/docs/dsssl/docbook/html/dbchunk.dsl +++ /dev/null @@ -1,492 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -(define (chunk-element-list) - (list (normalize "preface") - (normalize "chapter") - (normalize "appendix") - (normalize "article") - (normalize "glossary") - (normalize "bibliography") - (normalize "index") - (normalize "colophon") - (normalize "setindex") - (normalize "reference") - (normalize "refentry") - (normalize "part") - (normalize "sect1") - (normalize "section") - (normalize "book") ;; just in case nothing else matches... - (normalize "set") ;; sets are definitely chunks... - )) - -(define (chunk-skip-first-element-list) - (list (normalize "sect1") - (normalize "section"))) - -(define (chunk-section-depth) - 1) - -(define (section-element-depth #!optional (section (current-node))) - (if (node-list-empty? section) - 0 - (if (equal? (gi section) (normalize "section")) - (length (hierarchical-number-recursive - (normalize "section") - section)) - (section-element-depth (parent section))))) - -(define (is-first-element nd) - (equal? (child-number nd) 1)) - -(define (combined-chunk? #!optional (nd (current-node))) - (or - ;; if it's a section and the parent element is also a section - ;; and its depth is less than or equal to chunk-section-depth - (and (equal? (gi nd) (normalize "section")) - (not (node-list-empty? (parent nd))) - (equal? (gi (parent nd)) (normalize "section")) - (>= (section-element-depth nd) (chunk-section-depth))) - ;; if it's the first skipped chunk in a chunk - (and (not (node-list-empty? nd)) - (member (gi nd) (chunk-element-list)) - (is-first-element nd) - (member (gi nd) (chunk-skip-first-element-list))) - ;; or if it's a chunk in a partintro - (and (member (gi nd) (chunk-element-list)) - (has-ancestor-member? nd (list (normalize "partintro")))))) - -(define (chunk? #!optional (nd (current-node))) - ;; 1. The (sgml-root-element) is always a chunk. - ;; 2. If nochunks is #t or the dbhtml PI on the root element - ;; specifies chunk='no', then the root element is the only - ;; chunk. - ;; 3. Otherwise, elements in the chunk-element-list are chunks - ;; unless they're combined with their parent. - ;; 4. Except for bibliographys, which are only chunks if they - ;; occur in book or article. - ;; 5. And except for sections, which are only chunks if they - ;; are not too deep - ;; - (let* ((notchunk (or (and (equal? (gi nd) (normalize "bibliography")) - (not (or (equal? (gi (parent nd)) (normalize "book")) - (equal? (gi (parent nd)) (normalize "article"))))) - (and (equal? (gi nd) (normalize "section")) - (equal? (gi (parent nd)) (normalize "section")) - (>= (section-element-depth nd) - (chunk-section-depth))))) - (maybechunk (not notchunk))) - (if (node-list=? nd (sgml-root-element)) - #t - (if (or nochunks - (equal? (dbhtml-value (sgml-root-element) "chunk") "no")) - #f - (if (member (gi nd) (chunk-element-list)) - (if (combined-chunk? nd) - #f - maybechunk) - #f))))) - -(define (html-prefix nd) - (let ((dbhtml-prefix (inherited-dbhtml-value nd "prefix"))) - (if dbhtml-prefix - dbhtml-prefix - %html-prefix%))) - -(define (id-based-filename nd) - (if (and %use-id-as-filename% - (attribute-string (normalize "id") nd)) - (case-fold-down (attribute-string (normalize "id") nd)) - #f)) - -(define (book-html-base nd) - (let ((number (number->string (all-element-number nd))) - ;(number (pad-string (number->string 3) 2 "0")) - (prefix (html-prefix nd)) - (pibase (or - (inherited-dbhtml-value nd "basename") - (inherited-pi-value nd "html-basename"))) - (idbase (id-based-filename nd))) - (if idbase - (string-append (if prefix prefix "") idbase) - (string-append (if prefix prefix "") - (if pibase pibase "book") number)))) - -(define (division-html-base nd) - (let* ((number (number->string (all-element-number nd))) - (prefix (html-prefix nd)) - (pibase (or - (inherited-dbhtml-value nd "basename") - (inherited-pi-value nd "html-basename"))) - (idbase (id-based-filename nd)) - (base (cond (pibase pibase) - (idbase idbase) - ((equal? (gi nd) (normalize "set")) "s") - ((equal? (gi nd) (normalize "preface")) "f") - ((equal? (gi nd) (normalize "chapter")) "c") - ((equal? (gi nd) (normalize "article")) "t") - ((equal? (gi nd) (normalize "appendix")) "a") - ((equal? (gi nd) (normalize "part")) "p") - ((equal? (gi nd) (normalize "reference")) "r") - ((equal? (gi nd) (normalize "glossary")) "g") - ((equal? (gi nd) (normalize "bibliography")) "b") - ((equal? (gi nd) (normalize "index")) "i") - ((equal? (gi nd) (normalize "setindex")) "n") - ((equal? (gi nd) (normalize "refentry")) "r") - ;; "x" is section - (else "z")))) - (if idbase - (string-append (if prefix prefix "") idbase) - (if pibase - (string-append (if prefix prefix "") pibase number) - (string-append (if prefix prefix "") base number))))) - -(define (component-html-base nd) - (division-html-base nd)) - -(define (section-html-base nd) - ;; Now that I'm using all-element-number, there's no point in basing - ;; it off the component-html-base at all... - (let* ((number (number->string (all-element-number nd))) - (prefix (html-prefix nd)) - (pibase (or - (inherited-dbhtml-value nd "basename") - (inherited-pi-value nd "html-basename"))) - (idbase (id-based-filename nd)) - (base (if pibase - (string-append (if prefix prefix "") pibase) - (string-append (if prefix prefix "") "x")))) - (if idbase - (string-append (if prefix prefix "") idbase) - (if (chunk? nd) - (string-append base number) - base)))) - -(define (element-html-base nd) - (let* ((number (number->string (all-element-number nd))) - (prefix (html-prefix nd)) - (pibase (or - (inherited-dbhtml-value nd "basename") - (inherited-pi-value nd "html-basename"))) - (idbase (id-based-filename nd)) - (base (if pibase - (string-append (if prefix prefix "") pibase) - (string-append (if prefix prefix "") - (case-fold-down (gi nd)))))) - (if idbase - (string-append (if prefix prefix "") idbase) - (string-append base number)))) - -;; Returns the filename of the html file that contains elemnode, without -;; any leading path information -(define (html-base-filename #!optional (input_nd (current-node))) - (let* ((nd (chunk-parent input_nd)) - (base (cond ((member (gi nd) (book-element-list)) - (book-html-base nd)) - ((member (gi nd) (division-element-list)) - (division-html-base nd)) - ((member (gi nd) (component-element-list)) - (component-html-base nd)) - ((member (gi nd) (section-element-list)) - (section-html-base nd)) - (else (element-html-base input_nd)))) - ;; If this chunk-level element isn't a chunk, get the pifile from - ;; the parent element. - (pifile (if (chunk? nd) - (or - (dbhtml-value nd "filename") - (pi-value nd "html-filename")) - (or - (dbhtml-value (parent nd) "filename") - (pi-value (parent nd) "html-filename")))) - (language (if %html-use-lang-in-filename% - (if (inherited-attribute-string (normalize "lang") nd) - (inherited-attribute-string (normalize "lang") nd) - %default-language%) - "")) - (ext (if %html-use-lang-in-filename% - (string-append "." language %html-ext%) - %html-ext%))) - (if (and %root-filename% (node-list=? (sgml-root-element) nd)) - (string-append %root-filename% ext) - (if pifile - pifile - (string-append base ext))))) - -(define (root-rel-path filename #!optional (node (current-node))) - ;; Return the filename relative to the root path - (string-append (copy-string "../" (directory-depth (html-file node))) - filename)) - -;; Returns the filename of the html file that contains elemnode -;; -(define (html-file #!optional (input_nd (current-node))) - (let* ((cp-nd (chunk-parent input_nd)) - ;; If the sgml-root-element is at a level below the chunking - ;; level, then cp-nd will return an empty-node-list. In this - ;; case, we want to return the root-element. - (nd (if (node-list-empty? cp-nd) - (sgml-root-element) - cp-nd)) - (base-filename (html-base-filename nd)) - (pidir (or - (inherited-dbhtml-value nd "dir") - (inherited-pi-value nd "html-dir")))) - (if (and %root-filename% (node-list=? (sgml-root-element) nd)) - base-filename - (if pidir - (string-append pidir "/" base-filename) - base-filename)))) - -(define (href-to target) - ;; Return the HTML HREF for the given node. If nochunks is true, just - ;; return the fragment identifier. - (let* ((id (element-id target)) - (curdepth (directory-depth (html-file (current-node)))) - (entfile (html-file target)) - (fragid (if (chunk? target) - "" - (string-append "#" id)))) - (if nochunks - fragid - (string-append (copy-string "../" curdepth) entfile fragid)))) - -(define (html-entity-file htmlfilename) - ;; Returns the filename that should be used for _writing_ htmlfilename. - ;; This may differ from the filename used in referencing it. (The point - ;; is that you can force the stylesheets to write the chunked files - ;; somewhere else, if you want.) - (let* ((pi-outputdir (dbhtml-value (sgml-root-element) "output-dir")) - (outputdir (if pi-outputdir - pi-outputdir - %output-dir%))) - (if (and use-output-dir outputdir) - (string-append outputdir "/" htmlfilename) - htmlfilename))) - -;; Split node list nl at nd; return '(nodes-prev-to-nd nodes-following-nd) -;; Note that nd does not appear in either return list. -(define (split-node-list nd nodelist) - (let loop ((prev (empty-node-list)) - (nl nodelist)) - (if (node-list-empty? nl) - (list prev (empty-node-list)) - (if (node-list=? (node-list-first nl) nd) - (list prev (node-list-rest nl)) - (loop (node-list prev (node-list-first nl)) - (node-list-rest nl)))))) - -(define (navigate-to? nd) - #t) - -(define (chunk-parent #!optional (nd (current-node))) - (let ((cp (let loop ((p (chunk-level-parent nd))) - (if (or (node-list-empty? p) (chunk? p)) - p - (chunk-parent (parent p)))))) - cp)) -; (if (node-list-empty? cp) -; ;; if there's no chunk-parent, return the root node -; (sgml-root-element) -; ;; otherwise, return the parent that we found -; cp))) - -(define (chunk-level-parent #!optional (nd (current-node))) - (ancestor-member nd (chunk-element-list))) - -(define (chunk-children #!optional (nd (current-node))) - (node-list-filter-by-gi (children nd) (chunk-element-list))) - -(define (ifollow-by-gi nd gilist) - (let loop ((next (ifollow nd))) - (if (node-list-empty? next) - (empty-node-list) - (if (member (gi next) gilist) - next - (loop (ifollow next)))))) - -(define (ipreced-by-gi nd gilist) - (let loop ((prev (ipreced nd))) - (if (node-list-empty? prev) - (empty-node-list) - (if (member (gi prev) gilist) - prev - (loop (ipreced prev)))))) - -(define (last-chunk-element nd) - (let ((clc (node-list-filter-by-gi (children nd) (chunk-element-list)))) - (if (node-list-empty? clc) - nd - (last-chunk-element (node-list-last clc))))) - -(define (next-chunk-skip-children #!optional (elem (current-node))) - (let* ((nd (chunk-level-parent elem)) - (psl (node-list-filter-by-gi (children (parent nd)) - (chunk-element-list))) - (nextlist (car (cdr (split-node-list nd psl))))) - (if (node-list-empty? nextlist) - (if (node-list-empty? (parent nd)) - (empty-node-list) - (next-chunk-skip-children (parent nd))) - (node-list-first nextlist)))) - -(define (next-chunk-with-children #!optional (elem (current-node))) - (let* ((nd (chunk-level-parent elem)) - (clc (chunk-children nd)) - (ns (ifollow-by-gi nd (chunk-element-list)))) - (if (node-list-empty? clc) - (if (node-list-empty? ns) - (next-chunk-skip-children (parent nd)) - (node-list-first ns)) - ;; If the first of the chunk-children (clc) of this element - ;; isn't its own chunk, skip over it, otherwise it's next. - (if (chunk? (node-list-first clc)) - (node-list-first clc) - (next-chunk-with-children (node-list-first clc)))))) -;; (if (> (node-list-length clc) 1) -;; (node-list-first (node-list-rest clc)) -;; (next-chunk-skip-children nd)))))) - -(define (abs-prev-chunk #!optional (elem (current-node))) - (let* ((nd (chunk-parent elem)) - (pse (ipreced-by-gi nd (chunk-element-list))) - (ps (chunk-parent pse))) - (if (node-list-empty? ps) - (parent nd) - (last-chunk-element ps)))) - -(define (prev-chunk-element #!optional (elem (current-node))) - (let* ((nd (chunk-parent elem)) - (prev (chunk-parent (abs-prev-chunk nd)))) - ;; There's a special case here. abs-prev-chunk always returns the last - ;; chunk element of the preceding element if we walk up the tree. This - ;; assures that the last section of the preceding chapter is the "prev" - ;; element of the current chapter. - ;; - ;; However, if chunk-skip-first-element is in use, then abs-prev-chunk - ;; gets fooled when it tries to find the element that precedes the - ;; second child element that's in chunk-skip-first-element list. - ;; - ;; For example, if SECT1 is in chunk-skip-first-element then the - ;; chunk that precedes the second SECT1 in a CHAPTER is the CHAPTER - ;; (not the first SECT1 because the first SECT1 is "skipped", - ;; it's in the CHAPTER chunk). Confused yet? - ;; - ;; Ok, now unfortunately, what abs-prev-chunk returns is the last child - ;; of the CHAPTER, so instead of going from the second SECT1 to the - ;; CHAPTER, we go from the second SECT1 to the last SECT1 of the CHAPTER. - ;; - ;; I can't think of a good way to handle this except to test for it - ;; right up front. I wonder if all this skip stuff was really worth it? - ;; - (if (and (member (gi elem) (chunk-skip-first-element-list)) - (equal? (child-number elem) 2)) - ;; this is the second child, the prev node is the parent. - (parent elem) - ;; otherwise, do the "normal" thing to find it: - (if (node-list-empty? prev) - prev - (if (combined-chunk? prev) - (parent prev) - (if (and (chunk? nd) - (chunk? prev) - (navigate-to? prev)) - prev - (prev-chunk-element prev))))))) - -(define (abs-prev-peer-chunk-element #!optional (elem (current-node))) - ;; Returns the previous element that is a sibling or parent of the - ;; current element. Absolute in this case refers to the fact that - ;; it returns the immediate predecessor without regard for whether or - ;; not it is a chunk. - (let* ((psibling (if (node-list-empty? (preced elem)) - (empty-node-list) - (node-list-last (preced elem))))) - (if (node-list-empty? psibling) - (parent elem) - psibling))) - -(define (prev-peer-chunk-element #!optional (elem (current-node))) - (let loop ((nd (chunk-level-parent elem))) - (if (node-list-empty? nd) - (empty-node-list) - (if (and (chunk? (abs-prev-peer-chunk-element nd)) - (navigate-to? (abs-prev-peer-chunk-element nd))) - (abs-prev-peer-chunk-element nd) - (loop (abs-prev-peer-chunk-element nd)))))) - -(define (prev-major-component-chunk-element #!optional (elem (current-node)) (in-chain #f)) - ;; Return the prev major component of the document that is a sibling (or - ;; ancestor) of the starting element. This is essentially 'prev-sibling' - ;; but skips over things that aren't chunks. - (if (or (navigate-to? elem) in-chain) - (if (member (gi elem) (major-component-element-list)) - (if (node-list-empty? (node-list-last-element (preced elem))) - (prev-chunk-element elem) - (let ((nd (node-list-last-element (preced elem)))) - (if (navigate-to? nd) - nd - (prev-major-component-chunk-element nd #t)))) - (ancestor-member elem (major-component-element-list))) - (empty-node-list))) - -(define (abs-next-chunk #!optional (elem (current-node)) (children-ok? #t)) - (let* ((nd (chunk-level-parent elem)) - (clc (if children-ok? (chunk-children nd) (empty-node-list))) - (ns (ifollow-by-gi nd (chunk-element-list)))) - (if (node-list-empty? clc) - (if (node-list-empty? ns) - (if (node-list-empty? (parent nd)) - (empty-node-list) - (abs-next-chunk (parent nd) #f)) - (node-list-first ns)) - (node-list-first clc)))) - -(define (next-chunk-element #!optional (elem (current-node))) - (let ((next (abs-next-chunk elem))) - (if (node-list-empty? next) - (empty-node-list) - (if (chunk? next) - (if (navigate-to? next) - next - (next-chunk-element next)) - (next-chunk-element next))))) - -(define (abs-next-peer-chunk-element #!optional (elem (current-node))) - (let* ((fsibling (if (node-list-empty? (follow elem)) - (empty-node-list) - (node-list-first (follow elem))))) - (if (node-list-empty? fsibling) - (if (node-list-empty? (parent elem)) - (empty-node-list) - (abs-next-peer-chunk-element (parent elem))) - fsibling))) - -(define (next-peer-chunk-element #!optional (elem (current-node))) - (let loop ((nd (chunk-level-parent elem))) - (if (node-list-empty? nd) - (empty-node-list) - (if (and (chunk? (abs-next-peer-chunk-element nd)) - (navigate-to? (abs-next-peer-chunk-element nd))) - (abs-next-peer-chunk-element nd) - (loop (abs-next-peer-chunk-element nd)))))) - -(define (next-major-component-chunk-element #!optional (elem (current-node)) (in-chain #f)) - ;; Return the next major component of the document that is not a descendant - ;; of the starting element. This is essentially 'next-sibling' but skips - ;; over things that aren't chunks. - (if (or (navigate-to? elem) in-chain) - (if (member (gi elem) (major-component-element-list)) - (if (node-list-empty? (node-list-first-element (follow elem))) - (next-major-component-chunk-element (parent elem)) - (let ((nd (node-list-first-element (follow elem)))) - (if (navigate-to? nd) - nd - (next-major-component-chunk-element nd #t)))) - (ancestor-member elem (major-component-element-list))) - (empty-node-list))) - -;; EOF dbchunk.dsl \ No newline at end of file diff --git a/docs/dsssl/docbook/html/dbcompon.dsl b/docs/dsssl/docbook/html/dbcompon.dsl deleted file mode 100755 index b311c51a..00000000 --- a/docs/dsssl/docbook/html/dbcompon.dsl +++ /dev/null @@ -1,209 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= COMPONENTS ============================= -;; -;; in docbook, components are containers at the chapter/appendix level - -(define ($component$) - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - ($component-body$))) - -(define ($component-separator$) - (if (or (not nochunks) (node-list=? (current-node) (sgml-root-element))) - (empty-sosofo) - (make empty-element gi: "HR"))) - -(define ($component-body$) - (let* ((epigraph (let loop ((nl (children (current-node)))) - (if (node-list-empty? nl) - nl - (if (equal? (gi (node-list-first nl)) - (normalize "epigraph")) - (node-list-first nl) - (if (or (equal? (gi (node-list-first nl)) - (normalize "title")) - (equal? (gi (node-list-first nl)) - (normalize "subtitle")) - (equal? (gi (node-list-first nl)) - (normalize "titleabbrev")) - (equal? (gi (node-list-first nl)) - (normalize "docinfo")) - (equal? (gi (node-list-first nl)) - (normalize "chapterinfo")) - (equal? (gi (node-list-first nl)) - (normalize "appendixinfo"))) - (loop (node-list-rest nl)) - (loop (empty-node-list))))))) - (notepigraph (let loop ((nl (children (current-node))) - (ch (empty-node-list))) - (if (node-list-empty? nl) - ch - (if (node-list=? (node-list-first nl) epigraph) - (loop (node-list-rest nl) ch) - (loop (node-list-rest nl) - (node-list ch (node-list-first nl)))))))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($component-separator$) - ($component-title$) - (process-node-list epigraph) - (if ($generate-chapter-toc$) - ($chapter-toc$) - (empty-sosofo)) - (process-node-list notepigraph)))) - -(define ($component-title$ #!optional (titlegi "H1") (subtitlegi "H2")) - (let* ((info (cond - ((equal? (gi) (normalize "appendix")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "article")) - (node-list-filter-by-gi (children (current-node)) - (list (normalize "artheader") - (normalize "articleinfo")))) - ((equal? (gi) (normalize "bibliography")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "chapter")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "dedication")) - (empty-node-list)) - ((equal? (gi) (normalize "glossary")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "index")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "preface")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "reference")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "setindex")) - (select-elements (children (current-node)) (normalize "docinfo"))) - (else - (empty-node-list)))) - (exp-children (if (node-list-empty? info) - (empty-node-list) - (expand-children (children info) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (parent-titles (select-elements (children (current-node)) (normalize "title"))) - (info-titles (select-elements exp-children (normalize "title"))) - (titles (if (node-list-empty? parent-titles) - info-titles - parent-titles)) - (subtitles (select-elements exp-children (normalize "subtitle")))) - (make sequence - (make element gi: titlegi - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (if (and %chapter-autolabel% - (or (equal? (gi) (normalize "chapter")) - (equal? (gi) (normalize "appendix")))) - (literal (gentext-element-name-space (gi)) - (element-label (current-node)) - (gentext-label-title-sep (gi))) - (empty-sosofo)) - (if (node-list-empty? titles) - (element-title-sosofo) ;; get a default! - (with-mode title-mode - (process-node-list titles))))) - (if (node-list-empty? subtitles) - (empty-sosofo) - (with-mode subtitle-mode - (make element gi: subtitlegi - (process-node-list subtitles))))))) - -(define ($chapter-toc$) - ;; Called by the TITLE element so that it can come after the TITLE - (build-toc (ancestor-member (current-node) (component-element-list)) - (toc-depth - (ancestor-member (current-node) (component-element-list))) - #t)) - -(element appendix ($component$)) -(element (appendix title) (empty-sosofo)) - -(element chapter ($component$)) -(element (chapter title) (empty-sosofo)) - -(element preface ($component$)) -(element (preface title) (empty-sosofo)) - -;; Dedication is empty except in a special mode so that it can be -;; reordered (made to come before the TOCs)...see dbttlpg.dsl -;; Dedication is empty except in a special mode so that it can be -;; reordered (made to come before the TOCs) - -(element dedication (empty-sosofo)) - -(mode dedication-page-mode - (element dedication - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - (make sequence - ($component-separator$) - ($component-title$) - (process-children)))) - (element (dedication title) (empty-sosofo)) -) - -;; Articles are like components, except that if they may have much -;; more formal title pages (created with article-titlepage). -;; -(element article - (let* ((info (node-list-filter-by-gi (children (current-node)) - (list (normalize "artheader") - (normalize "articleinfo")))) - (ititle (select-elements (children info) (normalize "title"))) - (title (if (node-list-empty? ititle) - (select-elements (children (current-node)) - (normalize "title")) - (node-list-first ititle))) - (tsosofo (with-mode head-title-mode - (process-node-list title))) - (nl (titlepage-info-elements (current-node) info))) - (html-document - tsosofo - (make element gi: "DIV" - attributes: '(("CLASS" "ARTICLE")) - (if %generate-article-titlepage% - (make sequence - (article-titlepage nl 'recto) - (article-titlepage nl 'verso)) - ($component-title$)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-article-toc% - (make sequence - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (let loop ((gilist ($generate-article-lot-list$))) - (if (null? gilist) - (empty-sosofo) - (if (not (node-list-empty? - (select-elements (descendants (current-node)) - (car gilist)))) - (make sequence - (build-lot (current-node) (car gilist)) - (loop (cdr gilist))) - (loop (cdr gilist))))) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo)))))) - -(element (article title) (empty-sosofo)) - -(element (article appendix) ($section$)) ;; this is a special case diff --git a/docs/dsssl/docbook/html/dbdivis.dsl b/docs/dsssl/docbook/html/dbdivis.dsl deleted file mode 100755 index a63c57f6..00000000 --- a/docs/dsssl/docbook/html/dbdivis.dsl +++ /dev/null @@ -1,176 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= DIVISIONS ============================== - -(element set - (let* ((setinfo (select-elements (children (current-node)) (normalize "setinfo"))) - (ititle (select-elements (children setinfo) (normalize "title"))) - (title (if (node-list-empty? ititle) - (select-elements (children (current-node)) (normalize "title")) - (node-list-first ititle))) - (nl (titlepage-info-elements (current-node) setinfo)) - (tsosofo (with-mode head-title-mode - (process-node-list title)))) - (html-document - tsosofo - (make element gi: "DIV" - attributes: '(("CLASS" "SET")) - - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if %generate-set-titlepage% - (make sequence - (set-titlepage nl 'recto) - (set-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-set-toc% - (make sequence - (build-toc (current-node) (toc-depth (current-node)))) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo)))))) - -(element (set title) (empty-sosofo)) - -(element book - (let* ((bookinfo (select-elements (children (current-node)) (normalize "bookinfo"))) - (ititle (select-elements (children bookinfo) (normalize "title"))) - (title (if (node-list-empty? ititle) - (select-elements (children (current-node)) (normalize "title")) - (node-list-first ititle))) - (nl (titlepage-info-elements (current-node) bookinfo)) - (tsosofo (with-mode head-title-mode - (process-node-list title))) - (dedication (select-elements (children (current-node)) (normalize "dedication")))) - (html-document - tsosofo - (make element gi: "DIV" - attributes: '(("CLASS" "BOOK")) - - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if %generate-book-titlepage% - (make sequence - (book-titlepage nl 'recto) - (book-titlepage nl 'verso)) - (empty-sosofo)) - - (if (node-list-empty? dedication) - (empty-sosofo) - (with-mode dedication-page-mode - (process-node-list dedication))) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-book-toc% - (build-toc (current-node) (toc-depth (current-node))) - (empty-sosofo)) - - (let loop ((gilist ($generate-book-lot-list$))) - (if (null? gilist) - (empty-sosofo) - (if (not (node-list-empty? - (select-elements (descendants (current-node)) - (car gilist)))) - (make sequence - (build-lot (current-node) (car gilist)) - (loop (cdr gilist))) - (loop (cdr gilist))))) - - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo)))))) - -(element (book title) (empty-sosofo)) - -(element part - (let* ((partinfo (select-elements (children (current-node)) - (normalize "docinfo"))) - (partintro (select-elements (children (current-node)) - (normalize "partintro"))) - (nl (titlepage-info-elements - (current-node) - partinfo - (if %generate-partintro-on-titlepage% - partintro - (empty-node-list)))) - (ititle (select-elements (children partinfo) (normalize "title"))) - (title (if (node-list-empty? ititle) - (select-elements (children (current-node)) (normalize "title")) - (node-list-first ititle))) - (tsosofo (with-mode head-title-mode - (process-node-list title)))) - (html-document - tsosofo - (make element gi: "DIV" - attributes: '(("CLASS" "PART")) - - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if %generate-part-titlepage% - (make sequence - (part-titlepage nl 'recto) - (part-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if (and (not (node-list-empty? partintro)) - (not %generate-partintro-on-titlepage%)) - ($process-partintro$ partintro) - (empty-sosofo)) - - (if (and %generate-part-toc% - (not %generate-part-toc-on-titlepage%)) - (make sequence - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo)))))) - -(element (part title) (empty-sosofo)) - -(element partintro (empty-sosofo)) - -(element (partintro title) - (make element gi: "H1" - (process-children))) - -(element (partintro sect1) - ($section-body$)) - -(define ($process-partintro$ partintro) - (make element gi: "DIV" - attributes: (list (list "CLASS" "PARTINTRO")) - - (make element gi: "A" - attributes: (list (list "NAME" (element-id partintro))) - (empty-sosofo)) - - (process-node-list (children partintro)) - (make-endnotes partintro))) diff --git a/docs/dsssl/docbook/html/dbefsyn.dsl b/docs/dsssl/docbook/html/dbefsyn.dsl deleted file mode 100755 index cfbea6de..00000000 --- a/docs/dsssl/docbook/html/dbefsyn.dsl +++ /dev/null @@ -1,824 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================ CLASS SYNOPSIS ============================= - -(define %indent-classsynopsisinfo-lines% #f) -(define %number-classsynopsisinfo-lines% #f) - -(define %default-classsynopsis-language% "java") - -(element classsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("cpp") (with-mode cs-cpp-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element methodsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("cpp") (with-mode cs-cpp-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element fieldsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("cpp") (with-mode cs-cpp-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element constructorsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("cpp") (with-mode cs-cpp-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element destructorsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("cpp") (with-mode cs-cpp-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -;; ===== Java ======================================================== - -(mode cs-java-mode - -(element classsynopsis - (let* ((classes (select-elements (children (current-node)) - (normalize "ooclass"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make element gi: "pre" - attributes: '(("class" "classsynopsis")) - (process-node-list classname) - (process-node-list superclasses) - (literal "{&#RE;") - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - (literal "}")))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element ooclass - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (make element gi: "SPAN" - attributes: '(("class" "ooclass")) - (process-children)))) - -(element oointerface - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (make element gi: "SPAN" - attributes: '(("class" "oointerface")) - (process-children)))) - -(element ooexception - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (make element gi: "SPAN" - attributes: '(("class" "ooexception")) - (process-children)))) - -(element modifier - (make element gi: "span" - attributes: '(("class" "modifier")) - (process-children) - (literal " "))) - -(element classname - (if (first-sibling?) - (make sequence - (literal "class ") - (make element gi: "span" - attributes: '(("class" "classname")) - (process-children) - (literal " ")) - (if (last-sibling?) - (empty-sosofo) - (literal "extends "))) - (make sequence - (make element gi: "span" - attributes: '(("class" "superclass")) - (process-children)) - (if (last-sibling?) - (literal " ") - (literal ", "))))) - -(element fieldsynopsis - (make element gi: "code" - attributes: '(("class" "fieldsynopsis")) - (literal " ") - (process-children) - (literal ";&#RE;"))) - -(element type - (make element gi: "span" - attributes: '(("class" "type")) - (process-children) - (literal " "))) - -(element varname - (make element gi: "span" - attributes: '(("class" "varname")) - (process-children))) - -(element initializer - (make element gi: "span" - attributes: '(("class" "initializer")) - (literal " = ") - (process-children))) - -(element constructorsynopsis - (java-method-synopsis)) - -(element destructorsynopsis - (java-method-synopsis)) - -(element methodsynopsis - (java-method-synopsis)) - -(element void - (make element gi: "span" - attributes: '(("class" "void")) - (literal "void "))) - -(element methodname - (process-children)) - -(element methodparam - (make element gi: "span" - attributes: '(("class" "methodparam")) - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (make element gi: "span" - attributes: '(("class" "parameter")) - (process-children))) - -(element exceptionname - (make element gi: "span" - attributes: '(("class" "exceptionname")) - (if (first-sibling?) - (literal "&#RE; throws ") - (literal ", ")) - (process-children))) -) - -(define (java-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "methodparam")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make element gi: "code" - attributes: (list (list "class" (gi nd))) - (if (first-sibling?) - (literal "&#RE;") - (empty-sosofo)) - (literal " ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal "(") - (process-node-list param) - (literal ")") - (process-node-list excep) - (literal ";&#RE;")))) - -;; ===== C++ ========================================================= - -(mode cs-cpp-mode - -(element classsynopsis - (let* ((classes (node-list-filter-by-gi (children (current-node)) - (list (normalize "classname") - (normalize "modifier")))) - (classname (let loop ((nl classes) (cn (empty-node-list))) - (if (node-list-empty? nl) - cn - (if (equal? (gi (node-list-first nl)) - (normalize "classname")) - (node-list cn (node-list-first nl)) - (loop (node-list-rest nl) - (node-list cn (node-list-first nl))))))) - - (superclasses (let loop ((nl classes)) - (if (node-list-empty? nl) - (empty-node-list) - (if (equal? (gi (node-list-first nl)) - (normalize "classname")) - (node-list-rest nl) - (loop (node-list-rest nl))))))) - (make element gi: "pre" - attributes: '(("class" "classsynopsis")) - (process-node-list classname) - (process-node-list superclasses) - (literal "{&#RE;") - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - (literal "}")))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element modifier - (make element gi: "span" - attributes: '(("class" "modifier")) - (process-children) - (literal " "))) - -(element classname - (if (first-sibling?) - (make sequence - (literal "class ") - (make element gi: "span" - attributes: '(("class" "classname")) - (process-children)) - (if (last-sibling?) - (empty-sosofo) - (literal ": "))) - (make sequence - (make element gi: "span" - attributes: '(("class" "superclass")) - (process-children)) - (if (last-sibling?) - (literal " ") - (literal ", "))))) - -(element fieldsynopsis - (make element gi: "code" - attributes: '(("class" "fieldsynopsis")) - (literal " ") - (process-children) - (literal ";&#RE;"))) - -(element type - (make element gi: "span" - attributes: '(("class" "type")) - (process-children) - (literal " "))) - -(element varname - (make element gi: "span" - attributes: '(("class" "varname")) - (process-children))) - -(element initializer - (make element gi: "span" - attributes: '(("class" "initializer")) - (literal " = ") - (process-children))) - -(element constructorsynopsis - (cpp-method-synopsis)) - -(element destructorsynopsis - (cpp-method-synopsis)) - -(element methodsynopsis - (cpp-method-synopsis)) - -(element void - (make element gi: "span" - attributes: '(("class" "void")) - (literal "void "))) - -(element methodname - (process-children)) - -(element methodparam - (make element gi: "span" - attributes: '(("class" "methodparam")) - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (make element gi: "span" - attributes: '(("class" "parameter")) - (process-children))) - -(element exceptionname - (make element gi: "span" - attributes: '(("class" "exceptionname")) - (if (first-sibling?) - (literal "&#RE; throws ") - (literal ", ")) - (process-children))) -) - -(define (cpp-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "methodparam")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make element gi: "code" - attributes: (list (list "class" (gi nd))) - (if (first-sibling?) - (literal "&#RE;") - (empty-sosofo)) - (literal " ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal "(") - (process-node-list param) - (literal ")") - (process-node-list excep) - (literal ";&#RE;")))) - -;; ===== Perl ======================================================== - -(mode cs-perl-mode - -(element classsynopsis - (let* ((modifiers (select-elements (children (current-node)) - (normalize "modifier"))) - (classes (select-elements (children (current-node)) - (normalize "classname"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make element gi: "pre" - attributes: '(("class" "classsynopsis")) - (literal "package ") - (process-node-list classname) - (literal ";&#RE;") - (if (node-list-empty? superclasses) - (empty-sosofo) - (make sequence - (literal "@ISA = ("); - (process-node-list superclasses) - (literal ";&#RE;"))) - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo"))))))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element modifier - (literal "Perl ClassSynopses don't use Modifiers")) - -(element classname - (if (first-sibling?) - (make element gi: "span" - attributes: '(("class" "classname")) - (process-children)) - (make sequence - (make element gi: "span" - attributes: '(("class" "superclass")) - (process-children)) - (if (last-sibling?) - (empty-sosofo) - (literal ", "))))) - -(element fieldsynopsis - (make element gi: "code" - attributes: '(("class" "fieldsynopsis")) - (literal " "); - (process-children) - (literal ";&#RE;"))) - -(element type - (make element gi: "span" - attributes: '(("class" "type")) - (process-children) - (literal " "))) - -(element varname - (make element gi: "span" - attributes: '(("class" "varname")) - (process-children))) - -(element initializer - (make element gi: "span" - attributes: '(("class" "initializer")) - (literal " = ") - (process-children) - (literal " "))) - -(element constructorsynopsis - (perl-method-synopsis)) - -(element destructorsynopsis - (perl-method-synopsis)) - -(element methodsynopsis - (perl-method-synopsis)) - -(element void - (empty-sosofo)) - -(element methodname - (make element gi: "span" - attributes: '(("class" "methodname")) - (process-children))) - -(element methodparam - (make element gi: "span" - attributes: '(("class" "methodparam")) - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (make element gi: "span" - attributes: '(("class" "parameter")) - (process-children))) - -(element exceptionname - (literal "Perl ClassSynopses don't use Exceptions")) - -) - -(define (perl-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "type") - (normalize "void")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make element gi: "code" - attributes: (list (list "class" (gi nd))) - (literal "sub ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal " { ... }")))) - -;; ===== IDL ========================================================= - -(mode cs-idl-mode - -(element classsynopsis - (let* ((modifiers (select-elements (children (current-node)) - (normalize "modifier"))) - (classes (select-elements (children (current-node)) - (normalize "classname"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make element gi: "pre" - attributes: '(("class" "classsynopsis")) - (literal "interface ") - (process-node-list modifiers) - (process-node-list classname) - (if (node-list-empty? superclasses) - (literal " ") - (make sequence - (literal " : ") - (process-node-list superclasses))) - (literal " {&#RE;") - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - (literal "}")))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element modifier - (make element gi: "span" - attributes: '(("class" "modifier")) - (process-children) - (literal " "))) - -(element classname - (if (first-sibling?) - (make element gi: "span" - attributes: '(("class" "classname")) - (process-children)) - (make sequence - (make element gi: "span" - attributes: '(("class" "superclass")) - (process-children)) - (if (last-sibling?) - (empty-sosofo) - (literal ", "))))) - -(element fieldsynopsis - (make element gi: "code" - attributes: '(("class" "fieldsynopsis")) - (literal " "); - (process-children) - (literal ";&#RE;"))) - -(element type - (make element gi: "span" - attributes: '(("class" "type")) - (process-children) - (literal " "))) - -(element varname - (make element gi: "span" - attributes: '(("class" "varname")) - (process-children))) - -(element initializer - (make element gi: "span" - attributes: '(("class" "initializer")) - (literal " = ") - (process-children) - (literal " "))) - -(element constructorsynopsis - (idl-method-synopsis)) - -(element destructorsynopsis - (idl-method-synopsis)) - -(element methodsynopsis - (idl-method-synopsis)) - -(element void - (make element gi: "span" - attributes: '(("class" "void")) - (literal "void "))) - -(element methodname - (make element gi: "span" - attributes: '(("class" "methodname")) - (process-children))) - -(element methodparam - (make element gi: "span" - attributes: '(("class" "methodparam")) - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (make element gi: "span" - attributes: '(("class" "parameter")) - (process-children))) - -(element exceptionname - (make element gi: "span" - attributes: '(("class" "exceptionname")) - (if (first-sibling?) - (literal " raises(") - (literal ", ")) - (process-children) - (if (last-sibling?) - (literal ")") - (empty-sosofo)))) -) - -(define (idl-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "methodparam")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make element gi: "code" - attributes: (list (list "class" (gi nd))) - (literal " ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal "(") - (process-node-list param) - (literal ")") - (process-node-list excep) - (literal ";&#RE;")))) - -;; ===== Python ======================================================= -;; Contributed by Lane Stevens, lane@cycletime.com - -(mode cs-python-mode - (element classsynopsis - (let* ((classes (select-elements (children (current-node)) - (normalize "ooclass"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make element gi: "pre" - attributes: '(("class" "classsynopsis")) - (literal "class ") - (process-node-list classname) - (literal "(") - (process-node-list superclasses) - (literal ") :") - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - ) - ) - ) - - (element ooclass - (make sequence - (make element gi: "SPAN" - attributes: '(("class" "ooclass")) - (process-children) - (cond - ((first-sibling?) (literal " ")) - ((last-sibling?) (empty-sosofo)) - (#t (literal ", ")) - ) - ) - ) - ) - - (element classname - (if (first-sibling?) - (make element gi: "SPAN" - attributes: '(("class" "classname")) - (process-children)) - (make element gi: "SPAN" - attributes: '(("class" "superclass"))) - ) - ) - - (element methodsynopsis - (python-method-synopsis)) - - (element initializer - (make element gi: "SPAN" - attributes: '(("class" "initializer")) - (literal " = ") - (process-children))) - - (element methodname - (process-children)) - - (element methodparam - (make element gi: "SPAN" - attributes: '(("class" "methodparam")) - (process-children) - (if (last-sibling?) - (empty-sosofo) - (literal ", ")) - ) - ) - - - (element parameter - (make element gi: "SPAN" - attributes: '(("class" "parameter")) - (process-children))) - - - ) - -(define (python-method-synopsis #!optional (nd (current-node))) - (let* ((the-method-name (select-elements (children nd) (normalize "methodname"))) - (the-method-params (select-elements (children nd) (normalize "methodparam")))) - (make element gi: "code" - attributes: (list (list "class" (gi nd))) - (literal " def ") - (process-node-list the-method-name) - (literal "(") - (process-node-list the-method-params) - (literal ") :") - ) - ) - ) - -;; EOF diff --git a/docs/dsssl/docbook/html/dbfootn.dsl b/docs/dsssl/docbook/html/dbfootn.dsl deleted file mode 100755 index 64b99e1e..00000000 --- a/docs/dsssl/docbook/html/dbfootn.dsl +++ /dev/null @@ -1,249 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ====================================================================== -;; Handle footnotes in body text - -(element footnote ;; A footnote inserts a reference to itself - (let ((id (if (attribute-string (normalize "id")) - (attribute-string (normalize "id")) - (generate-anchor)))) - (make element gi: "A" - attributes: (list - (list "NAME" id) - (list "HREF" (string-append "#FTN." id))) - ($footnote-literal$ (current-node))))) - -(element footnoteref - (let* ((target (element-with-id (attribute-string (normalize "linkend")))) - (id (if (attribute-string (normalize "id") target) - (attribute-string (normalize "id") target) - (generate-anchor target))) - (curdepth (directory-depth (html-file (current-node)))) - (entfile (html-file target)) - ;; can't use (href-to) here because we tinker with the fragid - (href (if nochunks - (string-append "#FTN." id) - (string-append (copy-string "../" curdepth) - entfile "#FTN." id)))) - (make element gi: "A" - attributes: (list - (list "HREF" href)) - ($footnote-literal$ target)))) - -(define (count-footnote? footnote) - ;; don't count footnotes in comments (unless you're showing comments) - ;; or footnotes in tables which are handled locally in the table - (if (or (and (has-ancestor-member? footnote (list (normalize "comment"))) - (not %show-comments%)) - (has-ancestor-member? footnote (list (normalize "tgroup")))) - #f - #t)) - -(define ($chunk-footnote-number$ footnote) - ;; This is more complex than it at first appears because footnotes - ;; can be in Comments which may be suppressed. - (let* ((footnotes (select-elements - (descendants (chunk-parent footnote)) - (normalize "footnote")))) - (let loop ((nl footnotes) (num 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? (node-list-first nl) footnote) - num - (if (count-footnote? (node-list-first nl)) - (loop (node-list-rest nl) (+ num 1)) - (loop (node-list-rest nl) num))))))) - -(define ($footnote-literal$ node) - (make element gi: "SPAN" - attributes: (list - (list "CLASS" "footnote")) - (literal - (string-append - "[" ($footnote-number$ node) "]")))) - -(define ($table-footnote-number$ footnote) - (let* ((chunk (ancestor (normalize "tgroup") footnote)) - (footnotes (select-elements (descendants chunk) (normalize "footnote")))) - (let loop ((nl footnotes) (num 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? footnote (node-list-first nl)) - num - (loop (node-list-rest nl) - (+ num 1))))))) - -(define ($footnote-number$ footnote) - (if (node-list-empty? (ancestor (normalize "tgroup") footnote)) - (format-number ($chunk-footnote-number$ footnote) "1") - (format-number ($table-footnote-number$ footnote) "a"))) - -(mode footnote-mode - (element footnote - (process-children)) - - (element (footnote para) - (let ((id (if (attribute-string (normalize "id") (parent (current-node))) - (attribute-string (normalize "id") (parent (current-node))) - (generate-anchor (parent (current-node)))))) - (make element gi: "P" - (if (= (child-number) 1) - (make sequence - (make element gi: "A" - attributes: (list - (list "NAME" (string-append "FTN." id)) - (list "HREF" (href-to (parent (current-node))))) - ($footnote-literal$ (parent (current-node)))) - (literal " ")) - (literal "")) - (process-children)))) -) - -(define (non-table-footnotes footnotenl) - (let loop ((nl footnotenl) (result (empty-node-list))) - (if (node-list-empty? nl) - result - (if (has-ancestor-member? (node-list-first nl) - (list (normalize "tgroup"))) - (loop (node-list-rest nl) - result) - (loop (node-list-rest nl) - (node-list result (node-list-first nl))))))) - -(define (make-endnotes #!optional (node (current-node))) - (if %footnotes-at-end% - (let* ((allfootnotes (select-elements (descendants node) - (normalize "footnote"))) - (allntfootnotes (non-table-footnotes allfootnotes)) - (this-chunk (chunk-parent node)) - (chunkfootnotes (let loop ((fn allntfootnotes) - (chunkfn (empty-node-list))) - (if (node-list-empty? fn) - chunkfn - (if (node-list=? this-chunk - (chunk-parent - (node-list-first fn))) - (loop (node-list-rest fn) - (node-list chunkfn - (node-list-first fn))) - (loop (node-list-rest fn) - chunkfn))))) - (footnotes (let loop ((nl chunkfootnotes) - (fnlist (empty-node-list))) - (if (node-list-empty? nl) - fnlist - (if (count-footnote? (node-list-first nl)) - (loop (node-list-rest nl) - (node-list fnlist - (node-list-first nl))) - (loop (node-list-rest nl) - fnlist)))))) - (if (node-list-empty? footnotes) - (empty-sosofo) - (if (and #f - ;; there was a time when make-endnotes was called in - ;; more places, and this code prevented footnotes from - ;; being output more than once. now that it's only - ;; called in footer-navigation, this code isn't necessary - ;; and does the wrong thing if -V nochunks is specified. - (or (equal? (gi node) (normalize "reference")) - (equal? (gi node) (normalize "part")) - (equal? (gi node) (normalize "set")) - (equal? (gi node) (normalize "book")))) - (empty-sosofo) ;; Each RefEntry/Component does its own... - (make sequence - (make-endnote-header) - (make element gi: "TABLE" - attributes: '(("BORDER" "0") - ("CLASS" "FOOTNOTES") - ("WIDTH" "100%")) - (with-mode endnote-mode - (process-node-list footnotes))))))) - (empty-sosofo))) - -(define (make-endnote-header) - (let ((headsize (if (equal? (gi) (normalize "refentry")) "H2" "H3"))) - (make element gi: headsize - attributes: '(("CLASS" "FOOTNOTES")) - (literal (gentext-endnotes))))) - -(mode endnote-mode - (element footnote - (let ((id (if (attribute-string (normalize "id") (current-node)) - (attribute-string (normalize "id") (current-node)) - (generate-anchor (current-node))))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "5%")) - (make element gi: "A" - attributes: (list - (list "NAME" (string-append "FTN." id)) - (list "HREF" (href-to (current-node)))) - ($footnote-literal$ (current-node)))) - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "95%")) - (process-children)))))) -) - -;; ====================================================================== -;; Handle table footnotes - -(define (table-footnote-number footnote) - (format-number (component-child-number footnote - (list (normalize "table") - (normalize "informaltable"))) - "a")) - -(element (entry para footnote) - (make element gi: "SUP" - (literal (table-footnote-number (current-node))))) - -(define (make-table-endnote-header) - (make sequence - (literal (gentext-table-endnotes)) - (make empty-element gi: "BR"))) - -(define (make-table-endnotes) - (let* ((footnotes (select-elements (descendants (current-node)) - (normalize "footnote"))) - (tgroup (ancestor-member (current-node) (list (normalize "tgroup")))) - (cols (string->number (attribute-string (normalize "cols") tgroup)))) - (if (node-list-empty? footnotes) - (empty-sosofo) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "COLSPAN" (number->string cols))) - (make-table-endnote-header) - (with-mode table-footnote-mode - (process-node-list footnotes))))))) - -(mode table-footnote-mode - (element footnote - (process-children)) - - (element (footnote para) - (let* ((target (parent (current-node))) - (fnnum (table-footnote-number target)) - (idstr (if (attribute-string (normalize "id") target) - (attribute-string (normalize "id") target) - (generate-anchor target)))) - (make sequence - (if (= (child-number) 1) - (make element gi: "A" - attributes: (list (list "NAME" (string-append "FTN." idstr))) - (literal fnnum - (gentext-label-title-sep (normalize "footnote")))) - (empty-sosofo)) - (process-children) - (make empty-element gi: "BR"))))) - diff --git a/docs/dsssl/docbook/html/dbgloss.dsl b/docs/dsssl/docbook/html/dbgloss.dsl deleted file mode 100755 index ba1a0f3b..00000000 --- a/docs/dsssl/docbook/html/dbgloss.dsl +++ /dev/null @@ -1,193 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= GLOSSARY ELEMENTS ========================== - -;; HACK ALERT! There is no top-level wrapper around one or more GLOSSENTRYs, -;; so this code has to look around and output the right thing for the -;; front matter and then the GLOSSENTRYs. Ugh. - -(define ($glossary-frontmatter$) - (let loop ((nl (children (current-node))) (headlist (empty-node-list))) - (if (node-list-empty? nl) - headlist - (if (equal? (gi (node-list-first nl)) (normalize "glossentry")) - headlist - (loop (node-list-rest nl) (node-list - headlist - (node-list-first nl))))))) - -(define ($glossary-glossentrys$) - (let loop ((nl (children (current-node))) (gelist (empty-node-list))) - (if (node-list-empty? nl) - gelist - (loop (node-list-rest nl) - (if (equal? (gi (node-list-first nl)) (normalize "glossentry")) - (node-list gelist (node-list-first nl)) - gelist))))) - -(define ($glossary-body$) - (make element gi: "DIV" - attributes: '(("CLASS" "GLOSSARY")) - ($component-title$) - (process-node-list ($glossary-frontmatter$)) - (if (not (node-list-empty? ($glossary-glossentrys$))) - (make element gi: "DL" - (process-node-list ($glossary-glossentrys$))) - (empty-sosofo)))) - -(element glossary - (html-document (with-mode head-title-mode - (literal (element-title-string (current-node)))) - ($glossary-body$))) - -(element (glossary title) (empty-sosofo)) - -(element glossdiv - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - ($section-title$) - (process-node-list ($glossary-frontmatter$)) - (if (not (node-list-empty? ($glossary-glossentrys$))) - (make element gi: "DL" - (process-node-list ($glossary-glossentrys$))) - (empty-sosofo)))) - -(element (glossdiv title) (empty-sosofo)) - -(element glosslist - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "DL" - (process-children)))) - -(element glossentry (process-children)) - -(element (glossentry glossterm) - (let ((id (attribute-string (normalize "id") (parent (current-node))))) - (make element gi: "DT" - (if id - (make sequence - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (empty-sosofo)) - (make element gi: "B" - (process-children))) - (make element gi: "B" - (process-children)))))) - -(element (glossentry acronym) - (make sequence - (literal " (") - (process-children) - (literal ")"))) - -(element (glossentry abbrev) (empty-sosofo)) - -(element (glossentry glossdef) - (make element gi: "DD" - (process-children))) - -(element (glossterm revhistory) - (empty-sosofo)) - -(element (glossentry glosssee) - (make element gi: "DD" - (if (attribute-string (normalize "otherterm")) - (make element gi: "P" - (make element gi: "EM" - (literal (gentext-element-name (gi)) - (gentext-label-title-sep (gi)))) - (make element gi: "A" - attributes: (list (list "HREF" - (link-target - (attribute-string - (normalize "otherterm"))))) - (with-mode otherterm - (process-element-with-id - (attribute-string (normalize "otherterm")))))) - (process-children)))) - -;; When we hit the first GLOSSSEEALSO, process all of them as a node-list -(element glossseealso - (if (first-sibling?) - (make element gi: "P" - (make sequence - (make element gi: "EM" - (literal (gentext-element-name (gi)) - (gentext-label-title-sep (gi)))) - (with-mode glossseealso - (process-node-list - (select-elements (children (parent)) '(glossseealso)))) - (literal "."))) - (empty-sosofo))) - -(mode glossseealso - (element glossseealso - (make sequence - (if (first-sibling?) - (empty-sosofo) - (make element gi: "EM" - (literal ", "))) - (if (attribute-string (normalize "otherterm")) ;; but this should be required... - (make element gi: "A" - attributes: (list (list "HREF" - (link-target - (attribute-string - (normalize "otherterm"))))) - (with-mode otherterm - (process-element-with-id - (attribute-string (normalize "otherterm"))))) - (process-children))))) - -;; This is referenced within the GLOSSSEE and GLOSSSEEALSO element -;; construction expressions. The OTHERTERM attributes on GLOSSSEE and -;; GLOSSSEEALSO (should) refer to GLOSSENTRY elements but we're only -;; interested in the text within the GLOSSTERM. Discard the revision -;; history and the definition from the referenced term. -(mode otherterm - (element glossterm - (process-children)) - (element glossdef - (empty-sosofo)) - (element revhistory - (empty-sosofo)) - (element glosssee - (empty-sosofo)) - (element (glossentry acronym) - (empty-sosofo)) - (element (glossentry abbrev) - (empty-sosofo))) - -;; an inline gloss term -(element glossterm - (let* ((linkend (attribute-string (normalize "linkend")))) - (if linkend - (make element gi: "A" - attributes: (list (list "HREF" (href-to (element-with-id - linkend)))) - ($italic-seq$)) - ($italic-seq$)))) - -;; a first glossterm -(element firstterm - (let* ((linkend (attribute-string (normalize "linkend"))) - (sosofo (if linkend - (make element gi: "A" - attributes: (list (list "HREF" - (href-to - (element-with-id - linkend)))) - ($italic-seq$)) - ($italic-seq$)))) - (if firstterm-bold - (make element gi: "B" - sosofo) - sosofo))) - diff --git a/docs/dsssl/docbook/html/dbgraph.dsl b/docs/dsssl/docbook/html/dbgraph.dsl deleted file mode 100755 index f87ba02a..00000000 --- a/docs/dsssl/docbook/html/dbgraph.dsl +++ /dev/null @@ -1,124 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ==================== GRAPHICS ==================== - -(define (graphic-file filename) - (let ((ext (file-extension filename))) - (if (or (not filename) - (not %graphic-default-extension%) - (member ext %graphic-extensions%)) - filename - (string-append filename "." %graphic-default-extension%)))) - -(define (graphic-attrs imagefile instance-alt) - (let* ((grove (sgml-parse image-library-filename)) - (imagelib (node-property 'document-element - (node-property 'grove-root grove))) - (images (select-elements (children imagelib) "image")) - (image (let loop ((imglist images)) - (if (node-list-empty? imglist) - #f - (if (equal? (attribute-string - "filename" - (node-list-first imglist)) - imagefile) - (node-list-first imglist) - (loop (node-list-rest imglist)))))) - (prop (if image - (select-elements (children image) "properties") - #f)) - (metas (if prop - (select-elements (children prop) "meta") - #f)) - (attrs (if metas - (let loop ((meta metas) (attrlist '())) - (if (node-list-empty? meta) - attrlist - (if (equal? (attribute-string - "imgattr" - (node-list-first meta)) - "yes") - (loop (node-list-rest meta) - (append attrlist - (list - (list - (attribute-string - "name" - (node-list-first meta)) - (attribute-string - "content" - (node-list-first meta)))))) - (loop (node-list-rest meta) attrlist)))) - (empty-node-list))) - (width (if prop (attribute-string "width" prop) #f)) - (height (if prop (attribute-string "height" prop) #f)) - (alttext (if image - (select-elements (children image) "alttext") - (empty-node-list))) - (alt (if instance-alt - instance-alt - (if (node-list-empty? alttext) - #f - (data alttext))))) - (if (or width height alt (not (null? attrs))) - (append - attrs - (if width (list (list "WIDTH" width)) '()) - (if height (list (list "HEIGHT" height)) '()) - (if (not (node-list-empty? alttext)) (list (list "ALT" alt)) '())) - '()))) - -(define ($graphic$ fileref - #!optional (format #f) (alt #f) (align #f) (width #f) (height #f)) - (let ((img-attr (append - (list (list "SRC" (graphic-file fileref))) - (if align (list (list "ALIGN" align)) '()) - (if width (list (list "WIDTH" width)) '()) - (if height (list (list "HEIGHT" height)) '()) - (if image-library (graphic-attrs fileref alt) '())))) - (make empty-element gi: "IMG" - attributes: img-attr))) - -(define ($img$ #!optional (nd (current-node)) (alt #f)) - ;; This function now supports an extension to DocBook. It's - ;; either a clever trick or an ugly hack, depending on your - ;; point of view, but it'll hold us until XLink is finalized - ;; and we can extend DocBook the "right" way. - ;; - ;; If the entity passed to GRAPHIC has the FORMAT - ;; "LINESPECIFIC", either because that's what's specified or - ;; because it's the notation of the supplied ENTITYREF, then - ;; the text of the entity is inserted literally (via Jade's - ;; read-entity external procedure). - ;; - (let* ((fileref (attribute-string (normalize "fileref") nd)) - (entityref (attribute-string (normalize "entityref") nd)) - (format (if (attribute-string (normalize "format") nd) - (attribute-string (normalize "format") nd) - (if entityref - (entity-notation entityref) - #f))) - (align (attribute-string (normalize "align") nd)) - (width (attribute-string (normalize "width") nd)) - (height (attribute-string (normalize "depth") nd))) - (if (or fileref entityref) - (if (equal? format (normalize "linespecific")) - (if fileref - (include-file fileref) - (include-file (entity-generated-system-id entityref))) - (if fileref - ($graphic$ fileref format alt align width height) - ($graphic$ (system-id-filename entityref) - format alt align width height))) - (empty-sosofo)))) - -(element graphic - (make element gi: "P" - ($img$))) - -(element inlinegraphic - ($img$)) diff --git a/docs/dsssl/docbook/html/dbhtml.dsl b/docs/dsssl/docbook/html/dbhtml.dsl deleted file mode 100755 index 6fd5d837..00000000 --- a/docs/dsssl/docbook/html/dbhtml.dsl +++ /dev/null @@ -1,392 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ====================================================================== -;; HTML Linking... -;; - -(define (element-id #!optional (nd (current-node))) - ;; IDs of TITLEs are the IDs of the PARENTs - (let ((elem (if (equal? (gi nd) - (normalize "title")) - (parent nd) - nd))) - (if (attribute-string (normalize "id") elem) - (attribute-string (normalize "id") elem) - (generate-anchor elem)))) - -(define (link-target idstring) - ;; Return the HTML HREF for the given idstring. For RefEntrys, this is - ;; just the name of the file, for anything else it's the name of the file - ;; with the fragment identifier for the specified id. - (href-to (element-with-id idstring))) - -(define (generate-anchor #!optional (nd (current-node))) - (string-append "AEN" (number->string (all-element-number nd)))) - -(define (generate-xptr #!optional (nd (current-node))) - ;; returns the location of the current node in a modified xptr - ;; syntax. This used to be used to calculate unique anchor names - ;; in the HTML document. all-element-number seems like a better - ;; way to go...so this function is probably never called anymore. - (let loop ((suffix "") - (nd nd)) - (let ((eid (id nd))) - (if eid - (string-append "I(" - eid - ")" - (if (= (string-length suffix) 0) - "" - (string-append "C" - suffix))) - (let ((par (parent nd))) - (if (not (node-list-empty? par)) - (loop (string-append "(" - (number->string (child-number nd)) - "," - (gi nd) - ")" - suffix) - par) - (string-append (if (= (string-length suffix) 0) - "R" - "R,C") - suffix))))))) - -;; ====================================================================== -;; HTML output -;; - -(define (html-document title-sosofo body-sosofo) - (let* (;; Let's look these up once, so that we can avoid calculating - ;; them over and over again. - (prev (prev-chunk-element)) - (next (next-chunk-element)) - (prevm (prev-major-component-chunk-element)) - (nextm (next-major-component-chunk-element)) - (navlist (list prev next prevm nextm)) - - ;; Let's make it possible to control the output even in the - ;; nochunks case. Note: in the nochunks case, (chunk?) will - ;; return #t for only the root element. - (make-entity? (and (or (not nochunks) rootchunk) - (chunk?))) - - (make-head? (or make-entity? - (and nochunks - (node-list=? (current-node) - (sgml-root-element))))) - (doc-sosofo - (if make-head? - (make element gi: "HTML" - (make element gi: "HEAD" - (make element gi: "TITLE" title-sosofo) - ($standard-html-header$ prev next prevm nextm)) - (make element gi: "BODY" - attributes: (append - (list (list "CLASS" (gi))) - %body-attr%) - (header-navigation (current-node) navlist) - body-sosofo - (footer-navigation (current-node) navlist))) - body-sosofo))) - (if make-entity? - (make entity - system-id: (html-entity-file (html-file)) - (if %html-pubid% - (make document-type - name: "HTML" - public-id: %html-pubid%) - (empty-sosofo)) - doc-sosofo) - (if (node-list=? (current-node) (sgml-root-element)) - (make sequence - (if %html-pubid% - (make document-type - name: "HTML" - public-id: %html-pubid%) - (empty-sosofo)) - doc-sosofo) - doc-sosofo)))) - -(define ($standard-html-header$ #!optional - (prev (prev-chunk-element)) - (next (next-chunk-element)) - (prevm (prev-major-component-chunk-element)) - (nextm (next-major-component-chunk-element))) - ;; A hook function to add additional tags to the HEAD of your HTML files - (let* ((info (info-element)) - (kws (select-elements (descendants info) (normalize "keyword"))) - (home (nav-home (current-node))) - (up (parent (current-node)))) - (make sequence - ;; Add the META NAME=GENERATOR tag - (make empty-element gi: "META" - attributes: (list (list "NAME" "GENERATOR") - (list "CONTENT" (stylesheet-version)))) - - ;; Add the LINK REV=MADE tag - (if %link-mailto-url% - (make empty-element gi: "LINK" - attributes: (list (list "REV" "MADE") - (list "HREF" %link-mailto-url%))) - (empty-sosofo)) - - ;; Add the LINK REL=HOME tag - (if (nav-home? (current-node)) - (make empty-element gi: "LINK" - attributes: (append '(("REL" "HOME")) - (if (equal? (element-title-string home) - "") - '() - (list - (list "TITLE" - (element-title-string home)))) - (list (list "HREF" (href-to home))))) - (empty-sosofo)) - - ;; Add the LINK REL=UP tag - (if (nav-up? (current-node)) - (if (or (node-list-empty? up) - (node-list=? up (sgml-root-element))) - (empty-sosofo) - (make empty-element gi: "LINK" - attributes: (append '(("REL" "UP")) - (if (equal? (element-title-string up) - "") - '() - (list - (list "TITLE" - (element-title-string up)))) - (list (list "HREF" (href-to up)))))) - (empty-sosofo)) - - ;; Add the LINK REL=PREVIOUS tag - (if (node-list-empty? prev) - (empty-sosofo) - (make empty-element gi: "LINK" - attributes: (append '(("REL" "PREVIOUS")) - (if (equal? (element-title-string prev) "") - '() - (list - (list "TITLE" - (element-title-string prev)))) - (list (list "HREF" (href-to prev)))))) - - ;; Add the LINK REL=NEXT tag - (if (node-list-empty? next) - (empty-sosofo) - (make empty-element gi: "LINK" - attributes: (append '(("REL" "NEXT")) - (if (equal? (element-title-string next) "") - '() - (list - (list "TITLE" - (element-title-string next)))) - (list (list "HREF" (href-to next)))))) - - ;; Add META NAME=KEYWORD tags - (let loop ((nl kws)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (make empty-element gi: "META" - attributes: (list (list "NAME" "KEYWORD") - (list "CONTENT" (data (node-list-first nl))))) - (loop (node-list-rest nl))))) - - ;; Add LINK REL=STYLESHEET tag - (if %stylesheet% - (make empty-element gi: "LINK" - attributes: (list (list "REL" "STYLESHEET") - (list "TYPE" %stylesheet-type%) - (list "HREF" %stylesheet%))) - (empty-sosofo)) - - ($user-html-header$ home up prev next)))) - -(define ($user-html-header$ #!optional - (home (empty-node-list)) - (up (empty-node-list)) - (prev (empty-node-list)) - (next (empty-node-list))) - ;; Add additional header tags. - (let loop ((tl %html-header-tags%)) - (if (null? tl) - (empty-sosofo) - (make sequence - (make empty-element gi: (car (car tl)) - attributes: (cdr (car tl))) - (loop (cdr tl)))))) - -(define ($html-body-start$) - (empty-sosofo)) - -(define ($html-body-content-start$) - (empty-sosofo)) - -(define ($html-body-content-end$) - (empty-sosofo)) - -(define ($html-body-end$) - (empty-sosofo)) - -(define (dingbat usrname) - ;; Print dingbats and other characters selected by name - (let ((name (case-fold-down usrname))) - (case name - ;; For backward compatibility - (("copyright") "(C)") - (("trademark") "TM") - - ;; Straight out of Unicode - (("ldquo") "\"") - (("rdquo") "\"") - (("lsquo") "'") - (("rsquo") "'") - (("ldquor") "\"") - (("rdquor") "\"") - (("raquo") ">>") - (("laquo") "<<") - (("rsaquo") ">") - (("lsaquo") "<") - (("nbsp") " ") - (("en-dash") "-") - (("em-dash") "--") - (("en-space") " ") - (("em-space") " ") - (("bullet") "*") - (("copyright-sign") "(C)") - (("registered-sign") "(R)") - (else - (let ((err (debug (string-append "No dingbat defined for: " name)))) - "*"))))) - -(define (dingbat-sosofo usrname) - ;; Print dingbats and other characters selected by name - (let ((name (case-fold-down usrname))) - (case name - ;; For backward compatibility - (("copyright") (make entity-ref name: "copy")) - (("trademark") (make entity-ref name: "trade")) - - ;; Straight out of Unicode - (("ldquo") (literal "\"")) - (("rdquo") (literal "\"")) - (("lsquo") "'") - (("rsquo") "'") - (("raquo") (literal "\"")) - (("laquo") (literal "\"")) - (("rsaquo") (literal "\"")) - (("lsaquo") (literal "\"")) - (("nbsp") (make entity-ref name: "nbsp")) - (("en-dash") (literal "-")) - (("em-dash") (literal "--")) - (("en-space") (make entity-ref name: "nbsp")) - (("em-space") (make sequence - (make entity-ref name: "nbsp") - (make entity-ref name: "nbsp"))) - (("bullet") (literal "*")) - (("copyright-sign") (make entity-ref name: "copy")) - (("registered-sign") (literal "(R)")) - (else - (let ((err (debug (string-append "No dingbat defined for: " name)))) - (literal "*")))))) - -(define (para-check #!optional (place 'stop)) - (let ((inpara (equal? (gi (parent (current-node))) (normalize "para")))) - (if (and %fix-para-wrappers% inpara) - (if (equal? place 'stop) - (make formatting-instruction data: "</P>") - (make formatting-instruction data: "<P>")) - (empty-sosofo)))) - -;; ====================================================================== -;; HTML element functions - -(define ($block-container$) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (process-children))) - -(define ($paragraph$ #!optional (para-wrapper "P")) - (let ((footnotes (select-elements (descendants (current-node)) - (normalize "footnote"))) - (tgroup (have-ancestor? (normalize "tgroup")))) - (make sequence - (make element gi: para-wrapper - attributes: (append - (if %default-quadding% - (list (list "ALIGN" %default-quadding%)) - '())) - (process-children)) - (if (or %footnotes-at-end% tgroup (node-list-empty? footnotes)) - (empty-sosofo) - (make element gi: "BLOCKQUOTE" - attributes: (list - (list "CLASS" "FOOTNOTES")) - (with-mode footnote-mode - (process-node-list footnotes))))))) - -(define ($indent-para-container$) - (make element gi: "BLOCKQUOTE" - attributes: (list - (list "CLASS" (gi))) - (process-children))) - -(define ($bold-seq$ #!optional (sosofo (process-children))) - (make element gi: "B" - attributes: (list - (list "CLASS" (gi))) - sosofo)) - -(define ($italic-seq$ #!optional (sosofo (process-children))) - (make element gi: "I" - attributes: (list - (list "CLASS" (gi))) - sosofo)) - -(define ($bold-italic-seq$ #!optional (sosofo (process-children))) - (make element gi: "B" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "I" - sosofo))) - -(define ($mono-seq$ #!optional (sosofo (process-children))) - (make element gi: "TT" - attributes: (list - (list "CLASS" (gi))) - sosofo)) - -(define ($italic-mono-seq$ #!optional (sosofo (process-children))) - (make element gi: "TT" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "I" - sosofo))) - -(define ($bold-mono-seq$ #!optional (sosofo (process-children))) - (make element gi: "TT" - attributes: (list - (list "CLASS" (gi))) - (make element gi: "B" - sosofo))) - -(define ($charseq$ #!optional (sosofo (process-children))) - (make element gi: "SPAN" - attributes: (list - (list "CLASS" (gi))) - sosofo)) - -;; EOF dbhtml.dsl - - diff --git a/docs/dsssl/docbook/html/dbindex.dsl b/docs/dsssl/docbook/html/dbindex.dsl deleted file mode 100755 index 61515d0b..00000000 --- a/docs/dsssl/docbook/html/dbindex.dsl +++ /dev/null @@ -1,374 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ................... INDEX TERMS (EMBEDDED MARKERS) ................... - -(element indexterm - (if html-index - (let* ((id (if (attribute-string (normalize "id")) - (attribute-string (normalize "id")) - (generate-anchor)))) - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo))) - (empty-sosofo))) - -(element primary (empty-sosofo)) -(element secondary (empty-sosofo)) -(element tertiary (empty-sosofo)) -(element see (empty-sosofo)) -(element seealso (empty-sosofo)) - -;; =========================== INDEX ELEMENTS =========================== - -(element (setindex title) (empty-sosofo)) -(element setindex - (let ((preamble (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "indexentry")))) - (entries (node-list-filter-by-gi - (children (current-node)) - (list (normalize "indexentry"))))) - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($component-separator$) - ($component-title$) - (process-node-list preamble) - (if (node-list-empty? entries) - (empty-sosofo) - (make element gi: "DL" - (process-node-list entries))))))) - -(element (index title) (empty-sosofo)) -(element index - (let ((preamble (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "indexentry")))) - (entries (node-list-filter-by-gi - (children (current-node)) - (list (normalize "indexentry"))))) - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($component-separator$) - ($component-title$) - (process-node-list preamble) - (if (node-list-empty? entries) - (empty-sosofo) - (make element gi: "DL" - (process-node-list entries))))))) - - -(element (indexdiv title) (empty-sosofo)) -(element indexdiv - (let ((preamble (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "indexentry")))) - (entries (node-list-filter-by-gi - (children (current-node)) - (list (normalize "indexentry"))))) - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($section-separator$) - ($section-title$) - (process-node-list preamble) - (if (node-list-empty? entries) - (empty-sosofo) - (make element gi: "DL" - (process-node-list entries))))))) - -(define (break-node-list nodes breakatgi) - ;; Given a _node_ list "PRIM SEC TERT SEC SEC TERT PRIM SEC PRIM PRIM" - ;; and the breakatgi of "PRIM", returns the _list_ of _node_ lists: - ;; '("PRIM SEC TERT SEC SEC TERT" "PRIM SEC" "PRIM" "PRIM") - (let loop ((nl nodes) (result '()) (curlist (empty-node-list))) - (if (node-list-empty? nl) - (if (node-list-empty? curlist) - result - (append result (list curlist))) - (if (equal? (gi (node-list-first nl)) breakatgi) - (loop (node-list-rest nl) - (if (node-list-empty? curlist) - result - (append result (list curlist))) - (node-list-first nl)) - (loop (node-list-rest nl) - result - (node-list curlist (node-list-first nl))))))) - -(define (process-primary primnode secnl) - (let ((see? (equal? (gi (node-list-first secnl)) - (normalize "seeie"))) - (seealso? (equal? (gi (node-list-first secnl)) - (normalize "seealsoie"))) - (second (break-node-list secnl (normalize "secondaryie")))) - (if (or see? seealso?) - (process-terminal primnode secnl #t) - (make sequence - (process-nonterminal primnode) - (if (node-list-empty? secnl) - (empty-sosofo) - (make element gi: "DD" - (make element gi: "DL" - (let sloop ((secs second)) - (if (null? secs) - (empty-sosofo) - (make sequence - (let* ((nodes (car secs)) - (sec (node-list-first nodes)) - (terts (node-list-rest nodes))) - (process-secondary sec terts)) - (sloop (cdr secs)))))))))))) - -(define (process-secondary secnode tertnl) - (let ((see? (equal? (gi (node-list-first tertnl)) - (normalize "seeie"))) - (seealso? (equal? (gi (node-list-first tertnl)) - (normalize "seealsoie"))) - (tert (break-node-list tertnl (normalize "tertiaryie")))) - (if (or see? seealso?) - (process-terminal secnode tertnl) - (make sequence - (process-nonterminal secnode) - (make element gi: "DD" - (make element gi: "DL" - (let tloop ((terts tert)) - (if (null? terts) - (empty-sosofo) - (make sequence - (let* ((nodes (car terts)) - (tert (node-list-first nodes)) - (sees (node-list-rest nodes))) - (process-tertiary tert sees)) - (tloop (cdr terts))))))))))) - -(define (process-tertiary tertnode seenl) - (process-terminal tertnode seenl)) - -(define (process-terminal node seenl #!optional (output-id #f)) - (let ((id (attribute-string (normalize "id") (parent node)))) - (make sequence - (make element gi: "DT" - (if id - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - (process-node-list node)) - (if (node-list-empty? seenl) - (empty-sosofo) - (make element gi: "DD" - (make element gi: "DL" - (let loop ((nl seenl)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (make element gi: "DT" - (process-node-list - (node-list-first nl))) - (loop (node-list-rest nl))))))))))) - -(define (process-nonterminal node) - (make element gi: "DT" - (process-node-list node))) - -(element indexentry - (let* ((primary (break-node-list (children (current-node)) - (normalize "primaryie")))) - (make sequence - (let ploop ((prims primary)) - (if (null? prims) - (empty-sosofo) - (make sequence - (let* ((nodes (car prims)) - (prim (node-list-first nodes)) - (secs (node-list-rest nodes))) - (process-primary prim secs)) - (ploop (cdr prims)))))))) - -(element primaryie (process-children)) -(element secondaryie (process-children)) -(element tertiaryie (process-children)) - -(define (indexentry-link nd) - (let* ((preferred (not (node-list-empty? - (select-elements (children (current-node)) - (normalize "emphasis")))))) - (make element gi: "A" - attributes: (list (list "HREF" - (attribute-string (normalize "url")))) - (process-children)))) - -(element (primaryie ulink) - (indexentry-link (current-node))) - -(element (secondaryie ulink) - (indexentry-link (current-node))) - -(element (tertiaryie ulink) - (indexentry-link (current-node))) - -(element seeie - (let ((linkend (attribute-string (normalize "linkend")))) - (if linkend - (make element gi: "A" - attributes: (list (list "HREF" - (href-to (element-with-id linkend)))) - (literal (gentext-element-name (current-node))) - (literal (gentext-label-title-sep (current-node))) - (process-children)) - (make sequence - (literal (gentext-element-name (current-node))) - (literal (gentext-label-title-sep (current-node))) - (process-children))))) - -(element seealsoie - (let* ((alinkends (attribute-string (normalize "linkends"))) - (linkends (if alinkends - (split alinkends) - '())) - (linkend (if alinkends - (car linkends) - #f))) - (if linkend - (make element gi: "A" - attributes: (list (list "HREF" - (href-to (element-with-id linkend)))) - (literal (gentext-element-name (current-node))) - (literal (gentext-label-title-sep (current-node))) - (process-children)) - (make sequence - (literal (gentext-element-name (current-node))) - (literal (gentext-label-title-sep (current-node))) - (process-children))))) - -;; =====================HTML INDEX PROCESSING ============================== - -(define (htmlnewline) - (make formatting-instruction data: " ")) - -(define (htmlindexattr attr) - (if (attribute-string (normalize attr)) - (make sequence - (make formatting-instruction data: attr) - (make formatting-instruction data: " ") - (make formatting-instruction data: (attribute-string - (normalize attr))) - (htmlnewline)) - (empty-sosofo))) - -(define (htmlindexterm) - (let* ((attr (gi (current-node))) - (content (data (current-node))) - (string (string-replace content " " " ")) - (sortas (attribute-string (normalize "sortas")))) - (make sequence - (make formatting-instruction data: attr) - (if sortas - (make sequence - (make formatting-instruction data: "[") - (make formatting-instruction data: sortas) - (make formatting-instruction data: "]")) - (empty-sosofo)) - (make formatting-instruction data: " ") - (make formatting-instruction data: string) - (htmlnewline)))) - -(define (htmlindexzone zone) - (let loop ((idlist (split zone))) - (if (null? idlist) - (empty-sosofo) - (make sequence - (htmlindexzone1 (car idlist)) - (loop (cdr idlist)))))) - -(define (htmlindexzone1 id) - (let* ((target (ancestor-member (element-with-id id) - (append (book-element-list) - (division-element-list) - (component-element-list) - (section-element-list)))) - (title (string-replace (element-title-string target) " " " "))) - (make sequence - (make formatting-instruction data: "ZONE ") - (make formatting-instruction data: (href-to target)) - (htmlnewline) - - (make formatting-instruction data: "TITLE ") - (make formatting-instruction data: title) - (htmlnewline)))) - -(mode htmlindex - ;; this mode is really just a hack to get at the root element - (root (process-children)) - - (default - (if (node-list=? (current-node) (sgml-root-element)) - (make entity - system-id: (html-entity-file html-index-filename) - (process-node-list (select-elements - (descendants (current-node)) - (normalize "indexterm")))) - (empty-sosofo))) - - (element indexterm - (let* ((target (ancestor-member (current-node) - (append (book-element-list) - (division-element-list) - (component-element-list) - (section-element-list)))) - (title (string-replace (element-title-string target) " " " "))) - (make sequence - (make formatting-instruction data: "INDEXTERM ") - (make formatting-instruction data: (href-to target)) - (htmlnewline) - - (make formatting-instruction data: "INDEXPOINT ") - (make formatting-instruction data: (href-to (current-node))) - (htmlnewline) - - (make formatting-instruction data: "TITLE ") - (make formatting-instruction data: title) - (htmlnewline) - - (htmlindexattr "scope") - (htmlindexattr "significance") - (htmlindexattr "class") - (htmlindexattr "id") - (htmlindexattr "startref") - - (if (attribute-string (normalize "zone")) - (htmlindexzone (attribute-string (normalize "zone"))) - (empty-sosofo)) - - (process-children) - - (make formatting-instruction data: "/INDEXTERM") - (htmlnewline)))) - - (element primary - (htmlindexterm)) - - (element secondary - (htmlindexterm)) - - (element tertiary - (htmlindexterm)) - - (element see - (htmlindexterm)) - - (element seealso - (htmlindexterm)) -) diff --git a/docs/dsssl/docbook/html/dbinfo.dsl b/docs/dsssl/docbook/html/dbinfo.dsl deleted file mode 100755 index d6519a8e..00000000 --- a/docs/dsssl/docbook/html/dbinfo.dsl +++ /dev/null @@ -1,879 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ................................ INFO ................................ - -;; Rather than make the *INFO containers empty-sosofos, we make them -;; process-children and then make all of the elements they may contain -;; empty in this context. The advantage here is that we can then -;; more easily override some of them in stylesheets that use this one. - -;; SetInfo is handled differently in dbdivis.dsl by using a -;; special mode... - -(element setinfo (empty-sosofo)) - -(element (setinfo abbrev) (process-children)) -(element (setinfo abstract) (process-children)) -(element (setinfo address) (process-children)) -(element (setinfo affiliation) (process-children)) -(element (setinfo artpagenums) (process-children)) -(element (setinfo author) (process-children)) -(element (setinfo authorblurb) (process-children)) -(element (setinfo authorgroup) (process-children)) -(element (setinfo authorinitials) (process-children)) -(element (setinfo bibliomisc) (process-children)) -(element (setinfo biblioset) (process-children)) -(element (setinfo collab) (process-children)) -(element (setinfo confgroup) (process-children)) -(element (setinfo contractnum) (process-children)) -(element (setinfo contractsponsor) (process-children)) -(element (setinfo contrib) (process-children)) -(element (setinfo copyright) (process-children)) -(element (setinfo corpauthor) (process-children)) -(element (setinfo corpname) (process-children)) -(element (setinfo date) (process-children)) -(element (setinfo edition) (process-children)) -(element (setinfo editor) (process-children)) -(element (setinfo firstname) (process-children)) -(element (setinfo graphic) (process-children)) -(element (setinfo honorific) (process-children)) -(element (setinfo invpartnumber) (process-children)) -(element (setinfo isbn) (process-children)) -(element (setinfo issn) (process-children)) -(element (setinfo issuenum) (process-children)) -(element (setinfo itermset) (process-children)) -(element (setinfo keywordset) (process-children)) -(element (setinfo legalnotice) ($semiformal-object$)) -(element (setinfo lineage) (process-children)) -(element (setinfo modespec) (process-children)) -(element (setinfo orgname) (process-children)) -(element (setinfo othercredit) (process-children)) -(element (setinfo othername) (process-children)) -(element (setinfo pagenums) (process-children)) -(element (setinfo printhistory) (process-children)) -(element (setinfo productname) (process-children)) -(element (setinfo productnumber) (process-children)) -(element (setinfo pubdate) (process-children)) -(element (setinfo publisher) (process-children)) -(element (setinfo publishername) (process-children)) -(element (setinfo pubsnumber) (process-children)) -(element (setinfo releaseinfo) (process-children)) -(element (setinfo revhistory) ($book-revhistory$)) -(element (setinfo seriesvolnums) (process-children)) -(element (setinfo subjectset) (process-children)) -(element (setinfo subtitle) (process-children)) -(element (setinfo surname) (process-children)) -(element (setinfo title) (process-children)) -(element (setinfo titleabbrev) (process-children)) -(element (setinfo volumenum) (process-children)) - -;; BookInfo is handled differently in dbdivis.dsl by using a -;; special mode... - -(element bookinfo (empty-sosofo)) - -(element (bookinfo abbrev) (process-children)) -(element (bookinfo abstract) (process-children)) -(element (bookinfo address) (process-children)) -(element (bookinfo affiliation) (process-children)) -(element (bookinfo artpagenums) (process-children)) -(element (bookinfo author) (process-children)) -(element (bookinfo authorblurb) (process-children)) -(element (bookinfo authorgroup) (process-children)) -(element (bookinfo authorinitials) (process-children)) -(element (bookinfo bibliomisc) (process-children)) -(element (bookinfo biblioset) (process-children)) -(element (bookinfo bookbiblio) (process-children)) -(element (bookinfo collab) (process-children)) -(element (bookinfo confgroup) (process-children)) -(element (bookinfo contractnum) (process-children)) -(element (bookinfo contractsponsor) (process-children)) -(element (bookinfo contrib) (process-children)) -(element (bookinfo copyright) (process-children)) -(element (bookinfo corpauthor) (process-children)) -(element (bookinfo corpname) (process-children)) -(element (bookinfo date) (process-children)) -(element (bookinfo edition) (process-children)) -(element (bookinfo editor) (process-children)) -(element (bookinfo firstname) (process-children)) -(element (bookinfo graphic) (process-children)) -(element (bookinfo honorific) (process-children)) -(element (bookinfo invpartnumber) (process-children)) -(element (bookinfo isbn) (process-children)) -(element (bookinfo issn) (process-children)) -(element (bookinfo issuenum) (process-children)) -(element (bookinfo itermset) (process-children)) -(element (bookinfo keywordset) (process-children)) -(element (bookinfo legalnotice) ($semiformal-object$)) -(element (bookinfo lineage) (process-children)) -(element (bookinfo modespec) (process-children)) -(element (bookinfo orgname) (process-children)) -(element (bookinfo othercredit) (process-children)) -(element (bookinfo othername) (process-children)) -(element (bookinfo pagenums) (process-children)) -(element (bookinfo printhistory) (process-children)) -(element (bookinfo productname) (process-children)) -(element (bookinfo productnumber) (process-children)) -(element (bookinfo pubdate) (process-children)) -(element (bookinfo publisher) (process-children)) -(element (bookinfo publishername) (process-children)) -(element (bookinfo pubsnumber) (process-children)) -(element (bookinfo releaseinfo) (process-children)) -(element (bookinfo revhistory) ($book-revhistory$)) -(element (bookinfo seriesvolnums) (process-children)) -(element (bookinfo subjectset) (process-children)) -(element (bookinfo subtitle) (process-children)) -(element (bookinfo surname) (process-children)) -(element (bookinfo title) (process-children)) -(element (bookinfo titleabbrev) (process-children)) -(element (bookinfo volumenum) (process-children)) - -(element docinfo (empty-sosofo)) - -(element (docinfo abbrev) (empty-sosofo)) - -(element (docinfo abstract) - (make element gi: "DIV" - attributes: '(("CLASS" "ABSTRACT")) - (process-children))) - -(element (docinfo abstract para) - (make element gi: "P" - (process-children-trim))) - -(element (docinfo address) (empty-sosofo)) -(element (docinfo affiliation) (empty-sosofo)) -(element (docinfo artpagenums) (empty-sosofo)) -(element (docinfo author) (empty-sosofo)) -(element (docinfo authorblurb) (empty-sosofo)) -(element (docinfo authorgroup) (empty-sosofo)) -(element (docinfo authorinitials) (empty-sosofo)) -(element (docinfo bibliomisc) (empty-sosofo)) -(element (docinfo biblioset) (empty-sosofo)) -(element (docinfo collab) (empty-sosofo)) -(element (docinfo confgroup) (empty-sosofo)) -(element (docinfo contractnum) (empty-sosofo)) -(element (docinfo contractsponsor) (empty-sosofo)) -(element (docinfo contrib) (empty-sosofo)) -(element (docinfo copyright) (empty-sosofo)) -(element (docinfo corpauthor) (empty-sosofo)) -(element (docinfo corpname) (empty-sosofo)) -(element (docinfo date) (empty-sosofo)) -(element (docinfo edition) (empty-sosofo)) -(element (docinfo editor) (empty-sosofo)) -(element (docinfo firstname) (empty-sosofo)) -(element (docinfo graphic) (empty-sosofo)) -(element (docinfo honorific) (empty-sosofo)) -(element (docinfo invpartnumber) (empty-sosofo)) -(element (docinfo isbn) (empty-sosofo)) -(element (docinfo issn) (empty-sosofo)) -(element (docinfo issuenum) (empty-sosofo)) -(element (docinfo itermset) (empty-sosofo)) -(element (docinfo keywordset) (empty-sosofo)) -(element (docinfo legalnotice) (empty-sosofo)) -(element (docinfo lineage) (empty-sosofo)) -(element (docinfo modespec) (empty-sosofo)) -(element (docinfo orgname) (empty-sosofo)) -(element (docinfo othercredit) (empty-sosofo)) -(element (docinfo othername) (empty-sosofo)) -(element (docinfo pagenums) (empty-sosofo)) -(element (docinfo printhistory) (empty-sosofo)) -(element (docinfo productname) (empty-sosofo)) -(element (docinfo productnumber) (empty-sosofo)) -(element (docinfo pubdate) (empty-sosofo)) -(element (docinfo publisher) (empty-sosofo)) -(element (docinfo publishername) (empty-sosofo)) -(element (docinfo pubsnumber) (empty-sosofo)) -(element (docinfo releaseinfo) (empty-sosofo)) -(element (docinfo revhistory) (empty-sosofo)) -(element (docinfo seriesvolnums) (empty-sosofo)) -(element (docinfo subjectset) (empty-sosofo)) -(element (docinfo subtitle) (empty-sosofo)) -(element (docinfo surname) (empty-sosofo)) -(element (docinfo title) (empty-sosofo)) -(element (docinfo titleabbrev) (empty-sosofo)) -(element (docinfo volumenum) (empty-sosofo)) - -(element sect1info (process-children)) - -(element (sect1info abbrev) (empty-sosofo)) -(element (sect1info abstract) (empty-sosofo)) -(element (sect1info address) (empty-sosofo)) -(element (sect1info affiliation) (empty-sosofo)) -(element (sect1info artpagenums) (empty-sosofo)) -(element (sect1info author) (empty-sosofo)) -(element (sect1info authorblurb) (empty-sosofo)) -(element (sect1info authorgroup) (empty-sosofo)) -(element (sect1info authorinitials) (empty-sosofo)) -(element (sect1info bibliomisc) (empty-sosofo)) -(element (sect1info biblioset) (empty-sosofo)) -(element (sect1info collab) (empty-sosofo)) -(element (sect1info confgroup) (empty-sosofo)) -(element (sect1info contractnum) (empty-sosofo)) -(element (sect1info contractsponsor) (empty-sosofo)) -(element (sect1info contrib) (empty-sosofo)) -(element (sect1info copyright) (empty-sosofo)) -(element (sect1info corpauthor) (empty-sosofo)) -(element (sect1info corpname) (empty-sosofo)) -(element (sect1info date) (empty-sosofo)) -(element (sect1info edition) (empty-sosofo)) -(element (sect1info editor) (empty-sosofo)) -(element (sect1info firstname) (empty-sosofo)) -(element (sect1info graphic) (empty-sosofo)) -(element (sect1info honorific) (empty-sosofo)) -(element (sect1info invpartnumber) (empty-sosofo)) -(element (sect1info isbn) (empty-sosofo)) -(element (sect1info issn) (empty-sosofo)) -(element (sect1info issuenum) (empty-sosofo)) -(element (sect1info itermset) (empty-sosofo)) -(element (sect1info keywordset) (empty-sosofo)) -(element (sect1info legalnotice) (empty-sosofo)) -(element (sect1info lineage) (empty-sosofo)) -(element (sect1info modespec) (empty-sosofo)) -(element (sect1info orgname) (empty-sosofo)) -(element (sect1info othercredit) (empty-sosofo)) -(element (sect1info othername) (empty-sosofo)) -(element (sect1info pagenums) (empty-sosofo)) -(element (sect1info printhistory) (empty-sosofo)) -(element (sect1info productname) (empty-sosofo)) -(element (sect1info productnumber) (empty-sosofo)) -(element (sect1info pubdate) (empty-sosofo)) -(element (sect1info publisher) (empty-sosofo)) -(element (sect1info publishername) (empty-sosofo)) -(element (sect1info pubsnumber) (empty-sosofo)) -(element (sect1info releaseinfo) (empty-sosofo)) -(element (sect1info revhistory) (empty-sosofo)) -(element (sect1info seriesvolnums) (empty-sosofo)) -(element (sect1info subjectset) (empty-sosofo)) -(element (sect1info subtitle) (empty-sosofo)) -(element (sect1info surname) (empty-sosofo)) -(element (sect1info title) (empty-sosofo)) -(element (sect1info titleabbrev) (empty-sosofo)) -(element (sect1info volumenum) (empty-sosofo)) - -(element sect2info (process-children)) - -(element (sect2info abbrev) (empty-sosofo)) -(element (sect2info abstract) (empty-sosofo)) -(element (sect2info address) (empty-sosofo)) -(element (sect2info affiliation) (empty-sosofo)) -(element (sect2info artpagenums) (empty-sosofo)) -(element (sect2info author) (empty-sosofo)) -(element (sect2info authorblurb) (empty-sosofo)) -(element (sect2info authorgroup) (empty-sosofo)) -(element (sect2info authorinitials) (empty-sosofo)) -(element (sect2info bibliomisc) (empty-sosofo)) -(element (sect2info biblioset) (empty-sosofo)) -(element (sect2info collab) (empty-sosofo)) -(element (sect2info confgroup) (empty-sosofo)) -(element (sect2info contractnum) (empty-sosofo)) -(element (sect2info contractsponsor) (empty-sosofo)) -(element (sect2info contrib) (empty-sosofo)) -(element (sect2info copyright) (empty-sosofo)) -(element (sect2info corpauthor) (empty-sosofo)) -(element (sect2info corpname) (empty-sosofo)) -(element (sect2info date) (empty-sosofo)) -(element (sect2info edition) (empty-sosofo)) -(element (sect2info editor) (empty-sosofo)) -(element (sect2info firstname) (empty-sosofo)) -(element (sect2info graphic) (empty-sosofo)) -(element (sect2info honorific) (empty-sosofo)) -(element (sect2info invpartnumber) (empty-sosofo)) -(element (sect2info isbn) (empty-sosofo)) -(element (sect2info issn) (empty-sosofo)) -(element (sect2info issuenum) (empty-sosofo)) -(element (sect2info itermset) (empty-sosofo)) -(element (sect2info keywordset) (empty-sosofo)) -(element (sect2info legalnotice) (empty-sosofo)) -(element (sect2info lineage) (empty-sosofo)) -(element (sect2info modespec) (empty-sosofo)) -(element (sect2info orgname) (empty-sosofo)) -(element (sect2info othercredit) (empty-sosofo)) -(element (sect2info othername) (empty-sosofo)) -(element (sect2info pagenums) (empty-sosofo)) -(element (sect2info printhistory) (empty-sosofo)) -(element (sect2info productname) (empty-sosofo)) -(element (sect2info productnumber) (empty-sosofo)) -(element (sect2info pubdate) (empty-sosofo)) -(element (sect2info publisher) (empty-sosofo)) -(element (sect2info publishername) (empty-sosofo)) -(element (sect2info pubsnumber) (empty-sosofo)) -(element (sect2info releaseinfo) (empty-sosofo)) -(element (sect2info revhistory) (empty-sosofo)) -(element (sect2info seriesvolnums) (empty-sosofo)) -(element (sect2info subjectset) (empty-sosofo)) -(element (sect2info subtitle) (empty-sosofo)) -(element (sect2info surname) (empty-sosofo)) -(element (sect2info title) (empty-sosofo)) -(element (sect2info titleabbrev) (empty-sosofo)) -(element (sect2info volumenum) (empty-sosofo)) - -(element sect3info (process-children)) - -(element (sect3info abbrev) (empty-sosofo)) -(element (sect3info abstract) (empty-sosofo)) -(element (sect3info address) (empty-sosofo)) -(element (sect3info affiliation) (empty-sosofo)) -(element (sect3info artpagenums) (empty-sosofo)) -(element (sect3info author) (empty-sosofo)) -(element (sect3info authorblurb) (empty-sosofo)) -(element (sect3info authorgroup) (empty-sosofo)) -(element (sect3info authorinitials) (empty-sosofo)) -(element (sect3info bibliomisc) (empty-sosofo)) -(element (sect3info biblioset) (empty-sosofo)) -(element (sect3info collab) (empty-sosofo)) -(element (sect3info confgroup) (empty-sosofo)) -(element (sect3info contractnum) (empty-sosofo)) -(element (sect3info contractsponsor) (empty-sosofo)) -(element (sect3info contrib) (empty-sosofo)) -(element (sect3info copyright) (empty-sosofo)) -(element (sect3info corpauthor) (empty-sosofo)) -(element (sect3info corpname) (empty-sosofo)) -(element (sect3info date) (empty-sosofo)) -(element (sect3info edition) (empty-sosofo)) -(element (sect3info editor) (empty-sosofo)) -(element (sect3info firstname) (empty-sosofo)) -(element (sect3info graphic) (empty-sosofo)) -(element (sect3info honorific) (empty-sosofo)) -(element (sect3info invpartnumber) (empty-sosofo)) -(element (sect3info isbn) (empty-sosofo)) -(element (sect3info issn) (empty-sosofo)) -(element (sect3info issuenum) (empty-sosofo)) -(element (sect3info itermset) (empty-sosofo)) -(element (sect3info keywordset) (empty-sosofo)) -(element (sect3info legalnotice) (empty-sosofo)) -(element (sect3info lineage) (empty-sosofo)) -(element (sect3info modespec) (empty-sosofo)) -(element (sect3info orgname) (empty-sosofo)) -(element (sect3info othercredit) (empty-sosofo)) -(element (sect3info othername) (empty-sosofo)) -(element (sect3info pagenums) (empty-sosofo)) -(element (sect3info printhistory) (empty-sosofo)) -(element (sect3info productname) (empty-sosofo)) -(element (sect3info productnumber) (empty-sosofo)) -(element (sect3info pubdate) (empty-sosofo)) -(element (sect3info publisher) (empty-sosofo)) -(element (sect3info publishername) (empty-sosofo)) -(element (sect3info pubsnumber) (empty-sosofo)) -(element (sect3info releaseinfo) (empty-sosofo)) -(element (sect3info revhistory) (empty-sosofo)) -(element (sect3info seriesvolnums) (empty-sosofo)) -(element (sect3info subjectset) (empty-sosofo)) -(element (sect3info subtitle) (empty-sosofo)) -(element (sect3info surname) (empty-sosofo)) -(element (sect3info title) (empty-sosofo)) -(element (sect3info titleabbrev) (empty-sosofo)) -(element (sect3info volumenum) (empty-sosofo)) - -(element sect4info (process-children)) - -(element (sect4info abbrev) (empty-sosofo)) -(element (sect4info abstract) (empty-sosofo)) -(element (sect4info address) (empty-sosofo)) -(element (sect4info affiliation) (empty-sosofo)) -(element (sect4info artpagenums) (empty-sosofo)) -(element (sect4info author) (empty-sosofo)) -(element (sect4info authorblurb) (empty-sosofo)) -(element (sect4info authorgroup) (empty-sosofo)) -(element (sect4info authorinitials) (empty-sosofo)) -(element (sect4info bibliomisc) (empty-sosofo)) -(element (sect4info biblioset) (empty-sosofo)) -(element (sect4info collab) (empty-sosofo)) -(element (sect4info confgroup) (empty-sosofo)) -(element (sect4info contractnum) (empty-sosofo)) -(element (sect4info contractsponsor) (empty-sosofo)) -(element (sect4info contrib) (empty-sosofo)) -(element (sect4info copyright) (empty-sosofo)) -(element (sect4info corpauthor) (empty-sosofo)) -(element (sect4info corpname) (empty-sosofo)) -(element (sect4info date) (empty-sosofo)) -(element (sect4info edition) (empty-sosofo)) -(element (sect4info editor) (empty-sosofo)) -(element (sect4info firstname) (empty-sosofo)) -(element (sect4info graphic) (empty-sosofo)) -(element (sect4info honorific) (empty-sosofo)) -(element (sect4info invpartnumber) (empty-sosofo)) -(element (sect4info isbn) (empty-sosofo)) -(element (sect4info issn) (empty-sosofo)) -(element (sect4info issuenum) (empty-sosofo)) -(element (sect4info itermset) (empty-sosofo)) -(element (sect4info keywordset) (empty-sosofo)) -(element (sect4info legalnotice) (empty-sosofo)) -(element (sect4info lineage) (empty-sosofo)) -(element (sect4info modespec) (empty-sosofo)) -(element (sect4info orgname) (empty-sosofo)) -(element (sect4info othercredit) (empty-sosofo)) -(element (sect4info othername) (empty-sosofo)) -(element (sect4info pagenums) (empty-sosofo)) -(element (sect4info printhistory) (empty-sosofo)) -(element (sect4info productname) (empty-sosofo)) -(element (sect4info productnumber) (empty-sosofo)) -(element (sect4info pubdate) (empty-sosofo)) -(element (sect4info publisher) (empty-sosofo)) -(element (sect4info publishername) (empty-sosofo)) -(element (sect4info pubsnumber) (empty-sosofo)) -(element (sect4info releaseinfo) (empty-sosofo)) -(element (sect4info revhistory) (empty-sosofo)) -(element (sect4info seriesvolnums) (empty-sosofo)) -(element (sect4info subjectset) (empty-sosofo)) -(element (sect4info subtitle) (empty-sosofo)) -(element (sect4info surname) (empty-sosofo)) -(element (sect4info title) (empty-sosofo)) -(element (sect4info titleabbrev) (empty-sosofo)) -(element (sect4info volumenum) (empty-sosofo)) - -(element sect5info (process-children)) - -(element (sect5info abbrev) (empty-sosofo)) -(element (sect5info abstract) (empty-sosofo)) -(element (sect5info address) (empty-sosofo)) -(element (sect5info affiliation) (empty-sosofo)) -(element (sect5info artpagenums) (empty-sosofo)) -(element (sect5info author) (empty-sosofo)) -(element (sect5info authorblurb) (empty-sosofo)) -(element (sect5info authorgroup) (empty-sosofo)) -(element (sect5info authorinitials) (empty-sosofo)) -(element (sect5info bibliomisc) (empty-sosofo)) -(element (sect5info biblioset) (empty-sosofo)) -(element (sect5info collab) (empty-sosofo)) -(element (sect5info confgroup) (empty-sosofo)) -(element (sect5info contractnum) (empty-sosofo)) -(element (sect5info contractsponsor) (empty-sosofo)) -(element (sect5info contrib) (empty-sosofo)) -(element (sect5info copyright) (empty-sosofo)) -(element (sect5info corpauthor) (empty-sosofo)) -(element (sect5info corpname) (empty-sosofo)) -(element (sect5info date) (empty-sosofo)) -(element (sect5info edition) (empty-sosofo)) -(element (sect5info editor) (empty-sosofo)) -(element (sect5info firstname) (empty-sosofo)) -(element (sect5info graphic) (empty-sosofo)) -(element (sect5info honorific) (empty-sosofo)) -(element (sect5info invpartnumber) (empty-sosofo)) -(element (sect5info isbn) (empty-sosofo)) -(element (sect5info issn) (empty-sosofo)) -(element (sect5info issuenum) (empty-sosofo)) -(element (sect5info itermset) (empty-sosofo)) -(element (sect5info keywordset) (empty-sosofo)) -(element (sect5info legalnotice) (empty-sosofo)) -(element (sect5info lineage) (empty-sosofo)) -(element (sect5info modespec) (empty-sosofo)) -(element (sect5info orgname) (empty-sosofo)) -(element (sect5info othercredit) (empty-sosofo)) -(element (sect5info othername) (empty-sosofo)) -(element (sect5info pagenums) (empty-sosofo)) -(element (sect5info printhistory) (empty-sosofo)) -(element (sect5info productname) (empty-sosofo)) -(element (sect5info productnumber) (empty-sosofo)) -(element (sect5info pubdate) (empty-sosofo)) -(element (sect5info publisher) (empty-sosofo)) -(element (sect5info publishername) (empty-sosofo)) -(element (sect5info pubsnumber) (empty-sosofo)) -(element (sect5info releaseinfo) (empty-sosofo)) -(element (sect5info revhistory) (empty-sosofo)) -(element (sect5info seriesvolnums) (empty-sosofo)) -(element (sect5info subjectset) (empty-sosofo)) -(element (sect5info subtitle) (empty-sosofo)) -(element (sect5info surname) (empty-sosofo)) -(element (sect5info title) (empty-sosofo)) -(element (sect5info titleabbrev) (empty-sosofo)) -(element (sect5info volumenum) (empty-sosofo)) - -(element refsect1info (process-children)) - -(element (refsect1info abbrev) (empty-sosofo)) -(element (refsect1info abstract) (empty-sosofo)) -(element (refsect1info address) (empty-sosofo)) -(element (refsect1info affiliation) (empty-sosofo)) -(element (refsect1info artpagenums) (empty-sosofo)) -(element (refsect1info author) (empty-sosofo)) -(element (refsect1info authorblurb) (empty-sosofo)) -(element (refsect1info authorgroup) (empty-sosofo)) -(element (refsect1info authorinitials) (empty-sosofo)) -(element (refsect1info bibliomisc) (empty-sosofo)) -(element (refsect1info biblioset) (empty-sosofo)) -(element (refsect1info collab) (empty-sosofo)) -(element (refsect1info confgroup) (empty-sosofo)) -(element (refsect1info contractnum) (empty-sosofo)) -(element (refsect1info contractsponsor) (empty-sosofo)) -(element (refsect1info contrib) (empty-sosofo)) -(element (refsect1info copyright) (empty-sosofo)) -(element (refsect1info corpauthor) (empty-sosofo)) -(element (refsect1info corpname) (empty-sosofo)) -(element (refsect1info date) (empty-sosofo)) -(element (refsect1info edition) (empty-sosofo)) -(element (refsect1info editor) (empty-sosofo)) -(element (refsect1info firstname) (empty-sosofo)) -(element (refsect1info graphic) (empty-sosofo)) -(element (refsect1info honorific) (empty-sosofo)) -(element (refsect1info invpartnumber) (empty-sosofo)) -(element (refsect1info isbn) (empty-sosofo)) -(element (refsect1info issn) (empty-sosofo)) -(element (refsect1info issuenum) (empty-sosofo)) -(element (refsect1info itermset) (empty-sosofo)) -(element (refsect1info keywordset) (empty-sosofo)) -(element (refsect1info legalnotice) (empty-sosofo)) -(element (refsect1info lineage) (empty-sosofo)) -(element (refsect1info modespec) (empty-sosofo)) -(element (refsect1info orgname) (empty-sosofo)) -(element (refsect1info othercredit) (empty-sosofo)) -(element (refsect1info othername) (empty-sosofo)) -(element (refsect1info pagenums) (empty-sosofo)) -(element (refsect1info printhistory) (empty-sosofo)) -(element (refsect1info productname) (empty-sosofo)) -(element (refsect1info productnumber) (empty-sosofo)) -(element (refsect1info pubdate) (empty-sosofo)) -(element (refsect1info publisher) (empty-sosofo)) -(element (refsect1info publishername) (empty-sosofo)) -(element (refsect1info pubsnumber) (empty-sosofo)) -(element (refsect1info releaseinfo) (empty-sosofo)) -(element (refsect1info revhistory) (empty-sosofo)) -(element (refsect1info seriesvolnums) (empty-sosofo)) -(element (refsect1info subjectset) (empty-sosofo)) -(element (refsect1info subtitle) (empty-sosofo)) -(element (refsect1info surname) (empty-sosofo)) -(element (refsect1info title) (empty-sosofo)) -(element (refsect1info titleabbrev) (empty-sosofo)) -(element (refsect1info volumenum) (empty-sosofo)) - -(element refsect2info (process-children)) - -(element (refsect2info abbrev) (empty-sosofo)) -(element (refsect2info abstract) (empty-sosofo)) -(element (refsect2info address) (empty-sosofo)) -(element (refsect2info affiliation) (empty-sosofo)) -(element (refsect2info artpagenums) (empty-sosofo)) -(element (refsect2info author) (empty-sosofo)) -(element (refsect2info authorblurb) (empty-sosofo)) -(element (refsect2info authorgroup) (empty-sosofo)) -(element (refsect2info authorinitials) (empty-sosofo)) -(element (refsect2info bibliomisc) (empty-sosofo)) -(element (refsect2info biblioset) (empty-sosofo)) -(element (refsect2info collab) (empty-sosofo)) -(element (refsect2info confgroup) (empty-sosofo)) -(element (refsect2info contractnum) (empty-sosofo)) -(element (refsect2info contractsponsor) (empty-sosofo)) -(element (refsect2info contrib) (empty-sosofo)) -(element (refsect2info copyright) (empty-sosofo)) -(element (refsect2info corpauthor) (empty-sosofo)) -(element (refsect2info corpname) (empty-sosofo)) -(element (refsect2info date) (empty-sosofo)) -(element (refsect2info edition) (empty-sosofo)) -(element (refsect2info editor) (empty-sosofo)) -(element (refsect2info firstname) (empty-sosofo)) -(element (refsect2info graphic) (empty-sosofo)) -(element (refsect2info honorific) (empty-sosofo)) -(element (refsect2info invpartnumber) (empty-sosofo)) -(element (refsect2info isbn) (empty-sosofo)) -(element (refsect2info issn) (empty-sosofo)) -(element (refsect2info issuenum) (empty-sosofo)) -(element (refsect2info itermset) (empty-sosofo)) -(element (refsect2info keywordset) (empty-sosofo)) -(element (refsect2info legalnotice) (empty-sosofo)) -(element (refsect2info lineage) (empty-sosofo)) -(element (refsect2info modespec) (empty-sosofo)) -(element (refsect2info orgname) (empty-sosofo)) -(element (refsect2info othercredit) (empty-sosofo)) -(element (refsect2info othername) (empty-sosofo)) -(element (refsect2info pagenums) (empty-sosofo)) -(element (refsect2info printhistory) (empty-sosofo)) -(element (refsect2info productname) (empty-sosofo)) -(element (refsect2info productnumber) (empty-sosofo)) -(element (refsect2info pubdate) (empty-sosofo)) -(element (refsect2info publisher) (empty-sosofo)) -(element (refsect2info publishername) (empty-sosofo)) -(element (refsect2info pubsnumber) (empty-sosofo)) -(element (refsect2info releaseinfo) (empty-sosofo)) -(element (refsect2info revhistory) (empty-sosofo)) -(element (refsect2info seriesvolnums) (empty-sosofo)) -(element (refsect2info subjectset) (empty-sosofo)) -(element (refsect2info subtitle) (empty-sosofo)) -(element (refsect2info surname) (empty-sosofo)) -(element (refsect2info title) (empty-sosofo)) -(element (refsect2info titleabbrev) (empty-sosofo)) -(element (refsect2info volumenum) (empty-sosofo)) - -(element refsect3info (process-children)) - -(element (refsect3info abbrev) (empty-sosofo)) -(element (refsect3info abstract) (empty-sosofo)) -(element (refsect3info address) (empty-sosofo)) -(element (refsect3info affiliation) (empty-sosofo)) -(element (refsect3info artpagenums) (empty-sosofo)) -(element (refsect3info author) (empty-sosofo)) -(element (refsect3info authorblurb) (empty-sosofo)) -(element (refsect3info authorgroup) (empty-sosofo)) -(element (refsect3info authorinitials) (empty-sosofo)) -(element (refsect3info bibliomisc) (empty-sosofo)) -(element (refsect3info biblioset) (empty-sosofo)) -(element (refsect3info collab) (empty-sosofo)) -(element (refsect3info confgroup) (empty-sosofo)) -(element (refsect3info contractnum) (empty-sosofo)) -(element (refsect3info contractsponsor) (empty-sosofo)) -(element (refsect3info contrib) (empty-sosofo)) -(element (refsect3info copyright) (empty-sosofo)) -(element (refsect3info corpauthor) (empty-sosofo)) -(element (refsect3info corpname) (empty-sosofo)) -(element (refsect3info date) (empty-sosofo)) -(element (refsect3info edition) (empty-sosofo)) -(element (refsect3info editor) (empty-sosofo)) -(element (refsect3info firstname) (empty-sosofo)) -(element (refsect3info graphic) (empty-sosofo)) -(element (refsect3info honorific) (empty-sosofo)) -(element (refsect3info invpartnumber) (empty-sosofo)) -(element (refsect3info isbn) (empty-sosofo)) -(element (refsect3info issn) (empty-sosofo)) -(element (refsect3info issuenum) (empty-sosofo)) -(element (refsect3info itermset) (empty-sosofo)) -(element (refsect3info keywordset) (empty-sosofo)) -(element (refsect3info legalnotice) (empty-sosofo)) -(element (refsect3info lineage) (empty-sosofo)) -(element (refsect3info modespec) (empty-sosofo)) -(element (refsect3info orgname) (empty-sosofo)) -(element (refsect3info othercredit) (empty-sosofo)) -(element (refsect3info othername) (empty-sosofo)) -(element (refsect3info pagenums) (empty-sosofo)) -(element (refsect3info printhistory) (empty-sosofo)) -(element (refsect3info productname) (empty-sosofo)) -(element (refsect3info productnumber) (empty-sosofo)) -(element (refsect3info pubdate) (empty-sosofo)) -(element (refsect3info publisher) (empty-sosofo)) -(element (refsect3info publishername) (empty-sosofo)) -(element (refsect3info pubsnumber) (empty-sosofo)) -(element (refsect3info releaseinfo) (empty-sosofo)) -(element (refsect3info revhistory) (empty-sosofo)) -(element (refsect3info seriesvolnums) (empty-sosofo)) -(element (refsect3info subjectset) (empty-sosofo)) -(element (refsect3info subtitle) (empty-sosofo)) -(element (refsect3info surname) (empty-sosofo)) -(element (refsect3info title) (empty-sosofo)) -(element (refsect3info titleabbrev) (empty-sosofo)) -(element (refsect3info volumenum) (empty-sosofo)) - -(element seriesinfo (process-children)) - -(element (seriesinfo abbrev) (empty-sosofo)) -(element (seriesinfo abstract) (empty-sosofo)) -(element (seriesinfo address) (empty-sosofo)) -(element (seriesinfo affiliation) (empty-sosofo)) -(element (seriesinfo artpagenums) (empty-sosofo)) -(element (seriesinfo author) (empty-sosofo)) -(element (seriesinfo authorblurb) (empty-sosofo)) -(element (seriesinfo authorgroup) (empty-sosofo)) -(element (seriesinfo authorinitials) (empty-sosofo)) -(element (seriesinfo bibliomisc) (empty-sosofo)) -(element (seriesinfo biblioset) (empty-sosofo)) -(element (seriesinfo collab) (empty-sosofo)) -(element (seriesinfo confgroup) (empty-sosofo)) -(element (seriesinfo contractnum) (empty-sosofo)) -(element (seriesinfo contractsponsor) (empty-sosofo)) -(element (seriesinfo contrib) (empty-sosofo)) -(element (seriesinfo copyright) (empty-sosofo)) -(element (seriesinfo corpauthor) (empty-sosofo)) -(element (seriesinfo corpname) (empty-sosofo)) -(element (seriesinfo date) (empty-sosofo)) -(element (seriesinfo edition) (empty-sosofo)) -(element (seriesinfo editor) (empty-sosofo)) -(element (seriesinfo firstname) (empty-sosofo)) -(element (seriesinfo honorific) (empty-sosofo)) -(element (seriesinfo invpartnumber) (empty-sosofo)) -(element (seriesinfo isbn) (empty-sosofo)) -(element (seriesinfo issn) (empty-sosofo)) -(element (seriesinfo issuenum) (empty-sosofo)) -(element (seriesinfo lineage) (empty-sosofo)) -(element (seriesinfo orgname) (empty-sosofo)) -(element (seriesinfo othercredit) (empty-sosofo)) -(element (seriesinfo othername) (empty-sosofo)) -(element (seriesinfo pagenums) (empty-sosofo)) -(element (seriesinfo printhistory) (empty-sosofo)) -(element (seriesinfo productname) (empty-sosofo)) -(element (seriesinfo productnumber) (empty-sosofo)) -(element (seriesinfo pubdate) (empty-sosofo)) -(element (seriesinfo publisher) (empty-sosofo)) -(element (seriesinfo publishername) (empty-sosofo)) -(element (seriesinfo pubsnumber) (empty-sosofo)) -(element (seriesinfo releaseinfo) (empty-sosofo)) -(element (seriesinfo revhistory) (empty-sosofo)) -(element (seriesinfo seriesvolnums) (empty-sosofo)) -(element (seriesinfo subtitle) (empty-sosofo)) -(element (seriesinfo surname) (empty-sosofo)) -(element (seriesinfo title) (empty-sosofo)) -(element (seriesinfo titleabbrev) (empty-sosofo)) -(element (seriesinfo volumenum) (empty-sosofo)) - -(element artheader (empty-sosofo)) - -(element (artheader abbrev) (empty-sosofo)) -(element (artheader abstract) (empty-sosofo)) -(element (artheader address) (empty-sosofo)) -(element (artheader affiliation) (empty-sosofo)) -(element (artheader artpagenums) (empty-sosofo)) -(element (artheader author) (empty-sosofo)) -(element (artheader authorblurb) (empty-sosofo)) -(element (artheader authorgroup) (empty-sosofo)) -(element (artheader authorinitials) (empty-sosofo)) -(element (artheader bibliomisc) (empty-sosofo)) -(element (artheader biblioset) (empty-sosofo)) -(element (artheader bookbiblio) (empty-sosofo)) -(element (artheader collab) (empty-sosofo)) -(element (artheader confgroup) (empty-sosofo)) -(element (artheader contractnum) (empty-sosofo)) -(element (artheader contractsponsor) (empty-sosofo)) -(element (artheader contrib) (empty-sosofo)) -(element (artheader copyright) (empty-sosofo)) -(element (artheader corpauthor) (empty-sosofo)) -(element (artheader corpname) (empty-sosofo)) -(element (artheader date) (empty-sosofo)) -(element (artheader edition) (empty-sosofo)) -(element (artheader editor) (empty-sosofo)) -(element (artheader firstname) (empty-sosofo)) -(element (artheader honorific) (empty-sosofo)) -(element (artheader invpartnumber) (empty-sosofo)) -(element (artheader isbn) (empty-sosofo)) -(element (artheader issn) (empty-sosofo)) -(element (artheader issuenum) (empty-sosofo)) -(element (artheader lineage) (empty-sosofo)) -(element (artheader orgname) (empty-sosofo)) -(element (artheader othercredit) (empty-sosofo)) -(element (artheader othername) (empty-sosofo)) -(element (artheader pagenums) (empty-sosofo)) -(element (artheader printhistory) (empty-sosofo)) -(element (artheader productname) (empty-sosofo)) -(element (artheader productnumber) (empty-sosofo)) -(element (artheader pubdate) (empty-sosofo)) -(element (artheader publisher) (empty-sosofo)) -(element (artheader publishername) (empty-sosofo)) -(element (artheader pubsnumber) (empty-sosofo)) -(element (artheader releaseinfo) (empty-sosofo)) -(element (artheader revhistory) (empty-sosofo)) -(element (artheader seriesvolnums) (empty-sosofo)) -(element (artheader subtitle) (empty-sosofo)) -(element (artheader surname) (empty-sosofo)) -(element (artheader title) (empty-sosofo)) -(element (artheader titleabbrev) (empty-sosofo)) -(element (artheader volumenum) (empty-sosofo)) - -(element articleinfo (empty-sosofo)) - -(element (articleinfo abbrev) (empty-sosofo)) -(element (articleinfo abstract) (empty-sosofo)) -(element (articleinfo address) (empty-sosofo)) -(element (articleinfo affiliation) (empty-sosofo)) -(element (articleinfo artpagenums) (empty-sosofo)) -(element (articleinfo author) (empty-sosofo)) -(element (articleinfo authorblurb) (empty-sosofo)) -(element (articleinfo authorgroup) (empty-sosofo)) -(element (articleinfo authorinitials) (empty-sosofo)) -(element (articleinfo bibliomisc) (empty-sosofo)) -(element (articleinfo biblioset) (empty-sosofo)) -(element (articleinfo bookbiblio) (empty-sosofo)) -(element (articleinfo collab) (empty-sosofo)) -(element (articleinfo confgroup) (empty-sosofo)) -(element (articleinfo contractnum) (empty-sosofo)) -(element (articleinfo contractsponsor) (empty-sosofo)) -(element (articleinfo contrib) (empty-sosofo)) -(element (articleinfo copyright) (empty-sosofo)) -(element (articleinfo corpauthor) (empty-sosofo)) -(element (articleinfo corpname) (empty-sosofo)) -(element (articleinfo date) (empty-sosofo)) -(element (articleinfo edition) (empty-sosofo)) -(element (articleinfo editor) (empty-sosofo)) -(element (articleinfo firstname) (empty-sosofo)) -(element (articleinfo honorific) (empty-sosofo)) -(element (articleinfo invpartnumber) (empty-sosofo)) -(element (articleinfo isbn) (empty-sosofo)) -(element (articleinfo issn) (empty-sosofo)) -(element (articleinfo issuenum) (empty-sosofo)) -(element (articleinfo lineage) (empty-sosofo)) -(element (articleinfo orgname) (empty-sosofo)) -(element (articleinfo othercredit) (empty-sosofo)) -(element (articleinfo othername) (empty-sosofo)) -(element (articleinfo pagenums) (empty-sosofo)) -(element (articleinfo printhistory) (empty-sosofo)) -(element (articleinfo productname) (empty-sosofo)) -(element (articleinfo productnumber) (empty-sosofo)) -(element (articleinfo pubdate) (empty-sosofo)) -(element (articleinfo publisher) (empty-sosofo)) -(element (articleinfo publishername) (empty-sosofo)) -(element (articleinfo pubsnumber) (empty-sosofo)) -(element (articleinfo releaseinfo) (empty-sosofo)) -(element (articleinfo revhistory) (empty-sosofo)) -(element (articleinfo seriesvolnums) (empty-sosofo)) -(element (articleinfo subtitle) (empty-sosofo)) -(element (articleinfo surname) (empty-sosofo)) -(element (articleinfo title) (empty-sosofo)) -(element (articleinfo titleabbrev) (empty-sosofo)) -(element (articleinfo volumenum) (empty-sosofo)) - -(element refsynopsisdivinfo (process-children)) - -(element (refsynopsisdivinfo graphic) (empty-sosofo)) -(element (refsynopsisdivinfo legalnotice) (empty-sosofo)) -(element (refsynopsisdivinfo modespec) (empty-sosofo)) -(element (refsynopsisdivinfo subjectset) (empty-sosofo)) -(element (refsynopsisdivinfo keywordset) (empty-sosofo)) -(element (refsynopsisdivinfo itermset) (empty-sosofo)) -(element (refsynopsisdivinfo abbrev) (empty-sosofo)) -(element (refsynopsisdivinfo abstract) (empty-sosofo)) -(element (refsynopsisdivinfo address) (empty-sosofo)) -(element (refsynopsisdivinfo artpagenums) (empty-sosofo)) -(element (refsynopsisdivinfo author) (empty-sosofo)) -(element (refsynopsisdivinfo authorgroup) (empty-sosofo)) -(element (refsynopsisdivinfo authorinitials) (empty-sosofo)) -(element (refsynopsisdivinfo bibliomisc) (empty-sosofo)) -(element (refsynopsisdivinfo biblioset) (empty-sosofo)) -(element (refsynopsisdivinfo collab) (empty-sosofo)) -(element (refsynopsisdivinfo confgroup) (empty-sosofo)) -(element (refsynopsisdivinfo contractnum) (empty-sosofo)) -(element (refsynopsisdivinfo contractsponsor) (empty-sosofo)) -(element (refsynopsisdivinfo copyright) (empty-sosofo)) -(element (refsynopsisdivinfo corpauthor) (empty-sosofo)) -(element (refsynopsisdivinfo corpname) (empty-sosofo)) -(element (refsynopsisdivinfo date) (empty-sosofo)) -(element (refsynopsisdivinfo edition) (empty-sosofo)) -(element (refsynopsisdivinfo editor) (empty-sosofo)) -(element (refsynopsisdivinfo invpartnumber) (empty-sosofo)) -(element (refsynopsisdivinfo isbn) (empty-sosofo)) -(element (refsynopsisdivinfo issn) (empty-sosofo)) -(element (refsynopsisdivinfo issuenum) (empty-sosofo)) -(element (refsynopsisdivinfo orgname) (empty-sosofo)) -(element (refsynopsisdivinfo othercredit) (empty-sosofo)) -(element (refsynopsisdivinfo pagenums) (empty-sosofo)) -(element (refsynopsisdivinfo printhistory) (empty-sosofo)) -(element (refsynopsisdivinfo productname) (empty-sosofo)) -(element (refsynopsisdivinfo productnumber) (empty-sosofo)) -(element (refsynopsisdivinfo pubdate) (empty-sosofo)) -(element (refsynopsisdivinfo publisher) (empty-sosofo)) -(element (refsynopsisdivinfo publishername) (empty-sosofo)) -(element (refsynopsisdivinfo pubsnumber) (empty-sosofo)) -(element (refsynopsisdivinfo releaseinfo) (empty-sosofo)) -(element (refsynopsisdivinfo revhistory) (empty-sosofo)) -(element (refsynopsisdivinfo seriesvolnums) (empty-sosofo)) -(element (refsynopsisdivinfo subtitle) (empty-sosofo)) -(element (refsynopsisdivinfo title) (empty-sosofo)) -(element (refsynopsisdivinfo titleabbrev) (empty-sosofo)) -(element (refsynopsisdivinfo volumenum) (empty-sosofo)) -(element (refsynopsisdivinfo honorific) (empty-sosofo)) -(element (refsynopsisdivinfo firstname) (empty-sosofo)) -(element (refsynopsisdivinfo surname) (empty-sosofo)) -(element (refsynopsisdivinfo lineage) (empty-sosofo)) -(element (refsynopsisdivinfo othername) (empty-sosofo)) -(element (refsynopsisdivinfo affiliation) (empty-sosofo)) -(element (refsynopsisdivinfo authorblurb) (empty-sosofo)) -(element (refsynopsisdivinfo contrib) (empty-sosofo)) - -(element appendixinfo (empty-sosofo)) -(element bibliographyinfo (empty-sosofo)) -(element chapterinfo (empty-sosofo)) -(element glossaryinfo (empty-sosofo)) -(element indexinfo (empty-sosofo)) -(element partinfo (empty-sosofo)) -(element prefaceinfo (empty-sosofo)) -(element refentryinfo (empty-sosofo)) -(element referenceinfo (empty-sosofo)) -(element setindexinfo (empty-sosofo)) -(element sidebarinfo (empty-sosofo)) diff --git a/docs/dsssl/docbook/html/dbinline.dsl b/docs/dsssl/docbook/html/dbinline.dsl deleted file mode 100755 index 230211b3..00000000 --- a/docs/dsssl/docbook/html/dbinline.dsl +++ /dev/null @@ -1,306 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================== INLINES =============================== - -(element accel ($charseq$)) -(element action ($charseq$)) -(element application ($charseq$)) -(element classname ($mono-seq$)) -(element command ($bold-seq$)) -(element computeroutput ($mono-seq$)) -(element database ($charseq$)) - -(element email - ($mono-seq$ - (make sequence - (literal "<") - (make element gi: "A" - attributes: (list (list "HREF" - (string-append "mailto:" - (data (current-node))))) - (process-children)) - (literal ">")))) - -(element errorcode ($charseq$)) -(element errorname ($charseq$)) -(element errortype ($charseq$)) -(element envar ($mono-seq$)) -(element filename ($mono-seq$)) -(element function ($mono-seq$)) -(element guibutton ($charseq$)) -(element guiicon ($charseq$)) -(element guilabel ($charseq$)) -(element guimenu ($charseq$)) -(element guimenuitem ($charseq$)) -(element guisubmenu ($charseq$)) -(element hardware ($charseq$)) -(element interface ($charseq$)) -(element interfacedefinition ($charseq$)) -(element keycap ($bold-seq$)) -(element keycode ($charseq$)) - -(element keycombo - (let* ((action (attribute-string (normalize "action"))) - (joinchar - (cond - ((equal? action (normalize "seq")) " ") ;; space - ((equal? action (normalize "simul")) "+") ;; + - ((equal? action (normalize "press")) "-") ;; ? I don't know - ((equal? action (normalize "click")) "-") ;; ? what to do - ((equal? action (normalize "double-click")) "-") ;; ? about the rest - ((equal? action (normalize "other")) "-") ;; ? of these - (else "-")))) - (let loop ((nl (children (current-node))) (count 1)) - (if (node-list-empty? nl) - (empty-sosofo) - (if (equal? count 1) - (make sequence - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl) (+ count 1))) - (make sequence - (literal joinchar) - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl) (+ count 1)))))))) - -(element keysym ($charseq$)) -(element literal ($mono-seq$)) -(element medialabel ($italic-seq$)) - -(element menuchoice - (let* ((shortcut (select-elements (children (current-node)) - (normalize "shortcut"))) - (items (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "shortcut"))))) - (make sequence - (let loop ((nl items) (first? #t)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if first? - (process-node-list (node-list-first nl)) - (make sequence - (if (or (equal? (gi (node-list-first nl)) - (normalize "guimenuitem")) - (equal? (gi (node-list-first nl)) - (normalize "guisubmenu"))) - (make sequence - (literal "-") - (make entity-ref name: "gt")) - (literal "+")) - (process-node-list (node-list-first nl)))) - (loop (node-list-rest nl) #f)))) - (if (node-list-empty? shortcut) - (empty-sosofo) - (make sequence - (literal " (") - (process-node-list shortcut) - (literal ")")))))) - -(element methodname ($mono-seq$)) -(element shortcut ($bold-seq$)) -(element mousebutton ($charseq$)) -(element option ($mono-seq$)) - -(element optional - (make sequence - (literal %arg-choice-opt-open-str%) - ($charseq$) - (literal %arg-choice-opt-close-str%))) - -(element parameter ($italic-mono-seq$)) -(element property ($charseq$)) -(element prompt ($mono-seq$)) -(element replaceable ($italic-mono-seq$)) -(element returnvalue ($charseq$)) -(element structfield ($italic-mono-seq$)) -(element structname ($charseq$)) -(element symbol ($charseq$)) -(element systemitem ($charseq$)) -(element token ($charseq$)) -(element type ($charseq$)) -(element userinput ($bold-mono-seq$)) -(element abbrev ($charseq$)) -(element acronym ($charseq$)) - -(element citation - (if biblio-citation-check - (let* ((bgraphies (select-elements (descendants (sgml-root-element)) - (normalize "bibliography"))) - (bchildren1 (expand-children bgraphies - (list (normalize "bibliography")))) - (bchildren2 (expand-children bchildren1 - (list (normalize "bibliodiv")))) - (bibentries (node-list-filter-by-gi - bchildren2 - (list (normalize "biblioentry") - (normalize "bibliomixed"))))) - (let loop ((bibs bibentries)) - (if (node-list-empty? bibs) - (make sequence - (error (string-append "Cannot find citation: " - (data (current-node)))) - (literal "[") ($charseq$) (literal "]")) - (if (citation-matches-target? (current-node) - (node-list-first bibs)) - (make element gi: "A" - attributes: (list - (list "HREF" (href-to - (node-list-first bibs)))) - (literal "[") ($charseq$) (literal "]")) - (loop (node-list-rest bibs)))))) - (make sequence - (literal "[") ($charseq$) (literal "]")))) - -(element citerefentry - (if %citerefentry-link% - (make element gi: "A" - attributes: (list (list "HREF" ($generate-citerefentry-link$))) - (if %refentry-xref-italic% - ($italic-seq$) - ($charseq$))) - (if %refentry-xref-italic% - ($italic-seq$) - ($charseq$)))) - -(define ($generate-citerefentry-link$) - (empty-sosofo)) - -(define ($x-generate-citerefentry-link$) - (let* ((refentrytitle (select-elements (children (current-node)) - (normalize "refentrytitle"))) - (manvolnum (select-elements (children (current-node)) - (normalize "manvolnum")))) - (string-append "http://example.com/cgi-bin/man.cgi?" - (data refentrytitle) - "(" - (data manvolnum) - ")"))) - -(element citetitle - (if (equal? (attribute-string (normalize "pubwork")) "article") - (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote))) - ($italic-seq$))) - -(element emphasis - (let* ((class (if (and (attribute-string (normalize "role")) - %emphasis-propagates-style%) - (attribute-string (normalize "role")) - "emphasis"))) - (make element gi: "SPAN" - attributes: (list (list "CLASS" class)) - (if (and (attribute-string (normalize "role")) - (or (equal? (attribute-string (normalize "role")) "strong") - (equal? (attribute-string (normalize "role")) "bold"))) - ($bold-seq$) - ($italic-seq$))))) - -(element foreignphrase ($italic-seq$)) -(element markup ($charseq$)) - -(element phrase - (let* ((class (if (and (attribute-string (normalize "role")) - %phrase-propagates-style%) - (attribute-string (normalize "role")) - "phrase"))) - (make element gi: "SPAN" - attributes: (list (list "CLASS" class)) - ($charseq$)))) - -(element quote - (let* ((hnr (hierarchical-number-recursive (normalize "quote") - (current-node))) - (depth (length hnr))) - (make element gi: "SPAN" - attributes: '(("CLASS" "QUOTE")) - (if (equal? (modulo depth 2) 1) - (make sequence - (literal (gentext-start-nested-quote)) - (process-children) - (literal (gentext-end-nested-quote))) - (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote))))))) - -(element sgmltag - (let ((class (if (attribute-string (normalize "class")) - (attribute-string (normalize "class")) - (normalize "element")))) -")))) - ((equal? class (normalize "genentity")) ($mono-seq$ (make sequence - (literal "&") - (process-children) - (literal ";")))) - ((equal? class (normalize "numcharref")) ($mono-seq$ (make sequence - (literal "&#") - (process-children) - (literal ";")))) - ((equal? class (normalize "paramentity")) ($mono-seq$ (make sequence - (literal "%") - (process-children) - (literal ";")))) - ((equal? class (normalize "pi")) ($mono-seq$ (make sequence - (literal "")))) - ((equal? class (normalize "xmlpi")) ($mono-seq$ (make sequence - (literal "")))) - ((equal? class (normalize "starttag")) ($mono-seq$ (make sequence - (literal "<") - (process-children) - (literal ">")))) - ((equal? class (normalize "emptytag")) ($mono-seq$ (make sequence - (literal "<") - (process-children) - (literal "/>")))) - ((equal? class (normalize "sgmlcomment")) ($mono-seq$ (make sequence - (literal "")))) -]]> - (else ($charseq$))))) - -(element trademark - (make sequence - ($charseq$) - (cond - ((equal? (attribute-string "class") (normalize "copyright")) - (make entity-ref name: "copy")) - ((equal? (attribute-string "class") (normalize "registered")) - (make entity-ref name: "reg")) - ((equal? (attribute-string "class") (normalize "service")) - (make element gi: "SUP" - (literal "SM"))) - (else - (make entity-ref name: "#8482"))))) - -(element wordasword ($italic-seq$)) - -(element lineannotation - (process-children)) - -(element superscript - (make element gi: "SUP" - (process-children))) - -(element subscript - (make element gi: "SUB" - (process-children))) diff --git a/docs/dsssl/docbook/html/dblink.dsl b/docs/dsssl/docbook/html/dblink.dsl deleted file mode 100755 index 973c455b..00000000 --- a/docs/dsssl/docbook/html/dblink.dsl +++ /dev/null @@ -1,421 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= LINKS AND ANCHORS ========================== - -(element link - (let* ((endterm (attribute-string (normalize "endterm"))) - (linkend (attribute-string (normalize "linkend"))) - (target (element-with-id linkend)) - (etarget (if endterm - (element-with-id endterm) - (empty-node-list)))) - ;; It isn't necessary to catch either of these errors. The normal - ;; ID/IDREF processing in Jade will catch them, and if -wno-idref - ;; is used, then it's your gun, your bullet, and your foot. -;; (if (node-list-empty? target) -;; (error (string-append "Link to missing ID '" linkend "'")) -;; (empty-sosofo)) -;; (if (and endterm (node-list-empty? etarget)) -;; (error (string-append "EndTerm to missing ID '" endterm "' on Link")) -;; (empty-sosofo)) - (if (node-list-empty? target) - (process-children) - (make element gi: "A" - attributes: (list (list "HREF" (href-to target))) - (if (and endterm (not (node-list-empty? etarget))) - (with-mode xref-endterm-mode (process-node-list etarget)) - (process-children)))))) - -(element ulink - (make element gi: "A" - attributes: (list - (list "HREF" (attribute-string (normalize "url"))) - (list "TARGET" "_top")) - (if (node-list-empty? (children (current-node))) - (literal (attribute-string (normalize "url"))) - (process-children)))) - -(element anchor - (make element gi: "A" - attributes: (list - (list "NAME" (attribute-string (normalize "id")))) - (empty-sosofo))) - -(element beginpage (empty-sosofo)) - -;; ====================================================================== - -(define (olink-link) - ;; This is an olink without a TARGETDOCENT, treat it as a link within - ;; the same document. - (let* ((localinfo (normalize (attribute-string (normalize "localinfo")))) - (target (element-with-id localinfo)) - (linkmode (attribute-string (normalize "linkmode"))) - (modespec (if linkmode (element-with-id linkmode) (empty-node-list))) - (xreflabel (if (node-list-empty? modespec) - #f - (attribute-string (normalize "xreflabel") modespec))) - (href (if (node-list-empty? target) - (error - (string-append "OLink to missing ID '" localinfo "'")) - (href-to target))) - (linktext (strip (data-of (current-node))))) - (make element gi: "A" - attributes: (list (list "HREF" href) - (list "CLASS" "OLINK")) - (if (equal? linktext "") - (if xreflabel - (xref-general target xreflabel) - (xref-general target)) - (process-children))))) - -(define (olink-href target modespec) - (let* ((pubid (entity-public-id target)) - (sysid (system-id-filename target)) - (localinfo (normalize (attribute-string (normalize "localinfo")))) - (qident (if pubid - (string-append %olink-pubid% (url-encode-string pubid)) - (string-append %olink-sysid% (url-encode-string sysid)))) - (qfragid (if localinfo - (string-append %olink-fragid% - (url-encode-string localinfo)) - "")) - (lb-href (string-append %olink-resolution% qident qfragid)) - (modetext (if (node-list-empty? modespec) "" (data-of modespec))) - (href (if (equal? (strip modetext) "") - lb-href - (if localinfo - (string-append - modetext "#" (url-encode-string localinfo)) - modetext)))) - href)) - -(define (olink-simple) - ;; Assumptions: - ;; - The TARGETDOCENT is identified by a public ID - ;; - LOLCALINFO contains the ID value (i.e. HREF fragment identifier) of - ;; the target resource - ;; - If the element has no content, the title extracted by - ;; (olink-resource-title) should be used - ;; - The (olink-resource-title) function can deduce the title from - ;; the pubid and the sysid - ;; - %olink-resolution% is the prefix to use on URLs (to point to a - ;; cgi-bin script, or whatever you can make work for you) - ;; - %olink-pubid% identifies the pubid in the query - ;; - %olink-fragid% identifies the fragment identifier in the query - (let* ((target (attribute-string (normalize "targetdocent"))) - (pubid (entity-public-id target)) - (sysid (system-id-filename target)) - (title (olink-resource-title pubid sysid)) - (href (olink-href target (empty-node-list))) - (linktext (strip (data-of (current-node))))) - (make element gi: "A" - attributes: (list (list "HREF" href) - (list "CLASS" "OLINK")) - (if (equal? linktext "") - (make element gi: "I" (literal title)) - (process-children))))) - -(define (olink-outline-xref olroot target linktext) - (let* ((name (attribute-string (normalize "name") target)) - (label (attribute-string (normalize "label") target)) - (title (select-elements (children target) (normalize "ttl"))) - (substitute (list - (list "%g" (if name (literal name) (literal ""))) - (list "%n" (if label (literal label) (literal ""))) - (list "%t" (with-mode olink-title-mode - (process-node-list title))))) - (tlist (match-split-list linktext (assoc-objs substitute)))) - (string-list-sosofo tlist substitute))) - -(define (olink-outline) - (let* ((target (attribute-string (normalize "targetdocent"))) - (localinfo (normalize (attribute-string (normalize "localinfo")))) - (sysid (entity-generated-system-id target)) - (basename (trim-string sysid '(".sgm" ".xml" ".sgml"))) - (olinkfile (string-append basename %olink-outline-ext%)) - (olinkdoc (sgml-parse olinkfile)) - (olinkroot (node-property 'document-element olinkdoc)) - (olnode (if localinfo - (element-with-id localinfo olinkroot) - olinkroot)) - (linkmode (attribute-string (normalize "linkmode"))) - (modespec (if linkmode (element-with-id linkmode) (empty-node-list))) - (xreflabel (if (node-list-empty? modespec) - "" - (attribute-string (normalize "xreflabel") modespec))) - (href (if (equal? (attribute-string (normalize "type")) "href") - (attribute-string (normalize "href") olnode) - (olink-href target modespec))) - (linktext (strip (data-of (current-node))))) - (make element gi: "A" - attributes: (list (list "HREF" href) - (list "CLASS" "OLINK")) - (if (equal? linktext "") - (olink-outline-xref olinkroot olnode xreflabel) - (process-children))))) - -(element olink - (if (not (attribute-string (normalize "targetdocent"))) - (olink-link) - (if (attribute-string (normalize "linkmode")) - (olink-outline) - (olink-simple)))) - -(mode olink-title-mode - (default (process-children)) - - (element ttl - (make element gi: "I" - (process-children))) - - (element it - (make element gi: "I" - (process-children))) - - (element tt - (make element gi: "TT" - (process-children))) - - (element sub - (make element gi: "SUB" - (process-children))) - - (element sup - (make element gi: "SUP" - (process-children))) -) - -;; ====================================================================== - -(element xref - (let* ((endterm (attribute-string (normalize "endterm"))) - (linkend (attribute-string (normalize "linkend"))) - (target (element-with-id linkend)) - (xreflabel (if (node-list-empty? target) - #f - (attribute-string (normalize "xreflabel") target)))) - (if (node-list-empty? target) - (error (string-append "XRef LinkEnd to missing ID '" linkend "'")) - (make element gi: "A" - attributes: (list - (list "HREF" (href-to target))) - (if xreflabel - (literal xreflabel) - (if endterm - (if (node-list-empty? (element-with-id endterm)) - (error (string-append - "XRef EndTerm to missing ID '" - endterm "'")) - (with-mode xref-endterm-mode - (process-node-list (element-with-id endterm)))) - (cond - ((or (equal? (gi target) (normalize "biblioentry")) - (equal? (gi target) (normalize "bibliomixed"))) - ;; xref to the bibliography is a special case - (xref-biblioentry target)) - ((equal? (gi target) (normalize "co")) - ;; callouts are a special case - ($callout-mark$ target #f)) - ((equal? (gi target) (normalize "listitem")) - ;; listitems are a special case - (if (equal? (gi (parent target)) (normalize "orderedlist")) - (literal (orderedlist-listitem-label-recursive target)) - (error (string-append "XRef to LISTITEM only supported in ORDEREDLISTs")))) - ((equal? (gi target) (normalize "question")) - ;; questions and answers are (yet another) special case - (make sequence - (literal (gentext-element-name target)) - (literal (gentext-label-title-sep target)) - (literal (question-answer-label target)))) - ((equal? (gi target) (normalize "answer")) - ;; questions and answers are (yet another) special case - (make sequence - (literal (gentext-element-name target)) - (literal (gentext-label-title-sep target)) - (literal (question-answer-label target)))) - ((equal? (gi target) (normalize "refentry")) - ;; so are refentrys - (xref-refentry target)) - ((equal? (gi target) (normalize "refnamediv")) - ;; and refnamedivs - (xref-refnamediv target)) - ((equal? (gi target) (normalize "glossentry")) - ;; as are glossentrys - (xref-glossentry target)) - ((equal? (gi target) (normalize "author")) - ;; and authors - (xref-author target)) - ((equal? (gi target) (normalize "authorgroup")) - ;; and authorgroups - (xref-authorgroup target)) -; this doesn't really work very well yet -; ((equal? (gi target) (normalize "substeps")) -; ;; and substeps -; (xref-substeps target)) - (else - (xref-general target))))))))) - -(define (xref-refentry target) -;; refmeta/refentrytitle, refmeta/manvolnum, refnamediv/refdescriptor, -;; refnamediv/refname - (let* ((refmeta (select-elements (children target) - (normalize "refmeta"))) - (refnamediv (select-elements (children target) - (normalize "refnamediv"))) - (rfetitle (select-elements (children refmeta) - (normalize "refentrytitle"))) - (manvolnum (select-elements (children refmeta) - (normalize "manvolnum"))) - (refdescrip (select-elements (children refnamediv) - (normalize "refdescriptor"))) - (refname (select-elements (children refnamediv) - (normalize "refname"))) - - (title (if (node-list-empty? rfetitle) - (if (node-list-empty? refdescrip) - (node-list-first refname) - (node-list-first refdescrip)) - (node-list-first rfetitle))) - - (xsosofo (make sequence - (process-node-list (children title)) - (if (and %refentry-xref-manvolnum% - (not (node-list-empty? manvolnum))) - (process-node-list manvolnum) - (empty-sosofo))))) - - (make sequence - (if %refentry-xref-italic% - (make element gi: "I" - xsosofo) - xsosofo)))) - -(define (xref-refnamediv target) - (let* ((refname (select-elements (children target) - (normalize "refname"))) - - (title (node-list-first refname)) - - (xsosofo (make sequence - (process-node-list (children title))))) - (make sequence - (if %refentry-xref-italic% - (make element gi: "I" - xsosofo) - xsosofo)))) - -(define (xref-glossentry target) - (let ((glossterms (select-elements (children target) - (normalize "glossterm")))) - (with-mode xref-glossentry-mode - (process-node-list (node-list-first glossterms))))) - -(define (xref-author target) - (literal (author-string target))) - -(define (xref-authorgroup target) - ;; it's a quirk of author-list-string that it needs to point to - ;; one of the authors in the authorgroup, not the authorgroup. - ;; go figure. - (let loop ((author (select-elements (children target) (normalize "author")))) - (if (node-list-empty? author) - (empty-sosofo) - (make sequence - (literal (author-list-string (node-list-first author))) - (loop (node-list-rest author)))))) - -;(define (xref-substeps target) -; (let* ((steps (select-elements (children target) (normalize "step"))) -; (firststep (node-list-first steps)) -; (laststep (node-list-last steps)) -; (firstlabel (auto-xref-direct firststep)) -; (lastlabel (auto-xref-direct laststep "%n"))) -; (make sequence -; firstlabel -; (literal "-") -; lastlabel))) - -(define (xref-general target #!optional (xref-string #f)) - ;; This function is used by both XREF and OLINK (when no TARGETDOCENT - ;; is specified). The only case where xref-string is supplied is - ;; on OLINK. - (let ((label (attribute-string (normalize "xreflabel") target))) - (if xref-string - (auto-xref target xref-string) - (if label - (xreflabel-sosofo label) - (auto-xref target))))) - -(define (xref-biblioentry target) - (let* ((abbrev (node-list-first - (node-list-filter-out-pis (children target)))) - (label (attribute-string (normalize "xreflabel") target))) - - (if biblio-xref-title - (let* ((citetitles (select-elements (descendants target) - (normalize "citetitle"))) - (titles (select-elements (descendants target) - (normalize "title"))) - (title (if (node-list-empty? citetitles) - (node-list-first titles) - (node-list-first citetitles)))) - (with-mode xref-title-mode - (process-node-list title))) - (if biblio-number - (make sequence - (literal "[" (number->string (bibentry-number target)) "]")) - (if label - (make sequence - (literal "[" label "]")) - (if (equal? (gi abbrev) (normalize "abbrev")) - (make sequence - (process-node-list abbrev)) - (make sequence - (literal "[" (id target) "]")))))))) - -(mode xref-endterm-mode - (default - (make element gi: "I" - (process-children-trim)))) - -(define (xreflabel-sosofo xreflabel) - (make element gi: "I" - (literal xreflabel))) - -;; Returns the title of the element as a sosofo, italicized for xref. -;; -(define (element-title-xref-sosofo nd) - (make element gi: "I" - (element-title-sosofo nd))) - -(mode xref-title-mode - (element title - (make element gi: "I" - (process-children-trim))) - - (element citetitle - (make element gi: "I" - (process-children-trim))) - - (element refname - (process-children-trim)) - - (element refentrytitle - (process-children-trim))) - -(mode xref-glossentry-mode - (element glossterm - ($italic-seq$))) - -;; ====================================================================== - -(define (element-page-number-sosofo target) - (literal "???")) - -;; ====================================================================== - diff --git a/docs/dsssl/docbook/html/dblists.dsl b/docs/dsssl/docbook/html/dblists.dsl deleted file mode 100755 index 59f39747..00000000 --- a/docs/dsssl/docbook/html/dblists.dsl +++ /dev/null @@ -1,435 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; =============================== LISTS ================================ - -(element orderedlist - (let* ((depth (length (hierarchical-number-recursive - (normalize "orderedlist")))) - (numeration (attribute-string (normalize "numeration"))) - (firstitem (node-list-first - (select-elements (children (current-node)) - (normalize "listitem")))) - (start (orderedlist-listitem-number firstitem)) - (rawnum (cond - ((equal? numeration (normalize "arabic")) 0) - ((equal? numeration (normalize "loweralpha")) 1) - ((equal? numeration (normalize "lowerroman")) 2) - ((equal? numeration (normalize "upperalpha")) 3) - ((equal? numeration (normalize "upperroman")) 4) - (else (modulo depth 5)))) - (type (case rawnum - ((0) "1") - ((1) "a") - ((2) "i") - ((3) "A") - ((4) "I")))) - (make sequence - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (para-check) - (process-node-list (select-elements (children (current-node)) - (normalize "title"))) - (make element gi: "OL" - attributes: (append - (if (equal? start 1) - '() - (list (list "START" (number->string start)))) - (if (equal? (attribute-string (normalize "spacing")) - (normalize "compact")) - '(("COMPACT" "COMPACT")) - '()) - (list (list "TYPE" type))) - (process-node-list (select-elements (children (current-node)) - (normalize "listitem")))) - (para-check 'restart)))) - -(element (orderedlist title) - (make element gi: "P" - (make element gi: "B" - (process-children)))) - -(element itemizedlist - (make sequence - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (para-check) - (process-node-list (select-elements (children (current-node)) - (normalize "title"))) - (make element gi: "UL" - attributes: (if (equal? (attribute-string (normalize "spacing")) (normalize "compact")) - '(("COMPACT" "COMPACT")) - '()) - (process-node-list (select-elements (children (current-node)) - (normalize "listitem")))) - (para-check 'restart))) - -(element listitem - (let* ((override (inherited-attribute-string (normalize "override"))) - (mark (inherited-attribute-string (normalize "mark"))) - (usemark (if override override mark)) - (cssmark (if (and usemark (assoc usemark %css-liststyle-alist%)) - (car (cdr (assoc usemark %css-liststyle-alist%))) - usemark)) - (cssstyle (if (and %css-decoration% cssmark) - (list (list "STYLE" - (string-append "list-style-type: " - cssmark))) - '()))) - (make element gi: "LI" - attributes: cssstyle - (if (attribute-string (normalize "id")) - (make element gi: "A" - attributes: (list - (list "NAME" (attribute-string (normalize "id")))) - (empty-sosofo)) - (empty-sosofo)) - (process-children)))) - -(element (orderedlist listitem simpara) - (let* ((spacing (inherited-attribute-string (normalize "spacing"))) - (listitem (parent (current-node))) - (lichildren (node-list-filter-out-pis - (children listitem))) - (childcount (node-list-length lichildren))) - (if (and (equal? spacing (normalize "compact")) - (equal? childcount 1)) - ($paragraph$ "SPAN") - (next-match)))) - -(element (itemizedlist listitem simpara) - (let* ((spacing (inherited-attribute-string (normalize "spacing"))) - (listitem (parent (current-node))) - (lichildren (node-list-filter-out-pis - (children listitem))) - (childcount (node-list-length lichildren))) - (if (and (equal? spacing (normalize "compact")) - (equal? childcount 1)) - ($paragraph$ "SPAN") - (next-match)))) - -(element variablelist - (let* ((termlength (if (attribute-string (normalize "termlength")) - (string->number - (attribute-string (normalize "termlength"))) - %default-variablelist-termlength%)) - (too-long? (variablelist-term-too-long? termlength))) - (make sequence - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (para-check) - - (if (and (or (and termlength (not too-long?)) - %always-format-variablelist-as-table%) - (or %may-format-variablelist-as-table% - %always-format-variablelist-as-table%)) - (make element gi: "TABLE" - attributes: '(("CLASS" "VARIABLELIST") - ("BORDER" "0") - ("CELLSPACING" "1") - ("CELLPADDING" "1")) - (if %html40% - (make element gi: "TBODY" - (with-mode variablelist-table - (process-children))) - (with-mode variablelist-table - (process-children)))) - (make sequence - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-node-list - (select-elements (children (current-node)) - (normalize "title"))) - (make element gi: "DL" - (process-node-list - (select-elements (children (current-node)) - (normalize "varlistentry"))))))) - (para-check 'restart)))) - -(element varlistentry - (let ((terms (select-elements (children (current-node)) (normalize "term"))) - (listitem (select-elements (children (current-node)) (normalize "listitem")))) - (make sequence - (make element gi: "DT" - (if (attribute-string (normalize "id")) - (make sequence - (make element gi: "A" - attributes: (list - (list "NAME" (attribute-string (normalize "id")))) - (empty-sosofo)) - (process-node-list terms)) - (process-node-list terms))) - (process-node-list listitem)))) - -(element (varlistentry term) - (make sequence - (process-children-trim) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - -(element (varlistentry listitem) - (make element gi: "DD" - (process-children))) - -(mode variablelist-table - (element (variablelist title) - (make element gi: "TR" - attributes: '(("CLASS" "TITLE")) - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (process-children)))) - - (element varlistentry - (let* ((terms (select-elements (children (current-node)) - (normalize "term"))) - (listitem (select-elements (children (current-node)) - (normalize "listitem"))) - (termlen (if (attribute-string (normalize "termlength") - (parent (current-node))) - (string->number (attribute-string - (normalize "termlength") - (parent (current-node)))) - %default-variablelist-termlength%)) - (too-long? (varlistentry-term-too-long? (current-node) termlen))) - (if too-long? - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "A" - attributes: (list - (list "NAME" (element-id))) - (empty-sosofo)) - (process-node-list terms))) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "5")) - ;; where terms would have gone - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "5")) - ;; just a little spacer - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP")) - (process-node-list listitem)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP")) - (make element gi: "A" - attributes: (list - (list "NAME" (element-id))) - (empty-sosofo)) - (process-node-list terms)) - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("WIDTH" "5")) - ;; just a little spacer - (make entity-ref name: "nbsp")) - (make element gi: "TD" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP")) - (process-node-list listitem)))))) - - (element (varlistentry term) - (make sequence - (if %css-decoration% - (make element gi: "SPAN" - attributes: '(("STYLE" "white-space: nowrap")) - (process-children-trim)) - (make element gi: "NOBR" - (process-children-trim))) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element (varlistentry listitem) - (process-children)) -) - -(define (simplelist-table majororder cols members) - (let* ((termcount (node-list-length members)) - (rows (quotient (+ termcount (- cols 1)) cols)) - (htmlrows (let rowloop ((rownum 1)) - (if (> rownum rows) - (empty-sosofo) - (make sequence - (simplelist-row rownum majororder - rows cols members) - (rowloop (+ rownum 1))))))) - (make sequence - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo)) - (make element gi: "TABLE" - attributes: '(("BORDER" "0")) - (if %html40% - (make element gi: "TBODY" - htmlrows) - htmlrows)) - (if %spacing-paras% - (make element gi: "P" (empty-sosofo)) - (empty-sosofo))))) - -(define (simplelist-row rownum majororder rows cols members) - (make element gi: "TR" - (let colloop ((colnum 1)) - (if (> colnum cols) - (empty-sosofo) - (make sequence - (simplelist-entry rownum colnum majororder rows cols members) - (colloop (+ colnum 1))))))) - -(define (simplelist-entry rownum colnum majororder rows cols members) - (let ((membernum (if (equal? majororder 'row) - (+ (* (- rownum 1) cols) colnum) - (+ (* (- colnum 1) rows) rownum))) - (attlist (if %simplelist-column-width% - (list (list "WIDTH" %simplelist-column-width%)) - '()))) - (let loop ((nl members) (count membernum)) - (if (<= count 1) - (make element gi: "TD" - attributes: attlist - (if (node-list-empty? nl) - (make entity-ref name: "nbsp") - (process-node-list (node-list-first nl)))) - (loop (node-list-rest nl) (- count 1)))))) - -(element simplelist - (let ((type (attribute-string "type")) - (cols (if (attribute-string "columns") - (if (> (string->number (attribute-string "columns")) 0) - (string->number (attribute-string "columns")) - 1) - 1)) - (members (select-elements (children (current-node)) (normalize "member")))) - (cond - ((equal? type (normalize "inline")) - (process-children)) - ((equal? type (normalize "vert")) - (simplelist-table 'column cols members)) - ((equal? type (normalize "horiz")) - (simplelist-table 'row cols members))))) - -(element member - (let ((type (inherited-attribute-string (normalize "type")))) - (if (equal? type (normalize "inline")) - (make sequence - (process-children-trim) - (if (not (last-sibling?)) - (literal ", ") - (literal ""))) - (process-children)))) - -(element segmentedlist (process-children)) -(element (segmentedlist title) ($lowtitle$ 6)) - -(element segtitle (empty-sosofo)) - -(mode seglist-in-seg - (element segtitle - (process-children))) - -(element seglistitem (process-children)) -(element seg - (let* ((seg-num (child-number (current-node))) - (seglist (parent (parent (current-node)))) - (segtitle (nth-node (select-elements - (descendants seglist) (normalize "segtitle")) seg-num))) - - ;; Note: segtitle is only going to be the right thing in a well formed - ;; SegmentedList. If there are too many Segs or too few SegTitles, - ;; you'll get something odd...maybe an error - - (with-mode seglist-in-seg - (make element gi: "P" - (make element gi: "B" - (sosofo-append (process-node-list segtitle)) - (literal ": ")) - (process-children))))) - -(element calloutlist - (let* ((nsep (gentext-label-title-sep (gi))) - (id (attribute-string (normalize "id"))) - (titlesosofo (make sequence - (literal (gentext-element-name (gi))) - (if (string=? (element-label) "") - (literal nsep) - (literal " " (element-label) nsep)) - (element-title-sosofo)))) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (if (node-list-empty? - (select-elements (children (current-node)) (normalize "title"))) - (empty-sosofo) - (make element gi: "P" - (make element gi: "B" - (if id - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - titlesosofo) - titlesosofo)))) - (make element gi: "DL" - attributes: '(("COMPACT" "COMPACT")) - (process-children))))) - -(element (calloutlist title) (empty-sosofo)) - -(element callout - (process-children)) - -(element (calloutlist callout) - (process-children)) - -(element (calloutlist callout para) - (let ((footnotes (select-elements (descendants (current-node)) - (normalize "footnote")))) - (make sequence - (if (= (child-number) 1) - (let* ((ilevel (length (hierarchical-number-recursive - (normalize "calloutlist")))) - (arearefs (inherited-attribute-string (normalize "arearefs"))) - (idlist (split arearefs))) - (make sequence - (make element gi: "DT" - (let loop ((ids idlist)) - (if (null? ids) - (empty-sosofo) - (make sequence - ($callout-mark$ (element-with-id (car ids)) #f) - (loop (cdr ids)))))) - (make element gi: "DD" - (process-children)))) - (make element gi: "DD" - (make element gi: "P" - (process-children)))) - - (if (or %footnotes-at-end% (node-list-empty? footnotes)) - (empty-sosofo) - (make element gi: "BLOCKQUOTE" - attributes: (list - (list "CLASS" "FOOTNOTES")) - (with-mode footnote-mode - (process-node-list footnotes))))))) diff --git a/docs/dsssl/docbook/html/dblot.dsl b/docs/dsssl/docbook/html/dblot.dsl deleted file mode 100755 index 8d3f4f31..00000000 --- a/docs/dsssl/docbook/html/dblot.dsl +++ /dev/null @@ -1,24 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; need test cases to do toc/lot; do these later - -(element toc (empty-sosofo)) -(element (toc title) (empty-sosofo)) -(element tocfront ($paragraph$)) -(element tocentry ($paragraph$)) -(element tocpart (process-children)) -(element tocchap (process-children)) -(element toclevel1 (process-children)) -(element toclevel2 (process-children)) -(element toclevel3 (process-children)) -(element toclevel4 (process-children)) -(element toclevel5 (process-children)) -(element tocback ($paragraph$)) -(element lot (empty-sosofo)) -(element (lot title) (empty-sosofo)) -(element lotentry ($paragraph$)) - diff --git a/docs/dsssl/docbook/html/dbmath.dsl b/docs/dsssl/docbook/html/dbmath.dsl deleted file mode 100755 index f8ef2863..00000000 --- a/docs/dsssl/docbook/html/dbmath.dsl +++ /dev/null @@ -1,67 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define %equation-autolabel% #f) - -(element equation - ;; derived from $semiformal-object$ - (if (node-list-empty? (select-elements (children (current-node)) - (normalize "title"))) - ($informal-object$ %informalequation-rules% %informalequation-rules%) - ($formal-object$ %informalequation-rules% %informalequation-rules%))) - -(element (equation title) (empty-sosofo)) -(element (equation alt) (empty-sosofo)) -(element (equation graphic) - (let ((alttag (select-elements (children (parent)) (normalize "alt")))) - (if alttag - ($img$ (current-node) (data alttag)) - ($img$)))) - -(element informalequation - ;; Derived from informal-object - (let ((rule-before? %informalequation-rules%) - (rule-after? %informalequation-rules%)) - (if %equation-autolabel% - (make sequence - (if rule-before? - (make empty-element gi: "HR") - (empty-sosofo)) - (make element gi: "TABLE" - attributes: '(("CLASS" "INFORMALEQUATION") - ("WIDTH" "100%") - ("BORDER" "0")) - (make element gi: "TR" - (make element gi: "TD" - attributes: '(("VALIGN" "MIDDLE") - ("ALIGN" "LEFT")) - (process-children)) - (make element gi: "TD" - attributes: '(("VALIGN" "MIDDLE") - ("ALIGN" "RIGHT") - ("WIDTH" "100")) - (literal "(" - (element-label (current-node)) - ")")))) - (if rule-after? - (make empty-element gi: "HR") - (empty-sosofo))) - ($informal-object$ rule-before? rule-after?)))) - -(element (informalequation alt) (empty-sosofo)) -(element (informalequation graphic) - (let ((alttag (select-elements (children (parent)) (normalize "alt")))) - (if alttag - ($img$ (current-node) (data alttag)) - ($img$)))) - -(element inlineequation ($inline-object$)) -(element (inlineequation alt) (empty-sosofo)) -(element (inlineequation graphic) - (let ((alttag (select-elements (children (parent)) (normalize "alt")))) - (if alttag - ($img$ (current-node) (data alttag)) - ($img$)))) diff --git a/docs/dsssl/docbook/html/dbmsgset.dsl b/docs/dsssl/docbook/html/dbmsgset.dsl deleted file mode 100755 index 72a5d0d5..00000000 --- a/docs/dsssl/docbook/html/dbmsgset.dsl +++ /dev/null @@ -1,42 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ======================== ERROR MESSAGES (ETC.) ======================= - -(element msgset (process-children)) - -(element msgentry ($block-container$)) - -(element simplemsgentry ($block-container$)) - -(element msg ($block-container$)) - -(element msgmain (process-children)) - -(element msgsub - (process-children)) - -(element msgrel (empty-sosofo)) - -(element msgtext (process-children)) - -(element msginfo ($indent-para-container$)) - -(define ($genhead-para$ headtext) - (make element gi: "P" - (make element gi: "B" - (literal - (string-append headtext ": "))) - (process-children))) - -(element msglevel ($genhead-para$ (gentext-element-name (current-node)))) -(element msgorig ($genhead-para$ (gentext-element-name (current-node)))) -(element msgaud ($genhead-para$ (gentext-element-name (current-node)))) - -(element msgexplan ($indent-para-container$)) -(element (msgexplan title) ($runinhead$)) -(element (msgexplan para) (make sequence (process-children))) - diff --git a/docs/dsssl/docbook/html/dbnavig.dsl b/docs/dsssl/docbook/html/dbnavig.dsl deleted file mode 100755 index 67fd51da..00000000 --- a/docs/dsssl/docbook/html/dbnavig.dsl +++ /dev/null @@ -1,1058 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; The header of a chunk has this form: -;; -;; +-----------------------------------------+ -;; | nav-banner | -;; +------------+---------------+------------| -;; | prevlink | nav-context | nextlink | -;; +-----------------------------------------+ - -(define (nav-banner? elemnode) - ;; This node has a banner if: - ;; 1. There's an inherited dbhtml PI value for "banner-text" and that - ;; value is not the empty string, or - ;; 2. The element is not the root element - (let ((banner (inherited-dbhtml-value elemnode "banner-text"))) - (or (and banner (not (string=? banner ""))) - (not (node-list=? elemnode (sgml-root-element)))))) - -(define (nav-banner elemnode) - (let* ((rootelem (sgml-root-element)) - (info (info-element rootelem)) - (subtitle-child (select-elements (children rootelem) - (normalize "subtitle"))) - (subtitle-info (select-elements (children info) - (normalize "subtitle"))) - (subtitle (if (node-list-empty? subtitle-info) - subtitle-child - subtitle-info)) - (banner-text (inherited-dbhtml-value elemnode "banner-text")) - (banner-href (inherited-dbhtml-value elemnode "banner-href")) - (banner (if (and banner-text (not (string=? banner-text ""))) - (literal banner-text) - (make sequence - (element-title-sosofo rootelem) - (if (node-list-empty? subtitle) - (empty-sosofo) - (make sequence - (literal ": ") - (with-mode subtitle-mode - (process-node-list subtitle)))))))) - (make sequence - (if banner-href - (make element gi: "A" - attributes: (list (list "HREF" banner-href)) - banner) - banner)))) - -(define (nav-context? elemnode) - ;; Print a context header if - ;; 1. There's an inherited dbhtml PI value for "context-text" and that - ;; value is not the empty string, or - ;; 2. The chunk is a top level section and the parent component - ;; isn't the same as the root element (which appears in the nav-banner). - ;; - (let* ((context-text (inherited-dbhtml-value elemnode "context-text")) - (rootelem (sgml-root-element)) - (component (ancestor-member elemnode - (append (book-element-list) - (division-element-list) - (component-element-list)))) - (gencontext (and (or (equal? (gi elemnode) (normalize "sect1")) - (equal? (gi elemnode) (normalize "section"))) - (not (node-list=? component rootelem))))) - (or gencontext - (and context-text (not (string=? context-text "")))))) - -(define (nav-context elemnode) - ;; Print the context string for elemnode. If there's an inherited - ;; dbhtml value for 'context-text', use that. Otherwise, use the - ;; title of the parent component... - (let* ((context-href (inherited-dbhtml-value elemnode "context-href"))) - (if (nav-context? elemnode) - (if context-href - (make element gi: "A" - attributes: (list (list "HREF" context-href)) - (nav-context-sosofo elemnode)) - (nav-context-sosofo elemnode)) - (empty-sosofo)))) - -(define (nav-context-sosofo elemnode) - (let* ((component (ancestor-member elemnode - (append (book-element-list) - (division-element-list) - (component-element-list)))) - (context-text (inherited-dbhtml-value elemnode "context-text"))) - (if (and context-text (not (string=? context-text ""))) - (literal context-text) - (if (equal? (element-label component) "") - (make sequence - (element-title-sosofo component)) - (make sequence - ;; Special case. This is a bit of a hack. - ;; I need to revisit this aspect of - ;; appendixes. - (if (and (equal? (gi component) (normalize "appendix")) - (or (equal? (gi elemnode) (normalize "sect1")) - (equal? (gi elemnode) (normalize "section"))) - (equal? (gi (parent component)) (normalize "article"))) - (empty-sosofo) - (literal (gentext-element-name-space (gi component)))) - (element-label-sosofo component) - (literal (gentext-label-title-sep (gi component))) - (element-title-sosofo component)))))) - -;; The footer of a chunk has this form: -;; -;; +----------------------------------------+ -;; | prevlink | nav-home | nextlink | -;; +------------+--------------+------------| -;; | p. title | nav-up | n. title | -;; +-----------------------------------------+ - -(define (nav-home? elemnode) - (not (node-list=? elemnode (sgml-root-element)))) - -(define (nav-home elemnode) - (sgml-root-element)) - -(define (nav-home-link elemnode) - (let ((home (nav-home elemnode)) - (home-text (inherited-dbhtml-value elemnode "home-text"))) - (if (node-list=? elemnode home) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to home)) - (list "ACCESSKEY" "H")) - (if home-text - (literal home-text) - (gentext-nav-home home)))))) - -;; nav-up is displayed in the bottom center of the footer-navigation -;; table. The definition below will show "Up" for nested components -;; (the component wrapping a section, the division wrapping a component -;; etc.). It can be abused for other things, such as an index... -;; -(define (nav-up? elemnode) - (let ((up (parent elemnode)) - (up-text (inherited-dbhtml-value elemnode "up-text"))) - (if (and up-text (not (string=? up-text ""))) - #t - (if (or (node-list-empty? up) - (node-list=? up (sgml-root-element)) - (equal? (gi up) (normalize "bookinfo")) - (equal? (gi up) (normalize "docinfo")) - (equal? (gi up) (normalize "setinfo"))) - #f - #t)))) - -(define (nav-up elemnode) - (let* ((up (parent elemnode)) - (up-href (inherited-dbhtml-value elemnode "up-href")) - (uplink? (not (or (node-list-empty? up) - (node-list=? up (sgml-root-element))))) - (href (if up-href - up-href - (if uplink? - (href-to up) - #f)))) - (if href - (make element gi: "A" - attributes: (list - (list "HREF" href) - (list "ACCESSKEY" "U")) - (nav-up-sosofo elemnode)) - (nav-up-sosofo elemnode)))) - -(define (nav-up-sosofo elemnode) - (let* ((up (parent elemnode)) - (up-text (inherited-dbhtml-value elemnode "up-text"))) - (if (and up-text (not (string=? up-text ""))) - (literal up-text) - (if (or (node-list-empty? up) - (node-list=? up (sgml-root-element))) - (make entity-ref name: "nbsp") - (gentext-nav-up up))))) - -(define (nav-footer elemnode) - (empty-sosofo)) - -;; ====================================================================== - -(define (header-navigation nd #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element nd) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element nd) - (list-ref navlist 1))) - (prevm (if (null? navlist) - (prev-major-component-chunk-element nd) - (list-ref navlist 2))) - (nextm (if (null? navlist) - (next-major-component-chunk-element nd) - (list-ref navlist 3))) - (rnavlist (list prev next prevm nextm))) - (make sequence - ($html-body-start$) - (if %header-navigation% - (cond - ((equal? (gi nd) (normalize "set")) - (set-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "book")) - (book-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "part")) - (part-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "preface")) - (preface-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "chapter")) - (chapter-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "article")) - (article-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "appendix")) - (appendix-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "reference")) - (reference-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "refentry")) - (refentry-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "glossary")) - (glossary-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "bibliography")) - (bibliography-header-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "index")) - (index-header-navigation nd rnavlist)) - ;; LegalNotice only happens when %generate-legalnotice-link% is #t - ((equal? (gi nd) (normalize "legalnotice")) - (default-header-navigation nd - (empty-node-list) (empty-node-list) - (empty-node-list) (empty-node-list))) - ((member (gi nd) (section-element-list)) - (section-header-navigation nd rnavlist)) - (else (default-header-navigation nd prev next prevm nextm))) - (empty-sosofo)) - ($user-header-navigation$ prev next prevm nextm) - ($html-body-content-start$)))) - -(define (footer-navigation nd #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element nd) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element nd) - (list-ref navlist 1))) - (prevm (if (null? navlist) - (prev-major-component-chunk-element nd) - (list-ref navlist 2))) - (nextm (if (null? navlist) - (next-major-component-chunk-element nd) - (list-ref navlist 3))) - (rnavlist (list prev next prevm nextm))) - (make sequence - (make-endnotes) - ($html-body-content-end$) - ($user-footer-navigation$ prev next prevm nextm) - (if %footer-navigation% - (cond - ((equal? (gi nd) (normalize "set")) - (set-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "book")) - (book-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "part")) - (part-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "preface")) - (preface-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "chapter")) - (chapter-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "article")) - (article-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "appendix")) - (appendix-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "reference")) - (reference-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "refentry")) - (refentry-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "glossary")) - (glossary-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "bibliography")) - (bibliography-footer-navigation nd rnavlist)) - ((equal? (gi nd) (normalize "index")) - (index-footer-navigation nd rnavlist)) - ;; LegalNotice only happens when %generate-legalnotice-link% is #t - ((equal? (gi nd) (normalize "legalnotice")) - (default-footer-navigation nd - (empty-node-list) (empty-node-list) - (empty-node-list) (empty-node-list))) - ((member (gi nd) (section-element-list)) - (section-footer-navigation nd rnavlist)) - (else (default-footer-navigation nd prev next prevm nextm))) - (empty-sosofo)) - (nav-footer nd) - ($html-body-end$)))) - -(define (set-header-navigation elemnode #!optional (navlist '())) - (empty-sosofo)) - -(define (book-header-navigation elemnode #!optional (navlist '())) - (empty-sosofo)) - -(define (part-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (preface-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (chapter-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (appendix-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (article-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (if (node-list=? elemnode (sgml-root-element)) - (empty-sosofo) - (default-header-navigation elemnode prev next prevsib nextsib)))) - -(define (glossary-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (bibliography-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (index-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (reference-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (refentry-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (section-header-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-header-navigation elemnode prev next prevsib nextsib))) - -(define (set-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (book-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (part-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (preface-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (chapter-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (appendix-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (article-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (glossary-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (bibliography-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (index-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (reference-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (refentry-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -(define (section-footer-navigation elemnode #!optional (navlist '())) - (let* ((prev (if (null? navlist) - (prev-chunk-element elemnode) - (list-ref navlist 0))) - (next (if (null? navlist) - (next-chunk-element elemnode) - (list-ref navlist 1))) - (prevsib (if (null? navlist) - (prev-major-component-chunk-element elemnode) - (list-ref navlist 2))) - (nextsib (if (null? navlist) - (next-major-component-chunk-element elemnode) - (list-ref navlist 3)))) - (default-footer-navigation elemnode prev next prevsib nextsib))) - -;; ---------------------------------------------------------------------- - -(define (default-header-nav-tbl-ff elemnode prev next prevsib nextsib) - (let* ((r1? (nav-banner? elemnode)) - (r1-sosofo (make element gi: "TR" - (make element gi: "TH" - attributes: (list - (list "COLSPAN" "5") - (list "ALIGN" "center") - (list "VALIGN" "bottom")) - (nav-banner elemnode)))) - (r2? (or (not (node-list-empty? prev)) - (not (node-list-empty? next)) - (not (node-list-empty? prevsib)) - (not (node-list-empty? nextsib)) - (nav-context? elemnode))) - (r2-sosofo (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "left") - (list "VALIGN" "top")) - (if (node-list-empty? prev) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - prev)) - (list "ACCESSKEY" - "P")) - (gentext-nav-prev prev)))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "left") - (list "VALIGN" "top")) - (if (node-list-empty? prevsib) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - prevsib))) - (gentext-nav-prev-sibling prevsib)))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "60%") - (list "ALIGN" "center") - (list "VALIGN" "bottom")) - (nav-context elemnode)) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "right") - (list "VALIGN" "top")) - (if (node-list-empty? nextsib) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - nextsib))) - (gentext-nav-next-sibling nextsib)))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "right") - (list "VALIGN" "top")) - (if (node-list-empty? next) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - next)) - (list "ACCESSKEY" - "N")) - (gentext-nav-next next))))))) - (if (or r1? r2?) - (make element gi: "DIV" - attributes: '(("CLASS" "NAVHEADER")) - (make element gi: "TABLE" - attributes: (list - (list "SUMMARY" "Header navigation table") - (list "WIDTH" %gentext-nav-tblwidth%) - (list "BORDER" "0") - (list "CELLPADDING" "0") - (list "CELLSPACING" "0")) - (if r1? r1-sosofo (empty-sosofo)) - (if r2? r2-sosofo (empty-sosofo))) - (make empty-element gi: "HR" - attributes: (list - (list "ALIGN" "LEFT") - (list "WIDTH" %gentext-nav-tblwidth%)))) - (empty-sosofo)))) - -(define (default-header-nav-tbl-noff elemnode prev next prevsib nextsib) - (let* ((r1? (nav-banner? elemnode)) - (r1-sosofo (make element gi: "TR" - (make element gi: "TH" - attributes: (list - (list "COLSPAN" "3") - (list "ALIGN" "center")) - (nav-banner elemnode)))) - (r2? (or (not (node-list-empty? prev)) - (not (node-list-empty? next)) - (nav-context? elemnode))) - (r2-sosofo (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "left") - (list "VALIGN" "bottom")) - (if (node-list-empty? prev) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - prev)) - (list "ACCESSKEY" - "P")) - (gentext-nav-prev prev)))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "80%") - (list "ALIGN" "center") - (list "VALIGN" "bottom")) - (nav-context elemnode)) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "10%") - (list "ALIGN" "right") - (list "VALIGN" "bottom")) - (if (node-list-empty? next) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" - (href-to - next)) - (list "ACCESSKEY" - "N")) - (gentext-nav-next next))))))) - (if (or r1? r2?) - (make element gi: "DIV" - attributes: '(("CLASS" "NAVHEADER")) - (make element gi: "TABLE" - attributes: (list - (list "SUMMARY" "Header navigation table") - (list "WIDTH" %gentext-nav-tblwidth%) - (list "BORDER" "0") - (list "CELLPADDING" "0") - (list "CELLSPACING" "0")) - (if r1? r1-sosofo (empty-sosofo)) - (if r2? r2-sosofo (empty-sosofo))) - (make empty-element gi: "HR" - attributes: (list - (list "ALIGN" "LEFT") - (list "WIDTH" %gentext-nav-tblwidth%)))) - (empty-sosofo)))) - -(define (default-header-nav-notbl-ff elemnode prev next prevsib nextsib) - (make element gi: "DIV" - attributes: '(("CLASS" "NAVHEADER")) - (if (nav-banner? elemnode) - (make element gi: "H1" - (nav-banner elemnode)) - (empty-sosofo)) - - (if (and (node-list-empty? prev) - (node-list-empty? prevsib) - (node-list-empty? nextsib) - (node-list-empty? next)) - (empty-sosofo) - (make element gi: "P" - (if (node-list-empty? next) - (empty-sosofo) - (make sequence - (make element gi: "A" - attributes: (list - (list "HREF" (href-to next)) - (list "ACCESSKEY" "N")) - (gentext-nav-next next)))) - - (if (node-list-empty? prev) - (empty-sosofo) - (make sequence - (if (node-list-empty? next) - (empty-sosofo) - (literal ", ")) - (make element gi: "A" - attributes: (list - (list "HREF" (href-to prev)) - (list "ACCESSKEY" "P")) - (gentext-nav-prev prev)))) - - (if (node-list-empty? nextsib) - (empty-sosofo) - (make sequence - (if (and (node-list-empty? next) - (node-list-empty? prev)) - (empty-sosofo) - (literal ", ")) - (make element gi: "A" - attributes: (list - (list "HREF" (href-to nextsib))) - (gentext-nav-next-sibling nextsib)))) - - (if (node-list-empty? prevsib) - (empty-sosofo) - (make sequence - (if (and (node-list-empty? next) - (node-list-empty? prev) - (node-list-empty? nextsib)) - (empty-sosofo) - (literal ", ")) - (make element gi: "A" - attributes: (list - (list "HREF" (href-to prevsib))) - (gentext-nav-prev-sibling prevsib)))))) - - (if (nav-context? elemnode) - (make element gi: "H2" - (nav-context elemnode)) - (empty-sosofo)) - - (make empty-element gi: "HR"))) - -(define (default-header-nav-notbl-noff elemnode prev next prevsib nextsib) - (default-header-nav-notbl-ff elemnode prev next - (empty-node-list) (empty-node-list))) - -(define (default-header-navigation elemnode prev next prevsib nextsib) - (if %gentext-nav-use-tables% - (if %gentext-nav-use-ff% - (default-header-nav-tbl-ff elemnode prev next prevsib nextsib) - (default-header-nav-tbl-noff elemnode prev next prevsib nextsib)) - (if %gentext-nav-use-ff% - (default-header-nav-notbl-ff elemnode prev next prevsib nextsib) - (default-header-nav-notbl-noff elemnode prev next prevsib nextsib)))) - -(define (default-footer-navigation elemnode prev next prevsib nextsib) - (if %gentext-nav-use-tables% - (default-footer-nav-tbl elemnode prev next prevsib nextsib) - (default-footer-nav-notbl elemnode prev next prevsib nextsib))) - -(define (default-footer-nav-tbl elemnode prev next prevsib nextsib) - (let ((r1? (or (not (node-list-empty? prev)) - (not (node-list-empty? next)) - (nav-home? elemnode))) - (r2? (or (not (node-list-empty? prev)) - (not (node-list-empty? next)) - (nav-up? elemnode))) - - (r1-sosofo (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "WIDTH" "33%") - (list "ALIGN" "left") - (list "VALIGN" "top")) - (if (node-list-empty? prev) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" (href-to - prev)) - (list "ACCESSKEY" - "P")) - (gentext-nav-prev prev)))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "34%") - (list "ALIGN" "center") - (list "VALIGN" "top")) - (nav-home-link elemnode)) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "33%") - (list "ALIGN" "right") - (list "VALIGN" "top")) - (if (node-list-empty? next) - (make entity-ref name: "nbsp") - (make element gi: "A" - attributes: (list - (list "HREF" (href-to - next)) - (list "ACCESSKEY" - "N")) - (gentext-nav-next next)))))) - (r2-sosofo (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "WIDTH" "33%") - (list "ALIGN" "left") - (list "VALIGN" "top")) - (if (node-list-empty? prev) - (make entity-ref name: "nbsp") - (element-title-sosofo prev))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "34%") - (list "ALIGN" "center") - (list "VALIGN" "top")) - (if (nav-up? elemnode) - (nav-up elemnode) - (make entity-ref name: "nbsp"))) - (make element gi: "TD" - attributes: (list - (list "WIDTH" "33%") - (list "ALIGN" "right") - (list "VALIGN" "top")) - (if (node-list-empty? next) - (make entity-ref name: "nbsp") - (element-title-sosofo next)))))) - (if (or r1? r2?) - (make element gi: "DIV" - attributes: '(("CLASS" "NAVFOOTER")) - (make empty-element gi: "HR" - attributes: (list - (list "ALIGN" "LEFT") - (list "WIDTH" %gentext-nav-tblwidth%))) - (make element gi: "TABLE" - attributes: (list - (list "SUMMARY" "Footer navigation table") - (list "WIDTH" %gentext-nav-tblwidth%) - (list "BORDER" "0") - (list "CELLPADDING" "0") - (list "CELLSPACING" "0")) - (if r1? r1-sosofo (empty-sosofo)) - (if r2? r2-sosofo (empty-sosofo)))) - (empty-sosofo)))) - -(define (default-footer-nav-notbl elemnode prev next prevsib nextsib) - (make element gi: "DIV" - attributes: '(("CLASS" "NAVFOOTER")) - (make empty-element gi: "HR") - - (if (nav-home? elemnode) - (nav-home-link elemnode) - (empty-sosofo)) - - (if (nav-up? elemnode) - (make sequence - (if (nav-home? elemnode) - (literal ", ") - (empty-sosofo)) - (nav-up elemnode)) - (empty-sosofo)) - - (if (or (nav-home? elemnode) (nav-up? elemnode)) - (make empty-element gi: "BR") - (empty-sosofo)) - - (if (node-list-empty? prev) - (empty-sosofo) - (make sequence - (make element gi: "A" - attributes: (list - (list "HREF" (href-to prev)) - (list "ACCESSKEY" "P")) - (gentext-nav-prev prev)) - (literal ": " (element-title-string prev)) - (make empty-element gi: "BR"))) - - (if (node-list-empty? next) - (empty-sosofo) - (make sequence - (make element gi: "A" - attributes: (list - (list "HREF" (href-to next)) - (list "ACCESSKEY" "N")) - (gentext-nav-next next)) - (literal ": " (element-title-string next)) - (make empty-element gi: "BR"))))) - -(define ($user-header-navigation$ #!optional - (prev (empty-node-list)) - (next (empty-node-list)) - (prevm (empty-node-list)) - (nextm (empty-node-list))) - (empty-sosofo)) - -(define ($user-footer-navigation$ #!optional - (prev (empty-node-list)) - (next (empty-node-list)) - (prevm (empty-node-list)) - (nextm (empty-node-list))) - (empty-sosofo)) - -;; EOF dbnavig.dsl; diff --git a/docs/dsssl/docbook/html/dbparam.dsl b/docs/dsssl/docbook/html/dbparam.dsl deleted file mode 100755 index 083e0c8f..00000000 --- a/docs/dsssl/docbook/html/dbparam.dsl +++ /dev/null @@ -1,1661 +0,0 @@ - - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.nwalsh.com/docbook/dsssl/ -;; - -;; === Book intro, for dsl2man ========================================== - -DocBook HTML Parameters -;; Part of the Modular DocBook Stylesheet distribution -;; NormanWalsh -;; -;; $Revision$ -;; 199719981999 -;; Norman Walsh -;; -;; -;; 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. -;; -;; -;; -;; -;; Please direct all questions, bug reports, or suggestions for changes -;; to Norman Walsh, <ndw@nwalsh.com>. -;; -;; -;; See http://nwalsh.com/docbook/dsssl/ for more information. -;; -;; /DOCINFO -]]> - -;; REFERENCE TOC/LOT Apparatus - -(define %generate-set-toc% - ;; REFENTRY generate-set-toc - ;; PURP Should a Table of Contents be produced for Sets? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Set'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-book-toc% - ;; REFENTRY generate-book-toc - ;; PURP Should a Table of Contents be produced for Books? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Book'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define ($generate-book-lot-list$) - ;; REFENTRY generate-book-lot-list - ;; PURP Which Lists of Titles should be produced for Books? - ;; DESC - ;; This parameter should be a list (possibly empty) of the elements - ;; for which Lists of Titles should be produced for each 'Book'. - ;; - ;; It is meaningless to put elements that do not have titles in this - ;; list. If elements with optional titles are placed in this list, only - ;; the instances of those elements that do have titles will appear in - ;; the LOT. - ;; - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list (normalize "table") -(normalize "figure") -(normalize "example") -(normalize "equation"))) - -(define %generate-part-toc% - ;; REFENTRY generate-part-toc - ;; PURP Should a Table of Contents be produced for Parts? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Part'. - ;; Note: '%generate-part-toc-on-titlepage%' controls whether the Part TOC - ;; is placed on the bottom of the part titlepage or on page(s) of its own. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-part-toc-on-titlepage% - ;; REFENTRY generate-part-toc-on-titlepage - ;; PURP Should the Part TOC appear on the Part title page? - ;; DESC - ;; If true, the Part TOC will be placed on the Part title page. If false, - ;; the TOC will be placed on separate page(s) after the Part title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define $generate-chapter-toc$ - ;; REFENTRY generate-chapter-toc - ;; PURP Should a Chapter Table of Contents be produced? - ;; DESC - ;; If true, an automatically generated - ;; chapter TOC should be included. By default, it's true. It's false if - ;; the output is going to a single file and the current node isn't the - ;; root element. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (lambda () - (or (not nochunks) -(node-list=? (current-node) (sgml-root-element))))) - -(define %force-chapter-toc% - ;; REFENTRY force-chapter-toc - ;; PURP Force a chapter TOC even if it includes only a single entry - ;; DESC - ;; Force chapter toc indicates whether or not an automatically generated - ;; chapter TOC should be included even if it has only one entry. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-article-toc% - ;; REFENTRY generate-article-toc - ;; PURP Should a Table of Contents be produced for Articles? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Article'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define ($generate-article-lot-list$) - ;; REFENTRY generate-article-lot-list - ;; PURP Which Lists of Titles should be produced for Books? - ;; DESC - ;; This parameter should be a list (possibly empty) of the elements - ;; for which Lists of Titles shold be produced for each 'Article'. - ;; - ;; It is meaningless to put elements that do not have titles in this - ;; list. If elements with optional titles are placed in this list, only - ;; the instances of those elements that do have titles will appear in - ;; the LOT. - ;; - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY -(list)) - -(define %generate-reference-toc% - ;; REFENTRY generate-reference-toc - ;; PURP Should a Table of Contents be produced for References? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Reference'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-reference-toc-on-titlepage% - ;; REFENTRY generate-reference-toc-on-titlepage - ;; PURP Should the Reference TOC appear on the Reference title page? - ;; DESC - ;; If true, the Reference TOC will be placed on the Reference title page. - ;; If false, - ;; the TOC will be placed after the Reference title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %annotate-toc% - ;; REFENTRY annotate-toc - ;; PURP Annotate TOC entries - ;; DESC - ;; If #t, TOC entries will be annotated (e.g., the RefPurpose - ;; of a RefEntry will be displayed in the TOC). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define ($generate-qandaset-toc$) - ;; REFENTRY generate-qandaset-toc - ;; PURP Should a QandASet Table of Contents be produced? - ;; DESC - ;; If true, an automatically generated TOC is produced for each - ;; QandASet. - ;; /DESC - ;; /REFENTRY - #t) - -;; REFERENCE Titlepages - -(define %generate-set-titlepage% - ;; REFENTRY generate-set-titlepage - ;; PURP Should a set title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Set'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-book-titlepage% - ;; REFENTRY generate-book-titlepage - ;; PURP Should a book title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Book'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-part-titlepage% - ;; REFENTRY generate-part-titlepage - ;; PURP Should a part title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Part'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-partintro-on-titlepage% - ;; REFENTRY generate-partintro-on-titlepage - ;; PURP Should the PartIntro appear on the Part/Reference title page? - ;; DESC - ;; If true, the PartIntro content will appear on the title page of - ;; Parts and References. If false, - ;; it will be placed on separate page(s) after the title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-reference-titlepage% - ;; REFENTRY generate-reference-titlepage - ;; PURP Should a reference title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Reference'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-article-titlepage% - ;; REFENTRY generate-article-titlepage - ;; PURP Should an article title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Article'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %titlepage-in-info-order% - ;; REFENTRY titlepage-in-info-order - ;; PURP Place elements on title page in document order? - ;; DESC - ;; If true, the elements on the title page will be set in the order that - ;; they appear in the *info element. Otherwise, they will be set in - ;; the order specified in the *-titlepage-*-elements list. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-legalnotice-link% - ;; REFENTRY generate-legalnotice-link - ;; PURP Should legal notices be a link to a separate file? - ;; DESC - ;; If true, legal notices will be references to a separate file. - ;; Note: the support for this handles the case where a single *INFO - ;; node contains several distinct legal notices, but won't - ;; handle multiple legal notices in different *INFO nodes. - ;; (Each set will overwrite the previous.) A more complex - ;; approach could be implemented, but this is sufficient for - ;; the current demand. Let me know... - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define ($legalnotice-link-file$ legalnotice) - ;; REFENTRY legalnotice-link-file - ;; PURP Name of output file for legal notices - ;; DESC - ;; Name of the output file for legal notices if - ;; '%generate-legalnotice-link%' is true. Since several legal notices - ;; may occur (in a Set of Books, for example), this is no longer a fixed - ;; filename. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (if (and %use-id-as-filename% (attribute-string (normalize "id") legalnotice)) - (string-append (attribute-string (normalize "id") legalnotice) - %html-ext%) - (string-append "ln" - (number->string (all-element-number legalnotice)) - %html-ext%))) - -(define %author-othername-in-middle% - ;; REFENTRY othername-in-middle - ;; PURP Author OTHERNAME appears between FIRSTNAME and SURNAME? - ;; DESC - ;; If true, the OTHERNAME of an AUTHOR appears between the - ;; FIRSTNAME and SURNAME. Otherwise, OTHERNAME is suppressed. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Admonitions - -(define %admon-graphics% - ;; REFENTRY admon-graphics - ;; PURP Use graphics in admonitions? - ;; DESC - ;; If true, admonitions are presented in an alternate style that uses - ;; a graphic. Default graphics are provided in the distribution. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %admon-graphics-path% - ;; REFENTRY admon-graphics-path - ;; PURP Path to admonition graphics - ;; DESC - ;; Sets the path, probably relative to the directory where the HTML - ;; files are created, to the admonition graphics. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "../images/") - -(define ($admon-graphic$ #!optional (nd (current-node))) - ;; REFENTRY admon-graphic - ;; PURP Admonition graphic file - ;; DESC - ;; Given an admonition node, returns the name of the graphic that should - ;; be used for that admonition. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (cond ((equal? (gi nd) (normalize "tip")) - (string-append %admon-graphics-path% "tip.gif")) - ((equal? (gi nd) (normalize "note")) - (string-append %admon-graphics-path% "note.gif")) - ((equal? (gi nd) (normalize "important")) - (string-append %admon-graphics-path% "important.gif")) - ((equal? (gi nd) (normalize "caution")) - (string-append %admon-graphics-path% "caution.gif")) - ((equal? (gi nd) (normalize "warning")) - (string-append %admon-graphics-path% "warning.gif")) - (else (error (string-append (gi nd) " is not an admonition."))))) - -(define ($admon-graphic-width$ #!optional (nd (current-node))) - ;; REFENTRY admon-graphic-width - ;; PURP Admonition graphic file width - ;; DESC - ;; Given an admonition node, returns the width of the graphic that will - ;; be used for that admonition. - ;; - ;; All of the default graphics in the distribution are 25 pixels wide. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "25") - -;; REFERENCE Callouts - -(define %callout-graphics% - ;; REFENTRY callout-graphics - ;; PURP Use graphics in callouts? - ;; DESC - ;; If true, callouts are presented with graphics (e.g., reverse-video - ;; circled numbers instead of "(1)", "(2)", etc.). - ;; Default graphics are provided in the distribution. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %callout-graphics-extension% - ;; REFENTRY callout-graphics-extension - ;; PURP Extension for callout graphics - ;; DESC - ;; Sets the extension to use on callout graphics. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".gif") - -(define %callout-graphics-path% - ;; REFENTRY callout-graphics-path - ;; PURP Path to callout graphics - ;; DESC - ;; Sets the path, probably relative to the directory where the HTML - ;; files are created, to the callout graphics. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "../images/callouts/") - -(define %callout-graphics-number-limit% - ;; REFENTRY callout-graphics-number-limit - ;; PURP Number of largest callout graphic - ;; DESC - ;; If '%callout-graphics%' is true, graphics are used to represent - ;; callout numbers. The value of '%callout-graphics-number-limit%' is - ;; the largest number for which a graphic exists. If the callout number - ;; exceeds this limit, the default presentation "(nnn)" will always - ;; be used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 10) - -;; REFERENCE VariableLists - -(define %always-format-variablelist-as-table% - ;; REFENTRY always-format-variablelist-as-table - ;; PURP Always format VariableLists as tables? - ;; DESC - ;; When a 'VariableList' is formatted, if any of the - ;; terms in the list are too long, the whole list is formatted as a - ;; list. - ;; - ;; If '%always-format-variablelist-as-table%' is - ;; '#t', the 'VariableList' will be - ;; formatted as a table, even if some terms are too long. The terms that - ;; are too long will format span above their associated description. - ;; /DESC - ;; /REFENTRY - #f) - -(define %default-variablelist-termlength% - ;; REFENTRY default-variablelist-termlength - ;; PURP Default term length on variablelists - ;; DESC - ;; When formatting a 'VariableList', this value is - ;; used as the default term length, if no 'TermLength' is specified. - ;; - ;; If all of the terms in a list shorter than the term length, the - ;; stylesheet may format them "side-by-side" in a table. - ;; /DESC - ;; /REFENTRY - 20) - -(define %may-format-variablelist-as-table% - ;; REFENTRY may-format-variablelist-as-table - ;; PURP Format VariableLists as tables? - ;; DESC - ;; If '%may-format-variablelist-as-table%' is - ;; '#t', a 'VariableList' will be - ;; formatted as a table, if *all of* - ;; the terms are shorter than the specified - ;; 'TermLength'. - ;; /DESC - ;; /REFENTRY - #f) - -;; REFERENCE Navigation - -(define %header-navigation% - ;; REFENTRY header-navigation - ;; PURP Should navigation links be added to the top of each page? - ;; DESC - ;; If '#t', navigation links will be added to the top of each page. - ;; If '#f', no navigation links will be added. Note that this has - ;; no effect on '($user-header-navigation$)', which will still be - ;; called (but does nothing by default). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %footer-navigation% - ;; REFENTRY footer-navigation - ;; PURP Should navigation links be added to the bottom of each page? - ;; DESC - ;; If '#t', navigation links will be added to the bottom of each page. - ;; If '#f', no navigation links will be added. Note that this has - ;; no effect on '($user-footer-navigation$)' or '(nav-footer)', which - ;; will still be called (but do nothing by default). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %gentext-nav-tblwidth% - ;; REFENTRY gentext-nav-tblwidth - ;; PURP If using tables for navigation, how wide should the tables be? - ;; DESC - ;; If tables are used for navigation (see '%gentext-nav-use-tables%'), - ;; how wide should the tables be? - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "100%") - -(define %gentext-nav-use-ff% - ;; REFENTRY gentext-nav-use-ff - ;; PURP Add "fast-forward" to the navigation links? - ;; DESC - ;; Do you want "fast-forward" navigation? Probably not is my guess. - ;; I'm not sure this works real well yet. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %gentext-nav-use-tables% - ;; REFENTRY gentext-nav-use-tables - ;; PURP Use tables to build the navigation headers and footers? - ;; DESC - ;; If true, HTML TABLEs will be used to format the header and footer - ;; navigation information. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Verbatim Environments - -(define %indent-address-lines% - ;; REFENTRY indent-address-lines - ;; PURP Indent lines in a 'Address'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-funcsynopsisinfo-lines% - ;; REFENTRY indent-funcsynopsisinfo-lines - ;; PURP Indent lines in a 'FuncSynopsisInfo'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-literallayout-lines% - ;; REFENTRY indent-literallayout-lines - ;; PURP Indent lines in a 'LiteralLayout'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-programlisting-lines% - ;; REFENTRY indent-programlisting-lines - ;; PURP Indent lines in a 'ProgramListing'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-screen-lines% - ;; REFENTRY indent-screen-lines - ;; PURP Indent lines in a 'Screen'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-synopsis-lines% - ;; REFENTRY indent-synopsis-lines - ;; PURP Indent lines in a 'Synopsis'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %number-address-lines% - ;; REFENTRY number-address-lines - ;; PURP Enumerate lines in a 'Address'? - ;; DESC - ;; If true, lines in each 'Address' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-funcsynopsisinfo-lines% - ;; REFENTRY number-funcsynopsisinfo-lines - ;; PURP Enumerate lines in a 'FuncSynopsisInfo'? - ;; DESC - ;; If true, lines in each 'FuncSynopsisInfo' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-literallayout-lines% - ;; REFENTRY number-literallayout-lines - ;; PURP Enumerate lines in a 'LiteralLayout'? - ;; DESC - ;; If true, lines in each 'LiteralLayout' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-programlisting-lines% - ;; REFENTRY number-programlisting-lines - ;; PURP Enumerate lines in a 'ProgramListing'? - ;; DESC - ;; If true, lines in each 'ProgramListing' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-screen-lines% - ;; REFENTRY number-screen-lines - ;; PURP Enumerate lines in a 'Screen'? - ;; DESC - ;; If true, lines in each 'Screen' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-synopsis-lines% - ;; REFENTRY number-synopsis-lines - ;; PURP Enumerate lines in a 'Synopsis'? - ;; DESC - ;; If true, lines in each 'Synopsis' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %linenumber-length% - ;; REFENTRY linenumber-length - ;; PURP Width of line numbers in enumerated environments - ;; DESC - ;; Line numbers will be padded to '%linenumber-length%' - ;; characters. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 3) - -(define %linenumber-mod% - ;; REFENTRY linenumber-mod - ;; PURP Controls line-number frequency in enumerated environments. - ;; DESC - ;; Every '%linenumber-mod%' line will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 5) - -(define %linenumber-padchar% - ;; REFENTRY linenumber-padchar - ;; PURP Pad character in line numbers - ;; DESC - ;; Line numbers will be padded (on the left) with '%linenumber-padchar%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - " ") - -(define ($linenumber-space$) - ;; REFENTRY linenumber-space - ;; PURP Returns the sosofo which separates line numbers from the text - ;; DESC - ;; The sosofo returned by '($linenumber-space$)' is placed - ;; between the line number and the corresponding line in - ;; enumerated environments. - ;; - ;; Note: '%linenumber-padchar%'s are separated from lines - ;; that are not enumerated (because they don't match '%linenumber-mod%'). - ;; In other words, '($linenumber-space$)' occurs - ;; on every line. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (make entity-ref name: "nbsp")) - -(define %shade-verbatim% - ;; REFENTRY shade-verbatim - ;; PURP Should verbatim environments be shaded? - ;; DESC - ;; If true, a table with '($shade-verbatim-attr$)' attributes will be - ;; wrapped around each verbatim environment. This gives the effect - ;; of a shaded verbatim environment. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define ($shade-verbatim-attr$) - ;; REFENTRY shade-verbatim-attr - ;; PURP Attributes used to create a shaded verbatim environment. - ;; DESC - ;; See '%shade-verbatim%' - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list - (list "BORDER" "0") - (list "BGCOLOR" "#E0E0E0") - (list "WIDTH" ($table-width$)))) - -(define %callout-default-col% - ;; REFENTRY callout-default-col - ;; PURP Default column for callouts - ;; DESC - ;; If the coordinates of a callout include only a line number, the callout - ;; bug will appear in column '%callout-default-col%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 60) - -;; REFERENCE Labelling - -(define %chapter-autolabel% - ;; REFENTRY chapter-autolabel - ;; PURP Are chapters enumerated? - ;; DESC - ;; If true, chapters will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %section-autolabel% - ;; REFENTRY section-autolabel - ;; PURP Are sections enumerated? - ;; DESC - ;; If true, unlabeled sections will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %label-preface-sections% - ;; REFENTRY label-preface-sections - ;; PURP Are sections in the Preface enumerated? - ;; DESC - ;; If true, unlabeled sections in the Preface will be enumerated - ;; if '%section-autolabel%' is true. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %qanda-inherit-numeration% - ;; REFENTRY qanda-inherit-numeration - ;; PURP Should numbered questions inherit the surrounding numeration? - ;; DESC - ;; If true, question numbers are prefixed with the surrounding - ;; component or section number. Has no effect unless - ;; '%section-autolabel%' is also true. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Tables - -(define %cals-table-class% - ;; REFENTRY cals-table-class - ;; PURP Class attribute for CALS tables - ;; DESC - ;; This value, if not '#f', will be used as the value of the CLASS - ;; attribute on CALS tables. This allows the HTML stylesheet to - ;; distinguish between HTML tables generated from tables in the - ;; source document from HTML tables generated for other reasons - ;; (simplelists and navigation, for example). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "CALSTABLE") - -(define ($table-element-list$) - ;; REFENTRY table-element-list - ;; PURP List of table element names - ;; DESC - ;; The list of table elements in the DTD. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list (normalize "table") (normalize "informaltable"))) - -(define ($table-width$) - ;; REFENTRY table-width - ;; PURP Calculate table width - ;; DESC - ;; This function is called to calculate the width of tables that should - ;; theoretically be "100%" wide. Unfortunately, in HTML, a 100% width - ;; table in a list hangs off the right side of the browser window. (Who's - ;; mistake was that!). So this function provides a way to massage - ;; the width appropriately. - ;; - ;; This version is fairly dumb. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (if (has-ancestor-member? (current-node) '("LISTITEM")) - "90%" - "100%")) - -(define %simplelist-column-width% - ;; REFENTRY simplelist-column-width - ;; PURP Width of columns in tabular simple lists - ;; DESC - ;; If SimpleLists are presented in a table, how wide should the table - ;; columns be? If '#f', no width will be specified. - ;; - ;; If not #f, this value should be a string (it will be used in the WIDTH - ;; attribute on the TD for each table entry). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE Bibliographies - -(define biblio-citation-check - ;; REFENTRY biblio-citation-check - ;; PURP Check citations - ;; DESC - ;; If true, the content of CITATIONs will be checked against possible - ;; biblioentries. If the citation cannot be found, an error is issued - ;; and the citation is generated. If the citation is found, it is generated - ;; with a cross reference to the appropriate biblioentry. - ;; - ;; A citation matches if the content of the citation element matches the - ;; ID, XREFLABEL, or leading ABBREV of a biblioentry. - ;; - ;; This setting may have significant performance implications on large - ;; documents, hence it is false by default. - ;; - ;; (This option can conveniently be set with '-V biblio-citation-check' - ;; on the Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-filter-used - ;; REFENTRY filter-used - ;; PURP Suppress unreferenced bibliography entries - ;; DESC - ;; If true, bibliography entries which are not cited are suppressed. - ;; A biblioentry is cited if an XREF or LINK matches its ID, or if - ;; a CITE element matches its - ;; ID, XREFLABEL, or leading ABBREV. - ;; - ;; A BIBLIOGRAPHY with no entries will still be output (making a whole - ;; component conditional would be _A LOT_ of work and seems unnecessary), - ;; but BIBLIDIVs with no entries will be suppressed. - ;; - ;; This setting may have significant performance implications, - ;; hence it is false by default. - ;; - ;; (This option can conveniently be set with '-V biblio-filter-used' on the - ;; Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-number - ;; REFENTRY biblio-number - ;; PURP Enumerate bibliography entries - ;; DESC - ;; If true, bibliography entries will be numbered. If you cross-reference - ;; bibliography entries, you should probably use biblio-number or - ;; consistently use XREFLABEL or ABBREV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-xref-title - ;; REFENTRY biblio-xref-title - ;; PURP Use the titles of bibliography entries in XREFs - ;; DESC - ;; If true, cross references to bibliography entries will use the - ;; title of the entry as the cross reference text. Otherwise, either - ;; the number (see 'biblio-number') or XREFLABEL/ABBREV will be used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE OLinks - -(define %olink-fragid% - ;; REFENTRY olink-fragid - ;; PURP Portion of the URL which identifies the fragment identifier - ;; DESC - ;; Portion of the URL which identifies the fragment identifier - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "&fragid=") - -(define %olink-outline-ext% - ;; REFENTRY olink-outline-ext - ;; PURP Extension for olink outline file - ;; DESC - ;; The extension used to find the outline information file. When searching - ;; for outline information about a document, the extension is discarded - ;; from the system ID of the file and '%olinke-outline-ext%' is appended. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".olink") - -(define %olink-pubid% - ;; REFENTRY olink-pubid - ;; PURP Portion of the URL which identifies the public identifier - ;; DESC - ;; Portion of the URL which identifies the public identifier - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "pubid=") - -(define %olink-resolution% - ;; REFENTRY olink-resolution - ;; PURP URL script for OLink resolution - ;; DESC - ;; OLink resolution requires a server component, '%olink-resolution%' - ;; identifies that component. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "/cgi-bin/olink?") - -(define %olink-sysid% - ;; REFENTRY olink-sysid - ;; PURP Portion of the URL which identifies the system identifier - ;; DESC - ;; Portion of the URL which identifies the system identifier. System - ;; identifiers are only used if no public identifier is provided. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "sysid=") - -;; REFERENCE Graphics - -(define %graphic-default-extension% - ;; REFENTRY graphic-default-extension - ;; PURP Default extension for graphic FILEREFs - ;; DESC - ;; The '%graphic-default-extension%' will be - ;; added to the end of all 'fileref' filenames on - ;; 'Graphic's if they do not end in one of the - ;; '%graphic-extensions%'. Set this to '#f' - ;; to turn off this feature. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %graphic-extensions% - ;; REFENTRY graphic-extensions - ;; PURP List of graphic filename extensions - ;; DESC - ;; The list of extensions which may appear on a 'fileref' - ;; on a 'Graphic' which are indicative of graphic formats. - ;; - ;; Filenames that end in one of these extensions will not have - ;; the '%graphic-default-extension%' added to them. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '("gif" "jpg" "jpeg" "png" "tif" "tiff" "eps" "epsf")) - -(define image-library - ;; REFENTRY image-library - ;; PURP Load image library database for additional info about images? - ;; DESC - ;; If true, an image library database is loaded and extra information - ;; about web graphics is retrieved from it. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define image-library-filename - ;; REFENTRY image-library-filename - ;; PURP Name of the image library database - ;; DESC - ;; If 'image-library' is true, then the database is loaded from - ;; 'image-library-filename'. It's a current limitation that only a - ;; single database can be loaded. - ;; - ;; The image library database is stored in a separate directory - ;; because it must be parsed with the XML declaration. The only - ;; practical way to accomplish this with Jade, if you are processing a - ;; document that uses another declaration, is by having a catalog - ;; file in the directory that contains the image library that - ;; specifies the SGMLDECL. (So if it was in the same directory - ;; as your document, your document would also be parsed with the - ;; XML declaration, which may not be correct.) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "imagelib/imagelib.xml") - -;; REFERENCE HTML Parameters and Chunking - -(define %body-attr% - ;; REFENTRY body-attr - ;; PURP What attributes should be hung off of BODY? - ;; DESC - ;; A list of the the BODY attributes that should be generated. - ;; The format is a list of lists, each interior list contains the - ;; name and value of a BODY attribute. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list - (list "BGCOLOR" "#FFFFFF") - (list "TEXT" "#000000") - (list "LINK" "#0000FF") - (list "VLINK" "#840084") - (list "ALINK" "#0000FF"))) - -(define %html-prefix% - ;; REFENTRY html-prefix - ;; PURP Add the specified prefix to HTML output filenames - ;; DESC - ;; The specified prefix will be added to all HTML output filenames. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "") - -(define %html-use-lang-in-filename% - ;; REFENTRY html-use-lang-in-filename - ;; PURP Add the source language code to the HTML output filename? - ;; DESC - ;; If '#t', the source language code (or the default language code, if - ;; none is specified), will be added to the filename of each HTML - ;; output file. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %html-ext% - ;; REFENTRY html-ext - ;; PURP Default extension for HTML output files - ;; DESC - ;; The default extension for HTML output files. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".htm") - -(define %html-header-tags% - ;; REFENTRY html-header-tags - ;; PURP What additional HEAD tags should be generated? - ;; DESC - ;; A list of the the HTML HEAD tags that should be generated. - ;; The format is a list of lists, each interior list consists - ;; of a tag name and a set of attribute/value pairs: - ;; '(("META" ("NAME" "name") ("CONTENT" "content"))) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '()) - -(define %html-pubid% - ;; REFENTRY html-pubid - ;; PURP What public ID are you declaring your HTML compliant with? - ;; DESC - ;; The public ID used in output HTML files. If '#f', then no doctype - ;; declaration is produced. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %root-filename% - ;; REFENTRY root-filename - ;; PURP Name for the root HTML document - ;; DESC - ;; The filename of the root HTML document (e.g, "index"). - ;; If '#f', then a default name will be selected based on the element - ;; type of the root element (e.g, book1.htm, set1.htm, c1.htm, etc.). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define html-index - ;; REFENTRY html-index - ;; PURP HTML indexing? - ;; DESC - ;; Turns on HTML indexing. If true, then index data will be written - ;; to the file defined by 'html-index-filename'. This data can be - ;; collated and turned into a DocBook index with bin/collateindex.pl. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define html-index-filename - ;; REFENTRY html-index-filename - ;; PURP Name of HTML index file - ;; DESC - ;; The name of the file to which index data will be written if - ;; 'html-index' is not '#f'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "HTML.index") - -(define html-manifest - ;; REFENTRY html-manifest - ;; PURP Write a manifest? - ;; DESC - ;; If not '#f' then the list of HTML files created by the stylesheet - ;; will be written to the file named by 'html-manifest-filename'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define html-manifest-filename - ;; REFENTRY html-manifest-filename - ;; PURP Name of HTML manifest file - ;; DESC - ;; The name of the file to which a manifest will be written if - ;; 'html-manifest' is not '#f'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "HTML.manifest") - -(define nochunks - ;; REFENTRY nochunks - ;; PURP Suppress chunking of output pages - ;; DESC - ;; If true, the entire source document is formatted as a single HTML - ;; document and output on stdout. - ;; (This option can conveniently be set with '-V nochunks' on the - ;; Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define rootchunk - ;; REFENTRY rootchunk - ;; PURP Make a chunk for the root element when nochunks is used - ;; DESC - ;; If true, a chunk will be created for the root element, even though - ;; nochunks is specified. This option has no effect if nochunks is not - ;; true. - ;; (This option can conveniently be set with '-V rootchunk' on the - ;; Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define use-output-dir - ;; REFENTRY use-output-dir - ;; PURP If an output-dir is specified, should it be used? - ;; DESC - ;; If true, chunks will be written to the 'output-dir' instead of - ;; the current directory. - ;; (This option can conveniently be set with '-V use-output-dir' on the - ;; Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %output-dir% - ;; REFENTRY output-dir - ;; PURP The directory to which HTML files should be written - ;; DESC - ;; The output directory can be set in two ways. An individual document - ;; can specify 'output-dir="directory"' in the dbhtml PI, or the stylesheet - ;; can specify the '%output-dir%'. If both are specified, the PI value - ;; will be used. - ;; - ;; Note: the output directory is ignored if 'use-output-dir' is not '#t'. - ;; (This allows the author to test stylesheets and documents without - ;; accidentally overwriting existing documents.) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %stylesheet% - ;; REFENTRY stylesheet - ;; PURP Name of the stylesheet to use - ;; DESC - ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to - ;; suppress the stylesheet LINK. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %stylesheet-type% - ;; REFENTRY stylesheet-type - ;; PURP The type of the stylesheet to use - ;; DESC - ;; The type of the stylesheet to place in the HTML LINK TAG. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "text/css") - -(define %use-id-as-filename% - ;; REFENTRY use-id-as-filename - ;; PURP Use ID attributes as name for component HTML files? - ;; DESC - ;; If '%use-id-as-filename%' is true, the stylesheet will use the - ;; value of the ID attribute on a component as the base filename instead - ;; of using the auto-generated base. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %citerefentry-link% - ;; REFENTRY citerefentry-link - ;; PURP Generate URL links when cross-referencing RefEntrys? - ;; DESC - ;; If true, a web link will be generated, presumably - ;; to an online man->HTML gateway. The text of the link is - ;; generated by the $generate-citerefentry-link$ function. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE RefEntries and FuncSynopses - -(define %refentry-generate-name% - ;; REFENTRY refentry-generate-name - ;; PURP Output NAME header before 'RefName'(s)? - ;; DESC - ;; If true, a "NAME" section title is output before the list - ;; of 'RefName's. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %refentry-xref-italic% - ;; REFENTRY refentry-xref-italic - ;; PURP Use italic text when cross-referencing RefEntrys? - ;; DESC - ;; If true, italics are used when cross-referencing RefEntrys, either - ;; with XRef or CiteRefEntry. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %refentry-xref-manvolnum% - ;; REFENTRY refentry-xref-manvolnum - ;; PURP Output manvolnum as part of RefEntry cross-reference? - ;; DESC - ;; If true, the manvolnum is used when cross-referencing RefEntrys, either - ;; with XRef or CiteRefEntry. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %funcsynopsis-decoration% - ;; REFENTRY funcsynopsis-decoration - ;; PURP Decorate elements of a FuncSynopsis? - ;; DESC - ;; If true, elements of the FuncSynopsis will be decorated (e.g. bold or - ;; italic). The decoration is controlled by functions that can be redefined - ;; in a customization layer. See 'edbsynop.dsl'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %funcsynopsis-style% - ;; REFENTRY funcsynopsis-style - ;; PURP What style of 'FuncSynopsis' should be generated? - ;; DESC - ;; If '%funcsynopsis-style%' is 'ansi', - ;; ANSI-style function synopses are generated for a 'FuncSynopsis', - ;; otherwise KR-style function synopses are generated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'ansi) - -;; REFERENCE HTML Content and CSS - -(define %html40% - ;; REFENTRY html40 - ;; PURP Generate HTML 4.0 - ;; DESC - ;; If '%html40%' is true then the output more-closely resembles HTML 4.0. - ;; In partucular, the HTML table module includes THEAD, TBODY, and TFOOT - ;; elements. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %css-decoration% - ;; REFENTRY css-decoration - ;; PURP Enable CSS decoration of elements - ;; DESC - ;; If '%css-decoration%' is turned on then HTML elements produced by the - ;; stylesheet may be decorated with STYLE attributes. For example, the - ;; LI tags produced for list items may include a fragment of CSS in the - ;; STYLE attribute which sets the CSS property "list-style-type". - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %css-liststyle-alist% - ;; REFENTRY css-liststyle-alist - ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS - ;; DESC - ;; If '%css-decoration%' is turned on then the list-style-type property of - ;; list items will be set to reflect the list item style selected in the - ;; DocBook instance. This associative list maps the style type names used - ;; in your instance to the appropriate CSS names. If no mapping exists, - ;; the name from the instance will be used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '(("bullet" "disc") - ("box" "square"))) - -(define %fix-para-wrappers% - ;; REFENTRY fix-para-wrappers - ;; PURP Block element in para hack - ;; DESC - ;; Block elements are allowed in PARA in DocBook, but not in P in - ;; HTML. With '%fix-para-wrappers%' turned on, the stylesheets attempt - ;; to avoid putting block elements in HTML P tags by outputting - ;; additional end/begin P pairs around them. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %spacing-paras% - ;; REFENTRY spacing-paras - ;; PURP Block-element spacing hack - ;; DESC - ;; Should extraneous "P" tags be output to force the correct vertical - ;; spacing around things like tables. This is ugly because different - ;; browsers do different things. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %emphasis-propagates-style% - ;; REFENTRY emphasis-propagates-style - ;; PURP Support propagating emphasis role attributes to HTML - ;; DESC - ;; Should the role attribute of emphasis be propagated to HTML as - ;; a class attribute value? - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %phrase-propagates-style% - ;; REFENTRY phrase-propagates-style - ;; PURP Support propagating phrase role attributes to HTML - ;; DESC - ;; Should the role attribute of phrase be propagated to HTML as - ;; a class attribute value? - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Object Rules - -(define %example-rules% - ;; REFENTRY example-rules - ;; PURP Specify rules before and after an Example - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Example'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %figure-rules% - ;; REFENTRY figure-rules - ;; PURP Specify rules before and after an Figure - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Figure'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %table-rules% - ;; REFENTRY table-rules - ;; PURP Specify rules before and after an Table - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Table'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %equation-rules% - ;; REFENTRY equation-rules - ;; PURP Specify rules before and after an Equation - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Equation'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalexample-rules% - ;; REFENTRY informalexample-rules - ;; PURP Specify rules before and after an InformalExample - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalExample'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalfigure-rules% - ;; REFENTRY informalfigure-rules - ;; PURP Specify rules before and after an InformalFigure - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalFigure'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informaltable-rules% - ;; REFENTRY informaltable-rules - ;; PURP Specify rules before and after an InformalTable - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalTable'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalequation-rules% - ;; REFENTRY informalequation-rules - ;; PURP Specify rules before and after an InformalEquation - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalEquation'. - ;; /DESC - ;; /REFENTRY - #f) - -;; REFERENCE Miscellaneous - -(define %content-title-end-punct% - ;; REFENTRY content-title-end-punct - ;; PURP List of punctuation chars at the end of a run-in head - ;; DESC - ;; If a run-in head ends in any of these characters, the - ;; '%default-title-end-punct%' is not used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '(#\. #\! #\? #\:)) - -(define %honorific-punctuation% - ;; REFENTRY honorific-punctuation - ;; PURP Punctuation to follow honorifics in names - ;; DESC - ;; The honorific punctuation is placed after the honorific in - ;; a name. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".") - -(define %default-quadding% - ;; REFENTRY default-quadding - ;; PURP The default quadding - ;; DESC - ;; At present, this is only used on paragraphs. It specifies the - ;; value of the ALIGN attribute on the paragraph. This would be better - ;; done with CSS, but not all browsers support it yet and this has been - ;; oft requested functionality. - ;; - ;; A value of #f suppresses the ALIGN attribute altogether. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %default-simplesect-level% - ;; REFENTRY default-simplesect-level - ;; PURP Default section level for 'SimpleSect's. - ;; DESC - ;; If 'SimpleSect's appear inside other section-level - ;; elements, they are rendered at the appropriate section level, but if they - ;; appear in a component-level element, they are rendered at - ;; '%default-simplesect-level%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 4) - -(define %default-title-end-punct% - ;; REFENTRY default-title-end-punct - ;; PURP Default punctuation at the end of a run-in head. - ;; DESC - ;; The punctuation used at the end of a run-in head (e.g. on FORMALPARA). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".") - -(define %footnotes-at-end% - ;; REFENTRY footnotes-at-end - ;; PURP Should footnotes appear at the end of HTML pages? - ;; DESC - ;; If '#t', footnotes will be placed at the end of each HTML page - ;; instead of immediately following the place where they occur. - ;; Note: support for this feature is dependent on the processing - ;; performed by the (footer-navigation) function; if you replace - ;; that function, make sure that you're replacement calls - ;; (make-endnotes). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %link-mailto-url% - ;; REFENTRY link-mailto-url - ;; PURP Mailto URL for LINK REL=made - ;; DESC - ;; If not '#f', the '%link-mailto-url%' address will be used in a - ;; LINK REL=made element in the HTML HEAD. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %show-comments% - ;; REFENTRY show-comments - ;; PURP Display Comment elements? - ;; DESC - ;; If true, comments will be displayed, otherwise they are suppressed. - ;; Comments here refers to the 'Comment' element, which will be renamed - ;; 'Remark' in DocBook V4.0, not SGML/XML comments which are unavailable. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %writing-mode% - ;; REFENTRY writing-mode - ;; PURP The writing mode - ;; DESC - ;; The writing mode is either 'left-to-right', or - ;; 'right-to-left'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'left-to-right) - -(define ($object-titles-after$) - ;; REFENTRY object-titles-after - ;; PURP List of objects who's titles go after the object - ;; DESC - ;; Titles of formal objects (Figures, Equations, Tables, etc.) - ;; in this list will be placed below the object instead of above it. - ;; - ;; This is a list of element names, for example: - ;; '(list (normalize "figure") (normalize "table"))'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '()) - -(define firstterm-bold - ;; REFENTRY firstterm-bold - ;; PURP Make FIRSTTERM elements bold? - ;; DESC - ;; If '#t', FIRSTTERMs will be bold, to distinguish them from - ;; simple GLOSSTERMs. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(declare-initial-value writing-mode %writing-mode%) - - - - diff --git a/docs/dsssl/docbook/html/dbpi.dsl b/docs/dsssl/docbook/html/dbpi.dsl deleted file mode 100755 index 35a34070..00000000 --- a/docs/dsssl/docbook/html/dbpi.dsl +++ /dev/null @@ -1,61 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -(define (pi-value component piname) - ;; Returns the value of the (?piname value) PI (if one exists) - ;; as a child of component, otherwise returns #f - ;; - (let loop ((nl (select-by-class (children component) 'pi))) - (if (node-list-empty? nl) - #f - (let ((pidata (node-property 'system-data (node-list-first nl)))) - (if (and (> (string-length pidata) (string-length piname)) - (equal? piname - (substring pidata 0 (string-length piname)))) - (substring pidata - (+ (string-length piname) 1) - (string-length pidata)) - (loop (node-list-rest nl))))))) - -(define (inherited-pi-value component piname) - (let loop ((value #f) (nd component)) - (if (or value (node-list-empty? nd)) - value - (loop (pi-value nd piname) (parent nd))))) - -(define (dbhtml-findvalue pi-field-list name) - ;; pi-field-list is '(pitarget name1 value1 name2 value2 ...) - (let loop ((slist (cdr pi-field-list))) - (if (null? slist) - #f - (if (string=? (car slist) name) - (car (cdr slist)) - (loop (cdr (cdr slist))))))) - -(define (dbhtml-value component name) - ;; Returns the value of "name='value'" in the <?dbhtml ...> PI - (let loop ((nl (select-by-class (children component) 'pi))) - (if (node-list-empty? nl) - #f - (let* ((pidata (node-property 'system-data (node-list-first nl))) - (pilist (if (and (> (string-length pidata) 7) - (string=? (substring pidata 0 7) "dbhtml ")) - (parse-starttag-pi pidata) - '())) - (value (if (null? pilist) #f (dbhtml-findvalue pilist name)))) - (if value - value - (loop (node-list-rest nl))))))) - -(define (inherited-dbhtml-value component name) - (let loop ((value #f) (nd component)) - (if (or value (node-list-empty? nd)) - value - (loop (dbhtml-value nd name) (parent nd))))) - -;; EOF dbpi.dsl - - diff --git a/docs/dsssl/docbook/html/dbprocdr.dsl b/docs/dsssl/docbook/html/dbprocdr.dsl deleted file mode 100755 index c5dac716..00000000 --- a/docs/dsssl/docbook/html/dbprocdr.dsl +++ /dev/null @@ -1,68 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= PROCEDURES ============================= - -(define (PROCSTEP ilvl) - (if (> ilvl 1) 2.0em 1.8em)) - -(element procedure - (let ((titles (select-elements (children (current-node)) (normalize "title"))) - (preamble (node-list-filter-by-not-gi (children (current-node)) - (list (normalize "step")))) - (steps (node-list-filter-by-gi (children (current-node)) - (list (normalize "step")))) - (id (attribute-string (normalize "id")))) - (make element gi: "DIV" - attributes: (list - (list "CLASS" (gi))) - (if (not (node-list-empty? titles)) - (make element gi: "P" - (make element gi: "B" - (make sequence - (if id - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - (with-mode title-mode - (process-node-list titles))))) - (if id - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo))) - (process-node-list preamble) - (make element gi: "OL" - attributes: (list - (list "TYPE" ($proc-hierarch-number-format$ 1))) - (process-node-list steps))))) - -(element (procedure title) (empty-sosofo)) - -(element substeps - (make element gi: "OL" - attributes: (list - (list "CLASS" "SUBSTEPS") - (list "TYPE" ($proc-hierarch-number-format$ - (+ ($proc-step-depth$ (current-node)) 1)))) - (process-children))) - -(element step - (let ((id (attribute-string (normalize "id")))) - (make sequence - (make element gi: "LI" - (if id - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (empty-sosofo)) - (empty-sosofo)) - (process-children))))) - - diff --git a/docs/dsssl/docbook/html/dbrfntry.dsl b/docs/dsssl/docbook/html/dbrfntry.dsl deleted file mode 100755 index b99b0aaf..00000000 --- a/docs/dsssl/docbook/html/dbrfntry.dsl +++ /dev/null @@ -1,170 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; =========================== REFERENCE PAGES ========================== - -;;(element reference ($component$)) - -(element reference - (let* ((refinfo (select-elements (children (current-node)) - (normalize "docinfo"))) - (refintro (select-elements (children (current-node)) - (normalize "partintro"))) - (nl (titlepage-info-elements - (current-node) - refinfo - (if %generate-partintro-on-titlepage% - refintro - (empty-node-list))))) - (html-document - (with-mode head-title-mode - (literal (element-title-string (current-node)))) - (make sequence - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - - (if %generate-reference-titlepage% - (make sequence - (reference-titlepage nl 'recto) - (reference-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if (and (not (node-list-empty? refintro)) - (not %generate-partintro-on-titlepage%)) - ($process-partintro$ refintro) - (empty-sosofo)) - - (if (and %generate-reference-toc% - (not %generate-reference-toc-on-titlepage%)) - (make sequence - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))))) - -;; If each RefEntry begins on a new page, this title is going to wind -;; up on its own page, too, so make it a divtitlepage instead. Otherwise, -;; just let it be a component title. -(element (reference title) - (empty-sosofo)) - -(mode refentry-head-title-mode - (default (process-children)) - - (element refnamediv - (let* ((refdesc (select-elements (children (current-node)) - (normalize "refdescriptor"))) - (refname (select-elements (children (current-node)) - (normalize "refname"))) - (title (if (node-list-empty? refdesc) - (node-list-first refname) - (node-list-first refdesc)))) - (process-node-list title))) - - (element refdescriptor - (process-children)) - - (element refname - (process-children)) - - (element graphic (empty-sosofo)) - (element inlinegraphic (empty-sosofo))) - -(define ($refentry-body$) - (let ((id (element-id (current-node)))) - (make sequence - (make element gi: "H1" - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" id)) - (empty-sosofo)) - (element-title-sosofo (current-node)))) - (process-children)))) - -(element refentry - (html-document (with-mode refentry-head-title-mode - (literal (element-title-string (current-node)))) - ($refentry-body$))) - -(element refmeta (empty-sosofo)) - -(element manvolnum - ;; only called for xrefs and citerefentry - (if %refentry-xref-manvolnum% - (sosofo-append - (literal "(") - (process-children) - (literal ")")) - (empty-sosofo))) - -(element refmiscinfo (empty-sosofo)) - -(element refentrytitle ($charseq$)) - -(element refnamediv ($block-container$)) - -(element refname - (make sequence - (if (and %refentry-generate-name% (first-sibling? (current-node))) - ($lowtitlewithsosofo$ 2 (literal (gentext-element-name - (gi (current-node))))) - (empty-sosofo)) - (make sequence - (process-children) - (if (last-sibling? (current-node)) - (empty-sosofo) - (literal (gentext-intra-label-sep (gi (current-node)))))))) - -(element refpurpose - (make sequence - (make entity-ref name: "nbsp") - (literal (dingbat "em-dash")) - (make entity-ref name: "nbsp") - (process-children))) - -(element refdescriptor (empty-sosofo)) ;; TO DO: finish this - -(element refclass - (let ((role (attribute-string (normalize "role")))) - (make element gi: "P" - (make element gi: "B" - (literal - (if role - (string-append role ": ") - ""))) - (process-children-trim)))) - -(element refsynopsisdiv - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (make element gi: "H2" - (element-title-sosofo (current-node))) - (process-children))) - -(element (refsynopsisdiv title) (empty-sosofo)) - -(element refsect1 ($block-container$)) -(element (refsect1 title) ($lowtitle$ 2)) -(element refsect2 ($block-container$)) -(element (refsect2 title) ($lowtitle$ 3)) -(element refsect3 ($block-container$)) -(element (refsect3 title) ($lowtitle$ 4)) - - diff --git a/docs/dsssl/docbook/html/dbsect.dsl b/docs/dsssl/docbook/html/dbsect.dsl deleted file mode 100755 index 5a166529..00000000 --- a/docs/dsssl/docbook/html/dbsect.dsl +++ /dev/null @@ -1,158 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================== SECTIONS ============================== - -(define (SECTLEVEL #!optional (sect (current-node))) - (section-level-by-node (not nochunks) sect)) - -;; BRIDGEHEAD isn't a proper section, but appears to be a section title -(element bridgehead - (let* ((renderas (attribute-string "renderas")) - ;; the apparent section level - (hlevel - ;; if not real section level, then get the apparent level - ;; from "renderas" - (if renderas - (section-level-by-gi (not nochunks) (normalize renderas)) - ;; else use the real level - (SECTLEVEL))) - (helem - (string-append "H" (number->string hlevel)))) - (make element gi: helem - attributes: '(("CLASS" "BRIDGEHEAD")) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (process-children)))) - -(define ($section-separator$) - (let* (;; There are several situations in which we don't want a - ;; separator here: - ;; 1. This document is being chunked: - (chunks (not nochunks)) - ;; 2. This node is the root element of the document: - (isroot (node-list=? (current-node) (sgml-root-element))) - ;; 3. This node is the first section in the root element - ;; and no other content (except the *info elements and - ;; the title) precedes it. This means that the - ;; titlepage-separator was the last thing we put out. - ;; No one expects two separators in a row, or the Spanish - ;; inquisition. - (s1ofrt (node-list=? (parent (current-node)) (sgml-root-element))) - (precnd (ipreced (current-node))) - (infond (info-element (parent (current-node)))) - (isfirst (or (equal? (gi precnd) (normalize "title")) - (node-list=? precnd infond)))) - (if (or chunks isroot isfirst) - (empty-sosofo) - (make empty-element gi: "HR")))) - -(define ($section$) - (html-document (with-mode head-title-mode - (literal (element-title-string (current-node)))) - ($section-body$))) - -(define ($section-body$) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($section-separator$) - ($section-title$) - - (if (not (node-list-empty? (select-elements (children (current-node)) - (normalize "refentry")))) - (build-toc (current-node) 1) - (empty-sosofo)) - - (process-children))) - -(define ($section-title$) - (let* ((sect (current-node)) - (info (info-element)) - (subtitles (select-elements (children info) (normalize "subtitle"))) - (renderas (inherited-attribute-string (normalize "renderas") sect)) - ;; the apparent section level - (hlevel - ;; if not real section level, then get the apparent level - ;; from "renderas" - (if renderas - (section-level-by-gi (not nochunks) (normalize renderas)) - ;; else use the real level - (SECTLEVEL))) - (h1elem - (string-append "H" (number->string hlevel))) - (h2elem - (string-append "H" (number->string (+ hlevel 1)))) - (name (element-id)) - (isep (gentext-intra-label-sep (gi sect))) - (nsep (gentext-label-title-sep (gi sect)))) - (make sequence - (make element gi: h1elem - attributes: (list (list "CLASS" (gi sect))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" name)) - (empty-sosofo)) - (if (string=? (element-label (current-node)) "") - (empty-sosofo) - (literal (element-label (current-node)) nsep)) - (element-title-sosofo sect))) - (if (node-list-empty? subtitles) - (empty-sosofo) - (with-mode subtitle-mode - (make element gi: h2elem - (process-node-list subtitles)))) - ($proc-section-info$ info)))) - -(define ($proc-section-info$ info) - (cond ((equal? (gi) (normalize "sect1")) - ($sect1-info$ info)) - ((equal? (gi) (normalize "sect2")) - ($sect2-info$ info)) - ((equal? (gi) (normalize "sect3")) - ($sect3-info$ info)) - ((equal? (gi) (normalize "sect4")) - ($sect4-info$ info)) - ((equal? (gi) (normalize "sect5")) - ($sect5-info$ info)) - ((equal? (gi) (normalize "section")) - ($section-info$ info)) - ((equal? (gi) (normalize "refsect1")) - ($refsect1-info$ info)) - ((equal? (gi) (normalize "refsect2")) - ($refsect2-info$ info)) - ((equal? (gi) (normalize "refsect3")) - ($refsect3-info$ info)) - (else (empty-sosofo)))) - -(define ($sect1-info$ info) (empty-sosofo)) -(define ($sect2-info$ info) (empty-sosofo)) -(define ($sect3-info$ info) (empty-sosofo)) -(define ($sect4-info$ info) (empty-sosofo)) -(define ($sect5-info$ info) (empty-sosofo)) -(define ($section-info$ info) (empty-sosofo)) -(define ($refsect1-info$ info) (empty-sosofo)) -(define ($refsect2-info$ info) (empty-sosofo)) -(define ($refsect3-info$ info) (empty-sosofo)) - -(element sect1 ($section$)) -(element (sect1 title) (empty-sosofo)) - -(element sect2 ($section$)) -(element (sect2 title) (empty-sosofo)) - -(element sect3 ($section$)) -(element (sect3 title) (empty-sosofo)) - -(element sect4 ($section$)) -(element (sect4 title) (empty-sosofo)) - -(element sect5 ($section$)) -(element (sect5 title) (empty-sosofo)) - -(element simplesect ($section$)) -(element (simplesect title) (empty-sosofo)) - diff --git a/docs/dsssl/docbook/html/dbsynop.dsl b/docs/dsssl/docbook/html/dbsynop.dsl deleted file mode 100755 index bac2de8e..00000000 --- a/docs/dsssl/docbook/html/dbsynop.dsl +++ /dev/null @@ -1,201 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= SYNTAX DEFINITIONS ========================= - -(element synopsis ($verbatim-display$ %indent-synopsis-lines% - %number-synopsis-lines%)) -(element cmdsynopsis ($paragraph$)) - -;; Support for ARG provided by James Bostock, augmented by norm -;; - -(element (cmdsynopsis command) - (make sequence - (if (first-sibling? (current-node)) - (empty-sosofo) - (make empty-element gi: "BR")) - (next-match) - (literal " "))) - -(element group - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep"))) - (sepchar (if (inherited-attribute-string (normalize "sepchar")) - (inherited-attribute-string (normalize "sepchar")) - " "))) - (make sequence - (if (equal? (absolute-child-number (current-node)) 1) - (empty-sosofo) - (literal sepchar)) - (cond - ((equal? choice (normalize "plain")) - (literal %arg-choice-plain-open-str%)) - ((equal? choice (normalize "req")) - (literal %arg-choice-req-open-str%)) - ((equal? choice (normalize "opt")) - (literal %arg-choice-opt-open-str%)) - (else (literal %arg-choice-def-open-str%))) - (process-children) - (cond - ((equal? rep (normalize "repeat")) - (literal %arg-rep-repeat-str%)) - ((equal? rep (normalize "norepeat")) - (literal %arg-rep-norepeat-str%)) - (else (literal %arg-rep-def-str%))) - (cond - ((equal? choice (normalize "plain")) - (literal %arg-choice-plain-close-str%)) - ((equal? choice (normalize "req")) - (literal %arg-choice-req-close-str%)) - ((equal? choice (normalize "opt")) - (literal %arg-choice-opt-close-str%)) - (else (literal %arg-choice-def-close-str%)))))) - -(element arg - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep"))) - (sepchar (if (inherited-attribute-string (normalize "sepchar")) - (inherited-attribute-string (normalize "sepchar")) - " "))) - (make sequence - (if (equal? (absolute-child-number (current-node)) 1) - (empty-sosofo) - (literal sepchar)) - (cond - ((equal? choice (normalize "plain")) - (literal %arg-choice-plain-open-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-open-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-open-str%)) - (else (literal %arg-choice-def-open-str%))) - (process-children) - (cond - ((equal? rep (normalize "repeat")) (literal %arg-rep-repeat-str%)) - ((equal? rep (normalize "norepeat")) (literal %arg-rep-norepeat-str%)) - (else (literal %arg-rep-def-str%))) - (cond - ((equal? choice (normalize "plain")) (literal %arg-choice-plain-close-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-close-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-close-str%)) - (else (literal %arg-choice-def-close-str%)))))) - - -(element (group arg) - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep")))) - (make sequence - (if (not (first-sibling? (current-node))) - (literal %arg-or-sep%) - (empty-sosofo)) - (process-children)))) - -(element sbr - (make empty-element gi: "BR")) - -;; ---------------------------------------------------------------------- -;; Syntax highlighting... - -(define (funcsynopsis-function #!optional (sosofo (process-children))) - (make element gi: "B" - attributes: '(("CLASS" "FSFUNC")) - sosofo)) - -(define (paramdef-parameter #!optional (sosofo (process-children))) - (make element gi: "VAR" - attributes: '(("CLASS" "PDPARAM")) - sosofo)) - -;; ---------------------------------------------------------------------- - -(element synopfragmentref - (let* ((target (element-with-id (attribute-string (normalize "linkend")))) - (snum (child-number target))) - (make element gi: "I" - (make element gi: "A" - attributes: (list - (list "HREF" (href-to target))) - (literal "(" (number->string snum) ")")) - (process-children)))) - -(element synopfragment - (let ((id (element-id (current-node))) - (snum (child-number (current-node)))) - (make element gi: "P" - (make element gi: "A" - attributes: (list - (list "NAME" id)) - (literal "(" (number->string snum) ")")) - (make entity-ref name: "nbsp") - (process-children)))) - -(element funcsynopsis ($informal-object$)) - -(element funcsynopsisinfo ($verbatim-display$ %indent-funcsynopsisinfo-lines% - %number-funcsynopsisinfo-lines%)) - -(element funcprototype - (let ((paramdefs (select-elements (children (current-node)) (normalize "paramdef")))) - (make sequence - (make element gi: "P" - (make element gi: "CODE" - (process-children) - (if (equal? %funcsynopsis-style% 'kr) - (with-mode kr-funcsynopsis-mode - (process-node-list paramdefs)) - (empty-sosofo))))))) - -(element funcdef - (make element gi: "CODE" - attributes: '(("CLASS" "FUNCDEF")) - (process-children))) - -(element (funcdef function) - (if %funcsynopsis-decoration% - (funcsynopsis-function) - (process-children))) - -(element void - (if (equal? %funcsynopsis-style% 'ansi) - (literal "(void);") - (literal "();"))) - -(element varargs (literal "(...);")) - -(element paramdef - (let ((param (select-elements (children (current-node)) (normalize "parameter")))) - (make sequence - (if (equal? (child-number (current-node)) 1) - (literal "(") - (empty-sosofo)) - (if (equal? %funcsynopsis-style% 'ansi) - (process-children) - (process-node-list param)) - (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) - (literal ", ") - (literal ");"))))) - -(element (paramdef parameter) - (make sequence - (if %funcsynopsis-decoration% - (paramdef-parameter) - (process-children)) - (if (equal? (gi (ifollow (current-node))) (normalize "parameter")) - (literal ", ") - (empty-sosofo)))) - -(element funcparams - (make sequence - (literal "(") - (process-children) - (literal ")"))) - -(mode kr-funcsynopsis-mode - (element paramdef - (make sequence - (make empty-element gi: "BR") - (process-children) - (literal ";")))) - diff --git a/docs/dsssl/docbook/html/dbtable.dsl b/docs/dsssl/docbook/html/dbtable.dsl deleted file mode 100755 index 476109f4..00000000 --- a/docs/dsssl/docbook/html/dbtable.dsl +++ /dev/null @@ -1,419 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; -;; Table support completely reimplemented by norm 15/16 Nov 1997. -;; Adapted from print support. -;; -;; ====================================================================== -;; -;; This code is intended to implement the SGML Open Exchange Table Model -;; (http://www.sgmlopen.org/sgml/docs/techpubs.htm) as far as is possible -;; in HTML. There are a few areas where this code probably fails to -;; perfectly implement the model: -;; -;; - Mixed column width units (4*+2pi) are not supported. -;; - The behavior that results from mixing relative units with -;; absolute units has not been carefully considered. -;; -;; ====================================================================== -;; -;; My goal in reimplementing the table model was to provide correct -;; formatting in tables that use MOREROWS. The difficulty is that -;; correct formatting depends on calculating the column into which -;; an ENTRY will fall. -;; -;; This is a non-trivial problem because MOREROWS can hang down from -;; preceding rows and ENTRYs may specify starting columns (skipping -;; preceding ones). -;; -;; A simple, elegant recursive algorithm exists. Unfortunately it -;; requires calculating the column number of every preceding cell -;; in the entire table. Without memoization, performance is unacceptable -;; even in relatively small tables (5x5, for example). -;; -;; In order to avoid recursion, the algorithm used below is one that -;; works forward from the beginning of the table and "passes along" -;; the relevant information (column number of the preceding cell and -;; overhang from the MOREROWS in preceding rows). -;; -;; Unfortunately, this means that element construction rules -;; can't always be used to fire the appropriate rule. Instead, -;; each TGROUP has to process each THEAD/BODY/FOOT explicitly. -;; And each of those must process each ROW explicitly, then each -;; ENTRY/ENTRYTBL explicitly. -;; -;; ---------------------------------------------------------------------- -;; -;; I attempted to simplify this code by relying on inheritence from -;; table-column flow objects, but that wasn't entirely successful. -;; Horizontally spanning cells didn't seem to inherit from table-column -;; flow objects that didn't specify equal spanning. There seemed to -;; be other problems as well, but they could have been caused by coding -;; errors on my part. -;; -;; Anyway, by the time I understood how I could use table-column -;; flow objects for inheritence, I'd already implemented all the -;; machinery below to "work it out by hand". -;; -;; ====================================================================== -;; NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE -;; ---------------------------------------------------------------------- -;; A fairly large chunk of this code is in dbcommon.dsl! -;; ====================================================================== - -;; Default for COLSEP/ROWSEP if unspecified -(define %cals-rule-default% "0") - -;; Default for VALIGN if unspecified -(define %cals-valign-default% "TOP") - -;; ====================================================================== -;; Convert colwidth units into table-unit measurements - -(define (colwidth-length lenstr) - (if (string? lenstr) - (let ((number (length-string-number-part lenstr)) - (units (length-string-unit-part lenstr))) - (if (or (string=? units "*") (string=? number "")) - ;; relative units or no number, give up - 0pt - (if (string=? units "") - ;; no units, default to pixels - (* (string->number number) 1px) - (let* ((unum (string->number number)) - (uname (case-fold-down units))) - (case uname - (("mm") (* unum 1mm)) - (("cm") (* unum 1cm)) - (("in") (* unum 1in)) - (("pi") (* unum 1pi)) - (("pt") (* unum 1pt)) - (("px") (* unum 1px)) - ;; unrecognized units; use pixels - (else (* unum 1px))))))) - ;; lenstr is not a string...probably #f - 0pt)) - -(define (cals-relative-colwidth? colwidth) - (if (string? colwidth) - (let ((strlen (string-length colwidth))) - (if (string=? colwidth "*") - #t - (string=? (substring colwidth (- strlen 1) strlen) "*"))) - #f)) - -(define (cals-relative-colwidth colwidth) - (let ((number (length-string-number-part colwidth)) - (units (length-string-unit-part colwidth))) - (if (string=? units "*") - (if (string=? number "") - 1 - (string->number number)) - 0))) - -(define (cell-relative-colwidth cell relative) - (let* ((tgroup (find-tgroup cell))) - (let loop ((colspecs (select-elements (children tgroup) - (normalize "colspec"))) - (reltotal 0)) - (if (node-list-empty? colspecs) - (string-append (number->string (round (* (/ relative reltotal) 100))) "%") - (loop (node-list-rest colspecs) - (+ reltotal (cals-relative-colwidth - (colspec-colwidth - (node-list-first colspecs))))))))) - -(define (cell-colwidth cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (colspec (find-colspec-by-number colnum)) - (colwidth (colspec-colwidth colspec)) - (width (round (/ (colwidth-length colwidth) 1px)))) - (if (node-list-empty? colspec) - "" - (if (and (equal? (hspan entry) 1) colwidth) - (if (cals-relative-colwidth? colwidth) - (cell-relative-colwidth cell (cals-relative-colwidth colwidth)) - (number->string width)) - "")))) - -;; ====================================================================== - -(define (cell-align cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (tgroup (find-tgroup entry)) - (spanname (attribute-string (normalize "spanname") entry)) - (calsalign (if (attribute-string (normalize "align") entry) - (attribute-string (normalize "align") entry) - (if (and spanname - (spanspec-align (find-spanspec spanname))) - (spanspec-align (find-spanspec spanname)) - (if (colspec-align (find-colspec-by-number colnum)) - (colspec-align (find-colspec-by-number colnum)) - (if (tgroup-align tgroup) - (tgroup-align tgroup) - (normalize "left"))))))) - (cond - ((equal? calsalign (normalize "left")) "LEFT") - ((equal? calsalign (normalize "center")) "CENTER") - ((equal? calsalign (normalize "right")) "RIGHT") - (else "LEFT")))) - -(define (cell-valign cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (row (ancestor (normalize "row") entry)) - (tbody (ancestor-member cell (list (normalize "tbody") - (normalize "thead") (normalize "tfoot")))) - (tgroup (find-tgroup entry)) - (calsvalign (if (attribute-string (normalize "valign") entry) - (attribute-string (normalize "valign") entry) - (if (attribute-string (normalize "valign") row) - (attribute-string (normalize "valign") row) - (if (attribute-string (normalize "valign") tbody) - (attribute-string (normalize "valign") tbody) - %cals-valign-default%))))) - (cond - ((equal? calsvalign (normalize "top")) "TOP") - ((equal? calsvalign (normalize "middle")) "MIDDLE") - ((equal? calsvalign (normalize "bottom")) "BOTTOM") - (else "MIDDLE")))) - -;; ====================================================================== -;; Element rules - -(element tgroup - (let* ((wrapper (parent (current-node))) - (frameattr (attribute-string (normalize "frame") wrapper)) - (pgwide (attribute-string (normalize "pgwide") wrapper)) - (footnotes (select-elements (descendants (current-node)) - (normalize "footnote"))) - (border (if (equal? frameattr (normalize "none")) - '(("BORDER" "0")) - '(("BORDER" "1")))) - (width (if (equal? pgwide "1") - (list (list "WIDTH" ($table-width$))) - '())) - (head (select-elements (children (current-node)) (normalize "thead"))) - (body (select-elements (children (current-node)) (normalize "tbody"))) - (feet (select-elements (children (current-node)) (normalize "tfoot")))) - (make element gi: "TABLE" - attributes: (append - border - width - (if %cals-table-class% - (list (list "CLASS" %cals-table-class%)) - '())) - (process-node-list head) - (process-node-list body) - (process-node-list feet) - (make-table-endnotes)))) - -(element entrytbl ;; sortof like a tgroup... - (let* ((wrapper (parent (parent (parent (parent (current-node)))))) - ;; table tgroup tbody row - (frameattr (attribute-string (normalize "frame") wrapper)) - (tgrstyle (attribute-string (normalize "tgroupstyle"))) - (border (if (and (or (equal? frameattr (normalize "none")) - (equal? tgrstyle (normalize "noborder"))) - (not (equal? tgrstyle (normalize "border")))) - '(("BORDER" "0")) - '(("BORDER" "1")))) - (head (select-elements (children (current-node)) (normalize "thead"))) - (body (select-elements (children (current-node)) (normalize "tbody")))) - (make element gi: "TABLE" - attributes: (append - border - (if %cals-table-class% - (list (list "CLASS" %cals-table-class%)) - '())) - (process-node-list head) - (process-node-list body)))) - -(element colspec - (empty-sosofo)) - -(element spanspec - (empty-sosofo)) - -(element thead - (if %html40% - (make element gi: "THEAD" - ($process-table-body$ (current-node))) - ($process-table-body$ (current-node)))) - -(element tfoot - (if %html40% - (make element gi: "TFOOT" - ($process-table-body$ (current-node))) - ($process-table-body$ (current-node)))) - -(element tbody - (if %html40% - (make element gi: "TBODY" - ($process-table-body$ (current-node))) - ($process-table-body$ (current-node)))) - -(element row - (empty-sosofo)) ;; this should never happen, they're processed explicitly - -(element entry - (empty-sosofo)) ;; this should never happen, they're processed explicitly - -;; ====================================================================== -;; Functions that handle processing of table bodies, rows, and cells - -(define ($process-table-body$ body) - (let* ((tgroup (find-tgroup body)) - (cols (string->number (attribute-string (normalize "cols") - tgroup)))) - (let loop ((rows (select-elements (children body) (normalize "row"))) - (overhang (constant-list 0 cols))) - (if (node-list-empty? rows) - (empty-sosofo) - (make sequence - ($process-row$ (node-list-first rows) overhang) - (loop (node-list-rest rows) - (update-overhang (node-list-first rows) overhang))))))) - -(define ($process-row$ row overhang) - (let* ((tgroup (find-tgroup row)) - (rowcells (node-list-filter-out-pis (children row))) - (maxcol (string->number (attribute-string (normalize "cols") tgroup))) - (lastentry (node-list-last rowcells)) - (table (ancestor-member tgroup (list (normalize "table") - (normalize "informaltable")))) - (rowsep (if (attribute-string (normalize "rowsep") row) - (attribute-string (normalize "rowsep") row) - (if (attribute-string (normalize "rowsep") tgroup) - (attribute-string (normalize "rowsep") tgroup) - (if (attribute-string (normalize "rowsep") table) - (attribute-string (normalize "rowsep") table) - %cals-rule-default%)))) - (after-row-border (if rowsep - (> (string->number rowsep) 0) - #f))) - (make element gi: "TR" - (let loop ((cells rowcells) - (prevcell (empty-node-list))) - (if (node-list-empty? cells) - (empty-sosofo) - (make sequence - ($process-cell$ (node-list-first cells) - prevcell overhang) - (loop (node-list-rest cells) - (node-list-first cells))))) - - ;; add any necessary empty cells to the end of the row - (let loop ((colnum (overhang-skip overhang - (+ (cell-column-number - lastentry overhang) - (hspan lastentry))))) - (if (> colnum maxcol) - (empty-sosofo) - (make sequence - (make element gi: "TD" - (make entity-ref name: "nbsp")) - (loop (overhang-skip overhang (+ colnum 1))))))))) - -(define (empty-cell? entry) - ;; Return #t if and only if entry is empty (or contains only PIs) - (let loop ((nl (children entry))) - (if (node-list-empty? nl) - #t - (let* ((node (node-list-first nl)) - (nodeclass (node-property 'class-name node)) - (nodechar (if (equal? nodeclass 'data-char) - (node-property 'char node) - #f)) - (whitespace? (and (equal? nodeclass 'data-char) - (or (equal? nodechar #\space) - (equal? (data node) " ") - (equal? (data node) " ") - (equal? (data node) " "))))) - (if (not (or (equal? (node-property 'class-name node) 'pi) - whitespace?)) - #f - (loop (node-list-rest nl))))))) - -(define ($process-cell$ entry preventry overhang) - (let* ((colnum (cell-column-number entry overhang)) - (lastcellcolumn (if (node-list-empty? preventry) - 0 - (- (+ (cell-column-number preventry overhang) - (hspan preventry)) - 1))) - (lastcolnum (if (> lastcellcolumn 0) - (overhang-skip overhang lastcellcolumn) - 0)) - (htmlgi (if (have-ancestor? (normalize "tbody") entry) - "TD" - "TH"))) - (make sequence - (if (node-list-empty? (preced entry)) - (if (attribute-string (normalize "id") (parent entry)) - (make element gi: "A" - attributes: (list - (list - "NAME" - (attribute-string (normalize "id") - (parent entry)))) - (empty-sosofo)) - (empty-sosofo)) - (empty-sosofo)) - - (if (attribute-string (normalize "id") entry) - (make element gi: "A" - attributes: (list - (list - "NAME" - (attribute-string (normalize "id") entry))) - (empty-sosofo)) - (empty-sosofo)) - - ;; This is a little bit complicated. We want to output empty cells - ;; to skip over missing data. We start count at the column number - ;; arrived at by adding 1 to the column number of the previous entry - ;; and skipping over any MOREROWS overhanging entrys. Then for each - ;; iteration, we add 1 and skip over any overhanging entrys. - (let loop ((count (overhang-skip overhang (+ lastcolnum 1)))) - (if (>= count colnum) - (empty-sosofo) - (make sequence - (make element gi: htmlgi - (make entity-ref name: "nbsp") -;; (literal (number->string lastcellcolumn) ", ") -;; (literal (number->string lastcolnum) ", ") -;; (literal (number->string (hspan preventry)) ", ") -;; (literal (number->string colnum ", ")) -;; ($debug-pr-overhang$ overhang) - ) - (loop (overhang-skip overhang (+ count 1)))))) - -; (if (equal? (gi entry) (normalize "entrytbl")) -; (make element gi: htmlgi -; (literal "ENTRYTBL not supported.")) - (make element gi: htmlgi - attributes: (append - (if (> (hspan entry) 1) - (list (list "COLSPAN" (number->string (hspan entry)))) - '()) - (if (> (vspan entry) 1) - (list (list "ROWSPAN" (number->string (vspan entry)))) - '()) - (if (equal? (cell-colwidth entry colnum) "") - '() - (list (list "WIDTH" (cell-colwidth entry colnum)))) - (list (list "ALIGN" (cell-align entry colnum))) - (list (list "VALIGN" (cell-valign entry colnum)))) - (if (empty-cell? entry) - (make entity-ref name: "nbsp") - (if (equal? (gi entry) (normalize "entrytbl")) - (process-node-list entry) - (process-node-list (children entry)))))))) - -;; EOF dbtable.dsl - diff --git a/docs/dsssl/docbook/html/dbtitle.dsl b/docs/dsssl/docbook/html/dbtitle.dsl deleted file mode 100755 index 9a7edf11..00000000 --- a/docs/dsssl/docbook/html/dbtitle.dsl +++ /dev/null @@ -1,67 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; So we can pass different sosofo's to this routine and get identical -;; treatment (see REFNAME in dbrfntry.dsl) -;; -(define ($lowtitlewithsosofo$ tlevel sosofo) - (let ((tgi (cond - ((equal? tlevel 1) "H1") - ((equal? tlevel 2) "H2") - ((equal? tlevel 3) "H3") - ((equal? tlevel 4) "H4") - ((equal? tlevel 5) "H5") - (else "P")))) - (if (< tlevel 6) - (make element gi: tgi - sosofo) - (make element gi: "P" - (make element gi: "B" - sosofo))))) - -(define ($lowtitle$ tlevel) - ($lowtitlewithsosofo$ tlevel (process-children))) - -(define ($runinhead$) - (let* ((title (data (current-node))) - (titlelen (string-length title)) - (lastchar (if (> titlelen 0) - (string-ref title (- titlelen 1)) - ".")) - (punct (if (or (= titlelen 0) - (member lastchar %content-title-end-punct%)) - "" - %default-title-end-punct%))) - (make element gi: "B" - (process-children) - (literal punct " ")))) - -(element title - (make element gi: "P" - (make element gi: "B" - (process-children-trim)))) - -(element titleabbrev (empty-sosofo)) - -(mode title-mode - (element title - (process-children))) - -(mode subtitle-mode - (element subtitle - (make sequence - (literal (if (first-sibling?) - "" - "; ")) - (process-children)))) - -(mode head-title-mode - ;; TITLE in an HTML HEAD - (default - (process-children)) - - (element graphic (empty-sosofo)) - (element inlinegraphic (empty-sosofo))) diff --git a/docs/dsssl/docbook/html/dbttlpg.dsl b/docs/dsssl/docbook/html/dbttlpg.dsl deleted file mode 100755 index 5ae070c2..00000000 --- a/docs/dsssl/docbook/html/dbttlpg.dsl +++ /dev/null @@ -1,4598 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define (have-sibling? sibling-gi #!optional (node (current-node))) - (let loop ((nl (children (parent node)))) - (if (node-list-empty? nl) - #f - (if (equal? (gi (node-list-first nl)) sibling-gi) - #t - (loop (node-list-rest nl)))))) - -(define (titlepage-content? elements gis) - (let giloop ((gilist gis)) - (if (null? gilist) - #f - (if (not (node-list-empty? (node-list-filter-by-gi - elements - (list (car gilist))))) - #t - (giloop (cdr gilist)))))) - -(define (titlepage-gi-list-by-elements elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in elements. - (let loop ((gilist elements) (rlist (empty-node-list))) - (if (null? gilist) - rlist - (loop (cdr gilist) - (node-list rlist (node-list-filter-by-gi - nodelist (list (car gilist)))))))) - -(define (titlepage-gi-list-by-nodelist elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in nodelist. - (let loop ((nl nodelist) (rlist (empty-node-list))) - (if (node-list-empty? nl) - rlist - (if (member (gi (node-list-first nl)) elements) - (loop (node-list-rest nl) - (node-list rlist (node-list-first nl))) - (loop (node-list-rest nl) rlist))))) - -(define (titlepage-nodelist elements nodelist) - ;; We expand BOOKBIBLIO, BIBLIOMISC, and BIBLIOSET in the element - ;; list because that level of wrapper usually isn't significant. - (let ((exp-nodelist (expand-children nodelist (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (if %titlepage-in-info-order% - (titlepage-gi-list-by-nodelist elements exp-nodelist) - (titlepage-gi-list-by-elements elements exp-nodelist)))) - -(define (titlepage-recto-legalnotice #!optional (node (current-node))) - (let ((notices (select-elements - (children (parent node)) - (normalize "legalnotice"))) - (copyrights (select-elements - (children (parent node)) - (normalize "copyright")))) - (if (and %generate-legalnotice-link% - (not nochunks)) - ;; Divert the contents of legal to another file. It will be xref'd - ;; from the Copyright. - (if (first-sibling? node) - (make sequence - (make entity - system-id: (html-entity-file - ($legalnotice-link-file$ node)) - (if %html-pubid% - (make document-type - name: "HTML" - public-id: %html-pubid%) - (empty-sosofo)) - (make element gi: "HTML" - (make element gi: "HEAD" - ($standard-html-header$)) - (make element gi: "BODY" - attributes: %body-attr% - (header-navigation node) - ($semiformal-object$) - (with-mode legal-notice-link-mode - (process-node-list (node-list-rest notices))) - (footer-navigation node)))) - (if (node-list-empty? copyrights) - (make element gi: "A" - attributes: (list - (list "HREF" - ($legalnotice-link-file$ - node))) - (literal (gentext-element-name node))) - (empty-sosofo))) - (empty-sosofo)) - ($semiformal-object$)))) - -(define (titlepage-recto-copyright #!optional (node (current-node))) - (let ((years (select-elements (descendants node) - (normalize "year"))) - (holders (select-elements (descendants node) - (normalize "holder"))) - (legalnotice (select-elements (children (parent node)) - (normalize "legalnotice")))) - (make element gi: "P" - attributes: (list - (list "CLASS" (gi))) - (if (and %generate-legalnotice-link% - (not nochunks) - (not (node-list-empty? legalnotice))) - (make sequence - (make element gi: "A" - attributes: (list - (list "HREF" - ($legalnotice-link-file$ - (node-list-first legalnotice)))) - (literal (gentext-element-name (gi node)))) - (literal " ") - (dingbat-sosofo "copyright") - (literal " ") - (process-node-list years) - (literal " ") - (process-node-list holders)) - (make sequence - (literal (gentext-element-name (gi node))) - (literal " ") - (dingbat-sosofo "copyright") - (literal " ") - (process-node-list years) - (literal " ") - (process-node-list holders)))))) - -;; == Title pages for SETs ============================================== - -(define (set-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "copyright") - (normalize "legalnotice"))) - -(define (set-titlepage-verso-elements) '()) - -(define (set-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)))) - -(define (set-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)) - elements))) - (if (set-titlepage-content? elements side) - (make element gi: "DIV" - attributes: '(("CLASS" "TITLEPAGE")) - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (set-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (set-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (set-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (set-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (set-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (set-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (set-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (set-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (set-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (set-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (set-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (set-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (set-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (set-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (set-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (set-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (set-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (set-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (set-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (set-titlepage-recto-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (set-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (set-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (set-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (set-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (set-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (set-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (set-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (set-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (set-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (set-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (set-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (set-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (set-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (set-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (set-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (set-titlepage-recto-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (set-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (set-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (set-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (set-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (set-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (set-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (set-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (set-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (set-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (set-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (set-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (set-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (set-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (set-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (set-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (set-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (set-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (set-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (set-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (set-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (set-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (set-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (set-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (set-titlepage-volumenum (node-list-first nl) side)) - (else - (set-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - (set-titlepage-separator side)) - (empty-sosofo)))) - -(define (set-titlepage-separator side) - (empty-sosofo)) - -(define (set-titlepage-before node side) - (empty-sosofo)) - -(define (set-titlepage-default node side) - (let ((foo (debug (string-append "No set-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (set-titlepage-element node side) - (if (equal? side 'recto) - (with-mode set-titlepage-recto-mode - (process-node-list node)) - (with-mode set-titlepage-verso-mode - (process-node-list node)))) - -(define (set-titlepage-abbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-abstract node side) - (set-titlepage-element node side)) -(define (set-titlepage-address node side) - (set-titlepage-element node side)) -(define (set-titlepage-affiliation node side) - (set-titlepage-element node side)) -(define (set-titlepage-artpagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-author node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorblurb node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorinitials node side) - (set-titlepage-element node side)) -(define (set-titlepage-bibliomisc node side) - (set-titlepage-element node side)) -(define (set-titlepage-biblioset node side) - (set-titlepage node side)) -(define (set-titlepage-bookbiblio node side) - (set-titlepage node side)) -(define (set-titlepage-citetitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-collab node side) - (set-titlepage-element node side)) -(define (set-titlepage-confgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractnum node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractsponsor node side) - (set-titlepage-element node side)) -(define (set-titlepage-contrib node side) - (set-titlepage-element node side)) -(define (set-titlepage-recto-copyright node side) - (set-titlepage-element node side)) - -(define (set-titlepage-corpauthor node side) - (if (equal? side 'recto) - (set-titlepage-element node side) - (if (first-sibling? node) - (make element gi: "P" - attributes: (list (list "CLASS" (gi node))) - (with-mode set-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (set-titlepage-corpname node side) - (set-titlepage-element node side)) -(define (set-titlepage-date node side) - (set-titlepage-element node side)) -(define (set-titlepage-edition node side) - (set-titlepage-element node side)) -(define (set-titlepage-editor node side) - (set-titlepage-element node side)) -(define (set-titlepage-firstname node side) - (set-titlepage-element node side)) -(define (set-titlepage-graphic node side) - (set-titlepage-element node side)) -(define (set-titlepage-honorific node side) - (set-titlepage-element node side)) -(define (set-titlepage-indexterm node side) - (set-titlepage-element node side)) -(define (set-titlepage-invpartnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-isbn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issuenum node side) - (set-titlepage-element node side)) -(define (set-titlepage-itermset node side) - (set-titlepage-element node side)) -(define (set-titlepage-keywordset node side) - (set-titlepage-element node side)) -(define (set-titlepage-recto-legalnotice node side) - (set-titlepage-element node side)) -(define (set-titlepage-lineage node side) - (set-titlepage-element node side)) -(define (set-titlepage-mediaobject node side) - (set-titlepage-element node side)) -(define (set-titlepage-modespec node side) - (set-titlepage-element node side)) -(define (set-titlepage-orgname node side) - (set-titlepage-element node side)) -(define (set-titlepage-othercredit node side) - (set-titlepage-element node side)) -(define (set-titlepage-othername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-printhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-productname node side) - (set-titlepage-element node side)) -(define (set-titlepage-productnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubdate node side) - (set-titlepage-element node side)) -(define (set-titlepage-publisher node side) - (set-titlepage-element node side)) -(define (set-titlepage-publishername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubsnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-releaseinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-revhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesvolnums node side) - (set-titlepage-element node side)) -(define (set-titlepage-subjectset node side) - (set-titlepage-element node side)) -(define (set-titlepage-subtitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-surname node side) - (set-titlepage-element node side)) -(define (set-titlepage-title node side) - (set-titlepage-element node side)) -(define (set-titlepage-titleabbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-volumenum node side) - (set-titlepage-element node side)) - -(mode set-titlepage-recto-mode - (element para - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (process-children)))) - - (element copyright - (titlepage-recto-copyright)) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element edition - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H4" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element legalnotice - (titlepage-recto-legalnotice)) - - (element (legalnotice title) (empty-sosofo)) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element publisher - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element publishername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubsnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element releaseinfo - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (process-children-trim))) - - (element title - (make element gi: "H1" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (with-mode title-mode - (process-children-trim))))) - - (element (formalpara title) ($runinhead$)) -) - -(mode set-titlepage-verso-mode - (element abstract ($semiformal-object$)) - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))))) - - (element authorgroup - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (process-children-trim))) - - (element copyright - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name (current-node))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element edition - (make element gi: "P" - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - (literal (gentext-edited-by)) - (make entity-ref name: "nbsp") - (literal (author-string)))) - (literal (author-string))))) - - (element legalnotice - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element title - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (with-mode title-mode - (process-children)))) - - (element (formalpara title) ($runinhead$)) -) - -;; == Title pages for BOOKs ============================================= - -(define (book-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "copyright") - (normalize "abstract") - (normalize "legalnotice"))) - -(define (book-titlepage-verso-elements) '()) - -(define (book-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)))) - -(define (book-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)) - elements))) - (if (book-titlepage-content? elements side) - (make element gi: "DIV" - attributes: '(("CLASS" "TITLEPAGE")) - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (book-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (book-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (book-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (book-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (book-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (book-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (book-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (book-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (book-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (book-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (book-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (book-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (book-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (book-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (book-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (book-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (book-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (book-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (book-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (book-titlepage-recto-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (book-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (book-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (book-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (book-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (book-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (book-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (book-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (book-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (book-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (book-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (book-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (book-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (book-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (book-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (book-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (book-titlepage-recto-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (book-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (book-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (book-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (book-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (book-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (book-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (book-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (book-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (book-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (book-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (book-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (book-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (book-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (book-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (book-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (book-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (book-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (book-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (book-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (book-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (book-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (book-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (book-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (book-titlepage-volumenum (node-list-first nl) side)) - (else - (book-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - (book-titlepage-separator side)) - (empty-sosofo)))) - -(define (book-titlepage-separator side) - (if (equal? side 'recto) - (make empty-element gi: "HR") - (empty-sosofo))) - -(define (book-titlepage-before node side) - (empty-sosofo)) - -(define (book-titlepage-default node side) - (let ((foo (debug (string-append "No book-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (book-titlepage-element node side) - (if (equal? side 'recto) - (with-mode book-titlepage-recto-mode - (process-node-list node)) - (with-mode book-titlepage-verso-mode - (process-node-list node)))) - -(define (book-titlepage-abbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-abstract node side) - (book-titlepage-element node side)) -(define (book-titlepage-address node side) - (book-titlepage-element node side)) -(define (book-titlepage-affiliation node side) - (book-titlepage-element node side)) -(define (book-titlepage-artpagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-author node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorblurb node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorinitials node side) - (book-titlepage-element node side)) -(define (book-titlepage-bibliomisc node side) - (book-titlepage-element node side)) -(define (book-titlepage-biblioset node side) - (book-titlepage node side)) -(define (book-titlepage-bookbiblio node side) - (book-titlepage node side)) -(define (book-titlepage-citetitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-collab node side) - (book-titlepage-element node side)) -(define (book-titlepage-confgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractnum node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractsponsor node side) - (book-titlepage-element node side)) -(define (book-titlepage-contrib node side) - (book-titlepage-element node side)) -(define (book-titlepage-recto-copyright node side) - (book-titlepage-element node side)) - -(define (book-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make element gi: "P" - attributes: (list (list "CLASS" (gi node))) - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (book-titlepage-corpname node side) - (book-titlepage-element node side)) -(define (book-titlepage-date node side) - (book-titlepage-element node side)) -(define (book-titlepage-edition node side) - (book-titlepage-element node side)) -(define (book-titlepage-editor node side) - (book-titlepage-element node side)) -(define (book-titlepage-firstname node side) - (book-titlepage-element node side)) -(define (book-titlepage-graphic node side) - (book-titlepage-element node side)) -(define (book-titlepage-honorific node side) - (book-titlepage-element node side)) -(define (book-titlepage-indexterm node side) - (book-titlepage-element node side)) -(define (book-titlepage-invpartnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-isbn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issuenum node side) - (book-titlepage-element node side)) -(define (book-titlepage-itermset node side) - (book-titlepage-element node side)) -(define (book-titlepage-keywordset node side) - (book-titlepage-element node side)) -(define (book-titlepage-recto-legalnotice node side) - (book-titlepage-element node side)) -(define (book-titlepage-lineage node side) - (book-titlepage-element node side)) -(define (book-titlepage-mediaobject node side) - (book-titlepage-element node side)) -(define (book-titlepage-modespec node side) - (book-titlepage-element node side)) -(define (book-titlepage-orgname node side) - (book-titlepage-element node side)) -(define (book-titlepage-othercredit node side) - (book-titlepage-element node side)) -(define (book-titlepage-othername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-printhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-productname node side) - (book-titlepage-element node side)) -(define (book-titlepage-productnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubdate node side) - (book-titlepage-element node side)) -(define (book-titlepage-publisher node side) - (book-titlepage-element node side)) -(define (book-titlepage-publishername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubsnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-releaseinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-revhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesvolnums node side) - (book-titlepage-element node side)) -(define (book-titlepage-subjectset node side) - (book-titlepage-element node side)) -(define (book-titlepage-subtitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-surname node side) - (book-titlepage-element node side)) -(define (book-titlepage-title node side) - (book-titlepage-element node side)) -(define (book-titlepage-titleabbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-volumenum node side) - (book-titlepage-element node side)) - -(mode titlepage-address-mode - (default (process-children)) - - (element email - ($mono-seq$ - (make sequence - (literal "<") - (make element gi: "A" - attributes: (list (list "HREF" - (string-append "mailto:" - (data (current-node))))) - (process-children)) - (literal ">"))))) - -(mode book-titlepage-recto-mode - (element abbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element artpagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (process-children)) - - (element authorinitials - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element bibliomisc (process-children)) - (element bibliomset (process-children)) - - (element collab - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element confgroup - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractnum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractsponsor - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contrib - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element copyright - (titlepage-recto-copyright)) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element corpname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element date - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element edition - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H4" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) - - (element firstname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element honorific - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element isbn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issuenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element jobtitle - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element keywordset (empty-sosofo)) - - (element legalnotice - (titlepage-recto-legalnotice)) - - (element (legalnotice title) (empty-sosofo)) - - (element lineage - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element orgname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element othercredit - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element othername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element printhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element productname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element productnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element publisher - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element publishername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubsnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element releaseinfo - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element shortaffil - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (process-children-trim))) - - (element surname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element title - (make element gi: "H1" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (with-mode title-mode - (process-children-trim))))) - - (element (formalpara title) ($runinhead$)) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) -) - -(mode book-titlepage-verso-mode - (element abbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element artpagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (process-children-trim))) - - (element authorinitials - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element bibliomisc (process-children)) - (element bibliomset (process-children)) - - (element collab - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element confgroup - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractnum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractsponsor - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contrib - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element copyright - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name (current-node))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element date - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element edition - (make element gi: "P" - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - (literal (gentext-edited-by)) - (make entity-ref name: "nbsp") - (literal (author-string)))) - (literal (author-string))))) - - (element firstname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element honorific - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element isbn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issuenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element jobtitle - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element keywordset (empty-sosofo)) - - (element legalnotice - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element lineage - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element orgname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element othercredit - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element othername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element printhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element productname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element productnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element publishername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubsnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element releaseinfo - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element shortaffil - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element surname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element title - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (with-mode title-mode - (process-children)))) - - (element (formalpara title) ($runinhead$)) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) -) - -(mode legal-notice-link-mode - (element legalnotice - ($semiformal-object$))) - -;; == Title pages for PARTs ============================================= - -(define (part-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle"))) - -(define (part-titlepage-verso-elements) - '()) - -(define (part-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)))) - -(define (part-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements - (list (normalize "partintro")))))) - (if (part-titlepage-content? elements side) - (make element gi: "DIV" - attributes: '(("CLASS" "TITLEPAGE")) - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (part-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (part-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (part-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (part-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (part-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (part-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (part-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (part-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (part-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (part-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (part-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (part-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (part-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (part-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (part-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (part-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (part-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (part-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (part-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (part-titlepage-recto-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (part-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (part-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (part-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (part-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (part-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (part-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (part-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (part-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (part-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (part-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (part-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (part-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (part-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (part-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (part-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (part-titlepage-recto-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (part-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (part-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (part-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (part-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (part-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (part-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (part-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (part-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (part-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (part-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (part-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (part-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (part-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (part-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (part-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (part-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (part-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (part-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (part-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (part-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (part-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (part-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (part-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (part-titlepage-volumenum (node-list-first nl) side)) - (else - (part-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro) - (empty-sosofo)) - - (if (and %generate-part-toc% - %generate-part-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) (toc-depth (current-node)))) - (empty-sosofo)) - - (part-titlepage-separator side)) - (empty-sosofo)))) - -(define (part-titlepage-separator side) - (empty-sosofo)) - -(define (part-titlepage-before node side) - (empty-sosofo)) - -(define (part-titlepage-default node side) - (let ((foo (debug (string-append "No part-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (part-titlepage-element node side) - (if (equal? side 'recto) - (with-mode part-titlepage-recto-mode - (process-node-list node)) - (with-mode part-titlepage-verso-mode - (process-node-list node)))) - -(define (part-titlepage-abbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-abstract node side) - (part-titlepage-element node side)) -(define (part-titlepage-address node side) - (part-titlepage-element node side)) -(define (part-titlepage-affiliation node side) - (part-titlepage-element node side)) -(define (part-titlepage-artpagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-author node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorblurb node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorinitials node side) - (part-titlepage-element node side)) -(define (part-titlepage-bibliomisc node side) - (part-titlepage-element node side)) -(define (part-titlepage-biblioset node side) - (part-titlepage node side)) -(define (part-titlepage-bookbiblio node side) - (part-titlepage node side)) -(define (part-titlepage-citetitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-collab node side) - (part-titlepage-element node side)) -(define (part-titlepage-confgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractnum node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractsponsor node side) - (part-titlepage-element node side)) -(define (part-titlepage-contrib node side) - (part-titlepage-element node side)) -(define (part-titlepage-recto-copyright node side) - (part-titlepage-element node side)) -(define (part-titlepage-corpauthor node side) - (part-titlepage-element node side)) -(define (part-titlepage-corpname node side) - (part-titlepage-element node side)) -(define (part-titlepage-date node side) - (part-titlepage-element node side)) -(define (part-titlepage-edition node side) - (part-titlepage-element node side)) -(define (part-titlepage-editor node side) - (part-titlepage-element node side)) -(define (part-titlepage-firstname node side) - (part-titlepage-element node side)) -(define (part-titlepage-graphic node side) - (part-titlepage-element node side)) -(define (part-titlepage-honorific node side) - (part-titlepage-element node side)) -(define (part-titlepage-indexterm node side) - (part-titlepage-element node side)) -(define (part-titlepage-invpartnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-isbn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issuenum node side) - (part-titlepage-element node side)) -(define (part-titlepage-itermset node side) - (part-titlepage-element node side)) -(define (part-titlepage-keywordset node side) - (part-titlepage-element node side)) -(define (part-titlepage-recto-legalnotice node side) - (part-titlepage-element node side)) -(define (part-titlepage-lineage node side) - (part-titlepage-element node side)) -(define (part-titlepage-mediaobject node side) - (part-titlepage-element node side)) -(define (part-titlepage-modespec node side) - (part-titlepage-element node side)) -(define (part-titlepage-orgname node side) - (part-titlepage-element node side)) -(define (part-titlepage-othercredit node side) - (part-titlepage-element node side)) -(define (part-titlepage-othername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-partintro node side) - (part-titlepage-element node side)) -(define (part-titlepage-printhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-productname node side) - (part-titlepage-element node side)) -(define (part-titlepage-productnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubdate node side) - (part-titlepage-element node side)) -(define (part-titlepage-publisher node side) - (part-titlepage-element node side)) -(define (part-titlepage-publishername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubsnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-releaseinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-revhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesvolnums node side) - (part-titlepage-element node side)) -(define (part-titlepage-subjectset node side) - (part-titlepage-element node side)) -(define (part-titlepage-subtitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-surname node side) - (part-titlepage-element node side)) -(define (part-titlepage-title node side) - (part-titlepage-element node side)) -(define (part-titlepage-titleabbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-volumenum node side) - (part-titlepage-element node side)) - - -(mode part-titlepage-recto-mode - (element para - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (process-children)) - - (element copyright - (titlepage-recto-copyright)) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element edition - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H4" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element legalnotice - (titlepage-recto-legalnotice)) - - (element (legalnotice title) (empty-sosofo)) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (process-children-trim))) - - (element title - (let ((division (ancestor-member (current-node) (division-element-list)))) - (make element gi: "H1" - attributes: (list (list "CLASS" (gi))) - (if (string=? (element-label division) "") - (empty-sosofo) - (literal (element-label division) - (gentext-label-title-sep (gi division)))) - (with-mode title-mode - (process-children))))) - - (element (formalpara title) ($runinhead$)) -) - -(mode part-titlepage-verso-mode - (element abstract ($semiformal-object$)) - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))))) - - (element authorgroup - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (process-children-trim))) - - (element copyright - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name (current-node))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element edition - (make element gi: "P" - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - (literal (gentext-edited-by)) - (make entity-ref name: "nbsp") - (literal (author-string)))) - (literal (author-string))))) - - (element legalnotice - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element title - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (with-mode title-mode - (process-children)))) - - (element (formalpara title) ($runinhead$)) -) - -;; == Title pages for ARTICLEs ========================================== -;; -;; Note: Article title pages are a little different in that they do not -;; create their own simple-page-sequence. -;; - -(define (article-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "releaseinfo") - (normalize "copyright") - (normalize "pubdate") - (normalize "revhistory") - (normalize "abstract"))) - -(define (article-titlepage-verso-elements) - '()) - -(define (article-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)))) - -(define (article-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)) - elements))) - (if (article-titlepage-content? elements side) - (make element gi: "DIV" - attributes: '(("CLASS" "TITLEPAGE")) - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (article-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (article-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (article-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (article-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (article-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (article-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (article-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (article-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (article-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (article-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (article-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (article-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (article-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (article-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (article-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (article-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (article-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (article-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (article-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (article-titlepage-recto-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (article-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (article-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (article-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (article-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (article-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (article-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (article-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (article-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (article-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (article-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (article-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (article-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (article-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (article-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (article-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (article-titlepage-recto-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (article-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (article-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (article-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (article-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (article-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (article-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (article-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (article-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (article-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (article-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (article-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (article-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (article-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (article-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (article-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (article-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (article-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (article-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (article-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (article-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (article-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (article-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (article-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (article-titlepage-volumenum (node-list-first nl) side)) - (else - (article-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - (article-titlepage-separator side)) - (empty-sosofo)))) - -(define (article-titlepage-separator side) - (make empty-element gi: "HR")) - -(define (article-titlepage-before node side) - (empty-sosofo)) - -(define (article-titlepage-default node side) - (let ((foo (debug (string-append "No article-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (article-titlepage-element node side) - (if (equal? side 'recto) - (with-mode article-titlepage-recto-mode - (process-node-list node)) - (with-mode article-titlepage-verso-mode - (process-node-list node)))) - -(define (article-titlepage-abbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-abstract node side) - (article-titlepage-element node side)) -(define (article-titlepage-address node side) - (article-titlepage-element node side)) -(define (article-titlepage-affiliation node side) - (article-titlepage-element node side)) -(define (article-titlepage-artpagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-author node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorblurb node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorinitials node side) - (article-titlepage-element node side)) -(define (article-titlepage-bibliomisc node side) - (article-titlepage-element node side)) -(define (article-titlepage-biblioset node side) - (article-titlepage node side)) -(define (article-titlepage-bookbiblio node side) - (article-titlepage node side)) -(define (article-titlepage-citetitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-collab node side) - (article-titlepage-element node side)) -(define (article-titlepage-confgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractnum node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractsponsor node side) - (article-titlepage-element node side)) -(define (article-titlepage-contrib node side) - (article-titlepage-element node side)) -(define (article-titlepage-recto-copyright node side) - (article-titlepage-element node side)) -(define (article-titlepage-corpauthor node side) - (article-titlepage-element node side)) -(define (article-titlepage-corpname node side) - (article-titlepage-element node side)) -(define (article-titlepage-date node side) - (article-titlepage-element node side)) -(define (article-titlepage-edition node side) - (article-titlepage-element node side)) -(define (article-titlepage-editor node side) - (article-titlepage-element node side)) -(define (article-titlepage-firstname node side) - (article-titlepage-element node side)) -(define (article-titlepage-graphic node side) - (article-titlepage-element node side)) -(define (article-titlepage-honorific node side) - (article-titlepage-element node side)) -(define (article-titlepage-indexterm node side) - (article-titlepage-element node side)) -(define (article-titlepage-invpartnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-isbn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issuenum node side) - (article-titlepage-element node side)) -(define (article-titlepage-itermset node side) - (article-titlepage-element node side)) -(define (article-titlepage-keywordset node side) - (article-titlepage-element node side)) -(define (article-titlepage-recto-legalnotice node side) - (article-titlepage-element node side)) -(define (article-titlepage-lineage node side) - (article-titlepage-element node side)) -(define (article-titlepage-mediaobject node side) - (article-titlepage-element node side)) -(define (article-titlepage-modespec node side) - (article-titlepage-element node side)) -(define (article-titlepage-orgname node side) - (article-titlepage-element node side)) -(define (article-titlepage-othercredit node side) - (article-titlepage-element node side)) -(define (article-titlepage-othername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-partintro node side) - (article-titlepage-element node side)) -(define (article-titlepage-printhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-productname node side) - (article-titlepage-element node side)) -(define (article-titlepage-productnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubdate node side) - (article-titlepage-element node side)) -(define (article-titlepage-publisher node side) - (article-titlepage-element node side)) -(define (article-titlepage-publishername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubsnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-releaseinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-revhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesvolnums node side) - (article-titlepage-element node side)) -(define (article-titlepage-subjectset node side) - (article-titlepage-element node side)) -(define (article-titlepage-subtitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-surname node side) - (article-titlepage-element node side)) -(define (article-titlepage-title node side) - (article-titlepage-element node side)) -(define (article-titlepage-titleabbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-volumenum node side) - (article-titlepage-element node side)) - -(mode article-titlepage-recto-mode - (element abbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element artpagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (literal author-name))) - (process-node-list author-affil)))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (process-children))) - - (element authorinitials - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element bibliomisc (process-children)) - (element bibliomset (process-children)) - - (element collab - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element confgroup - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractnum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractsponsor - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contrib - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element copyright - (titlepage-recto-copyright)) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element corpname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element date - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element edition - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H4" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) - - (element firstname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element honorific - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element isbn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issuenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element jobtitle - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element keywordset (empty-sosofo)) - - (element legalnotice - (titlepage-recto-legalnotice)) - - (element (legalnotice title) (empty-sosofo)) - - (element lineage - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element orgname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element othercredit - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element othername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element printhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element productname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element productnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element publisher - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element publishername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubsnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element releaseinfo - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element shortaffil - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (process-children-trim))) - - (element surname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element title - (make element gi: "H1" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (with-mode title-mode - (process-children-trim))))) - - (element (formalpara title) ($runinhead$)) - - (element titleabbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element volumenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) -) - -(mode article-titlepage-verso-mode - (element abbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element artpagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (process-children-trim))) - - (element authorinitials - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element bibliomisc (process-children)) - (element bibliomset (process-children)) - - (element collab - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element confgroup - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractnum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contractsponsor - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element contrib - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element copyright - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name (current-node))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element date - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element edition - (make element gi: "P" - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - (literal (gentext-edited-by)) - (make entity-ref name: "nbsp") - (literal (author-string)))) - (literal (author-string))))) - - (element firstname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element honorific - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element isbn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issn - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element issuenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element jobtitle - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element keywordset (empty-sosofo)) - - (element legalnotice - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element lineage - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element orgname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element othercredit - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element othername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pagenums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element printhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element productname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element productnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element publishername - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element pubsnumber - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element releaseinfo - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element shortaffil - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element surname - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element title - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (with-mode title-mode - (process-children)))) - - (element (formalpara title) ($runinhead$)) - - (element titleabbrev - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) - - (element volumenum - (make element gi: "SPAN" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make empty-element gi: "BR"))) -) - -;; == Title pages for REFERENCEs ======================================== - -(define (reference-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (reference-titlepage-verso-elements) - '()) - -(define (reference-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)))) - -(define (reference-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements - (list (normalize "partintro")))))) - (if (reference-titlepage-content? elements side) - (make element gi: "DIV" - attributes: '(("CLASS" "TITLEPAGE")) - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (reference-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (reference-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (reference-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (reference-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (reference-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (reference-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (reference-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (reference-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (reference-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (reference-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (reference-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (reference-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (reference-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (reference-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (reference-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (reference-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (reference-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (reference-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (reference-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (reference-titlepage-recto-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (reference-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (reference-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (reference-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (reference-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (reference-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (reference-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (reference-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (reference-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (reference-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (reference-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (reference-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (reference-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (reference-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (reference-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (reference-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (reference-titlepage-recto-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (reference-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (reference-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (reference-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (reference-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (reference-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (reference-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (reference-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (reference-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (reference-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (reference-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (reference-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (reference-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (reference-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (reference-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (reference-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (reference-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (reference-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (reference-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (reference-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (reference-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (reference-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (reference-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (reference-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (reference-titlepage-volumenum (node-list-first nl) side)) - (else - (reference-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro) - (empty-sosofo)) - - (if (and %generate-reference-toc% - %generate-reference-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (reference-titlepage-separator side)) - (empty-sosofo)))) - -(define (reference-titlepage-separator side) - (empty-sosofo)) - -(define (reference-titlepage-before node side) - (empty-sosofo)) - -(define (reference-titlepage-default node side) - (let ((foo (debug (string-append "No reference-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (reference-titlepage-element node side) - (if (equal? side 'recto) - (with-mode reference-titlepage-recto-mode - (process-node-list node)) - (with-mode reference-titlepage-verso-mode - (process-node-list node)))) - -(define (reference-titlepage-abbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-abstract node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-address node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-affiliation node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-artpagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-author node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorblurb node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorinitials node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-bibliomisc node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-biblioset node side) - (reference-titlepage node side)) -(define (reference-titlepage-bookbiblio node side) - (reference-titlepage node side)) -(define (reference-titlepage-citetitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-collab node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-confgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractnum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractsponsor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contrib node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-recto-copyright node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-corpauthor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-corpname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-date node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-edition node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-editor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-firstname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-graphic node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-honorific node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-indexterm node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-invpartnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-isbn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issuenum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-itermset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-keywordset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-recto-legalnotice node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-lineage node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-mediaobject node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-modespec node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-orgname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othercredit node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-printhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubdate node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publisher node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publishername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubsnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-releaseinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-revhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesvolnums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subjectset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subtitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-surname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-title node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-titleabbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-volumenum node side) - (reference-titlepage-element node side)) - -(mode reference-titlepage-recto-mode - (element para - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element abstract - (make element gi: "DIV" - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal author-name))) - (process-node-list author-affil)))) - - (element authorblurb - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element authorgroup - (process-children)) - - (element copyright - (titlepage-recto-copyright)) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element edition - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H4" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string (normalize "fileref") nd)) - (entattr (attribute-string (normalize "entityref") nd)) - (entityref (if entattr - (entity-system-id entattr) - #f)) - (format (attribute-string (normalize "format"))) - (align (attribute-string (normalize "align"))) - (attr (append - (if align - (list (list "ALIGN" align)) - '()) - (if entityref - (list (list "SRC" (graphic-file entityref))) - (list (list "SRC" (graphic-file fileref)))) - (list (list "ALT" "")) - ))) - (if (or fileref entityref) - (make empty-element gi: "IMG" - attributes: attr) - (empty-sosofo)))) - - (element legalnotice - (titlepage-recto-legalnotice)) - - (element (legalnotice title) (empty-sosofo)) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (process-children-trim))) - - (element title - (let ((ref (ancestor-member (current-node) - (list (normalize "reference"))))) - (make element gi: "H1" - attributes: (list (list "CLASS" (gi))) - (literal (element-label ref) - (gentext-label-title-sep (gi ref))) - (with-mode title-mode - (process-children))))) - - (element (formalpara title) ($runinhead$)) -) - -(mode reference-titlepage-verso-mode - (element abstract ($semiformal-object$)) - (element (abstract title) (empty-sosofo)) - - (element address - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))) - (make sequence - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (literal (author-list-string)))))) - - (element authorgroup - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-by)) - (make entity-ref name: "nbsp") - (process-children-trim))) - - (element copyright - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name (current-node))) - (make entity-ref name: "nbsp") - (dingbat-sosofo "copyright") - (make entity-ref name: "nbsp") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element edition - (make element gi: "P" - (process-children) - (make entity-ref name: "nbsp") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - (literal (gentext-edited-by)) - (make entity-ref name: "nbsp") - (literal (author-string)))) - (literal (author-string))))) - - (element legalnotice - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element pubdate - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element revhistory - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" ($table-width$)) - (list "BORDER" "0")) - (make sequence - (make element gi: "TR" - (make element gi: "TH" - attributes: '(("ALIGN" "LEFT") - ("VALIGN" "TOP") - ("COLSPAN" "3")) - (make element gi: "B" - (literal (gentext-element-name - (gi (current-node))))))) - (process-children))))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revnumber)) - (make sequence - (literal (gentext-element-name-space - (gi (current-node)))) - (process-node-list revnumber)) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revdate)) - (process-node-list revdate) - (empty-sosofo))) - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT")) - (if (not (node-list-empty? revauthor)) - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make element gi: "TR" - (make element gi: "TD" - attributes: (list - (list "ALIGN" "LEFT") - (list "COLSPAN" "3")) - (if (not (node-list-empty? revremark)) - (process-node-list revremark) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element subtitle - (make element gi: "H3" - attributes: (list (list "CLASS" (gi))) - (process-children))) - - (element title - (make element gi: "H2" - attributes: (list (list "CLASS" (gi))) - (with-mode title-mode - (process-children)))) - - (element (formalpara title) ($runinhead$)) -) diff --git a/docs/dsssl/docbook/html/dbverb.dsl b/docs/dsssl/docbook/html/dbverb.dsl deleted file mode 100755 index bbf8e0e6..00000000 --- a/docs/dsssl/docbook/html/dbverb.dsl +++ /dev/null @@ -1,218 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define ($inpre$) - (let ((wrapper (ancestor-member (current-node) - (list (normalize "address") - (normalize "funcsynopsisinfo") - (normalize "literallayout") - (normalize "programlisting") - (normalize "screen") - (normalize "synopsis"))))) - (if (or (and (equal? wrapper "literallayout") - (not (equal? (attribute-string "class" wrapper) - (normalize "monospaced")))) - (equal? wrapper "address")) - #f - #t))) - -(define ($format-indent$ indent) - ;; This code is made complex by the fact that we need an additional - ;; wrapper and we have to translate spaces into nbsp entity-refs, - ;; if we aren't in a PRE. - ;; - (if ($inpre$) - (literal indent) - (make element gi: "CODE" - ($sp-to-nbsp-sosofo$ indent)))) - -(define ($format-linenumber$ linenumber) - ;; This code is made complex by the fact that we need an additional - ;; wrapper and we have to translate spaces into nbsp entity-refs, - ;; if we aren't in a PRE. - ;; - (if (equal? (remainder linenumber %linenumber-mod%) 0) - (if ($inpre$) - (make sequence - (literal (pad-string (format-number linenumber "1") - %linenumber-length% %linenumber-padchar%)) - ($linenumber-space$)) - (make element gi: "CODE" - ($sp-to-nbsp-sosofo$ - (pad-string (format-number linenumber "1") - %linenumber-length% %linenumber-padchar%)) - ($linenumber-space$))) - (if ($inpre$) - (make sequence - (literal (pad-string "" %linenumber-length% " ")) - ($linenumber-space$)) - (make element gi: "CODE" - ($sp-to-nbsp-sosofo$ - (pad-string "" %linenumber-length% " ")) - ($linenumber-space$))))) - -(define ($line-start$ indent line-numbers? #!optional (line-number 1)) - (make sequence - (if indent - ($format-indent$ indent) - (empty-sosofo)) - (if line-numbers? - ($format-linenumber$ line-number) - (empty-sosofo)))) - -(define ($sp-to-nbsp-sosofo$ string) - ;; Given a string, return it as a sosofo, but replace spaces with - ;; nbsp entity-refs. - (make sequence - (let loop ((charlist (string->list string)) - (res (empty-sosofo))) - (if (null? charlist) - res - (loop - (cdr charlist) - (let ((c (car charlist))) - (if (equal? c #\ ) - (sosofo-append res - (make entity-ref name: "nbsp")) - (sosofo-append res (literal (list->string (list c))))))))))) - -(define ($verbatim-display$ indent line-numbers?) - (let ((content (make element gi: "PRE" - attributes: (list - (list "CLASS" (gi))) - (if (or indent line-numbers?) - ($verbatim-line-by-line$ indent line-numbers?) - (process-children))))) - (if %shade-verbatim% - (make element gi: "TABLE" - attributes: ($shade-verbatim-attr$) - (make element gi: "TR" - (make element gi: "TD" - content))) - (make sequence - (para-check) - content - (para-check 'restart))))) - -(define ($verbatim-line-by-line$ indent line-numbers?) - (let ((expanded-content - ;; this is the content with - ;; inlinemediaobject/imageobject[@format='linespecific'] - ;; expanded - (let loop ((kl (children (current-node))) (rl (empty-node-list))) - (if (node-list-empty? kl) - rl - (if (equal? (gi (node-list-first kl)) - (normalize "inlinemediaobject")) - (let* ((imgobj (node-list-filter-by-gi - (children (node-list-first kl)) - (list (normalize "imageobject")))) - (datobj (node-list-filter-by-gi - (children imgobj) - (list (normalize "imagedata"))))) - (if (and (not (node-list-empty? imgobj)) - (not (node-list-empty? datobj)) - (equal? (attribute-string (normalize "format") datobj) - (normalize "linespecific"))) - (loop (node-list-rest kl) - (node-list rl (string->nodes (include-characters - (if (attribute-string (normalize "fileref") datobj) - (attribute-string (normalize "fileref") datobj) - (entity-generated-system-id (attribute-string (normalize "entityref") datobj))))))) - (loop (node-list-rest kl) - (node-list rl (node-list-first kl))))) - (loop (node-list-rest kl) (node-list rl (node-list-first kl)))))))) - (make sequence - ($line-start$ indent line-numbers? 1) - (let loop ((kl expanded-content) - (linecount 1) - (res (empty-sosofo))) - (if (node-list-empty? kl) - res - (loop - (node-list-rest kl) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - (+ linecount 1) - linecount) - (let ((c (node-list-first kl))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-000D) - (sosofo-append res - (process-node-list c) - ($line-start$ indent - line-numbers? - (+ linecount 1))) - (sosofo-append res (process-node-list c)))))))))) - -(define ($linespecific-display$ indent line-numbers?) - (make element gi: "P" - attributes: (list (list "CLASS" (gi))) - (make sequence - ($line-start$ indent line-numbers? 1) - (let loop ((kl (children (current-node))) - (linecount 1) - (res (empty-sosofo))) - (if (node-list-empty? kl) - res - (loop - (node-list-rest kl) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - (+ linecount 1) - linecount) - (let ((c (node-list-first kl))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-000D) - (sosofo-append res - (make empty-element gi: "br") - (process-node-list c) - ($line-start$ indent - line-numbers? - (+ linecount 1))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-0020) - (sosofo-append res - (make entity-ref name: "nbsp")) - (sosofo-append res (process-node-list c))))))))))) - -(element literallayout - (if (equal? (attribute-string "class") (normalize "monospaced")) - ($verbatim-display$ - %indent-literallayout-lines% - (or %number-literallayout-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered")))) - ($linespecific-display$ - %indent-literallayout-lines% - (or %number-literallayout-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered")))))) - -(element address - ($linespecific-display$ - %indent-address-lines% - (or %number-address-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element programlisting - ($verbatim-display$ - %indent-programlisting-lines% - (or %number-programlisting-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element screen - ($verbatim-display$ - %indent-screen-lines% - (or %number-screen-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element screenshot (process-children)) -(element screeninfo (empty-sosofo)) - diff --git a/docs/dsssl/docbook/html/docbook.dsl b/docs/dsssl/docbook/html/docbook.dsl deleted file mode 100755 index c95032b1..00000000 --- a/docs/dsssl/docbook/html/docbook.dsl +++ /dev/null @@ -1,241 +0,0 @@ - -%dbl10n.ent; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(declare-flow-object-class element - "UNREGISTERED::James Clark//Flow Object Class::element") - -(declare-flow-object-class empty-element - "UNREGISTERED::James Clark//Flow Object Class::empty-element") - -(declare-flow-object-class document-type - "UNREGISTERED::James Clark//Flow Object Class::document-type") - -(declare-flow-object-class processing-instruction - "UNREGISTERED::James Clark//Flow Object Class::processing-instruction") - -(declare-flow-object-class entity - "UNREGISTERED::James Clark//Flow Object Class::entity") - -(declare-flow-object-class entity-ref - "UNREGISTERED::James Clark//Flow Object Class::entity-ref") - -(declare-flow-object-class formatting-instruction - "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") - -(declare-characteristic preserve-sdata? - "UNREGISTERED::James Clark//Characteristic::preserve-sdata?" #t) - -(define debug - (external-procedure "UNREGISTERED::James Clark//Procedure::debug")) - -(define read-entity - (external-procedure "UNREGISTERED::James Clark//Procedure::read-entity")) - -(define all-element-number - (external-procedure "UNREGISTERED::James Clark//Procedure::all-element-number")) - -(root - (make sequence -; (literal -; (debug (node-property 'gi -; (node-property 'document-element (current-node))))) -;(define (docelem node) -; (node-propety 'document-element -; (node-property 'grove-root node))) - (process-children) - (with-mode manifest - (process-children)) - (if html-index - (with-mode htmlindex - (process-children)) - (empty-sosofo)))) - -(mode manifest - ;; this mode is really just a hack to get at the root element - (root (process-children)) - - (default - (if (node-list=? (current-node) (sgml-root-element)) - (if html-manifest - (make entity - system-id: (html-entity-file html-manifest-filename) - (make sequence - (let loop ((node (current-node))) - (if (node-list-empty? node) - (empty-sosofo) - (make sequence - (make formatting-instruction data: (html-file node)) - (make formatting-instruction data: " -") - (loop (next-chunk-element node))))) - (let loop ((nl (select-elements (descendants (current-node)) - (normalize "legalnotice")))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (and %generate-legalnotice-link% - (not nochunks) - (first-sibling? (node-list-first nl)) - ;; Hack: only book legal notices are diverted - (have-ancestor? (normalize "bookinfo") - (node-list-first nl))) - (make sequence - (make formatting-instruction - data: ($legalnotice-link-file$ (node-list-first nl))) - (make formatting-instruction data: " -")) - (empty-sosofo)) - (loop (node-list-rest nl))))))) - (empty-sosofo)) - (empty-sosofo)))) - -;; Make text that comes from unimplemented tags easy to spot -(default - (make element gi: "FONT" - attributes: '(("COLOR" "RED")) - (process-children))) - -&dbcommon.dsl; -&dbctable.dsl; - -&dbl10n.dsl; - -&dbadmon.dsl; -&dbautoc.dsl; -&dbbibl.dsl; -&dbblock.dsl; -&dbcallou.dsl; -&dbcompon.dsl; -&dbdivis.dsl; -&dbfootn.dsl; -&dbgloss.dsl; -&dbgraph.dsl; -&dbhtml.dsl; -&dbindex.dsl; -&dbinfo.dsl; -&dbinline.dsl; -&dblink.dsl; -&dblists.dsl; -&dblot.dsl; -&dbmath.dsl; -&dbmsgset.dsl; -&dbnavig.dsl; -&dbchunk.dsl; -&dbpi.dsl; -&dbprocdr.dsl; -&dbrfntry.dsl; -&dbsect.dsl; -&dbsynop.dsl; -&dbefsyn.dsl; -&dbtable.dsl; -&dbtitle.dsl; -&dbttlpg.dsl; -&dbverb.dsl; -&version.dsl; -&db31.dsl; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/html/version.dsl b/docs/dsssl/docbook/html/version.dsl deleted file mode 100755 index 46b2f1cd..00000000 --- a/docs/dsssl/docbook/html/version.dsl +++ /dev/null @@ -1,16 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.nwalsh.com/docbook/dsssl/ -;; - -;; If **ANY** change is made to this file, you _MUST_ alter the -;; following definition: - -(define (stylesheet-version) - (let* ((version "&VERSION;") - (verslen (string-length version))) - (string-append - "Modular DocBook HTML Stylesheet Version " - ;; trim off the trailing newline - (substring version 0 (- verslen 1))))) diff --git a/docs/dsssl/docbook/lib/ChangeLog b/docs/dsssl/docbook/lib/ChangeLog deleted file mode 100755 index 725a5eab..00000000 --- a/docs/dsssl/docbook/lib/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -2002-05-12 Norman Walsh - - * dblib.dsl: Bugs #429663 and #474328 fixed (allow external linespecific content to be indented and numbered). Eight bit or unicode external linespecific content may be problematic though. - -2001-07-10 Norman Walsh - - * dblib.dsl: Bug fix: (strip) was returning the empty string for any string one character long - -2001-04-02 Norman Walsh - - * dblib.dsl: New file. - diff --git a/docs/dsssl/docbook/lib/dblib.dsl b/docs/dsssl/docbook/lib/dblib.dsl deleted file mode 100755 index 3b45dd34..00000000 --- a/docs/dsssl/docbook/lib/dblib.dsl +++ /dev/null @@ -1,1857 +0,0 @@ - - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; -;; This file contains a general library of DSSSL functions. -;; - -;; If **ANY** change is made to this file, you _MUST_ alter the -;; following definition: - -;; REFERENCE Library Version - -(define %library-version% - ;; REFENTRY version - ;; PURP Defines the library version string - ;; DESC - ;; Defines the library version string. - ;; /DESC - ;; /REFENTRY - "Modular DocBook Stylesheet Library") - -;; === Book intro, for dsl2man ========================================== - -DSSSL Library -;; Part of the Modular DocBook Stylesheet distribution -;; NormanWalsh -;; -;; $Revision$ -;; 199719981999 -;; Norman Walsh -;; -;; -;; This software may be distributed under the same terms as Jade: -;; -;; -;; 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 stylesheet 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. -;; -;; -;; -;; -;; 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. -;; -;; -;; -;; Please direct all questions, bug reports, or suggestions for changes -;; to Norman Walsh, <ndw@nwalsh.com>. -;; -;; -;; See http://nwalsh.com/docbook/dsssl/ for more information. -;; -;; /DOCINFO -]]> - -;; === Some additional units ============================================ - -(define-unit pi (/ 1in 6)) -(define-unit pt (/ 1in 72)) -(define-unit px (/ 1in 96)) - -;; REFERENCE ISO/IEC 10179 - -(define (node-list-reduce nl proc init) - ;; REFENTRY node-list-reduce - ;; PURP Implements node-list-reduce as per ISO/IEC 10179:1996 - ;; DESC - ;; Implements 'node-list-reduce' as per ISO/IEC 10179:1996 - ;; /DESC - ;; AUTHOR From ISO/IEC 10179:1996 - ;; /REFENTRY - (if (node-list-empty? nl) - init - (node-list-reduce (node-list-rest nl) - proc - (proc init (node-list-first nl))))) - -(define (node-list-last nl) - ;; REFENTRY node-list-last - ;; PURP Implements node-list-last as per ISO/IEC 10179:1996 - ;; DESC - ;; Implements 'node-list-last' as per ISO/IEC 10179:1996 - ;; /DESC - ;; AUTHOR From ISO/IEC 10179:1996 - ;; /REFENTRY - (node-list-ref nl - (- (node-list-length nl) 1))) - -(define (node-list-first-element nodelist) - ;; REFENTRY node-list-first-element - ;; PURP Return the first element node in a node list - ;; DESC - ;; This function returns the first node in a node list which is - ;; an element (as opposed to a PI or anything else that might appear - ;; in a node list). - ;; /DESC - ;; /REFENTRY - (let loop ((nl nodelist)) - (if (node-list-empty? nl) - (empty-node-list) - (if (gi (node-list-first nl)) - (node-list-first nl) - (loop (node-list-rest nl)))))) - -(define (node-list-last-element nodelist) - ;; REFENTRY node-list-last-element - ;; PURP Return the last element node in a node list - ;; DESC - ;; This function returns the last node in a node list which is - ;; an element (as opposed to a PI or anything else that might appear - ;; in a node list). - ;; /DESC - ;; /REFENTRY - (let loop ((el (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - el - (if (gi (node-list-first nl)) - (loop (node-list-first nl) (node-list-rest nl)) - (loop el (node-list-rest nl)))))) - -(define (ipreced nl) - ;; REFENTRY ipreced - ;; PURP Implements ipreced as per ISO/IEC 10179:1996 - ;; DESC - ;; Implements 'ipreced' as per ISO/IEC 10179:1996 - ;; /DESC - ;; AUTHOR From ISO/IEC 10179:1996 - ;; /REFENTRY - (node-list-map (lambda (snl) - (let loop ((prev (empty-node-list)) - (rest (siblings snl))) - (cond ((node-list-empty? rest) - (empty-node-list)) - ((node-list=? (node-list-first rest) snl) - prev) - (else - (loop (node-list-first rest) - (node-list-rest rest)))))) - nl)) - - -(define (ifollow nl) - ;; REFENTRY ifollow - ;; PURP Implements ifollow as per ISO/IEC 10179:1996 - ;; DESC - ;; Implements 'ifollow' as per ISO/IEC 10179:1996 - ;; /DESC - ;; AUTHOR From ISO/IEC 10179:1996 - ;; /REFENTRY - (node-list-map (lambda (snl) - (let loop ((rest (siblings snl))) - (cond ((node-list-empty? rest) - (empty-node-list)) - ((node-list=? (node-list-first rest) snl) - (node-list-first (node-list-rest rest))) - (else - (loop (node-list-rest rest)))))) - nl)) - -(define (siblings snl) - ;; REFENTRY siblings - ;; PURP Implements siblings as per ISO/IEC 10179:1996 - ;; DESC - ;; Implements 'siblings' as per ISO/IEC 10179:1996 - ;; /DESC - ;; AUTHOR From ISO/IEC 10179:1996 - ;; /REFENTRY - (children (parent snl))) - -(define (string->list str) - ;; REFENTRY string-2-list - ;; PURP Converts a string into a list of characters. - ;; DESC - ;; Implements 'string->list' as per ISO/IEC 10179:1996 - ;; (clause 8.5.9.9). - ;; /DESC - ;; AUTHOR David Megginson - ;; EMAIL dmeggins@uottawa.ca - ;; /REFENTRY - (let loop ((chars '()) - (k (- (string-length str) 1))) - (if (< k 0) - chars - (loop (cons (string-ref str k) chars) (- k 1))))) - -(define (list->string chars) - ;; REFENTRY list-2-string - ;; PURP Converts a list of characters into a string - ;; DESC - ;; Implements 'list->string' as per ISO/IEC 10179:1996 - ;; (clause 8.5.9.9). - ;; /DESC - ;; AUTHOR David Megginson - ;; EMAIL dmeggins@uottawa.ca - ;; /REFENTRY - (let loop ((cl chars) - (str "")) - (if (null? cl) - str - (loop (cdr cl) - (string-append str (string (car cl))))))) - -;; ====================================================================== - -(define (map f #!rest xs) - ;; REFENTRY map - ;; PURP Implements map - ;; DESC - ;; Implements map - ;; /DESC - ;; AUTHOR From Mulberry Tech. site (need better attribution) - ;; /REFENTRY - (let ((map1 (lambda (f xs) ; bootstrap version for unary F - (let loop ((xs xs)) - (if (null? xs) - '() - (cons (f (car xs)) - (loop (cdr xs)))))))) - (cond ((null? xs) - '()) - ((null? (cdr xs)) - (map1 f (car xs))) - (else - (let loop ((xs xs)) - (if (null? (car xs)) - '() - (cons (apply f (map1 car xs)) - (loop (map1 cdr xs))))))))) - -(define (absolute-child-number #!optional (nd (current-node))) - ;; REFENTRY absolute-child-number - ;; PURP Returns the absolute child number of the specified node - ;; DESC - ;; Returns the child number, regardless of gi, of 'snl' within its - ;; parent. - ;; - ;; Isn't there a better way to get this? - ;; ARGS - ;; ARG snl - ;; The node (singleton node list) whose child number is desired. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (+ (node-list-length (preced nd)) 1)) - -;; REFERENCE Debug - -(define (my-debug x #!optional return-value) - ;; REFENTRY my-debug - ;; PURP A debugging function more helpful than (debug) - ;; DESC - ;; A version of debug that tries to print information more helpful - ;; than "unknown object ...". Will need extending for any further - ;; types added to Jade which don't have useful print methods. - ;; (Should yield more information extracted from each type.) - ;; ARGS - ;; ARG x - ;; The object about which debugging information is desired. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; AUTHOR Tony Graham - ;; /REFENTRY - (let ((msg (debug (cond ((node-list? x) - (if (node-list-empty? x) - (list 'empty-node-list x) - (list (if (named-node-list? x) - 'named-node-list - 'node-list) - (node-list-length x) x))) - ((sosofo? x) - (list 'sosofo x)) - ((procedure? x) - (list 'procedure x)) - ((style? x) - (list 'style x)) - ((address? x) - (list 'address x)) - ((color? x) - (list 'color x)) - ((color-space? x) - (list 'color-space x)) - ((display-space? x) - (list 'display-space x)) - ((inline-space? x) - (list 'inline-space x)) - ((glyph-id? x) - (list 'glyph-id x)) - ((glyph-subst-table? x) - (list 'glyph-subst-table x)) - (else x))))) - x)) - -;; REFERENCE Miscellaneous - -(define (string-with-space string #!optional (space " ")) - ;; REFENTRY string-with-space - ;; PURP Returns string with a space appended or the empty string - ;; DESC - ;; If 'string' is not the empty string, returns 'string' with a - ;; 'space' appended. If 'string' is empty, or is not a '(string?)', - ;; returns 'string' unmodified. - ;; ARGS - ;; ARG 'string' - ;; The string onto which a space should be appended. - ;; /ARG - ;; ARG 'space' o - ;; If specified, the space to append. Defaults to a single space. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (if (string? string) - (if (equal? string "") - string - (string-append string space)) - string)) - -;; ====================================================================== - -(define (split str #!optional (whitespace '(#\space))) - ;; REFENTRY split - ;; PURP Splits string at whitespace and returns the resulting list of tokens - ;; DESC - ;; Given a string containing delimited tokens, return a list - ;; of the tokens in string form. - ;; ARGS - ;; ARG 'str' - ;; The string to split. - ;; /ARG - ;; ARG 'whitespace' o - ;; A list of characters that should - ;; be treated as whitespace. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; AUTHOR David Megginson - ;; EMAIL dmeggins@uottawa.ca - ;; /REFENTRY - (let loop ((characters (string->list str)) ; Top-level recursive loop. - (current-word '()) - (tokens '())) - - ; If there are no characters left, - ; then we're done! - (cond ((null? characters) - ; Is there a token in progress? - (if (null? current-word) - (reverse tokens) - (reverse (cons (list->string (reverse current-word)) - tokens)))) - ; If there are characters left, - ; then keep going. - (#t - (let ((c (car characters)) - (rest (cdr characters))) - ; Are we reading a space? - (cond ((member c whitespace) - (if (null? current-word) - (loop rest '() tokens) - (loop rest - '() - (cons (list->string (reverse current-word)) - tokens)))) - ; We are reading a non-space - (#t - (loop rest (cons c current-word) tokens)))))))) - -;; ====================================================================== - -(define (strip str #!optional (stripchars '(#\space #\&#RE #\U-0009))) - ;; REFENTRY strip - ;; PURP Strip leading and trailing characters off of a string - ;; DESC - ;; Strips leading and trailing characters in the 'stripchars' list - ;; off of a string and returns the stripped string. - ;; ARGS - ;; ARG 'str' - ;; The string to strip - ;; /ARG - ;; ARG 'stripchars' o - ;; A list of characters that should - ;; be stripped. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (let* ((startpos (let loop ((count 0)) - (if (>= count (string-length str)) - (string-length str) - (if (member (string-ref str count) stripchars) - (loop (+ count 1)) - count)))) - (tailstr (substring str startpos (string-length str))) - (endpos (let loop ((count (- (string-length tailstr) 1))) - (if (< count 1) - 0 - (if (member (string-ref tailstr count) stripchars) - (loop (- count 1)) - count))))) - (if (or (< endpos 0) - (string=? tailstr "")) - "" - (substring tailstr 0 (+ endpos 1))))) - -;; ====================================================================== - -(define (join slist #!optional (space " ")) - ;; REFENTRY join - ;; PURP Joins a list of strings together - ;; DESC - ;; Given a list of strings and a space string, returns the string - ;; that results from joining all the strings in the list together, - ;; separated by space. - ;; ARGS - ;; ARG 'slist' - ;; The list of strings. - ;; /ARG - ;; ARG 'space' o - ;; The string to place between each member of the list. Defaults to - ;; a single space. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; AUTHOR David Carlisle - ;; /REFENTRY - (letrec ((loop (lambda (l result) - (if (null? l) - result - (loop (cdr l) (cons space (cons (car l) result))))))) - (if (null? slist) - "" - (apply string-append (cons (car slist) - (loop (reverse (cdr slist)) '() )))))) - -;; ====================================================================== - -(define (pad-string string length padchar) - ;; REFENTRY pad-string - ;; PURP Pads a string, in front, to the specified length - ;; DESC - ;; Returns 'string', padded in front with 'padchar' to at least 'length' - ;; Returns 'string' unmodified if 'string' is not a '(string?)', - ;; 'padchar' is not a '(string?)', 'padchar' is the empty string, or if - ;; 'string' is already greater than or equal to 'length' in length. - ;; ARGS - ;; ARG 'string' - ;; The string to pad. - ;; /ARG - ;; ARG 'length' - ;; The desired length. - ;; /ARG - ;; ARG 'padchar' - ;; The character (string, actually) to use as padding. If 'padchar' is - ;; longer than 1 character, the resulting string may be longer than - ;; 'length' when returned. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (if (and (string? string) - (string? padchar) - (> (string-length padchar) 0)) - (let loop ((s string) (count (- length (string-length string)))) - (if (<= count 0) - s - (loop (string-append padchar s) - (- count (string-length padchar))))) - string)) - -;; ====================================================================== - -(define (match-split string target) - ;; REFENTRY match-split - ;; PURP Splits string at target and returns the resulting list of tokens - ;; DESC - ;; Splits string at every occurance of target and returns the result - ;; as a list. Note that 'match-split' returns the occurances of 'target' - ;; in the list of tokens. - ;; ARGS - ;; ARG 'string' - ;; The string to split. - ;; /ARG - ;; ARG 'target' - ;; The string which is a delimiter between tokens - ;; /ARG - ;; /ARGS - ;; /DESC - ;; EXAMPLE - ;; '"this is a test"' split at '"is"' returns - ;; '("th" "is" " " "is" " a test")' - ;; /EXAMPLE - ;; /REFENTRY - (if (string? string) - (let loop ((result '()) (current "") (rest string)) - (if (< (string-length rest) (string-length target)) - (append result (if (equal? (string-append current rest) "") - '() - (list (string-append current rest)))) - (if (equal? target (substring rest 0 (string-length target))) - (loop (append result - (if (equal? current "") - '() - (list current)) - (list target)) - "" - (substring rest (string-length target) - (string-length rest))) - (loop result - (string-append current (substring rest 0 1)) - (substring rest 1 (string-length rest)))))) - (list string))) - -(define (match-split-string-list string-list target) - ;; REFENTRY match-split-string-list - ;; PURP Splits each string in a list of strings and returns the concatenated result list - ;; DESC - ;; Splits each string in 'string-list' at 'target' with '(match-split)', - ;; concatenates the results, and returns a single list of tokens. - ;; ARGS - ;; ARG string-list - ;; The list of strings to split. - ;; /ARG - ;; ARG target - ;; The string which is a delimiter between tokens. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (let loop ((result '()) (sl string-list)) - (if (null? sl) - result - (loop (append result (match-split (car sl) target)) - (cdr sl))))) - -(define (match-split-list string target-list) - ;; REFENTRY match-split-list - ;; PURP Splits a string at a list of targets and returns the resulting list of tokens - ;; DESC - ;; Splits 'string' at every target in 'target-list' with '(match-split)', - ;; returning the whole collection of tokens as a list. - ;; ARGS - ;; ARG string - ;; The string to split. - ;; /ARG - ;; ARG target-list - ;; A list of target strings which are the delimters between tokens. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (let loop ((result (list string)) (tlist target-list)) - (if (null? tlist) - result - (loop (match-split-string-list result (car tlist)) - (cdr tlist))))) - -;; ====================================================================== - -(define (assoc-objs alist) - ;; REFENTRY assoc-objs - ;; PURP Returns a list of the objects in an associative list - ;; DESC - ;; Returns a list of the objects in an associative list. - ;; ARGS - ;; ARG alist - ;; The associative list. An associative list is a list of lists - ;; where each interior list is a pair of elements. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; EXAMPLE - ;; '(assoc-objs (("a" "b") ("c" "d")))' returns '("a" "c")' - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((result '()) (al alist)) - (if (null? al) - result - (loop (append result (list (car (car al)))) (cdr al))))) - -(define (assoc obj alist) - ;; REFENTRY assoc - ;; PURP Returns the association of an object in an associative list - ;; DESC - ;; Given an associative list, returns the pair that has 'obj' as a 'car' - ;; or '#f' if no such pair exists. - ;; ARGS - ;; ARG obj - ;; The associative key to locate. - ;; /ARG - ;; ARG alist - ;; The associative list. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; EXAMPLE - ;; '(assoc "a" (("a" "b") ("c" "d")))' returns '("a" "b")' - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((al alist)) - (if (null? al) - #f - (if (equal? obj (car (car al))) - (car al) - (loop (cdr al)))))) - -(define (match-substitute-sosofo string assoc-list) - ;; REFENTRY match-substitute-sosofo - ;; PURP Return matching sosofo from associative list - ;; DESC - ;; Given a string and an associative list of strings and sosofos, - ;; return the sosofo of the matching string, or return the literal - ;; string as a sosofo. - ;; - ;; (This function is used for a particular task in the DocBook stylesheets. - ;; It may not be particularly general, but it's in 'dblib.dsl' because - ;; there is nothing DTD-specific about it.) - ;; /DESC - ;; /REFENTRY - (if (assoc string assoc-list) - (car (cdr (assoc string assoc-list))) - (literal string))) - -(define (string-list-sosofo string-list assoc-list) - ;; REFENTRY string-list-sosofo - ;; PURP Build sosofo from a list of strings and an associative list - ;; DESC - ;; Take a list of strings and an associative list that maps strings - ;; to sosofos and return an appended sosofo. - ;; - ;; (This function is used for a particular task in the DocBook stylesheets. - ;; It may not be particularly general, but it's in 'dblib.dsl' because - ;; there is nothing DTD-specific about it.) - ;; /DESC - ;; EXAMPLE - ;; Given the string list '("what is " "1" " " "+" " " "1")' - ;; and the associative list - ;; '(("1" (literal "one")) ("2" (literal "two")) ("+" (literal "plus")))', - ;; '(string-list-sosofo)' returns the sequence of sosofos - ;; equivalent to '(literal "what is one plus one")'. - ;; /EXAMPLE - ;; /REFENTRY - (if (null? string-list) - (empty-sosofo) - (sosofo-append (match-substitute-sosofo (car string-list) assoc-list) - (string-list-sosofo (cdr string-list) assoc-list)))) - -;; ====================================================================== - -(define (repl-substring? string target pos) - ;; REFENTRY repl-substring-p - ;; PURP Returns true if the specified substring can be replaced - ;; DESC - ;; Returns '#t' if 'target' occurs at 'pos' in 'string'. - ;; /DESC - ;; /REFENTRY - (let* ((could-match (<= (+ pos (string-length target)) - (string-length string))) - (match (if could-match - (substring string pos (+ pos (string-length target))) ""))) - (and could-match (string=? match target)))) - -(define (repl-substring string target repl pos) - ;; REFENTRY repl-substring - ;; PURP Replace substring in a string - ;; DESC - ;; Replaces 'target' with 'repl' in 'string' at 'pos'. - ;; /DESC - ;; /REFENTRY - (let ((matches (repl-substring? string target pos))) - (if matches - (string-append - (substring string 0 pos) - repl - (substring string - (+ pos (string-length target)) - (string-length string))) - string))) - -(define (repl-substring-list? string replace-list pos) - ;; REFENTRY repl-substring-list-p - ;; PURP Perform repl-substring? with a list of target/replacement pairs - ;; DESC - ;; Returns '#t' if any target in 'replace-list' occurs at 'pos' in 'string'. - ;; ARGS - ;; ARG 'string' - ;; The string in which replacement should be tested. - ;; /ARG - ;; ARG 'replace-list' - ;; A list of target/replacement pairs. This list is just a list of - ;; strings, treated as pairs. For example, '("was" "x" "is" "y")'. - ;; In this example, 'was' may be replaced by 'x' and 'is' may be - ;; replaced by 'y'. - ;; /ARG - ;; ARG 'pos' - ;; The location within 'string' where the test will occur. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; EXAMPLE - ;; '(repl-substring-list? "this is it" ("was" "x" "is" "y") 2)' - ;; returns '#t': "is" could be replaced by "y". - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((list replace-list)) - (let ((target (car list)) - (repl (car (cdr list))) - (rest (cdr (cdr list)))) - (if (repl-substring? string target pos) - #t - (if (null? rest) - #f - (loop rest)))))) - -(define (repl-substring-list-target string replace-list pos) - ;; REFENTRY repl-substring-list-target - ;; PURP Return the target that matches in a string - ;; DESC - ;; Returns the target in 'replace-list' that matches in 'string' at 'pos' - ;; See also 'repl-substring-list?'. - ;; /DESC - ;; /REFENTRY - (let loop ((list replace-list)) - (let ((target (car list)) - (repl (car (cdr list))) - (rest (cdr (cdr list)))) - (if (repl-substring? string target pos) - target - (if (null? rest) - #f - (loop rest)))))) - -(define (repl-substring-list-repl string replace-list pos) - ;; REFENTRY repl-substring-list-repl - ;; PURP Return the replacement that would be used in the string - ;; DESC - ;; Returns the replacement in 'replace-list' that would be used for the - ;; target that matches in 'string' at 'pos' - ;; See also 'repl-substring-list?'. - ;; /DESC - ;; /REFENTRY - (let loop ((list replace-list)) - (let ((target (car list)) - (repl (car (cdr list))) - (rest (cdr (cdr list)))) - (if (repl-substring? string target pos) - repl - (if (null? rest) - #f - (loop rest)))))) - -(define (repl-substring-list string replace-list pos) - ;; REFENTRY repl-substring-list - ;; PURP Replace the first target in the replacement list that matches - ;; DESC - ;; Replaces the first target in 'replace-list' that matches in 'string' - ;; at 'pos' with its replacement. - ;; See also 'repl-substring-list?'. - ;; /DESC - ;; /REFENTRY - (if (repl-substring-list? string replace-list pos) - (let ((target (repl-substring-list-target string replace-list pos)) - (repl (repl-substring-list-repl string replace-list pos))) - (repl-substring string target repl pos)) - string)) - -(define (string-replace string target repl) - ;; REFENTRY string-replace - ;; PURP Replace all occurances of a target substring in a string - ;; DESC - ;; Replaces all occurances of 'target' in 'string' with 'repl'. - ;; /DESC - ;; /REFENTRY - (let loop ((str string) (pos 0)) - (if (>= pos (string-length str)) - str - (loop (repl-substring str target repl pos) - (if (repl-substring? str target pos) - (+ (string-length repl) pos) - (+ 1 pos)))))) - -(define (string-replace-list string replace-list) - ;; REFENTRY string-replace-list - ;; PURP Replace a list of target substrings in a string - ;; DESC - ;; Replaces, in 'string', all occurances of each target in - ;; 'replace-list' with its replacement. - ;; /DESC - ;; /REFENTRY - (let loop ((str string) (pos 0)) - (if (>= pos (string-length str)) - str - (loop (repl-substring-list str replace-list pos) - (if (repl-substring-list? str replace-list pos) - (+ (string-length - (repl-substring-list-repl str replace-list pos)) - pos) - (+ 1 pos)))))) - -;; ====================================================================== - -(define (ancestor-member nd gilist) - ;; REFENTRY ancestor-member - ;; PURP Returns the first ancestor in a list of GIs - ;; DESC - ;; Returns the first ancestor of 'nd' whose GI that is a member of 'gilist'. - ;; /DESC - ;; /REFENTRY - (if (node-list-empty? nd) - (empty-node-list) - (if (member (gi nd) gilist) - nd - (ancestor-member (parent nd) gilist)))) - -(define (has-ancestor-member? nd gilist) - ;; REFENTRY has-ancestor-member-p - ;; PURP Returns true if the specified node has one of a set of GIs as an ancestor - ;; DESC - ;; Returns '#t' if 'nd' has an ancestor whose GI is a member of 'gilist'. - ;; /DESC - ;; /REFENTRY - (not (node-list-empty? (ancestor-member nd gilist)))) - -;; ====================================================================== - -(define (descendant-of? ancestor child) - ;; REFENTRY descendant-of-p - ;; PURP Returns true if the child is some descendant of the specified node - ;; DESC - ;; Returns '#t' if 'child' is a descendant of 'ancestor'. - ;; /DESC - ;; /REFENTRY - (let loop ((c child)) - (if (node-list-empty? c) - #f - (if (node-list=? ancestor c) - #t - (loop (parent c)))))) - -;; ====================================================================== - -(define (expand-children nodelist gilist) - ;; REFENTRY expand-children - ;; PURP Expand selected nodes in a node list - ;; DESC - ;; Given a node-list, 'expand-children' replaces all of the members - ;; of the node-list whose GIs are members of 'gilist' with - ;; '(children)'. - ;; - ;; This function can be used to selectively - ;; flatten the hierarchy of a document. - ;; /DESC - ;; EXAMPLE - ;; Suppose that the node list is '(BOOKINFO PREFACE PART APPENDIX)'. - ;; '(expand-children nl ("PART"))' might return - ;; '(BOOKINFO PREFACE CHAPTER CHAPTER APPENDIX)'. - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((nl nodelist) (result (empty-node-list))) - (if (node-list-empty? nl) - result - (if (member (gi (node-list-first nl)) gilist) - (loop (node-list-rest nl) - (node-list result (children (node-list-first nl)))) - (loop (node-list-rest nl) - (node-list result (node-list-first nl))))))) - -;; ====================================================================== - -(define (directory-depth pathname) - ;; REFENTRY directory-depth - ;; PURP Count the directory depth of a path name - ;; DESC - ;; Returns the number of directory levels in 'pathname' - ;; - ;; The pathname must end in a filename. - ;; Further, this function assumes that directories in a pathname are - ;; separated by forward slashes ("/"). - ;; /DESC - ;; EXAMPLE - ;; "filename" => 0, - ;; "foo/filename" => 1, - ;; "foo/bar/filename => 2, - ;; "foo/bar/../filename => 1. - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((count 0) (pathlist (match-split pathname "/"))) - (if (null? pathlist) - (- count 1) ;; pathname should always end in a filename - (if (or (equal? (car pathlist) "/") (equal? (car pathlist) ".")) - (loop count (cdr pathlist)) - (if (equal? (car pathlist) "..") - (loop (- count 1) (cdr pathlist)) - (loop (+ count 1) (cdr pathlist))))))) - - -(define (file-extension filespec) - ;; REFENTRY file-extension - ;; PURP Return the extension of a filename - ;; DESC - ;; Returns the extension of a filename. The extension is the last - ;; "."-delimited part of the name. Returns "" if there is no period - ;; in the filename. - ;; /DESC - ;; /REFENTRY - (if (string? filespec) - (let* ((pathparts (match-split filespec "/")) - (filename (list-ref pathparts (- (length pathparts) 1))) - (fileparts (match-split filename ".")) - (extension (list-ref fileparts (- (length fileparts) 1)))) - (if (> (length fileparts) 1) - extension - "")) - "")) - -;; ====================================================================== - -(define (copy-string string num) - ;; REFENTRY copy-string - ;; PURP Return a string duplicated a specified number of times - ;; DESC - ;; Copies 'string' 'num' times and returns the result. - ;; /DESC - ;; EXAMPLE - ;; (copy-string "x" 3) returns "xxx" - ;; /EXAMPLE - ;; /REFENTRY - (if (<= num 0) - "" - (let loop ((str string) (count (- num 1))) - (if (<= count 0) - str - (loop (string-append str string) (- count 1)))))) - -;; ====================================================================== - -(define (node-list-filter-by-gi nodelist gilist) - ;; REFENTRY node-list-filter-by-gi - ;; PURP Returns selected elements from a node list - ;; DESC - ;; Returns a node list containing all the nodes from 'nodelist' whose - ;; GIs are members of 'gilist'. The order of nodes in the node list - ;; is preserved. - ;; /DESC - ;; /REFENTRY - (let loop ((result (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - result - (if (member (gi (node-list-first nl)) gilist) - (loop (node-list result (node-list-first nl)) - (node-list-rest nl)) - (loop result (node-list-rest nl)))))) - -;; ====================================================================== - -(define (node-list-filter-by-not-gi nodelist gilist) - ;; REFENTRY node-list-filter-by-not-gi - ;; PURP Returns selected elements from a node list - ;; DESC - ;; Returns a node list containing all the nodes from 'nodelist' whose - ;; GIs are NOT members of 'gilist'. The order of nodes in the node list - ;; is preserved. - ;; /DESC - ;; /REFENTRY - (let loop ((result (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - result - (if (member (gi (node-list-first nl)) gilist) - (loop result (node-list-rest nl)) - (loop (node-list result (node-list-first nl)) - (node-list-rest nl)))))) - -;; ====================================================================== - -(define (node-list-filter-out-pis nodelist) - ;; REFENTRY node-list-filter-out-pis - ;; PURP Returns the nodelist with all PIs removed - ;; DESC - ;; Returns a node list containing all the nodes from 'nodelist' that - ;; are not PIs. The order of nodes in the node list is preserved. - ;; /DESC - ;; /REFENTRY - (let loop ((result (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - result - (if (equal? (node-property 'class-name (node-list-first nl)) 'pi) - (loop result (node-list-rest nl)) - (loop (node-list result (node-list-first nl)) - (node-list-rest nl)))))) - -;; ====================================================================== - -(define (node-list-filter-elements nodelist) - ;; REFENTRY node-list-filter-elements - ;; PURP Returns the elements in 'nodelist' - ;; DESC - ;; Returns the elements in 'nodelist' - ;; /DESC - ;; /REFENTRY - (let loop ((result (empty-node-list)) (nl nodelist)) - (if (node-list-empty? nl) - result - (if (equal? (node-property 'class-name (node-list-first nl)) 'element) - (loop (node-list result (node-list-first nl)) - (node-list-rest nl)) - (loop result (node-list-rest nl)))))) - -;; ====================================================================== - -(define (component-descendant-node-list inputnd complist) - ;; REFENTRY component-descendant-node-list - ;; PURP Find all 'inputnd's within an ancestor element - ;; DESC - ;; Finds the first ancestor of 'inputnd' in 'complist' and then returns - ;; a node list of all the 'inputnd's within (that are descendants of) - ;; that ancestor. - ;; /DESC - ;; /REFENTRY - (let ((nd (ancestor-member inputnd complist))) - (select-elements (descendants nd) (gi inputnd)))) - -(define (component-child-number inputnd complist) - ;; REFENTRY component-child-number - ;; PURP Find child-number within a component - ;; DESC - ;; Finds the first ancestor of 'inputnd' in 'complist' and then counts - ;; all the elements of type 'inputnd' from that point on and returns - ;; the number of 'inputnd'. (This is like a 'recursive-child-number' - ;; starting at the first parent of 'inputnd' in 'complist'.) - ;; /DESC - ;; /REFENTRY - (let loop ((nl (component-descendant-node-list inputnd complist)) - (num 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? (node-list-first nl) inputnd) - num - (if (string=? (gi (node-list-first nl)) (gi inputnd)) - (loop (node-list-rest nl) (+ num 1)) - (loop (node-list-rest nl) num)))))) - -(define (component-list-descendant-node-list inputnd inputlist complist) - ;; REFENTRY component-descendant-list-node-list - ;; PURP Find all elements of a list of elements in a component - ;; DESC - ;; Finds the first ancestor of 'inputnd' in 'complist' and - ;; then returns a list of all the elements in 'inputlist' - ;; within that component. - ;; - ;; WARNING: this requires walking over *all* the descendants - ;; of the ancestor node. This may be *slow*. - ;; /DESC - ;; /REFENTRY - (let ((nd (ancestor-member inputnd complist))) - (let loop ((nl (descendants nd)) (result (empty-node-list))) - (if (node-list-empty? nl) - result - (if (member (gi (node-list-first nl)) inputlist) - (loop (node-list-rest nl) - (node-list result (node-list-first nl))) - (loop (node-list-rest nl) - result)))))) - -(define (component-list-child-number inputnd inputlist complist) - ;; REFENTRY component-list-child-number - ;; PURP Find child-number of a list of children within a component - ;; DESC - ;; Finds the first ancestor of 'inputnd' in 'complist' and - ;; then counts all the elements of the types in 'inputlist' - ;; from that point on and returns the number of 'inputnd'. - ;; - ;; If the node is not found, 0 is returned. - ;; - ;; WARNING: this requires walking over *all* the descendants - ;; of the ancestor node. This may be *slow*. - ;; /DESC - ;; /REFENTRY - (let loop ((nl (component-list-descendant-node-list - inputnd inputlist complist)) - (num 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? (node-list-first nl) inputnd) - num - (loop (node-list-rest nl) (+ num 1)))))) - -;; ====================================================================== - -(define (expt b n) - ;; REFENTRY expt - ;; PURP Exponentiation - ;; DESC - ;; Returns 'b' raised to the 'n'th power for integer 'n' >= 0. - ;; /DESC - ;; /REFENTRY - ;; - (if (<= n 0) - 1 - (* b (expt b (- n 1))))) - -;; ====================================================================== - -(define (list-member-find element elementlist) - ;; REFENTRY list-member-find - ;; PURP Returns the index of an element in a list - ;; DESC - ;; Returns the index of 'element' in the list 'elementlist'. The - ;; first element in a list has index 0. - ;; /DESC - ;; /REFENTRY - (let loop ((elemlist elementlist) (count 0)) - (if (null? elemlist) - -1 - (if (equal? element (car elemlist)) - count - (loop (cdr elemlist) (+ count 1)))))) - -;; ====================================================================== - -(define default-uppercase-list - ;; REFENTRY - ;; PURP The default list of uppercase characters - ;; DESC - ;; The default list of uppercase characters. The order and sequence - ;; of characters - ;; in this list must match the order and sequence in - ;; 'default-lowercase-list'. - ;; /DESC - ;; /REFENTRY - '(#\A #\B #\C #\D #\E #\F #\G #\H #\I #\J #\K #\L #\M - #\N #\O #\P #\Q #\R #\S #\T #\U #\V #\W #\X #\Y #\Z)) - -(define default-lowercase-list - ;; REFENTRY - ;; PURP The default list of lowercase characters - ;; DESC - ;; The default list of lowercase characters. The order and sequence - ;; of characters - ;; in this list must match the order and sequence in - ;; 'default-uppercase-list'. - ;; /DESC - ;; /REFENTRY - '(#\a #\b #\c #\d #\e #\f #\g #\h #\i #\j #\k #\l #\m - #\n #\o #\p #\q #\r #\s #\t #\u #\v #\w #\x #\y #\z)) - - -(define (case-fold-down-char ch #!optional (uc-list default-uppercase-list) - (lc-list default-lowercase-list)) - ;; REFENTRY - ;; PURP Return the lowercase form of a single character - ;; DESC - ;; Returns the lowercase form of 'ch' if 'ch' is a member of - ;; the uppercase list, otherwise return 'ch'. - ;; - ;; The implied mapping from uppercase to lowercase in the two lists is - ;; one-to-one. The first element of the uppercase list is the uppercase - ;; form of the first element of the lowercase list, and vice versa. - ;; ARGS - ;; ARG 'ch' - ;; The character to fold down. - ;; /ARG - ;; ARG 'uc-list' o - ;; The list of uppercase letters. The default is the list of English - ;; uppercase letters. - ;; /ARG - ;; ARG 'lc-list' o - ;; The list of lowercase letters. The default is the list of English - ;; lowercase letters. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (let ((idx (list-member-find ch uc-list))) - (if (>= idx 0) - (list-ref lc-list idx) - ch))) - -(define (case-fold-up-char ch #!optional (uc-list default-uppercase-list) - (lc-list default-lowercase-list)) - ;; REFENTRY - ;; PURP Return the uppercase form of a single character - ;; DESC - ;; Returns the uppercase form of 'ch' if 'ch' is a member of - ;; 'lowercase-list', otherwise return 'ch'. - ;; - ;; The implied mapping from uppercase to lowercase in the two lists is - ;; one-to-one. The first element of the uppercase list is the uppercase - ;; form of the first element of the lowercase list, and vice versa. - ;; ARGS - ;; ARG 'ch' - ;; The character to fold down. - ;; /ARG - ;; ARG 'uc-list' o - ;; The list of uppercase letters. The default is the list of English - ;; uppercase letters. - ;; /ARG - ;; ARG 'lc-list' o - ;; The list of lowercase letters. The default is the list of English - ;; lowercase letters. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; /REFENTRY - (let ((idx (list-member-find ch lc-list))) - (if (>= idx 0) - (list-ref uc-list idx) - ch))) - -(define (case-fold-down-charlist charlist) - ;; REFENTRY case-fold-down-charlist - ;; PURP Return the list of characters, shifted to lowercase - ;; DESC - ;; Shifts all of the characters in 'charlist' to lowercase with - ;; 'case-fold-down-char'. - ;; /DESC - ;; /REFENTRY - (if (null? charlist) - '() - (cons (case-fold-down-char (car charlist)) - (case-fold-down-charlist (cdr charlist))))) - -(define (case-fold-up-charlist charlist) - ;; REFENTRY case-fold-up-charlist - ;; PURP Return the list of characters, shifted to uppercase - ;; DESC - ;; Shifts all of the characters in 'charlist' to uppercase with - ;; 'case-fold-up-char'. - ;; /DESC - ;; /REFENTRY - (if (null? charlist) - '() - (cons (case-fold-up-char (car charlist)) - (case-fold-up-charlist (cdr charlist))))) - -(define (case-fold-down str) - ;; REFENTRY case-fold-down - ;; PURP Shift a string to lowercase - ;; DESC - ;; Returns 'str' in lowercase. - ;; /REFENTRY - (if (string? str) - (apply string (case-fold-down-charlist (string->list str))) - str)) - -(define (case-fold-up str) - ;; REFENTRY case-fold-up - ;; PURP Shift a string to uppercase - ;; DESC - ;; Returns 'str' in uppercase. - ;; /REFENTRY - (if (string? str) - (apply string (case-fold-up-charlist (string->list str))) - str)) - -;; ====================================================================== - -(define (find-first-char string skipchars findchars #!optional (pos 0)) - ;; REFENTRY find-first-char - ;; PURP Find the first occurance of a character in a string - ;; DESC - ;; Finds first character in 'string' that is in 'findchars', skipping all - ;; occurances of characters in 'skipchars'. Search begins at 'pos'. If - ;; no such characters are found, returns -1. - ;; - ;; If skipchars is empty, skip anything not in findchars - ;; If skipchars is #f, skip nothing - ;; If findchars is empty, the first character not in skipchars is matched - ;; It is an error if findchars is not a string. - ;; It is an error if findchars is empty and skipchars is not a non-empty - ;; string. - ;; /DESC - ;; /REFENTRY - (let ((skiplist (if (string? skipchars) - (string->list skipchars) - '())) - (findlist (string->list findchars))) - (if (and (null? skiplist) (null? findlist)) - ;; this is an error - -2 - (if (or (>= pos (string-length string)) (< pos 0)) - -1 - (let ((ch (string-ref string pos))) - (if (null? skiplist) - ;; try to find first - (if (member ch findlist) - pos - (if (string? skipchars) - (find-first-char string - skipchars findchars (+ 1 pos)) - -1)) - ;; try to skip first - (if (member ch skiplist) - (find-first-char string skipchars findchars (+ 1 pos)) - (if (or (member ch findlist) (null? findlist)) - pos - -1)))))))) - -;; ====================================================================== - -(define (parse-measurement measure) - ;; REFENTRY parse-measurement - ;; PURP Parse a string containing a measurement and return the magnitude and units - ;; DESC - ;; Parse a string containing a measurement, e.g., '"3pi"' or '"2.5in"', - ;; and return the magnitude and units: '(3 "pi")' or '(2.5 "in")'. - ;; - ;; Either element of the list may be '#f' if the string cannot reasonably - ;; be parsed as a measurement. Leading and trailing spaces are ignored. - ;; /DESC - ;; /REFENTRY - (let* ((magstart (find-first-char measure " " "0123456789.")) - (unitstart (find-first-char measure " 0123456789." "")) - (unitend (find-first-char measure "" " " unitstart)) - (magnitude (if (< magstart 0) - #f - (if (< unitstart 0) - (substring measure - magstart - (string-length measure)) - (substring measure magstart unitstart)))) - (unit (if (< unitstart 0) - #f - (if (< unitend 0) - (substring measure - unitstart - (string-length measure)) - (substring measure unitstart unitend))))) - (list magnitude unit))) - -(define unit-conversion-alist - ;; REFENTRY - ;; PURP Defines the base length of specific unit names - ;; DESC - ;; This list identifies the length of each unit. - ;; /DESC - ;; /REFENTRY - (list - '("default" 1pi) - '("mm" 1mm) - '("cm" 1cm) - '("in" 1in) - '("pi" 1pi) - '("pc" 1pi) - '("pt" 1pt) - '("px" 1px) - '("barleycorn" 2pi))) - -(define (measurement-to-length measure) - ;; REFENTRY measurement-to-length - ;; PURP Convert a measurement to a length - ;; DESC - ;; Given a string containing a measurement, return that measurement - ;; as a length. - ;; /DESC - ;; EXAMPLES - ;; '"2.5cm"' returns 2.5cm as a length. '"3.4barleycorn"' returns - ;; 6.8pi. - ;; /EXAMPLES - ;; /REFENTRY - (let* ((pm (car (parse-measurement measure))) - (pu (car (cdr (parse-measurement measure)))) - (magnitude (if pm pm "1")) - (units (if pu pu (if pm "pt" "default"))) - (unitconv (assoc units unit-conversion-alist)) - (factor (if unitconv (car (cdr unitconv)) 1pt))) - (* (string->number magnitude) factor))) - -;; ====================================================================== - -(define (dingbat usrname) - ;; REFENTRY dingbat - ;; PURP Map dingbat names to Unicode characters - ;; DESC - ;; Map a dingbat name to the appropriate Unicode character. - ;; /DESC - ;; /REFENTRY - ;; Print dingbats and other characters selected by name - (let ((name (case-fold-down usrname))) - (case name - ;; For backward compatibility - (("box") "\white-square;") - (("checkbox") "\white-square;") - ;; \check-mark prints the wrong symbol (in Jade 0.8 RTF backend) - (("check") "\heavy-check-mark;") - (("checkedbox") "\ballot-box-with-check;") - (("dash") "\em-dash;") - (("copyright") "\copyright-sign") - - ;; Straight out of Unicode - (("raquo") "\U-00BB;") - (("laquo") "\U-00AB;") - (("rsaquo") "\U-203A;") - (("lsaquo") "\U-2039;") - (("lsquo") "\U-2018;") - (("rsquo") "\U-2019;") - (("ldquo") "\U-201C;") - (("rdquo") "\U-201D;") - (("ldquor") "\U-201E;") - (("rdquor") "\U-201D;") - (("en-dash") "\en-dash;") - (("em-dash") "\em-dash;") - (("en-space") "\U-2002;") - (("em-space") "\U-2003;") - (("bullet") "\bullet;") - (("black-square") "\black-square;") - (("white-square") "\white-square;") - ;; \ballot-box name doesn't work (in Jade 0.8 RTF backend) - ;; and \white-square looks better than \U-2610; anyway - (("ballot-box") "\white-square;") - (("ballot-box-with-check") "\ballot-box-with-check;") - (("ballot-box-with-x") "\ballot-box-with-x;") - ;; \check-mark prints the wrong symbol (in Jade 0.8 RTF backend) - (("check-mark") "\heavy-check-mark;") - ;; \ballot-x prints out the wrong symbol (in Jade 0.8 RTF backend) - (("ballot-x") "\heavy-check-mark;") - (("copyright-sign") "\copyright-sign;") - (("registered-sign") "\registered-sign;") - (else "\bullet;")))) - -;; ====================================================================== - -(define (nth-node nl k) - ;; REFENTRY nth-node - ;; PURP Return a specific node in a node list (by numeric index) - ;; DESC - ;; Returns the 'k'th node in 'nl'. The first node in the node list - ;; has the index "1". - ;; /DESC - ;; /REFENTRY - (if (equal? k 1) - (node-list-first nl) - (nth-node (node-list-rest nl) (- k 1)))) - -;; ====================================================================== - -(define (constant-list value length) - ;; REFENTRY constant-list - ;; PURP Returns a list of the specified value - ;; DESC - ;; Return a list containing 'length' elements, each of 'value'. - ;; /DESC - ;; AUTHOR David Carlisle - ;; EXAMPLE - ;; '(constant-list 0 4)' returns '(0 0 0 0)' - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((count (abs length)) (result '())) - (if (equal? count 0) - result - (loop (- count 1) (cons value result))))) - -(define (list-head inputlist k) - ;; REFENTRY list-head - ;; PURP Return the head of a list - ;; DESC - ;; Returns the list that contains the first 'k' elements of 'inputlist'. - ;; /DESC - ;; EXAMPLE - ;; '(list-head (1 2 3 4) 2)' returns '(1 2)'. - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((l inputlist) (count k) (result '())) - (if (<= count 0) - result - (loop (cdr l) (- count 1) (append result (list (car l))))))) - -(define (list-put vlist ordinal value #!optional (span 1)) - ;; REFENTRY list-put - ;; PURP Replace a specific member of a list - ;; DESC - ;; Replaces the 'ordinal'th value of 'vlist' with 'value'. If 'span' > 1, - ;; replaces 'ordinal' to 'ordinal+span-1' values starting at 'ordinal'. - ;; /DESC - ;; EXAMPLE - ;; '(list-put (1 2 3 4 5) 2 0 2)' returns '(1 0 0 4 5)'. - ;; /EXAMPLE - ;; /REFENTRY - (let loop ((result vlist) (count span) (k ordinal)) - (if (equal? count 0) - result - (let ((head (list-head result (- k 1))) - (tail (list-tail result k))) - (loop (append head (list value) tail) (- count 1) (+ k 1)))))) - -(define (decrement-list-members vlist #!optional (decr 1) (floor 0)) - ;; REFENTRY decrement-list-members - ;; PURP Decrement each member of a list - ;; DESC - ;; Decrement all the values of a list by 'decr', not to fall below 'floor'. - ;; ARGS - ;; ARG 'vlist' - ;; The list of values. All the values of this list should be numeric. - ;; /ARG - ;; ARG 'decr' o - ;; The amount by which each element of the list should be decremented. - ;; The default is 1. - ;; /ARG - ;; ARG 'floor' o - ;; The value below which each member of the list is not allowed to fall. - ;; The default is 0. - ;; /ARG - ;; /ARGS - ;; /DESC - ;; AUTHOR David Carlisle - ;; EXAMPLE - ;; '(decrement-list-members (0 1 2 3 4 5))' => '(0 0 1 2 3 4)'. - ;; /EXAMPLE - ;; /REFENTRY - (map (lambda (a) - (if (<= a (+ decr floor)) - floor - (- a decr))) - vlist)) - -;; ====================================================================== - -(define (sgml-root-element #!optional (grove-node (current-node))) - ;; REFENTRY - ;; PURP Returns the node that is the root element of the current document - ;; DESC - ;; Returns the node that is the root element of the current document - ;; /DESC - ;; /REFENTRY - (node-property 'document-element (node-property 'grove-root grove-node))) - -(define (sgml-root-element? node) - ;; REFENTRY - ;; PURP Test if a node is the root element - ;; DESC - ;; Returns '#t' if node is the root element of the current document. - ;; /DESC - ;; /REFENTRY - (node-list=? node (sgml-root-element node))) - -;; ====================================================================== - -(define (length-string-number-part lenstr) - ;; REFENTRY length-string-number-part - ;; PURP Returns the numeric part of a length string - ;; DESC - ;; Given a length as a string, return the numeric part. - ;; /DESC - ;; EXAMPLE - ;; '"100pt"' returns '"100"'. '"30"' returns '"30"'. - ;; '"in"' returns '""'. - ;; /EXAMPLE - ;; /REFENTRY - (let ((digits '(#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9 #\.))) - (let loop ((chars (string->list lenstr)) - (number-part "")) - (if (or (null? chars) (not (member (car chars) digits))) - number-part - (loop (cdr chars) (string-append number-part - (string (car chars)))))))) - -(define (length-string-unit-part lenstr) - ;; REFENTRY length-string-unit-part - ;; PURP Returns the unit part of a length string - ;; DESC - ;; Given a length as a string, return the units part. - ;; /DESC - ;; EXAMPLE - ;; '"100pt"' returns '"pt"'. '"30"' returns '""'. - ;; '"in"' returns '"in"'. - ;; /EXAMPLE - ;; /REFENTRY - (let ((number-part (length-string-number-part lenstr)) - (strlen (string-length lenstr))) - (if (equal? (string-length number-part) strlen) - "" - (substring lenstr (string-length number-part) strlen)))) - -;; ====================================================================== - -(define (normalize str) - ;; REFENTRY normalize - ;; PURP Normalize the str according to the SGML declaration in effect - ;; DESC - ;; Performs SGML general name normalization on the string; - ;; used to compare attribute names and generic identifiers correctly - ;; according to the SGML declaration in effect; this is necessary - ;; since XML is case-sensitive but the reference concrete syntax and - ;; many SGML DTDs are not. - ;; /DESC - ;; AUTHOR Chris Maden - ;; /REFENTRY - (if (string? str) - (general-name-normalize str - (current-node)) - str)) - -;; ====================================================================== - -(define (node-list->string nodelist) - ;; REFENTRY node-2-string - ;; PURP Return a string representation of the node list - ;; DESC - ;; Builds a string representation of the node list and returns it. - ;; The representation is - ;; - ;; "gi(firstchildgi()secondchildgi(firstgrandchildgi())) secondgi()..." - ;; - ;; This is a debugging function, in case that wasn't obvious... - ;; /DESC - ;; /REFENTRY - (let loop ((nl nodelist) (res "")) - (if (node-list-empty? nl) - res - (loop (node-list-rest nl) - (string-append res - (if (gi (node-list-first nl)) - (string-append - (gi (node-list-first nl)) - "(" - (node-list->string - (children (node-list-first nl))) - ")") - "")))))) - -;; ====================================================================== - -(define (include-file fileref) - ;; REFENTRY include-file - ;; PURP Return the literal content of fileref - ;; DESC - ;; Opens and loads fileref with (read-entity); returns the content - ;; of fileref as a (literal). Trims the last trailing newline off - ;; the file so that "the right thing" happens in asis environments. - ;; /DESC - ;; /REFENTRY - (literal (include-characters fileref))) - -;; ====================================================================== - -(define (include-characters fileref) - ;; REFENTRY include-characters - ;; PURP Return the character content of fileref - ;; DESC - ;; Opens and loads fileref with (read-entity); returns the content - ;; of fileref as characters. Trims the last trailing newline off - ;; the file so that "the right thing" happens in asis environments. - ;; /DESC - ;; /REFENTRY - (let* ((newline #\U-000D) - (file-content (read-entity fileref)) - (file-length (string-length file-content)) - ;; If the last char is a newline, drop it, otherwise print it... - (content (if (equal? newline (string-ref file-content - (- file-length 1))) - (substring file-content 0 (- file-length 1)) - file-content))) - content)) - -;; ====================================================================== - -(define (url-encode-char ch) - ;; REFENTRY url-encode-char - ;; PURP Returns the url-encoded equivalent of a character - ;; DESC - ;; Converts 'ch' to a properly encoded URL character. - ;; /DESC - ;; /REFENTRY - (cond ((char=? ch #\space) "%20") ; space - ((char=? ch #\U-0026) "%26") ; ampersand - ((char=? ch #\?) "%3F") ; question - ((char=? ch #\{) "%7B") ; open curly - ((char=? ch #\}) "%7D") ; close curly - ((char=? ch #\|) "%7C") ; vertical bar - ((char=? ch #\\) "%5C") ; backslash - ((char=? ch #\/) "%2F") ; slash - ((char=? ch #\^) "%5E") ; caret - ((char=? ch #\~) "%7E") ; tilde - ((char=? ch #\[) "%5B") ; open square - ((char=? ch #\]) "%5D") ; close square - ((char=? ch #\`) "%60") ; backtick - ((char=? ch #\%) "%25") ; percent - ((char=? ch #\+) "%2B") ; plus - (else (string ch)))) - -(define (url-encode-string str) - ;; REFENTRY url-encode-string - ;; PURP Returns str with all special characters %-encoded - ;; DESC - ;; Converts 'str' to a properly encoded URL string. Returns str unchanged - ;; if it is not a string. - ;; /DESC - ;; /REFENTRY - (if (string? str) - (let loop ((charlist (string->list str)) (url "")) - (if (null? charlist) - url - (loop (cdr charlist) - (string-append url (url-encode-char (car charlist)))))) - str)) - -;; ====================================================================== - -(define (system-id-filename target) - ;; REFENTRY system-id-filename - ;; PURP Returns the filename part of the system id of target - ;; DESC - ;; The entity-generated-system-id of target seems to begin with a - ;; keyword, usually OSFILE on my system, in angle brackets. - ;; This function removes the leading OSFILE bit. - ;; /DESC - ;; /REFENTRY - (let* ((sysid (entity-generated-system-id target)) - (fnbits (split sysid '(#\>))) - (fntail (cdr fnbits))) - (join fntail "\U-0061;"))) - -;; ====================================================================== - -(define (trim-string str string-list) - ;; REFENTRY trim-string - ;; PURP Trims the tail off of a string - ;; DESC - ;; If 'str' ends with any of the strings in 'string-list', trim that - ;; string off and return the base string. - ;; E.g., '(trim-string "filename.sgm" '(".sgm" ".xml" ".sgml")) - ;; returns "filename". - ;; /DESC - ;; /REFENTRY - (let ((strlen (string-length str))) - (let loop ((sl string-list)) - (if (null? sl) - str - (if (equal? - (substring str (- strlen (string-length (car sl))) strlen) - (car sl)) - (substring str 0 (- strlen (string-length (car sl)))) - (loop (cdr sl))))))) - -;; ====================================================================== - -(define (string-index source target) - ;; REFENTRY string-index - ;; PURP Finds first occurance of 'target' in 'source' - ;; DESC - ;; Returns the position of the first occurance of 'target' in 'source', - ;; or -1 if it does not occur. - ;; /DESC - ;; /REFENTRY - (let loop ((str source) (pos 0)) - (if (< (string-length str) (string-length target)) - -1 - (if (string=? (substring str 0 (string-length target)) target) - pos - (loop (substring str 1 (string-length str)) - (+ pos 1)))))) - -;; ====================================================================== - -(define (parse-pi-attribute pivalues #!optional (skip #f)) - (let* ((equalpos (string-index pivalues "=")) - (name (substring pivalues 0 equalpos)) - (quotchar (substring pivalues (+ equalpos 1) (+ equalpos 2))) - (rest (substring pivalues - (+ equalpos 2) - (string-length pivalues))) - (quotpos (string-index rest quotchar)) - (value (substring rest 0 quotpos)) - (morevals (strip (substring rest - (+ quotpos 1) - (string-length rest))))) - (if skip - morevals - (list name value)))) - -(define (parse-skip-pi-attribute pivalues) - (parse-pi-attribute pivalues #t)) - -(define (parse-starttag-pi pi) - ;; REFENTRY parse-starttag-pi - ;; PURP Parses a structured PI and returns a list of values - ;; DESC - ;; It has become common practice to give PIs structured values. The - ;; resultis a PI that looks a lot like a start tag with attributes: - ;; - ;; <?pitarget name1="value1" name2='value2' name3="value '3'"> - ;; - ;; This function parses a PI with this form and returns a list. The - ;; list contains the pitarget and each of the name/value pairs: - ;; - ;; ("pitarget" "name1" "value1" "name2" "value2" "name3" "value '3'") - ;; /DESC - ;; /REFENTRY - (let* ((strippi (strip pi)) - (spacepos (string-index strippi " "))) - (if (< spacepos 0) - (list strippi) - (let* ((pitarget (substring strippi 0 spacepos)) - (pivalues (strip (substring strippi - (+ spacepos 1) - (string-length strippi))))) - (let loop ((values pivalues) (result (list pitarget))) - (if (string=? values "") - result - (loop (parse-skip-pi-attribute values) - (append result (parse-pi-attribute values))))))))) - -;; ====================================================================== - -(define (string->nodes s) - ;; Escape XML characters... - (let* ((achars (string-replace s "&" "&#38;#38;")) - (bchars (string-replace achars "<" "&#38;#60;")) - (cchars (string-replace bchars ">" "&#38;#62;"))) - (let ((doc (string-append "<literal><!DOCTYPE doc [ <!ELEMENT " - "doc - - (#PCDATA)> ]><doc>" cchars ";</doc>"))) - (children (node-property 'docelem (sgml-parse doc)))))) - -;; ====================================================================== - - - - diff --git a/docs/dsssl/docbook/print/ChangeLog b/docs/dsssl/docbook/print/ChangeLog deleted file mode 100755 index 1eadd29e..00000000 --- a/docs/dsssl/docbook/print/ChangeLog +++ /dev/null @@ -1,184 +0,0 @@ -2002-06-29 Norman Walsh - - * dbblock.dsl: Patch #473114: Footnote inherit font family - -2002-06-09 Norman Walsh - - * dbbibl.dsl, dbttlpg.dsl: Fix bug #502337: remove 'by' from copyright statements - -2002-05-22 Norman Walsh - - * dbblock.dsl: Support attribution on blockquote - - * dbinfo.dsl: Support chapterinfo, prefaceinfo, and appendixinfo - -2002-05-12 Norman Walsh - - * dbttlpg.dsl: Bug #494693: bad formalpara formatting on title pages - - * dbverb.dsl: Bugs #429663 and #474328 fixed (allow external linespecific content to be indented and numbered). Eight bit or unicode external linespecific content may be problematic though. - -2002-05-09 Norman Walsh - - * dblink.dsl: Allow xref to refnamediv - - * dblists.dsl: Bug #469318: fix variablelist indents - -2002-04-29 Norman Walsh - - * dbefsyn.dsl, dbverb.dsl: Format synopsis elements correctly outside of classsynopsis - -2002-03-21 Norman Walsh - - * dbautoc.dsl: Find titles in any context - -2002-03-20 Norman Walsh - - * dbefsyn.dsl: Support freestanding {method,field,constructor,destructor}synopsis - -2002-02-20 Norman Walsh - - * dbblock.dsl: Bug #429331: center figure title if image is centered - -2002-02-11 Norman Walsh - - * dbdivis.dsl, dbttlpg.dsl: Patch #502637: avoid blank page between title page recto/verso - - * dbsect.dsl: Add section-info function - -2001-12-01 Norman Walsh - - * dbindex.dsl: Patch #468644: Fix font sizes in index - - * dbprint.dsl: Bug #465133: Insufficient conditions on is-first-para - - * dbttlpg.dsl: Patch #470589: Abstracts indents should be relative - - * dbttlpg.dsl: Bug #465136: Verso authorgroup broken for editors--still broken but a little better - -2001-11-30 Norman Walsh - - * dblink.dsl: Patch #473113: No footnote ulink when text matches - - * dbsect.dsl: Patch #473116: Section levels - - * dbttlpg.dsl: Patch #473115: Heading levels for parts - - * docbook.dsl: New file. - - * docbook.dsl: Fix typo that causes the print stylesheet to break. - -2001-11-27 Norman Walsh - - * dbgloss.dsl, dbindex.dsl: Attempt to handle glossary and index in article correctly - -2001-11-14 Norman Walsh - - * docbook.dsl: branches: 1.5.2; - Added Basque, Nynorsk, Ukranian, and Xhosa - -2001-11-03 Norman Walsh - - * dbinline.dsl: Support pubwork=article on citetitle - -2001-10-13 Jirka Kosek - - * dbinline.dsl: Fixed bug #470840 - added support for methodname. - -2001-10-01 Norman Walsh - - * dbverb.dsl: Support linenumbering attribute on verbatim environments - -2001-09-29 Norman Walsh - - * dbadmon.dsl: Bug #449775: remove broken keep-with-next properties - - * dbcallou.dsl: Bug #449494: make callouts work even if they appear on the last line of a verbatim environment - -2001-09-23 Norman Walsh - - * dblink.dsl: Patch #461352, fix bug with ulink-footnotes and bop-footnotes simultaneously - -2001-08-30 Norman Walsh - - * db31.dsl: Fix XML/SGML discrepancy wrt normalization of notation names; move some common stuff into dbcommon - -2001-08-06 Norman Walsh - - * dbadmon.dsl: Patches #441806, keep with next in admonitions - - * dbinline.dsl: Support 'bold' and 'strong' roles on emphasis in the expected way, added %{emphasis,phrase}-propagates-style% parameters - - * docbook.dsl: Patches #439975, support OpenJade two-sided characteristics - -2001-08-01 Norman Walsh - - * dbttlpg.dsl: Don't suppress keywordset if it's put on the title page - -2001-07-07 Norman Walsh - - * dbdivis.dsl: Don't restart page numbering on ToC pages - - * notoc.dsl: Bug #439065, use correct parameters - -2001-07-05 Norman Walsh - - * dbparam.dsl: Patch #420012, Add colon to content-title-end-punct - -2001-07-04 - - * db31.dsl: Bug #426745, don't make first para of question and answer bold - - * dbblock.dsl: Bug #436220, fix table footnotes when bop-footnotes is #t - - * dbgloss.dsl, dblists.dsl, dbrfntry.dsl, dbtitle.dsl: - Bug #420015: set heading-level appropriately in glossary - - * dblists.dsl: Bug #418633, attempt to fix indentation in variablelists - - * docbook.dsl: Added Afrikaans and Turkish - -2001-05-11 Norman Walsh - - * docbook.dsl: Support Serbian and Traditional Chinese - -2001-05-03 Jirka Kosek - - * dbinline.dsl: Added support for class="xmlpi" and class="emptytag" in . - Element and attribute names displayed in monospace, same way as in HTML by XSL. - -2001-04-27 Norman Walsh - - * db31.dsl: Handle display? property correctly on imagedata graphics - -2001-04-24 Norman Walsh - - * db31.dsl: Bug #418474: only output a space after the qanda label if the label isn't empty - -2001-04-21 Norman Walsh - - * dbautoc.dsl: Make top-level entries in the TOC 'keep-with-next' - -2001-04-16 Norman Walsh - - * dbttlpg.dsl: Bug #414681: add heading-level to set and book titles - -2001-04-15 Norman Walsh - - * dbblock.dsl: Force upright posture and default quadding in footnote text - - * dblists.dsl: Format variablelist title in the table when a variablelist is formatted with a table - -2001-04-04 Norman Walsh - - * Makefile: New file. - -2001-04-03 Norman Walsh - - * db31.dsl: Fix bug 412548, allow WMF in media objects - -2001-04-02 Norman Walsh - - * .cvsignore, catalog, db31.dsl, dbadmon.dsl, dbautoc.dsl, dbbibl.dsl, dbblock.dsl, dbcallou.dsl, dbcompon.dsl, dbdivis.dsl, dbefsyn.dsl, dbgloss.dsl, dbgraph.dsl, dbindex.dsl, dbinfo.dsl, dbinline.dsl, dblink.dsl, dblists.dsl, dblot.dsl, dbmath.dsl, dbmsgset.dsl, dbparam.dsl, dbprint.dsl, dbprocdr.dsl, dbrfntry.dsl, dbsect.dsl, dbsynop.dsl, dbtable.dsl, dbtitle.dsl, dbttlpg.dsl, dbverb.dsl, docbook.dsl, notoc.dsl, plain.dsl, version.dsl: - Initial checkins - diff --git a/docs/dsssl/docbook/print/XREF b/docs/dsssl/docbook/print/XREF deleted file mode 100755 index 7c2c6633..00000000 --- a/docs/dsssl/docbook/print/XREF +++ /dev/null @@ -1,7912 +0,0 @@ -Symbol Defined In Used In -================== ============================= ============================= -$admon-graphic$ print/dbparam.dsl print/dbadmon.dsl - -$admon-graphic-width$ - print/dbparam.dsl print/dbadmon.dsl - -$admonition$ print/dbadmon.dsl print/dbadmon.dsl - -$admonpara$ print/dbadmon.dsl print/dbadmon.dsl - -$block-container$ print/dbprint.dsl print/dbblock.dsl - print/dbgloss.dsl - print/dbrfntry.dsl - print/dbbibl.dsl - -$bold-italic-seq$ print/dbprint.dsl - -$bold-mono-seq$ print/dbprint.dsl print/dbinline.dsl - -$bold-seq$ print/dbprint.dsl print/dbinline.dsl - -$book-revhistory$ print/dbbibl.dsl print/dbblock.dsl - print/dbinfo.dsl - -$callout-area-format$ - print/dbcallou.dsl print/dbcallou.dsl - -$callout-area-match$ - print/dbcallou.dsl print/dbcallou.dsl - -$callout-bug$ print/dbcallou.dsl print/dbsynop.dsl - print/dbcallou.dsl - -$callout-linespecific-content$ - print/dbcallou.dsl print/dbcallou.dsl - -$callout-mark$ print/dbcallou.dsl print/dbcallou.dsl - print/dblink.dsl - print/dblists.dsl - -$callout-verbatim-display$ - print/dbcallou.dsl print/dbcallou.dsl - -$cals-colsep-default$ - print/dbtable.dsl print/dbtable.dsl - -$cals-frame-default$ - print/dbtable.dsl print/dbtable.dsl - -$cals-rowsep-default$ - print/dbtable.dsl print/dbtable.dsl - -$cals-valign-default$ - print/dbtable.dsl print/dbtable.dsl - -$center-footer$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$center-header$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$charseq$ print/dbprint.dsl print/dbblock.dsl - print/dbttlpg.dsl - print/dblink.dsl - print/dbrfntry.dsl - print/dbbibl.dsl - print/dbinline.dsl - -$component$ print/dbcompon.dsl print/db31.dsl - print/dbindex.dsl - print/dbgloss.dsl - print/dbcompon.dsl - -$component-title$ print/dbcompon.dsl print/dbindex.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$formal-object$ print/dbblock.dsl print/dbblock.dsl - print/dbmath.dsl - print/dbprocdr.dsl - -$format-indent$ print/dbverb.dsl print/dbverb.dsl - -$format-linenumber$ - print/dbverb.dsl print/dbverb.dsl - -$generate-book-lot-list$ - print/dbparam.dsl print/dbdivis.dsl - -$genhead-para$ print/dbmsgset.dsl print/dbmsgset.dsl - -$graphic$ print/dbgraph.dsl print/dbgraph.dsl - -$graphical-admonition$ - print/dbadmon.dsl print/dbadmon.dsl - -$guilabel-seq$ print/dbprint.dsl print/dbinline.dsl - -$img$ print/dbgraph.dsl print/db31.dsl - print/dbmath.dsl - print/dbgraph.dsl - -$indent-para-container$ - print/dbprint.dsl print/dbmsgset.dsl - print/dbgloss.dsl - -$informal-object$ print/dbblock.dsl print/db31.dsl - print/dbmsgset.dsl - print/dbsynop.dsl - print/dbblock.dsl - print/dbmath.dsl - print/dbcallou.dsl - print/dbprocdr.dsl - -$inline-object$ print/dbblock.dsl print/dbmath.dsl - -$italic-mono-seq$ print/dbprint.dsl print/dbinline.dsl - -$italic-seq$ print/dbprint.dsl print/dblink.dsl - print/dbgloss.dsl - print/dbinline.dsl - -$lang$ common/dbl10n.dsl print/dbprint.dsl - common/dbl10n.dsl - -$left-footer$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$left-header$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$line-start$ print/dbverb.dsl print/dbverb.dsl - print/dbcallou.dsl - -$linenumber-space$ print/dbparam.dsl print/dbverb.dsl - -$linespecific-display$ - print/dbverb.dsl print/dbverb.dsl - print/dbttlpg.dsl - print/dbbibl.dsl - -$linespecific-line-by-line$ - print/dbverb.dsl print/dbverb.dsl - -$list$ print/dblists.dsl print/dblists.dsl - -$look-for-callout$ print/dbcallou.dsl print/dbcallou.dsl - -$lot-entry$ print/dbautoc.dsl print/dbautoc.dsl - -$lot-title$ common/dbl10n.dsl print/dbautoc.dsl - common/dbl10n.dsl - -$lot-title-af$ common/dbl1af.dsl common/dbl10n.dsl - -$lot-title-ca$ common/dbl1ca.dsl common/dbl10n.dsl - -$lot-title-cs$ common/dbl1cs.dsl common/dbl10n.dsl - -$lot-title-da$ common/dbl1da.dsl common/dbl10n.dsl - -$lot-title-de$ common/dbl1de.dsl common/dbl10n.dsl - -$lot-title-el$ common/dbl1el.dsl common/dbl10n.dsl - -$lot-title-en$ common/dbl1en.dsl common/dbl10n.dsl - -$lot-title-es$ common/dbl1es.dsl common/dbl10n.dsl - -$lot-title-et$ common/dbl1et.dsl common/dbl10n.dsl - -$lot-title-eu$ common/dbl1eu.dsl common/dbl10n.dsl - -$lot-title-fi$ common/dbl1fi.dsl common/dbl10n.dsl - -$lot-title-fr$ common/dbl1fr.dsl common/dbl10n.dsl - -$lot-title-hu$ common/dbl1hu.dsl common/dbl10n.dsl - -$lot-title-id$ common/dbl1id.dsl common/dbl10n.dsl - -$lot-title-it$ common/dbl1it.dsl common/dbl10n.dsl - -$lot-title-ja$ common/dbl1ja.dsl common/dbl10n.dsl - -$lot-title-ko$ common/dbl1ko.dsl common/dbl10n.dsl - -$lot-title-nl$ common/dbl1nl.dsl common/dbl10n.dsl - -$lot-title-nn$ common/dbl1nn.dsl common/dbl10n.dsl - -$lot-title-no$ common/dbl1no.dsl common/dbl10n.dsl - -$lot-title-pl$ common/dbl1pl.dsl common/dbl10n.dsl - -$lot-title-pt$ common/dbl1pt.dsl common/dbl10n.dsl - -$lot-title-ptbr$ common/dbl1ptbr.dsl common/dbl10n.dsl - -$lot-title-ro$ common/dbl1ro.dsl common/dbl10n.dsl - -$lot-title-ru$ common/dbl1ru.dsl common/dbl10n.dsl - -$lot-title-sk$ common/dbl1sk.dsl common/dbl10n.dsl - -$lot-title-sl$ common/dbl1sl.dsl common/dbl10n.dsl - -$lot-title-sr$ common/dbl1sr.dsl common/dbl10n.dsl - -$lot-title-sv$ common/dbl1sv.dsl common/dbl10n.dsl - -$lot-title-tr$ common/dbl1tr.dsl common/dbl10n.dsl - -$lot-title-uk$ common/dbl1uk.dsl common/dbl10n.dsl - -$lot-title-xh$ common/dbl1xh.dsl common/dbl10n.dsl - -$lot-title-zhcn$ common/dbl1zhcn.dsl common/dbl10n.dsl - -$lot-title-zhtw$ common/dbl1zhtw.dsl common/dbl10n.dsl - -$lot-title-zhhk$ common/dbl1zhhk.dsl common/dbl10n.dsl - -$lowtitle$ print/dbtitle.dsl print/dbgloss.dsl - print/dbtitle.dsl - print/dblists.dsl - -$lowtitlewithsosofo$ - print/dbtitle.dsl print/dbrfntry.dsl - print/dbtitle.dsl - -$mediaobject$ common/dbcommon.dsl print/db31.dsl - -$mono-seq$ print/dbprint.dsl print/db31.dsl - print/dbinline.dsl - -$object-titles-after$ - print/dbparam.dsl print/dbblock.dsl - -$page-number-format$ - print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$page-number-header-footer$ - print/dbcompon.dsl print/dbcompon.dsl - -$para-container$ print/dbprint.dsl print/dbblock.dsl - print/dbttlpg.dsl - -$paragraph$ print/dbprint.dsl print/dblot.dsl - print/dbblock.dsl - print/dblists.dsl - -$peril$ print/dbadmon.dsl print/dbadmon.dsl - -$proc-hierarch-number$ - common/dbcommon.dsl common/dbcommon.dsl - -$proc-hierarch-number-format$ - common/dbcommon.dsl common/dbcommon.dsl - -$proc-section-info$ - print/dbsect.dsl print/dbsect.dsl - -$proc-step-depth$ common/dbcommon.dsl common/dbcommon.dsl - -$proc-step-number$ common/dbcommon.dsl print/dbprocdr.dsl - -$proc-step-xref-number$ - common/dbcommon.dsl common/dbcommon.dsl - -$process-cell$ print/dbtable.dsl print/dbtable.dsl - -$process-colspec$ print/dbtable.dsl print/dbtable.dsl - -$process-colspecs$ print/dbtable.dsl print/dbtable.dsl - -$process-empty-cell$ - print/dbtable.dsl print/dbtable.dsl - -$process-partintro$ - print/dbdivis.dsl print/dbttlpg.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - -$process-row$ print/dbtable.dsl print/dbtable.dsl - -$process-table-body$ - print/dbtable.dsl print/dbtable.dsl - -$refentry-header-footer-element$ - print/dbcompon.dsl print/dbcompon.dsl - -$refentry-title$ print/dbrfntry.dsl print/dbrfntry.dsl - -$refsect1-info$ print/dbsect.dsl print/dbsect.dsl - -$refsect2-info$ print/dbsect.dsl print/dbsect.dsl - -$refsect3-info$ print/dbsect.dsl print/dbsect.dsl - -$right-footer$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$right-header$ print/dbcompon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -$runinhead$ print/dbtitle.dsl print/dbmsgset.dsl - print/dbblock.dsl - print/dbttlpg.dsl - -$score-seq$ print/dbprint.dsl print/dbinline.dsl - -$sect1-info$ print/dbsect.dsl print/dbsect.dsl - -$sect2-info$ print/dbsect.dsl print/dbsect.dsl - -$sect3-info$ print/dbsect.dsl print/dbsect.dsl - -$sect4-info$ print/dbsect.dsl print/dbsect.dsl - -$sect5-info$ print/dbsect.dsl print/dbsect.dsl - -$section$ print/dbsect.dsl print/db31.dsl - print/dbindex.dsl - print/dbgloss.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - -$section-info$ print/dbsect.dsl print/dbsect.dsl - -$section-title$ print/dbsect.dsl print/dbsect.dsl - print/dbbibl.dsl - -$semiformal-object$ - print/dbblock.dsl print/dbttlpg.dsl - print/dbinfo.dsl - print/dbbibl.dsl - -$ss-seq$ print/dbinline.dsl print/dbblock.dsl - print/dblink.dsl - print/dbinline.dsl - -$table-element-list$ - print/dbparam.dsl print/dbblock.dsl - print/dbtable.dsl - -$title-header-footer$ - print/dbcompon.dsl print/dbcompon.dsl - -$title-header-footer-element$ - print/dbcompon.dsl print/dbcompon.dsl - -$toc-entry$ print/dbautoc.dsl print/dbautoc.dsl - -$verbatim-display$ print/dbverb.dsl print/dbverb.dsl - print/dbsynop.dsl - print/dbefsyn.dsl - -%admon-font-family% - print/dbparam.dsl print/dbadmon.dsl - -%admon-graphics% print/dbparam.dsl print/dbadmon.dsl - -%admon-graphics-path% - print/dbparam.dsl print/dbparam.dsl - -%always-format-variablelist-as-table% - print/dbparam.dsl print/dblists.dsl - -%arg-or-sep% common/dbcommon.dsl print/dbsynop.dsl - -%article-page-number-restart% - print/dbparam.dsl print/dbcompon.dsl - -%article-subtitle-quadding% - print/dbparam.dsl print/dbttlpg.dsl - -%article-title-quadding% - print/dbparam.dsl print/dbttlpg.dsl - -%author-othername-in-middle% - print/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%bf-size% print/dbparam.dsl print/dbsynop.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbttlpg.dsl - print/dbprint.dsl - print/dblink.dsl - print/dblists.dsl - print/dbparam.dsl - -%biblend% print/dbbibl.dsl print/dbbibl.dsl - -%biblioentry-in-entry-order% - print/dbbibl.dsl print/dbbibl.dsl - -%biblsep% print/dbbibl.dsl print/dbbibl.dsl - -%block-sep% print/dbparam.dsl print/db31.dsl - print/dbverb.dsl - print/dbsynop.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbmath.dsl - print/dbcallou.dsl - print/dbttlpg.dsl - print/dbprint.dsl - print/dbgraph.dsl - print/dbsect.dsl - print/dbbibl.dsl - print/dblists.dsl - -%block-start-indent% - print/dbparam.dsl print/dbverb.dsl - print/dbsynop.dsl - print/dbblock.dsl - print/dbmath.dsl - print/dblists.dsl - -%body-font-family% print/dbparam.dsl print/dbblock.dsl - print/dbttlpg.dsl - print/dbprint.dsl - print/dblink.dsl - print/dbrfntry.dsl - print/dbtable.dsl - print/dbinline.dsl - -%body-start-indent% - print/dbparam.dsl print/db31.dsl - print/dbindex.dsl - print/dbblock.dsl - print/dbprint.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbtable.dsl - print/dbbibl.dsl - print/dbparam.dsl - -%body-width% print/dbparam.dsl print/dbttlpg.dsl - print/dbbibl.dsl - -%bottom-margin% print/dbparam.dsl print/dbparam.dsl - -%callout-default-col% - print/dbparam.dsl print/dbcallou.dsl - -%callout-fancy-bug% - print/dbparam.dsl print/dbcallou.dsl - -%cals-cell-after-column-margin% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-cell-after-row-margin% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-cell-before-column-margin% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-cell-before-row-margin% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-cell-content-end-indent% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-cell-content-start-indent% - print/dbtable.dsl print/dbblock.dsl - print/dbtable.dsl - -%cals-display-align% - print/dbtable.dsl print/dbtable.dsl - -%cals-pgwide-start-indent% - print/dbtable.dsl print/dbblock.dsl - -%chap-app-running-head-autolabel% - print/dbparam.dsl print/dbcompon.dsl - -%chap-app-running-heads% - print/dbparam.dsl print/dbcompon.dsl - -%chapter-autolabel% - print/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - print/dbcompon.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%cmdsynopsis-hanging-indent% - common/dbcommon.dsl - -%component-subtitle-quadding% - print/dbparam.dsl print/dbcompon.dsl - -%component-title-quadding% - print/dbparam.dsl print/dbautoc.dsl - print/dbcompon.dsl - -%content-title-end-punct% - print/dbparam.dsl print/dbtitle.dsl - -%default-classsynopsis-language% - print/dbefsyn.dsl print/dbefsyn.dsl - -%default-language% common/dbl10n.dsl common/dbl10n.dsl - -%default-quadding% print/dbparam.dsl print/dbindex.dsl - print/dbblock.dsl - print/dbprint.dsl - print/dbdivis.dsl - print/dblink.dsl - print/dbgloss.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -%default-simplesect-level% - print/dbparam.dsl common/dbcommon.dsl - -%default-title-end-punct% - print/dbparam.dsl print/dbtitle.dsl - -%default-variablelist-termlength% - print/dbparam.dsl print/dblists.dsl - -%division-subtitle-quadding% - print/dbparam.dsl print/dbttlpg.dsl - -%division-title-quadding% - print/dbparam.dsl print/dbttlpg.dsl - -%docbook-common-table-version% - common/dbtable.dsl - -%docbook-common-version% - common/dbcommon.dsl - -%equation-autolabel% - print/dbmath.dsl print/dbmath.dsl - -%equation-rules% print/dbparam.dsl - -%example-rules% print/dbparam.dsl print/dbblock.dsl - -%figure-rules% print/dbparam.dsl print/dbblock.dsl - -%footer-margin% print/dbparam.dsl print/dbparam.dsl - -%footnote-endnote-break% - print/dbblock.dsl print/dbblock.dsl - -%footnote-field-width% - print/dbblock.dsl print/dbblock.dsl - print/dblink.dsl - -%footnote-number-restarts% - print/dbblock.dsl print/dbblock.dsl - -%footnote-size-factor% - print/dbparam.dsl print/dbblock.dsl - print/dblink.dsl - -%footnote-ulinks% print/dbparam.dsl print/dbblock.dsl - print/dblink.dsl - -%funcsynopsis-decoration% - print/dbparam.dsl print/dbsynop.dsl - -%funcsynopsis-style% - print/dbparam.dsl print/dbsynop.dsl - -%generate-af-toc-in-front% - common/dbl1af.dsl common/dbl10n.dsl - -%generate-article-titlepage% - print/dbparam.dsl print/dbcompon.dsl - -%generate-article-titlepage-on-separate-page% - print/dbparam.dsl print/dbcompon.dsl - -%generate-article-toc% - print/dbparam.dsl print/dbttlpg.dsl - print/dbcompon.dsl - -%generate-article-toc-on-titlepage% - print/dbparam.dsl print/dbttlpg.dsl - print/dbcompon.dsl - -%generate-book-titlepage% - print/dbparam.dsl print/dbdivis.dsl - -%generate-book-toc% - print/dbparam.dsl print/dbdivis.dsl - -%generate-ca-toc-in-front% - common/dbl1ca.dsl common/dbl10n.dsl - -%generate-cs-toc-in-front% - common/dbl1cs.dsl common/dbl10n.dsl - -%generate-da-toc-in-front% - common/dbl1da.dsl common/dbl10n.dsl - -%generate-de-toc-in-front% - common/dbl1de.dsl common/dbl10n.dsl - -%generate-el-toc-in-front% - common/dbl1el.dsl common/dbl10n.dsl - -%generate-en-toc-in-front% - common/dbl1en.dsl common/dbl10n.dsl - -%generate-es-toc-in-front% - common/dbl1es.dsl common/dbl10n.dsl - -%generate-et-toc-in-front% - common/dbl1et.dsl common/dbl10n.dsl - -%generate-eu-toc-in-front% - common/dbl1eu.dsl common/dbl10n.dsl - -%generate-fi-toc-in-front% - common/dbl1fi.dsl common/dbl10n.dsl - -%generate-fr-toc-in-front% - common/dbl1fr.dsl common/dbl10n.dsl - -%generate-heading-level% - print/dbparam.dsl print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbbibl.dsl - -%generate-hu-toc-in-front% - common/dbl1hu.dsl common/dbl10n.dsl - -%generate-id-toc-in-front% - common/dbl1id.dsl common/dbl10n.dsl - -%generate-it-toc-in-front% - common/dbl1it.dsl common/dbl10n.dsl - -%generate-ja-toc-in-front% - common/dbl1ja.dsl common/dbl10n.dsl - -%generate-ko-toc-in-front% - common/dbl1ko.dsl common/dbl10n.dsl - -%generate-nl-toc-in-front% - common/dbl1nl.dsl common/dbl10n.dsl - -%generate-nn-toc-in-front% - common/dbl1nn.dsl common/dbl10n.dsl - -%generate-no-toc-in-front% - common/dbl1no.dsl common/dbl10n.dsl - -%generate-part-titlepage% - print/dbparam.dsl print/dbdivis.dsl - -%generate-part-toc% - print/dbparam.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -%generate-part-toc-on-titlepage% - print/dbparam.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -%generate-partintro-on-titlepage% - print/dbparam.dsl print/dbttlpg.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - -%generate-pl-toc-in-front% - common/dbl1pl.dsl common/dbl10n.dsl - -%generate-pt-toc-in-front% - common/dbl1pt.dsl common/dbl10n.dsl - -%generate-ptbr-toc-in-front% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%generate-reference-titlepage% - print/dbparam.dsl print/dbrfntry.dsl - -%generate-reference-toc% - print/dbparam.dsl print/dbttlpg.dsl - print/dbrfntry.dsl - -%generate-reference-toc-on-titlepage% - print/dbparam.dsl print/dbttlpg.dsl - print/dbrfntry.dsl - -%generate-ro-toc-in-front% - common/dbl1ro.dsl common/dbl10n.dsl - -%generate-ru-toc-in-front% - common/dbl1ru.dsl common/dbl10n.dsl - -%generate-set-titlepage% - print/dbparam.dsl print/dbdivis.dsl - -%generate-set-toc% print/dbparam.dsl print/dbdivis.dsl - -%generate-sk-toc-in-front% - common/dbl1sk.dsl common/dbl10n.dsl - -%generate-sl-toc-in-front% - common/dbl1sl.dsl common/dbl10n.dsl - -%generate-sr-toc-in-front% - common/dbl1sr.dsl common/dbl10n.dsl - -%generate-sv-toc-in-front% - common/dbl1sv.dsl common/dbl10n.dsl - -%generate-tr-toc-in-front% - common/dbl1tr.dsl common/dbl10n.dsl - -%generate-uk-toc-in-front% - common/dbl1uk.dsl common/dbl10n.dsl - -%generate-xh-toc-in-front% - common/dbl1xh.dsl common/dbl10n.dsl - -%generate-zhcn-toc-in-front% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%generate-zhtw-toc-in-front% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%generate-zhhk-toc-in-front% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-af-and% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-bibl-pages% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-by% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-edited-by% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-end-nested-quote% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-end-quote% - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -%gentext-af-endnotes% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-index-see% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-index-seealso% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-lastlistcomma% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-listcomma% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-page% common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-revised-by% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-start-nested-quote% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-af-start-quote% - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -%gentext-af-table-endnotes% - common/dbl1af.dsl common/dbl10n.dsl - -%gentext-ca-and% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-bibl-pages% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-by% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-edited-by% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-end-nested-quote% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-end-quote% - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -%gentext-ca-endnotes% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-index-see% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-index-seealso% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-lastlistcomma% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-listcomma% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-page% common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-revised-by% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-start-nested-quote% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-ca-start-quote% - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -%gentext-ca-table-endnotes% - common/dbl1ca.dsl common/dbl10n.dsl - -%gentext-cs-and% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-bibl-pages% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-by% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-edited-by% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-end-nested-quote% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-end-quote% - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -%gentext-cs-endnotes% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-index-see% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-index-seealso% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-lastlistcomma% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-listcomma% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-page% common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-revised-by% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-start-nested-quote% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-cs-start-quote% - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -%gentext-cs-table-endnotes% - common/dbl1cs.dsl common/dbl10n.dsl - -%gentext-da-and% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-bibl-pages% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-by% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-edited-by% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-end-nested-quote% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-end-quote% - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -%gentext-da-endnotes% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-index-see% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-index-seealso% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-lastlistcomma% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-listcomma% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-page% common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-revised-by% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-start-nested-quote% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-da-start-quote% - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -%gentext-da-table-endnotes% - common/dbl1da.dsl common/dbl10n.dsl - -%gentext-de-and% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-bibl-pages% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-by% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-edited-by% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-end-nested-quote% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-end-quote% - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -%gentext-de-endnotes% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-index-see% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-index-seealso% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-lastlistcomma% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-listcomma% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-page% common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-revised-by% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-start-nested-quote% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-de-start-quote% - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -%gentext-de-table-endnotes% - common/dbl1de.dsl common/dbl10n.dsl - -%gentext-el-and% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-bibl-pages% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-by% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-edited-by% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-end-nested-quote% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-end-quote% - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -%gentext-el-endnotes% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-index-see% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-index-seealso% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-lastlistcomma% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-listcomma% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-page% common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-revised-by% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-start-nested-quote% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-el-start-quote% - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -%gentext-el-table-endnotes% - common/dbl1el.dsl common/dbl10n.dsl - -%gentext-en-and% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-bibl-pages% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-by% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-edited-by% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-end-nested-quote% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-end-quote% - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -%gentext-en-endnotes% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-index-see% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-index-seealso% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-lastlistcomma% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-listcomma% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-page% common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-revised-by% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-start-nested-quote% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-en-start-quote% - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -%gentext-en-table-endnotes% - common/dbl1en.dsl common/dbl10n.dsl - -%gentext-es-and% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-bibl-pages% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-by% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-edited-by% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-end-nested-quote% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-end-quote% - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -%gentext-es-endnotes% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-index-see% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-index-seealso% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-lastlistcomma% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-listcomma% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-page% common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-revised-by% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-start-nested-quote% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-es-start-quote% - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -%gentext-es-table-endnotes% - common/dbl1es.dsl common/dbl10n.dsl - -%gentext-et-and% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-bibl-pages% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-by% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-edited-by% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-end-nested-quote% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-end-quote% - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -%gentext-et-endnotes% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-index-see% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-index-seealso% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-lastlistcomma% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-listcomma% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-page% common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-revised-by% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-start-nested-quote% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-et-start-quote% - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -%gentext-et-table-endnotes% - common/dbl1et.dsl common/dbl10n.dsl - -%gentext-eu-and% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-bibl-pages% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-by% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-edited-by% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-end-nested-quote% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-end-quote% - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -%gentext-eu-endnotes% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-index-see% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-index-seealso% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-lastlistcomma% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-listcomma% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-page% common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-revised-by% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-start-nested-quote% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-eu-start-quote% - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -%gentext-eu-table-endnotes% - common/dbl1eu.dsl common/dbl10n.dsl - -%gentext-fi-and% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-bibl-pages% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-by% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-edited-by% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-end-nested-quote% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-end-quote% - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -%gentext-fi-endnotes% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-index-see% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-index-seealso% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-lastlistcomma% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-listcomma% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-page% common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-revised-by% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-start-nested-quote% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fi-start-quote% - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -%gentext-fi-table-endnotes% - common/dbl1fi.dsl common/dbl10n.dsl - -%gentext-fr-and% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-bibl-pages% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-by% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-edited-by% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-end-nested-quote% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-end-quote% - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -%gentext-fr-endnotes% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-index-see% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-index-seealso% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-lastlistcomma% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-listcomma% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-page% common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-revised-by% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-start-nested-quote% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-fr-start-quote% - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -%gentext-fr-table-endnotes% - common/dbl1fr.dsl common/dbl10n.dsl - -%gentext-hu-and% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-bibl-pages% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-by% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-edited-by% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-end-nested-quote% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-end-quote% - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -%gentext-hu-endnotes% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-index-see% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-index-seealso% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-lastlistcomma% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-listcomma% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-page% common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-revised-by% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-start-nested-quote% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-hu-start-quote% - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -%gentext-hu-table-endnotes% - common/dbl1hu.dsl common/dbl10n.dsl - -%gentext-id-and% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-bibl-pages% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-by% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-edited-by% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-end-nested-quote% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-end-quote% - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -%gentext-id-endnotes% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-index-see% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-index-seealso% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-lastlistcomma% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-listcomma% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-page% common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-revised-by% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-start-nested-quote% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-id-start-quote% - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -%gentext-id-table-endnotes% - common/dbl1id.dsl common/dbl10n.dsl - -%gentext-it-and% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-bibl-pages% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-by% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-edited-by% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-end-nested-quote% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-end-quote% - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -%gentext-it-endnotes% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-index-see% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-index-seealso% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-lastlistcomma% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-listcomma% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-page% common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-revised-by% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-start-nested-quote% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-it-start-quote% - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -%gentext-it-table-endnotes% - common/dbl1it.dsl common/dbl10n.dsl - -%gentext-ja-and% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-bibl-pages% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-by% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-edited-by% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-end-nested-quote% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-end-quote% - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -%gentext-ja-endnotes% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-index-see% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-index-seealso% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-lastlistcomma% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-listcomma% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-page% common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-revised-by% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-start-nested-quote% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ja-start-quote% - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -%gentext-ja-table-endnotes% - common/dbl1ja.dsl common/dbl10n.dsl - -%gentext-ko-and% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-bibl-pages% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-by% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-edited-by% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-end-nested-quote% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-end-quote% - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -%gentext-ko-endnotes% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-index-see% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-index-seealso% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-lastlistcomma% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-listcomma% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-page% common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-revised-by% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-start-nested-quote% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-ko-start-quote% - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -%gentext-ko-table-endnotes% - common/dbl1ko.dsl common/dbl10n.dsl - -%gentext-language% common/dbl10n.dsl common/dbl10n.dsl - -%gentext-nl-and% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-bibl-pages% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-by% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-edited-by% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-end-nested-quote% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-end-quote% - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -%gentext-nl-endnotes% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-index-see% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-index-seealso% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-lastlistcomma% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-listcomma% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-page% common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-revised-by% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-start-nested-quote% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nl-start-quote% - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -%gentext-nl-table-endnotes% - common/dbl1nl.dsl common/dbl10n.dsl - -%gentext-nn-and% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-bibl-pages% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-by% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-edited-by% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-end-nested-quote% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-end-quote% - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -%gentext-nn-endnotes% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-index-see% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-index-seealso% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-lastlistcomma% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-listcomma% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-page% common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-revised-by% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-start-nested-quote% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-nn-start-quote% - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -%gentext-nn-table-endnotes% - common/dbl1nn.dsl common/dbl10n.dsl - -%gentext-no-and% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-bibl-pages% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-by% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-edited-by% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-end-nested-quote% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-end-quote% - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -%gentext-no-endnotes% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-index-see% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-index-seealso% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-lastlistcomma% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-listcomma% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-page% common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-revised-by% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-start-nested-quote% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-no-start-quote% - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -%gentext-no-table-endnotes% - common/dbl1no.dsl common/dbl10n.dsl - -%gentext-pl-and% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-bibl-pages% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-by% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-edited-by% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-end-nested-quote% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-end-quote% - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -%gentext-pl-endnotes% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-index-see% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-index-seealso% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-lastlistcomma% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-listcomma% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-page% common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-revised-by% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-start-nested-quote% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pl-start-quote% - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -%gentext-pl-table-endnotes% - common/dbl1pl.dsl common/dbl10n.dsl - -%gentext-pt-and% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-bibl-pages% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-by% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-edited-by% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-end-nested-quote% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-end-quote% - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -%gentext-pt-endnotes% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-index-see% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-index-seealso% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-lastlistcomma% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-listcomma% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-page% common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-revised-by% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-start-nested-quote% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-pt-start-quote% - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -%gentext-pt-table-endnotes% - common/dbl1pt.dsl common/dbl10n.dsl - -%gentext-ptbr-and% common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-bibl-pages% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-by% common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-edited-by% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-end-nested-quote% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-end-quote% - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -%gentext-ptbr-endnotes% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-index-see% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-index-seealso% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-lastlistcomma% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-listcomma% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-page% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-revised-by% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-start-nested-quote% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ptbr-start-quote% - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -%gentext-ptbr-table-endnotes% - common/dbl1ptbr.dsl common/dbl10n.dsl - -%gentext-ro-and% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-bibl-pages% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-by% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-edited-by% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-end-nested-quote% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-end-quote% - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -%gentext-ro-endnotes% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-index-see% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-index-seealso% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-lastlistcomma% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-listcomma% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-page% common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-revised-by% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-start-nested-quote% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ro-start-quote% - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -%gentext-ro-table-endnotes% - common/dbl1ro.dsl common/dbl10n.dsl - -%gentext-ru-and% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-bibl-pages% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-by% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-edited-by% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-end-nested-quote% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-end-quote% - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -%gentext-ru-endnotes% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-index-see% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-index-seealso% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-lastlistcomma% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-listcomma% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-page% common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-revised-by% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-start-nested-quote% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-ru-start-quote% - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -%gentext-ru-table-endnotes% - common/dbl1ru.dsl common/dbl10n.dsl - -%gentext-sk-and% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-bibl-pages% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-by% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-edited-by% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-end-nested-quote% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-end-quote% - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -%gentext-sk-endnotes% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-index-see% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-index-seealso% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-lastlistcomma% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-listcomma% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-page% common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-revised-by% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-start-nested-quote% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sk-start-quote% - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -%gentext-sk-table-endnotes% - common/dbl1sk.dsl common/dbl10n.dsl - -%gentext-sl-and% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-bibl-pages% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-by% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-edited-by% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-end-nested-quote% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-end-quote% - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -%gentext-sl-endnotes% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-index-see% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-index-seealso% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-lastlistcomma% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-listcomma% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-page% common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-revised-by% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-start-nested-quote% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sl-start-quote% - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -%gentext-sl-table-endnotes% - common/dbl1sl.dsl common/dbl10n.dsl - -%gentext-sr-and% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-bibl-pages% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-by% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-edited-by% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-end-nested-quote% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-end-quote% - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -%gentext-sr-endnotes% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-index-see% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-index-seealso% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-lastlistcomma% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-listcomma% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-page% common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-revised-by% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-start-nested-quote% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sr-start-quote% - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -%gentext-sr-table-endnotes% - common/dbl1sr.dsl common/dbl10n.dsl - -%gentext-sv-and% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-bibl-pages% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-by% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-edited-by% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-end-nested-quote% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-end-quote% - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -%gentext-sv-endnotes% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-index-see% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-index-seealso% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-lastlistcomma% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-listcomma% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-page% common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-revised-by% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-start-nested-quote% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-sv-start-quote% - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -%gentext-sv-table-endnotes% - common/dbl1sv.dsl common/dbl10n.dsl - -%gentext-tr-and% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-bibl-pages% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-by% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-edited-by% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-end-nested-quote% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-end-quote% - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -%gentext-tr-endnotes% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-index-see% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-index-seealso% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-lastlistcomma% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-listcomma% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-page% common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-revised-by% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-start-nested-quote% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-tr-start-quote% - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -%gentext-tr-table-endnotes% - common/dbl1tr.dsl common/dbl10n.dsl - -%gentext-uk-and% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-bibl-pages% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-by% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-edited-by% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-end-nested-quote% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-end-quote% - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -%gentext-uk-endnotes% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-index-see% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-index-seealso% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-lastlistcomma% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-listcomma% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-page% common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-revised-by% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-start-nested-quote% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-uk-start-quote% - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -%gentext-uk-table-endnotes% - common/dbl1uk.dsl common/dbl10n.dsl - -%gentext-use-xref-lang% - common/dbl10n.dsl common/dbl10n.dsl - -%gentext-xh-and% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-bibl-pages% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-by% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-edited-by% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-end-nested-quote% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-end-quote% - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -%gentext-xh-endnotes% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-index-see% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-index-seealso% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-lastlistcomma% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-listcomma% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-page% common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-revised-by% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-start-nested-quote% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-xh-start-quote% - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -%gentext-xh-table-endnotes% - common/dbl1xh.dsl common/dbl10n.dsl - -%gentext-zhcn-and% common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-bibl-pages% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-by% common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-edited-by% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-end-nested-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-end-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -%gentext-zhcn-endnotes% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-index-see% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-index-seealso% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-lastlistcomma% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-listcomma% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-page% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-revised-by% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-start-nested-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhcn-start-quote% - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -%gentext-zhcn-table-endnotes% - common/dbl1zhcn.dsl common/dbl10n.dsl - -%gentext-zhtw-and% common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-bibl-pages% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-by% common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-edited-by% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-end-nested-quote% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhtw-end-quote% - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -%gentext-zhtw-endnotes% - common/dbl1zhtw.dsl common/dbl10n.dsl - -%gentext-zhhk-index-see% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-index-seealso% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-lastlistcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-listcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-page% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-revised-by% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-nested-quote% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-quote% - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -%gentext-zhhk-table-endnotes% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-and% common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-bibl-pages% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-by% common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-edited-by% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-end-nested-quote% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-end-quote% - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -%gentext-zhhk-endnotes% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-index-see% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-index-seealso% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-lastlistcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-listcomma% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-page% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-revised-by% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-nested-quote% - common/dbl1zhhk.dsl common/dbl10n.dsl - -%gentext-zhhk-start-quote% - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -%gentext-zhhk-table-endnotes% - common/dbl1zhhk.dsl common/dbl10n.dsl - - -%graphic-default-extension% - print/dbparam.dsl common/dbcommon.dsl - print/dbgraph.dsl - -%graphic-extensions% - print/dbparam.dsl common/dbcommon.dsl - print/dbgraph.dsl - -%guilabel-font-family% - print/dbparam.dsl print/dbprint.dsl - -%head-after-factor% - print/dbparam.dsl print/db31.dsl - print/dbblock.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbbibl.dsl - -%head-before-factor% - print/dbparam.dsl print/db31.dsl - print/dbblock.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbbibl.dsl - -%header-margin% print/dbparam.dsl print/dbparam.dsl - -%honorific-punctuation% - print/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%hsize-bump-factor% - print/dbparam.dsl print/dbprint.dsl - -%hyphenation% print/dbparam.dsl print/dbprint.dsl - -%indent-address-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbttlpg.dsl - print/dbbibl.dsl - -%indent-classsynopsisinfo-lines% - print/dbefsyn.dsl print/dbefsyn.dsl - -%indent-funcsynopsisinfo-lines% - print/dbparam.dsl print/dbsynop.dsl - -%indent-literallayout-lines% - print/dbparam.dsl print/dbverb.dsl - -%indent-programlisting-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbcallou.dsl - -%indent-screen-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbcallou.dsl - -%indent-synopsis-lines% - print/dbparam.dsl print/dbsynop.dsl - -%informalequation-rules% - print/dbparam.dsl print/dbmath.dsl - -%informalexample-rules% - print/dbparam.dsl print/dbblock.dsl - -%informalfigure-rules% - print/dbparam.dsl print/db31.dsl - -%informaltable-rules% - print/dbparam.dsl print/dbblock.dsl - -%kr-funcsynopsis-indent% - print/dbparam.dsl print/dbsynop.dsl - -%label-preface-sections% - print/dbparam.dsl common/dbcommon.dsl - -%left-margin% print/dbparam.dsl print/dbparam.dsl - -%line-spacing-factor% - print/dbparam.dsl print/db31.dsl - print/dbverb.dsl - print/dbsynop.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbcallou.dsl - print/dbttlpg.dsl - print/dbprint.dsl - print/dbdivis.dsl - print/dblink.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbbibl.dsl - -%linenumber-length% - print/dbparam.dsl print/dbverb.dsl - -%linenumber-mod% print/dbparam.dsl print/dbverb.dsl - -%linenumber-padchar% - print/dbparam.dsl print/dbverb.dsl - -%may-format-variablelist-as-table% - print/dbparam.dsl print/dblists.dsl - -%min-leading% print/dbparam.dsl print/dbparam.dsl - -%mono-font-family% print/dbparam.dsl print/dbmsgset.dsl - print/dbverb.dsl - print/dbsynop.dsl - print/dbcallou.dsl - print/dbprint.dsl - print/dblink.dsl - print/dbparam.dsl - -%number-address-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbttlpg.dsl - print/dbbibl.dsl - -%number-classsynopsisinfo-lines% - print/dbefsyn.dsl print/dbefsyn.dsl - -%number-funcsynopsisinfo-lines% - print/dbparam.dsl print/dbsynop.dsl - -%number-literallayout-lines% - print/dbparam.dsl print/dbverb.dsl - -%number-programlisting-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbcallou.dsl - -%number-screen-lines% - print/dbparam.dsl print/dbverb.dsl - print/dbcallou.dsl - -%number-synopsis-lines% - print/dbparam.dsl print/dbsynop.dsl - -%object-rule-thickness% - print/dbparam.dsl print/dbblock.dsl - print/dbmath.dsl - -%olink-outline-ext% - print/dbparam.dsl print/dblink.dsl - -%page-balance-columns?% - print/dbparam.dsl - -%page-column-sep% print/dbparam.dsl - -%page-height% print/dbparam.dsl print/dbparam.dsl - -%page-n-columns% print/dbparam.dsl print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -%page-number-restart% - print/dbparam.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -%page-width% print/dbparam.dsl print/dbparam.dsl - -%paper-type% print/dbparam.dsl print/dbparam.dsl - -%para-indent% print/dbparam.dsl print/dbprint.dsl - -%para-indent-firstpara% - print/dbparam.dsl print/dbprint.dsl - -%para-sep% print/dbparam.dsl print/db31.dsl - print/dbmsgset.dsl - print/dbverb.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbcallou.dsl - print/dbprint.dsl - print/dblink.dsl - print/dbgloss.dsl - print/dbrfntry.dsl - print/dbprocdr.dsl - print/dbbibl.dsl - print/dblists.dsl - print/dbparam.dsl - -%qanda-inherit-numeration% - print/dbparam.dsl common/dbcommon.dsl - -%refentry-generate-name% - print/dbparam.dsl print/dbrfntry.dsl - -%refentry-keep% print/dbparam.dsl print/dbrfntry.dsl - -%refentry-name-font-family% - print/dbparam.dsl print/dbrfntry.dsl - -%refentry-new-page% - print/dbparam.dsl print/dbrfntry.dsl - -%refentry-xref-italic% - print/dbparam.dsl print/dblink.dsl - print/dbinline.dsl - -%refentry-xref-manvolnum% - print/dbparam.dsl print/dblink.dsl - print/dbrfntry.dsl - -%right-margin% print/dbparam.dsl print/dbparam.dsl - -%section-autolabel% - print/dbparam.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -%section-subtitle-quadding% - print/dbparam.dsl print/dbsect.dsl - -%section-title-quadding% - print/dbparam.dsl print/db31.dsl - print/dbdivis.dsl - print/dbsect.dsl - print/dbbibl.dsl - -%show-comments% print/dbparam.dsl print/dbblock.dsl - -%show-ulinks% print/dbparam.dsl print/dblink.dsl - -%simplelist-column-width% - print/dbparam.dsl print/dblists.dsl - -%smaller-size-factor% - print/dbparam.dsl print/dbindex.dsl - print/dbblock.dsl - -%ss-shift-factor% print/dbparam.dsl print/dbinline.dsl - -%ss-size-factor% print/dbparam.dsl print/dbinline.dsl - -%table-after-column-border% - print/dbtable.dsl print/dbtable.dsl - -%table-after-row-border% - print/dbtable.dsl print/dbtable.dsl - -%table-before-column-border% - print/dbtable.dsl print/dbtable.dsl - -%table-before-row-border% - print/dbtable.dsl print/dbtable.dsl - -%table-cell-after-column-border% - print/dbtable.dsl print/dbtable.dsl - -%table-cell-after-row-border% - print/dbtable.dsl print/dbtable.dsl - -%table-head-body-border% - print/dbtable.dsl print/dbtable.dsl - -%table-rules% print/dbparam.dsl print/dbblock.dsl - -%text-width% print/dbparam.dsl print/dbverb.dsl - print/dbsynop.dsl - print/dbblock.dsl - print/dbmath.dsl - print/dbcallou.dsl - print/dbparam.dsl - -%title-font-family% - print/dbparam.dsl print/db31.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbtable.dsl - print/dbbibl.dsl - print/dblists.dsl - -%titlepage-in-info-order% - print/dbparam.dsl print/dbttlpg.dsl - -%titlepage-n-columns% - print/dbparam.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -%toc-indent% print/dbautoc.dsl print/dbautoc.dsl - -%toc-spacing-factor% - print/dbautoc.dsl print/dbautoc.dsl - -%top-margin% print/dbparam.dsl print/dbparam.dsl - -%two-side% print/dbparam.dsl print/dbcompon.dsl - -%verbatim-default-width% - print/dbparam.dsl print/dbverb.dsl - print/dbsynop.dsl - -%verbatim-size-factor% - print/dbparam.dsl print/dbverb.dsl - print/dbsynop.dsl - print/dbcallou.dsl - print/dbprint.dsl - -%visual-acuity% print/dbparam.dsl print/dbparam.dsl - -%writing-mode% print/dbparam.dsl print/dbcompon.dsl - print/dbparam.dsl - -*small-caps* print/dbprint.dsl - -BULLSHIFT print/dblists.dsl print/dblists.dsl - -BULLSIZE print/dblists.dsl print/dblists.dsl - -BULLSTR print/dblists.dsl print/dblists.dsl - -BULLTREAT print/dblists.dsl print/dblists.dsl - -COSTEP print/dblists.dsl print/dblists.dsl - -FNUM common/dbcommon.dsl common/dbcommon.dsl - -HSIZE print/dbprint.dsl print/db31.dsl - print/dbadmon.dsl - print/dbblock.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbtitle.dsl - print/dbbibl.dsl - -ILSTEP print/dblists.dsl print/dbmsgset.dsl - print/dbadmon.dsl - print/dbprint.dsl - print/dbgloss.dsl - print/dblists.dsl - -INBLOCK? common/dbcommon.dsl print/dbverb.dsl - print/dblists.dsl - -INLIST? common/dbcommon.dsl print/dbverb.dsl - print/dbcallou.dsl - print/dblists.dsl - -MSIZE print/dblists.dsl print/dblists.dsl - -NESTEDFNUM common/dbcommon.dsl common/dbcommon.dsl - -OLSTEP print/dblists.dsl print/dblists.dsl - -PARNUM common/dbcommon.dsl - -PROCSTEP print/dbprocdr.dsl print/dbprocdr.dsl - -SECTLEVEL print/dbsect.dsl print/db31.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbbibl.dsl - -abstract-autolabel common/dbcommon.dsl common/dbcommon.dsl - -acceptable-mediaobject-extensions - print/db31.dsl common/dbcommon.dsl - -acceptable-mediaobject-notations - print/db31.dsl common/dbcommon.dsl - -adjust-overhang common/dbtable.dsl common/dbtable.dsl - -admon-graphic-default-extension - print/dbparam.dsl print/dbparam.dsl - -af-author-string common/dbl1af.dsl common/dbl10n.dsl - -af-auto-xref-indirect-connector - common/dbl1af.dsl common/dbl10n.dsl - -af-element-name common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-intra-label-sep common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-label-number-format - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-label-number-format-list - common/dbl1af.dsl common/dbl1af.dsl - -af-label-title-sep common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -af-lot-title common/dbl1af.dsl common/dbl1af.dsl - -af-xref-strings common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -appears-in-auto-toc? - common/dbcommon.dsl common/dbcommon.dsl - -appendix-autolabel common/dbcommon.dsl common/dbcommon.dsl - -appendix-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -appendix-title common/dbcommon.dsl common/dbcommon.dsl - -appendix-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -article-autolabel common/dbcommon.dsl common/dbcommon.dsl - -article-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -article-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -article-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -article-title common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbcompon.dsl - -article-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -article-titlepage print/dbttlpg.dsl print/dbttlpg.dsl - print/dbcompon.dsl - -article-titlepage-abbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-abstract - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-address - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-affiliation - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-artpagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-author - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-authorblurb - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-authorgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-authorinitials - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-before - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-bibliomisc - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-biblioset - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-bookbiblio - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-citetitle - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-collab - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-confgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-content? - print/dbttlpg.dsl print/dbttlpg.dsl - print/dbcompon.dsl - -article-titlepage-contractnum - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-contractsponsor - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-contrib - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-copyright - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-corpauthor - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-corpname - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-date - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-default - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-edition - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-editor - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-element - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-firstname - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-graphic - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-honorific - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-indexterm - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-invpartnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-isbn - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-issn - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-issuenum - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-itermset - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-keywordset - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-legalnotice - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-lineage - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-mediaobject - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-modespec - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-orgname - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-othercredit - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-othername - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-pagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-printhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-productname - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-productnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-pubdate - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-publisher - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-publishername - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-pubsnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-recto-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-recto-style - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-releaseinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-revhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-seriesinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-seriesvolnums - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-subjectset - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-subtitle - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-surname - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-title - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-titleabbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-verso-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-verso-style - print/dbttlpg.dsl print/dbttlpg.dsl - -article-titlepage-volumenum - print/dbttlpg.dsl print/dbttlpg.dsl - -author-list-string common/dbcommon.dsl print/dbttlpg.dsl - print/dblink.dsl - print/dbbibl.dsl - -author-string common/dbl10n.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dblink.dsl - common/dbl10n.dsl - -auto-xref common/dbcommon.dsl common/dbcommon.dsl - print/dblink.dsl - common/dbl10n.dsl - -auto-xref-direct common/dbcommon.dsl common/dbcommon.dsl - -auto-xref-indirect common/dbcommon.dsl common/dbcommon.dsl - common/dbl10n.dsl - -auto-xref-indirect-connector - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -auto-xref-indirect? - common/dbcommon.dsl common/dbcommon.dsl - -bibentry-number common/dbcommon.dsl print/dblink.dsl - print/dbbibl.dsl - -biblio-citation-check - print/dbparam.dsl print/dbinline.dsl - -biblio-filter common/dbcommon.dsl print/dbbibl.dsl - -biblio-filter-used print/dbparam.dsl print/dbbibl.dsl - -biblio-number print/dbparam.dsl print/dblink.dsl - print/dbbibl.dsl - -biblio-xref-title print/dbparam.dsl print/dblink.dsl - -bibliodiv-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -biblioentry-block-elements - common/dbcommon.dsl print/dbbibl.dsl - -biblioentry-block-end - print/dbbibl.dsl print/dbbibl.dsl - -biblioentry-block-sep - print/dbbibl.dsl print/dbbibl.dsl - -biblioentry-flatten-elements - common/dbcommon.dsl print/dbbibl.dsl - -biblioentry-inline-elements - common/dbcommon.dsl print/dbbibl.dsl - -biblioentry-inline-end - print/dbbibl.dsl print/dbbibl.dsl - -biblioentry-inline-sep - print/dbbibl.dsl print/dbbibl.dsl - -bibliography-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-content - print/dbbibl.dsl print/dbbibl.dsl - -bibliography-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -bibliography-title common/dbcommon.dsl common/dbcommon.dsl - -bibliography-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -block-autolabel common/dbcommon.dsl common/dbcommon.dsl - -block-element-list common/dbcommon.dsl common/dbcommon.dsl - -block-title common/dbcommon.dsl common/dbcommon.dsl - -block-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -book-autolabel common/dbcommon.dsl common/dbcommon.dsl - -book-element-list common/dbcommon.dsl common/dbcommon.dsl - -book-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -book-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -book-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -book-start? common/dbcommon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -book-title common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - -book-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -book-titlepage print/dbttlpg.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -book-titlepage-abbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-abstract - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-address - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-affiliation - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-artpagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-author - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-authorblurb - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-authorgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-authorinitials - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-before - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-bibliomisc - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-biblioset - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-bookbiblio - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-citetitle - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-collab - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-confgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-content? - print/dbttlpg.dsl - -book-titlepage-contractnum - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-contractsponsor - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-contrib - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-copyright - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-corpauthor - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-corpname - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-date - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-default - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-edition - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-editor - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-element - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-firstname - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-graphic - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-honorific - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-indexterm - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-invpartnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-isbn - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-issn - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-issuenum - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-itermset - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-keywordset - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-legalnotice - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-lineage - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-mediaobject - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-modespec - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-orgname - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-othercredit - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-othername - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-pagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-printhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-productname - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-productnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-pubdate - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-publisher - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-publishername - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-pubsnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-recto-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-recto-style - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-releaseinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-revhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-seriesinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-seriesvolnums - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-subjectset - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-subtitle - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-surname - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-title - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-titleabbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-verso-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-verso-style - print/dbttlpg.dsl print/dbttlpg.dsl - -book-titlepage-volumenum - print/dbttlpg.dsl print/dbttlpg.dsl - -bop-footnotes print/dbparam.dsl print/dbblock.dsl - print/dblink.dsl - -build-lot print/dbautoc.dsl print/dbdivis.dsl - print/dbautoc.dsl - -build-toc print/dbautoc.dsl print/dbttlpg.dsl - print/dbdivis.dsl - print/dbautoc.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - -ca-author-string common/dbl1ca.dsl common/dbl10n.dsl - -ca-auto-xref-indirect-connector - common/dbl1ca.dsl common/dbl10n.dsl - -ca-element-name common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-intra-label-sep common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-label-number-format - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-label-number-format-list - common/dbl1ca.dsl common/dbl1ca.dsl - -ca-label-title-sep common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -ca-lot-title common/dbl1ca.dsl common/dbl1ca.dsl - -ca-xref-strings common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -calc-table-after-column-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-after-row-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-before-column-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-before-row-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-cell-after-column-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-cell-after-row-border - print/dbtable.dsl print/dbtable.dsl - -calc-table-head-body-border - print/dbtable.dsl print/dbtable.dsl - -cell-align print/dbtable.dsl print/dbtable.dsl - -cell-colsep print/dbtable.dsl print/dbtable.dsl - -cell-column-number common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -cell-prev-cell common/dbtable.dsl common/dbtable.dsl - -cell-rowsep print/dbtable.dsl print/dbtable.dsl - -cell-valign print/dbtable.dsl print/dbtable.dsl - -chapter-autolabel common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - print/dbcompon.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -chapter-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -chapter-title common/dbcommon.dsl common/dbcommon.dsl - -chapter-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -citation-matches-target? - common/dbcommon.dsl common/dbcommon.dsl - print/dbinline.dsl - -cited-by-citation common/dbcommon.dsl common/dbcommon.dsl - -cited-by-xref common/dbcommon.dsl common/dbcommon.dsl - -colophon-autolabel common/dbcommon.dsl common/dbcommon.dsl - -colophon-title common/dbcommon.dsl common/dbcommon.dsl - -colophon-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -colspec-align common/dbtable.dsl print/dbtable.dsl - -colspec-char common/dbtable.dsl - -colspec-charoff common/dbtable.dsl - -colspec-colname common/dbtable.dsl - -colspec-colnum common/dbtable.dsl common/dbtable.dsl - -colspec-colsep common/dbtable.dsl print/dbtable.dsl - -colspec-colwidth common/dbtable.dsl - -colspec-rowsep common/dbtable.dsl print/dbtable.dsl - -colwidth-unit print/dbtable.dsl print/dbtable.dsl - -component-element-list - common/dbcommon.dsl print/dbblock.dsl - common/dbcommon.dsl - print/dbautoc.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -component-number common/dbcommon.dsl common/dbcommon.dsl - -component-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -component-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -component-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -count-footnote? print/dbblock.dsl print/dbblock.dsl - -cs-author-string common/dbl1cs.dsl common/dbl10n.dsl - -cs-auto-xref-indirect-connector - common/dbl1cs.dsl common/dbl10n.dsl - -cs-element-name common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-intra-label-sep common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-label-number-format - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-label-number-format-list - common/dbl1cs.dsl common/dbl1cs.dsl - -cs-label-title-sep common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -cs-lot-title common/dbl1cs.dsl common/dbl1cs.dsl - -cs-xref-strings common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -da-author-string common/dbl1da.dsl common/dbl10n.dsl - -da-auto-xref-indirect-connector - common/dbl1da.dsl common/dbl10n.dsl - -da-element-name common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-intra-label-sep common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-label-number-format - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-label-number-format-list - common/dbl1da.dsl common/dbl1da.dsl - -da-label-title-sep common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -da-lot-title common/dbl1da.dsl common/dbl1da.dsl - -da-xref-strings common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -data-filename common/dbcommon.dsl common/dbcommon.dsl - -data-of common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - print/dblink.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -de-author-string common/dbl1de.dsl common/dbl10n.dsl - -de-auto-xref-indirect-connector - common/dbl1de.dsl common/dbl10n.dsl - -de-element-name common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-intra-label-sep common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-label-number-format - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-label-number-format-list - common/dbl1de.dsl common/dbl1de.dsl - -de-label-title-sep common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -de-lot-title common/dbl1de.dsl common/dbl1de.dsl - -de-xref-strings common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -dedication-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -dedication-title common/dbcommon.dsl common/dbcommon.dsl - -dedication-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -default-backend print/dbparam.dsl print/dbprint.dsl - print/dbparam.dsl - -default-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -default-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -default-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -default-text-style print/dbprint.dsl print/dbindex.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -descendant-member-of? - common/dbcommon.dsl common/dbcommon.dsl - -division-element-list - common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbautoc.dsl - print/dbcompon.dsl - -dsssl-country-code print/dbprint.dsl print/dbprint.dsl - -dsssl-language-code - print/dbprint.dsl print/dbprint.dsl - -el-author-string common/dbl1el.dsl common/dbl10n.dsl - -el-auto-xref-indirect-connector - common/dbl1el.dsl common/dbl10n.dsl - -el-element-name common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-intra-label-sep common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-label-number-format - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-label-number-format-list - common/dbl1el.dsl common/dbl1el.dsl - -el-label-title-sep common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -el-lot-title common/dbl1el.dsl common/dbl1el.dsl - -el-xref-strings common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -element-gi-sosofo common/dbcommon.dsl common/dbcommon.dsl - -element-label common/dbcommon.dsl print/dbblock.dsl - print/dbmath.dsl - common/dbcommon.dsl - print/dbttlpg.dsl - print/dbautoc.dsl - print/dbsect.dsl - print/dbcompon.dsl - -element-label-sosofo - common/dbcommon.dsl common/dbcommon.dsl - print/dbautoc.dsl - -element-page-number-sosofo - print/dblink.dsl common/dbcommon.dsl - -element-title common/dbcommon.dsl print/dbblock.dsl - common/dbcommon.dsl - print/dbprint.dsl - print/dbdivis.dsl - print/dblink.dsl - print/dbautoc.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -element-title-sosofo - common/dbcommon.dsl print/dbblock.dsl - print/dbdivis.dsl - print/dblink.dsl - print/dbautoc.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -element-title-string - common/dbcommon.dsl print/dbprint.dsl - -element-title-xref-sosofo - print/dblink.dsl common/dbcommon.dsl - -empty-cell-colsep print/dbtable.dsl print/dbtable.dsl - -empty-cell-rowsep print/dbtable.dsl print/dbtable.dsl - -en-author-string common/dbl1en.dsl common/dbl10n.dsl - -en-auto-xref-indirect-connector - common/dbl1en.dsl common/dbl10n.dsl - -en-element-name common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-intra-label-sep common/dbl1en.dsl common/dbl1et.dsl - common/dbl10n.dsl - common/dbl1en.dsl - -en-label-number-format - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-label-number-format-list - common/dbl1en.dsl common/dbl1en.dsl - -en-label-title-sep common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -en-lot-title common/dbl1en.dsl common/dbl1en.dsl - -en-xref-strings common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -es-author-string common/dbl1es.dsl common/dbl10n.dsl - -es-auto-xref-indirect-connector - common/dbl1es.dsl common/dbl10n.dsl - -es-element-name common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-intra-label-sep common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-label-number-format - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-label-number-format-list - common/dbl1es.dsl common/dbl1es.dsl - -es-label-title-sep common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -es-lot-title common/dbl1es.dsl common/dbl1es.dsl - -es-xref-strings common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -et-author-string common/dbl1et.dsl common/dbl10n.dsl - -et-auto-xref-indirect-connector - common/dbl1et.dsl common/dbl10n.dsl - -et-element-name common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-intra-label-sep common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-label-number-format - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - common/dbl1id.dsl - -et-label-number-format-list - common/dbl1et.dsl common/dbl1et.dsl - -et-label-title-sep common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -et-lot-title common/dbl1et.dsl common/dbl1et.dsl - -et-xref-strings common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -eu-author-string common/dbl1eu.dsl common/dbl10n.dsl - -eu-auto-xref-indirect-connector - common/dbl1eu.dsl common/dbl10n.dsl - -eu-element-name common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-intra-label-sep common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-label-number-format - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-label-number-format-list - common/dbl1eu.dsl common/dbl1eu.dsl - -eu-label-title-sep common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -eu-lot-title common/dbl1eu.dsl common/dbl1eu.dsl - -eu-xref-strings common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -fi-author-string common/dbl1fi.dsl common/dbl10n.dsl - -fi-auto-xref-indirect-connector - common/dbl1fi.dsl common/dbl10n.dsl - -fi-element-name common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-intra-label-sep common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-label-number-format - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-label-number-format-list - common/dbl1fi.dsl common/dbl1fi.dsl - -fi-label-title-sep common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -fi-lot-title common/dbl1fi.dsl common/dbl1fi.dsl - -fi-xref-strings common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -find-colspec common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -find-colspec-by-number - common/dbtable.dsl print/dbtable.dsl - -find-displayable-object - common/dbcommon.dsl common/dbcommon.dsl - -find-indexterm print/dbindex.dsl print/dbindex.dsl - -find-spanspec common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -find-tgroup common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -first-chapter? common/dbcommon.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -first-page-center-footer - print/dbcompon.dsl print/dbcompon.dsl - -first-page-center-header - print/dbcompon.dsl print/dbcompon.dsl - -first-page-inner-footer - print/dbcompon.dsl print/dbcompon.dsl - -first-page-inner-header - print/dbcompon.dsl print/dbcompon.dsl - -first-page-outer-footer - print/dbcompon.dsl print/dbcompon.dsl - -first-page-outer-header - print/dbcompon.dsl print/dbcompon.dsl - -firstterm-bold print/dbparam.dsl print/dbgloss.dsl - -float-object print/dbblock.dsl print/dbblock.dsl - -footnote-number print/dbblock.dsl print/dbblock.dsl - print/dblink.dsl - -formal-object-float - print/dbparam.dsl print/dbblock.dsl - -format-page-number print/dbautoc.dsl print/dbautoc.dsl - -fr-author-string common/dbl1fr.dsl common/dbl10n.dsl - -fr-auto-xref-indirect-connector - common/dbl1fr.dsl common/dbl10n.dsl - -fr-element-name common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-intra-label-sep common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-label-number-format - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-label-number-format-list - common/dbl1fr.dsl common/dbl1fr.dsl - -fr-label-title-sep common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -fr-lot-title common/dbl1fr.dsl common/dbl1fr.dsl - -fr-xref-strings common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -funcsynopsis-function - print/dbsynop.dsl print/dbsynop.dsl - -generate-toc-in-front - common/dbl10n.dsl print/dbdivis.dsl - common/dbl10n.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - -generic-list-item print/dblists.dsl print/dblists.dsl - -gentext-af-element-name - common/dbl1af.dsl common/dbl1af.dsl - common/dbl10n.dsl - -gentext-af-element-name-space - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-intra-label-sep - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-label-title-sep - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-home - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-next - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-next-sibling - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-prev - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-prev-sibling - common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-nav-up common/dbl1af.dsl common/dbl10n.dsl - -gentext-af-xref-strings - common/dbl1af.dsl common/dbl10n.dsl - -gentext-and common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-bibl-pages common/dbl10n.dsl common/dbl10n.dsl - -gentext-by common/dbl10n.dsl print/dbttlpg.dsl - common/dbl10n.dsl - -gentext-ca-element-name - common/dbl1ca.dsl common/dbl1ca.dsl - common/dbl10n.dsl - -gentext-ca-element-name-space - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-intra-label-sep - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-label-title-sep - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-home - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-next - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-next-sibling - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-prev - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-prev-sibling - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-nav-up common/dbl1ca.dsl common/dbl10n.dsl - -gentext-ca-xref-strings - common/dbl1ca.dsl common/dbl10n.dsl - -gentext-cs-element-name - common/dbl1cs.dsl common/dbl10n.dsl - common/dbl1cs.dsl - -gentext-cs-element-name-space - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-intra-label-sep - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-label-title-sep - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-home - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-next - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-next-sibling - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-prev - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-prev-sibling - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-nav-up common/dbl1cs.dsl common/dbl10n.dsl - -gentext-cs-xref-strings - common/dbl1cs.dsl common/dbl10n.dsl - -gentext-da-element-name - common/dbl1da.dsl common/dbl1da.dsl - common/dbl10n.dsl - -gentext-da-element-name-space - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-intra-label-sep - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-label-title-sep - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-home - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-next - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-next-sibling - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-prev - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-prev-sibling - common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-nav-up common/dbl1da.dsl common/dbl10n.dsl - -gentext-da-xref-strings - common/dbl1da.dsl common/dbl10n.dsl - -gentext-de-element-name - common/dbl1de.dsl common/dbl1de.dsl - common/dbl10n.dsl - -gentext-de-element-name-space - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-intra-label-sep - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-label-title-sep - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-home - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-next - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-next-sibling - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-prev - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-prev-sibling - common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-nav-up common/dbl1de.dsl common/dbl10n.dsl - -gentext-de-xref-strings - common/dbl1de.dsl common/dbl10n.dsl - -gentext-edited-by common/dbl10n.dsl print/dbttlpg.dsl - common/dbl10n.dsl - print/dbbibl.dsl - -gentext-el-element-name - common/dbl1el.dsl common/dbl10n.dsl - common/dbl1el.dsl - -gentext-el-element-name-space - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-intra-label-sep - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-label-title-sep - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-home - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-next - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-next-sibling - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-prev - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-prev-sibling - common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-nav-up common/dbl1el.dsl common/dbl10n.dsl - -gentext-el-xref-strings - common/dbl1el.dsl common/dbl10n.dsl - -gentext-element-name - common/dbl10n.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - print/dbmsgset.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - print/dbadmon.dsl - print/dbblock.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - print/dbttlpg.dsl - common/dbl1sk.dsl - print/dblink.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - print/dbautoc.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - print/dbgloss.dsl - print/dbrfntry.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - print/dbcompon.dsl - common/dbl1ja.dsl - print/dbbibl.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -gentext-element-name-space - common/dbl10n.dsl print/dbttlpg.dsl - common/dbl10n.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -gentext-en-element-name - common/dbl1en.dsl common/dbl10n.dsl - common/dbl1en.dsl - -gentext-en-element-name-space - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-intra-label-sep - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-label-title-sep - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-home - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-next - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-next-sibling - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-prev - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-prev-sibling - common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-nav-up common/dbl1en.dsl common/dbl10n.dsl - -gentext-en-xref-strings - common/dbl1en.dsl common/dbl10n.dsl - -gentext-end-nested-quote - common/dbl10n.dsl common/dbl10n.dsl - print/dbinline.dsl - -gentext-end-quote common/dbl10n.dsl common/dbl10n.dsl - print/dbbibl.dsl - print/dbinline.dsl - -gentext-endnotes common/dbl10n.dsl print/dbblock.dsl - common/dbl10n.dsl - -gentext-es-element-name - common/dbl1es.dsl common/dbl1es.dsl - common/dbl10n.dsl - -gentext-es-element-name-space - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-intra-label-sep - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-label-title-sep - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-home - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-next - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-next-sibling - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-prev - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-prev-sibling - common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-nav-up common/dbl1es.dsl common/dbl10n.dsl - -gentext-es-xref-strings - common/dbl1es.dsl common/dbl10n.dsl - -gentext-et-element-name - common/dbl1et.dsl common/dbl1et.dsl - common/dbl10n.dsl - -gentext-et-element-name-space - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-intra-label-sep - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-label-title-sep - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-home - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-next - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-next-sibling - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-prev - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-prev-sibling - common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-nav-up common/dbl1et.dsl common/dbl10n.dsl - -gentext-et-xref-strings - common/dbl1et.dsl common/dbl10n.dsl - -gentext-eu-element-name - common/dbl1eu.dsl common/dbl10n.dsl - common/dbl1eu.dsl - -gentext-eu-element-name-space - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-intra-label-sep - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-label-title-sep - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-home - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-next - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-next-sibling - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-prev - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-prev-sibling - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-nav-up common/dbl1eu.dsl common/dbl10n.dsl - -gentext-eu-xref-strings - common/dbl1eu.dsl common/dbl10n.dsl - -gentext-fi-element-name - common/dbl1fi.dsl common/dbl10n.dsl - common/dbl1fi.dsl - -gentext-fi-element-name-space - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-intra-label-sep - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-label-title-sep - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-home - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-next - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-next-sibling - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-prev - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-prev-sibling - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-nav-up common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fi-xref-strings - common/dbl1fi.dsl common/dbl10n.dsl - -gentext-fr-element-name - common/dbl1fr.dsl common/dbl10n.dsl - common/dbl1fr.dsl - -gentext-fr-element-name-space - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-intra-label-sep - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-label-title-sep - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-home - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-next - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-next-sibling - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-prev - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-prev-sibling - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-nav-up common/dbl1fr.dsl common/dbl10n.dsl - -gentext-fr-xref-strings - common/dbl1fr.dsl common/dbl10n.dsl - -gentext-hu-element-name - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -gentext-hu-element-name-space - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-intra-label-sep - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-label-title-sep - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-home - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-next - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-next-sibling - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-prev - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-prev-sibling - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-nav-up common/dbl1hu.dsl common/dbl10n.dsl - -gentext-hu-xref-strings - common/dbl1hu.dsl common/dbl10n.dsl - -gentext-id-element-name - common/dbl1id.dsl common/dbl10n.dsl - common/dbl1id.dsl - -gentext-id-element-name-space - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-intra-label-sep - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-label-title-sep - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-home - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-next - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-next-sibling - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-prev - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-prev-sibling - common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-nav-up common/dbl1id.dsl common/dbl10n.dsl - -gentext-id-xref-strings - common/dbl1id.dsl common/dbl10n.dsl - -gentext-index-see common/dbl10n.dsl print/dbindex.dsl - common/dbl10n.dsl - -gentext-index-seealso - common/dbl10n.dsl print/dbindex.dsl - common/dbl10n.dsl - -gentext-intra-label-sep - common/dbl10n.dsl common/dbcommon.dsl - print/dbautoc.dsl - common/dbl10n.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - -gentext-it-element-name - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -gentext-it-element-name-space - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-intra-label-sep - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-label-title-sep - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-home - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-next - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-next-sibling - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-prev - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-prev-sibling - common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-nav-up common/dbl1it.dsl common/dbl10n.dsl - -gentext-it-xref-strings - common/dbl1it.dsl common/dbl10n.dsl - -gentext-ja-element-name - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -gentext-ja-element-name-space - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-intra-label-sep - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-label-title-sep - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-home - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-next - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-next-sibling - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-prev - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-prev-sibling - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-nav-up common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ja-xref-strings - common/dbl1ja.dsl common/dbl10n.dsl - -gentext-ko-element-name - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -gentext-ko-element-name-space - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-intra-label-sep - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-label-title-sep - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-home - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-next - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-next-sibling - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-prev - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-prev-sibling - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-nav-up common/dbl1ko.dsl common/dbl10n.dsl - -gentext-ko-xref-strings - common/dbl1ko.dsl common/dbl10n.dsl - -gentext-label-title-sep - common/dbl10n.dsl print/dbadmon.dsl - print/dbblock.dsl - common/dbcommon.dsl - print/dbttlpg.dsl - print/dblink.dsl - print/dbautoc.dsl - common/dbl10n.dsl - print/dbgloss.dsl - print/dbsect.dsl - print/dbcompon.dsl - print/dblists.dsl - -gentext-lastlistcomma - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-listcomma common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-nav-home common/dbl10n.dsl common/dbl10n.dsl - -gentext-nav-next common/dbl10n.dsl common/dbl10n.dsl - -gentext-nav-next-sibling - common/dbl10n.dsl common/dbl10n.dsl - -gentext-nav-prev common/dbl10n.dsl common/dbl10n.dsl - -gentext-nav-prev-sibling - common/dbl10n.dsl common/dbl10n.dsl - -gentext-nav-up common/dbl10n.dsl common/dbl10n.dsl - -gentext-nl-element-name - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -gentext-nl-element-name-space - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-intra-label-sep - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-label-title-sep - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-home - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-next - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-next-sibling - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-prev - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-prev-sibling - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-nav-up common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nl-xref-strings - common/dbl1nl.dsl common/dbl10n.dsl - -gentext-nn-element-name - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -gentext-nn-element-name-space - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-intra-label-sep - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-label-title-sep - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-home - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-next - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-next-sibling - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-prev - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-prev-sibling - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-nav-up common/dbl1nn.dsl common/dbl10n.dsl - -gentext-nn-xref-strings - common/dbl1nn.dsl common/dbl10n.dsl - -gentext-no-element-name - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -gentext-no-element-name-space - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-intra-label-sep - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-label-title-sep - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-home - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-next - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-next-sibling - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-prev - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-prev-sibling - common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-nav-up common/dbl1no.dsl common/dbl10n.dsl - -gentext-no-xref-strings - common/dbl1no.dsl common/dbl10n.dsl - -gentext-page common/dbl10n.dsl common/dbl10n.dsl - print/dbcompon.dsl - -gentext-pl-element-name - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -gentext-pl-element-name-space - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-intra-label-sep - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-label-title-sep - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-home - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-next - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-next-sibling - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-prev - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-prev-sibling - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-nav-up common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pl-xref-strings - common/dbl1pl.dsl common/dbl10n.dsl - -gentext-pt-element-name - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -gentext-pt-element-name-space - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-intra-label-sep - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-label-title-sep - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-home - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-next - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-next-sibling - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-prev - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-prev-sibling - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-nav-up common/dbl1pt.dsl common/dbl10n.dsl - -gentext-pt-xref-strings - common/dbl1pt.dsl common/dbl10n.dsl - -gentext-ptbr-element-name - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -gentext-ptbr-element-name-space - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-home - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-next - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-next-sibling - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-prev - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-prev-sibling - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-nav-up - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-ptbr-xref-strings - common/dbl1ptbr.dsl common/dbl10n.dsl - -gentext-revised-by common/dbl10n.dsl print/dbttlpg.dsl - common/dbl10n.dsl - print/dbbibl.dsl - -gentext-ro-element-name - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -gentext-ro-element-name-space - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-intra-label-sep - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-label-title-sep - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-home - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-next - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-next-sibling - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-prev - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-prev-sibling - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-nav-up common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ro-xref-strings - common/dbl1ro.dsl common/dbl10n.dsl - -gentext-ru-element-name - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -gentext-ru-element-name-space - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-intra-label-sep - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-label-title-sep - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-home - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-next - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-next-sibling - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-prev - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-prev-sibling - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-nav-up common/dbl1ru.dsl common/dbl10n.dsl - -gentext-ru-xref-strings - common/dbl1ru.dsl common/dbl10n.dsl - -gentext-sk-element-name - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -gentext-sk-element-name-space - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-intra-label-sep - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-label-title-sep - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-home - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-next - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-next-sibling - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-prev - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-prev-sibling - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-nav-up common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sk-xref-strings - common/dbl1sk.dsl common/dbl10n.dsl - -gentext-sl-element-name - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -gentext-sl-element-name-space - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-intra-label-sep - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-label-title-sep - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-home - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-next - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-next-sibling - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-prev - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-prev-sibling - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-nav-up common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sl-xref-strings - common/dbl1sl.dsl common/dbl10n.dsl - -gentext-sr-element-name - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -gentext-sr-element-name-space - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-intra-label-sep - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-label-title-sep - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-home - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-next - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-next-sibling - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-prev - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-prev-sibling - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-nav-up common/dbl1sr.dsl common/dbl10n.dsl - -gentext-sr-xref-strings - common/dbl1sr.dsl common/dbl10n.dsl - -gentext-start-nested-quote - common/dbl10n.dsl common/dbl10n.dsl - print/dbinline.dsl - -gentext-start-quote - common/dbl10n.dsl common/dbl10n.dsl - print/dbbibl.dsl - print/dbinline.dsl - -gentext-sv-element-name - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -gentext-sv-element-name-space - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-intra-label-sep - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-label-title-sep - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-home - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-next - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-next-sibling - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-prev - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-prev-sibling - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-nav-up common/dbl1sv.dsl common/dbl10n.dsl - -gentext-sv-xref-strings - common/dbl1sv.dsl common/dbl10n.dsl - -gentext-table-endnotes - common/dbl10n.dsl print/dbblock.dsl - common/dbl10n.dsl - -gentext-tr-element-name - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -gentext-tr-element-name-space - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-intra-label-sep - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-label-title-sep - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-home - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-next - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-next-sibling - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-prev - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-prev-sibling - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-nav-up common/dbl1tr.dsl common/dbl10n.dsl - -gentext-tr-xref-strings - common/dbl1tr.dsl common/dbl10n.dsl - -gentext-uk-element-name - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -gentext-uk-element-name-space - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-intra-label-sep - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-label-title-sep - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-home - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-next - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-next-sibling - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-prev - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-prev-sibling - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-nav-up common/dbl1uk.dsl common/dbl10n.dsl - -gentext-uk-xref-strings - common/dbl1uk.dsl common/dbl10n.dsl - -gentext-xh-element-name - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -gentext-xh-element-name-space - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-intra-label-sep - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-label-title-sep - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-home - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-next - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-next-sibling - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-prev - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-prev-sibling - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-nav-up common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xh-xref-strings - common/dbl1xh.dsl common/dbl10n.dsl - -gentext-xref-strings - common/dbl10n.dsl common/dbcommon.dsl - common/dbl10n.dsl - -gentext-zhcn-element-name - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -gentext-zhcn-element-name-space - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-home - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-next - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-next-sibling - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-prev - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-prev-sibling - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-nav-up - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhcn-xref-strings - common/dbl1zhcn.dsl common/dbl10n.dsl - -gentext-zhtw-element-name - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -gentext-zhtw-element-name-space - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-home - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-next - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-next-sibling - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-prev - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-prev-sibling - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-nav-up - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhtw-xref-strings - common/dbl1zhtw.dsl common/dbl10n.dsl - -gentext-zhhk-element-name - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -gentext-zhhk-element-name-space - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-home - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-next - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-next-sibling - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-prev - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-prev-sibling - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-nav-up - common/dbl1zhhk.dsl common/dbl10n.dsl - -gentext-zhhk-xref-strings - common/dbl1zhhk.dsl common/dbl10n.dsl - - -glossary-autolabel common/dbcommon.dsl common/dbcommon.dsl - -glossary-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -glossary-title common/dbcommon.dsl common/dbcommon.dsl - -glossary-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -glossdiv-autolabel common/dbcommon.dsl common/dbcommon.dsl - -graphic-file print/dbgraph.dsl print/dbttlpg.dsl - print/dbgraph.dsl - -have-sibling? print/dbttlpg.dsl print/dbttlpg.dsl - -hspan common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -hu-author-string common/dbl1hu.dsl common/dbl10n.dsl - -hu-auto-xref-indirect-connector - common/dbl1hu.dsl common/dbl10n.dsl - -hu-element-name common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-intra-label-sep common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-label-number-format - common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-label-number-format-list - common/dbl1hu.dsl common/dbl1hu.dsl - -hu-label-title-sep common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -hu-lot-title common/dbl1hu.dsl common/dbl1hu.dsl - -hu-xref-strings common/dbl1hu.dsl common/dbl1hu.dsl - common/dbl10n.dsl - -id-_pagenumber-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-abstract-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-abstract-name common/dbl1id.dsl common/dbl1id.dsl - -id-answer-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-answer-name common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-name common/dbl1id.dsl common/dbl1id.dsl - -id-appendix-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-article-name common/dbl1id.dsl common/dbl1id.dsl - -id-article-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-author-string common/dbl1id.dsl common/dbl10n.dsl - -id-auto-xref-indirect-connector - common/dbl1id.dsl common/dbl10n.dsl - -id-bibliography-name - common/dbl1id.dsl common/dbl1id.dsl - -id-bibliography-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-book-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-book-name common/dbl1id.dsl common/dbl1id.dsl - -id-book-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-calloutlist-name - common/dbl1id.dsl common/dbl1id.dsl - -id-caution-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-caution-name common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-name common/dbl1id.dsl common/dbl1id.dsl - -id-chapter-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-colophon-name common/dbl1id.dsl common/dbl1id.dsl - -id-copyright-name common/dbl1id.dsl common/dbl1id.dsl - -id-dedication-name common/dbl1id.dsl common/dbl1id.dsl - -id-default-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-default-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-default-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-default-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-edition-name common/dbl1id.dsl common/dbl1id.dsl - -id-equation-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-equation-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-equation-name common/dbl1id.dsl common/dbl1id.dsl - -id-equation-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-example-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-example-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-example-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-example-name common/dbl1id.dsl common/dbl1id.dsl - -id-example-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-figure-name common/dbl1id.dsl common/dbl1id.dsl - -id-figure-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-footnote-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glossary-name common/dbl1id.dsl common/dbl1id.dsl - -id-glossary-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-glosssee-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glosssee-name common/dbl1id.dsl common/dbl1id.dsl - -id-glossseealso-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-glossseealso-name - common/dbl1id.dsl common/dbl1id.dsl - -id-important-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-important-name common/dbl1id.dsl common/dbl1id.dsl - -id-index-name common/dbl1id.dsl common/dbl1id.dsl - -id-index-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-informalequation-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-isbn-name common/dbl1id.dsl common/dbl1id.dsl - -id-label-number-format - common/dbl1id.dsl common/dbl10n.dsl - -id-legalnotice-name - common/dbl1id.dsl common/dbl1id.dsl - -id-listitem-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-listitem-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-msgaud-name common/dbl1id.dsl common/dbl1id.dsl - -id-msglevel-name common/dbl1id.dsl common/dbl1id.dsl - -id-msgorig-name common/dbl1id.dsl common/dbl1id.dsl - -id-note-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-note-name common/dbl1id.dsl common/dbl1id.dsl - -id-orderedlist-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-part-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-part-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-part-name common/dbl1id.dsl common/dbl1id.dsl - -id-part-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-preface-name common/dbl1id.dsl common/dbl1id.dsl - -id-preface-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-prefix-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-prefix-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-name common/dbl1id.dsl common/dbl1id.dsl - -id-procedure-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-pubdate-name common/dbl1id.dsl common/dbl1id.dsl - -id-question-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-question-name common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refentry-name common/dbl1id.dsl common/dbl1id.dsl - -id-reference-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-reference-name common/dbl1id.dsl common/dbl1id.dsl - -id-reference-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-refname-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refname-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect1-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect2-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-refsect3-name common/dbl1id.dsl common/dbl1id.dsl - -id-refsynopsisdiv-name - common/dbl1id.dsl common/dbl1id.dsl - -id-revhistory-name common/dbl1id.dsl common/dbl1id.dsl - -id-revision-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect1-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect2-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect3-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect4-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-name common/dbl1id.dsl common/dbl1id.dsl - -id-sect5-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-section-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-section-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-section-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-section-name common/dbl1id.dsl common/dbl1id.dsl - -id-section-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-sectioning-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-seealsoie-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-seealsoie-name common/dbl1id.dsl common/dbl1id.dsl - -id-seeie-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-seeie-name common/dbl1id.dsl common/dbl1id.dsl - -id-set-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-set-name common/dbl1id.dsl common/dbl1id.dsl - -id-setindex-name common/dbl1id.dsl common/dbl1id.dsl - -id-sidebar-name common/dbl1id.dsl common/dbl1id.dsl - -id-sidebar-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-simplesect-name common/dbl1id.dsl common/dbl1id.dsl - -id-step-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-step-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-step-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-step-name common/dbl1id.dsl common/dbl1id.dsl - -id-step-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-table-intra-label-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-table-label-number-format - common/dbl1id.dsl common/dbl1id.dsl - -id-table-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-table-name common/dbl1id.dsl common/dbl1id.dsl - -id-table-xref-string - common/dbl1id.dsl common/dbl1id.dsl - -id-tip-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-tip-name common/dbl1id.dsl common/dbl1id.dsl - -id-toc-name common/dbl1id.dsl common/dbl1id.dsl - -id-warning-label-title-sep - common/dbl1id.dsl common/dbl1id.dsl - -id-warning-name common/dbl1id.dsl common/dbl1id.dsl - -idl-method-synopsis - print/dbefsyn.dsl print/dbefsyn.dsl - -image-library print/dbparam.dsl - -image-library-filename - print/dbparam.dsl - -index-autolabel common/dbcommon.dsl common/dbcommon.dsl - -index-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -index-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -index-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -index-title common/dbcommon.dsl common/dbcommon.dsl - -index-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -indexdiv-autolabel common/dbcommon.dsl common/dbcommon.dsl - -indexentry-link print/dbindex.dsl print/dbindex.dsl - -info-element common/dbcommon.dsl print/dbprint.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbsect.dsl - print/dbcompon.dsl - -info-element-list common/dbcommon.dsl print/dbprint.dsl - print/dbcompon.dsl - -inline-verbatim-style - print/dbverb.dsl print/dbefsyn.dsl - -is-first-para print/dbprint.dsl print/dbprint.dsl - -it-author-string common/dbl1it.dsl common/dbl10n.dsl - -it-auto-xref-indirect-connector - common/dbl1it.dsl common/dbl10n.dsl - -it-element-name common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-intra-label-sep common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-label-number-format - common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-label-number-format-list - common/dbl1it.dsl common/dbl1it.dsl - -it-label-title-sep common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -it-lot-title common/dbl1it.dsl common/dbl1it.dsl - -it-xref-strings common/dbl1it.dsl common/dbl1it.dsl - common/dbl10n.dsl - -ja-author-string common/dbl1ja.dsl common/dbl10n.dsl - -ja-auto-xref-indirect-connector - common/dbl1ja.dsl common/dbl10n.dsl - -ja-element-name common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-intra-label-sep common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-label-number-format - common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-label-number-format-list - common/dbl1ja.dsl common/dbl1ja.dsl - -ja-label-title-sep common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -ja-lot-title common/dbl1ja.dsl common/dbl1ja.dsl - -ja-xref-strings common/dbl1ja.dsl common/dbl10n.dsl - common/dbl1ja.dsl - -java-method-synopsis - print/dbefsyn.dsl print/dbefsyn.dsl - -ko-author-string common/dbl1ko.dsl common/dbl10n.dsl - -ko-auto-xref-indirect-connector - common/dbl1ko.dsl common/dbl10n.dsl - -ko-element-name common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-intra-label-sep common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-label-number-format - common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-label-number-format-list - common/dbl1ko.dsl common/dbl1ko.dsl - -ko-label-title-sep common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -ko-lot-title common/dbl1ko.dsl common/dbl1ko.dsl - -ko-xref-strings common/dbl1ko.dsl common/dbl1ko.dsl - common/dbl10n.dsl - -label-number-format - common/dbl10n.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -lang-fix common/dbl10n.dsl common/dbl10n.dsl - -legalnotice-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -linespecific-style print/dbverb.dsl print/dbverb.dsl - print/dblists.dsl - -list-element-list common/dbcommon.dsl common/dbcommon.dsl - -listitem-autolabel common/dbcommon.dsl common/dbcommon.dsl - -local-af-intra-label-sep - common/dbl1af.dsl - -local-af-label-title-sep - common/dbl1af.dsl - -local-ca-intra-label-sep - common/dbl1ca.dsl common/dbl1ca.dsl - -local-ca-label-title-sep - common/dbl1ca.dsl common/dbl1ca.dsl - -local-cs-intra-label-sep - common/dbl1cs.dsl common/dbl1cs.dsl - -local-cs-label-title-sep - common/dbl1cs.dsl common/dbl1cs.dsl - -local-da-intra-label-sep - common/dbl1da.dsl common/dbl1da.dsl - -local-da-label-title-sep - common/dbl1da.dsl common/dbl1da.dsl - -local-de-intra-label-sep - common/dbl1de.dsl common/dbl1de.dsl - -local-de-label-title-sep - common/dbl1de.dsl common/dbl1de.dsl - -local-el-intra-label-sep - common/dbl1el.dsl common/dbl1el.dsl - -local-el-label-title-sep - common/dbl1el.dsl common/dbl1el.dsl - -local-en-intra-label-sep - common/dbl1en.dsl common/dbl1en.dsl - -local-en-label-title-sep - common/dbl1en.dsl common/dbl1en.dsl - -local-es-intra-label-sep - common/dbl1es.dsl common/dbl1es.dsl - -local-es-label-title-sep - common/dbl1es.dsl common/dbl1es.dsl - -local-et-intra-label-sep - common/dbl1et.dsl - -local-et-label-title-sep - common/dbl1et.dsl common/dbl1et.dsl - -local-eu-intra-label-sep - common/dbl1eu.dsl common/dbl1eu.dsl - -local-eu-label-title-sep - common/dbl1eu.dsl common/dbl1eu.dsl - -local-fi-intra-label-sep - common/dbl1fi.dsl common/dbl1fi.dsl - -local-fi-label-title-sep - common/dbl1fi.dsl common/dbl1fi.dsl - -local-fr-intra-label-sep - common/dbl1fr.dsl common/dbl1fr.dsl - -local-fr-label-title-sep - common/dbl1fr.dsl common/dbl1fr.dsl - -local-hu-intra-label-sep - common/dbl1hu.dsl common/dbl1hu.dsl - -local-hu-label-title-sep - common/dbl1hu.dsl common/dbl1hu.dsl - -local-it-intra-label-sep - common/dbl1it.dsl common/dbl1it.dsl - -local-it-label-title-sep - common/dbl1it.dsl common/dbl1it.dsl - -local-ja-intra-label-sep - common/dbl1ja.dsl common/dbl1ja.dsl - -local-ja-label-title-sep - common/dbl1ja.dsl common/dbl1ja.dsl - -local-ko-intra-label-sep - common/dbl1ko.dsl common/dbl1ko.dsl - -local-ko-label-title-sep - common/dbl1ko.dsl common/dbl1ko.dsl - -local-nl-intra-label-sep - common/dbl1nl.dsl common/dbl1nl.dsl - -local-nl-label-title-sep - common/dbl1nl.dsl common/dbl1nl.dsl - -local-nn-intra-label-sep - common/dbl1nn.dsl common/dbl1nn.dsl - -local-nn-label-title-sep - common/dbl1nn.dsl common/dbl1nn.dsl - -local-no-intra-label-sep - common/dbl1no.dsl common/dbl1no.dsl - -local-no-label-title-sep - common/dbl1no.dsl common/dbl1no.dsl - -local-pl-intra-label-sep - common/dbl1pl.dsl common/dbl1pl.dsl - -local-pl-label-title-sep - common/dbl1pl.dsl common/dbl1pl.dsl - -local-pt-intra-label-sep - common/dbl1pt.dsl common/dbl1pt.dsl - -local-pt-label-title-sep - common/dbl1pt.dsl common/dbl1pt.dsl - -local-ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -local-ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -local-ro-intra-label-sep - common/dbl1ro.dsl common/dbl1ro.dsl - -local-ro-label-title-sep - common/dbl1ro.dsl common/dbl1ro.dsl - -local-ru-intra-label-sep - common/dbl1ru.dsl common/dbl1ru.dsl - -local-ru-label-title-sep - common/dbl1ru.dsl common/dbl1ru.dsl - -local-sk-intra-label-sep - common/dbl1sk.dsl common/dbl1sk.dsl - -local-sk-label-title-sep - common/dbl1sk.dsl common/dbl1sk.dsl - -local-sl-intra-label-sep - common/dbl1sl.dsl common/dbl1sl.dsl - -local-sl-label-title-sep - common/dbl1sl.dsl common/dbl1sl.dsl - -local-sr-intra-label-sep - common/dbl1sr.dsl common/dbl1sr.dsl - -local-sr-label-title-sep - common/dbl1sr.dsl common/dbl1sr.dsl - -local-sv-intra-label-sep - common/dbl1sv.dsl common/dbl1sv.dsl - -local-sv-label-title-sep - common/dbl1sv.dsl common/dbl1sv.dsl - -local-tr-intra-label-sep - common/dbl1tr.dsl common/dbl1tr.dsl - -local-tr-label-title-sep - common/dbl1tr.dsl - -local-uk-intra-label-sep - common/dbl1uk.dsl common/dbl1uk.dsl - -local-uk-label-title-sep - common/dbl1uk.dsl common/dbl1uk.dsl - -local-xh-intra-label-sep - common/dbl1xh.dsl common/dbl1xh.dsl - -local-xh-label-title-sep - common/dbl1xh.dsl common/dbl1xh.dsl - -local-zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -local-zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -local-zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -local-zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -local-zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -local-zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -lot-title print/dbautoc.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - print/dbautoc.dsl - common/dbl1no.dsl - common/dbl10n.dsl - common/dbl1eu.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -major-component-element-list - common/dbcommon.dsl - -make-endnote-header - print/dbblock.dsl print/dbblock.dsl - -make-endnotes print/dbblock.dsl print/dbindex.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - print/dbbibl.dsl - -make-table-endnote-header - print/dbblock.dsl print/dbblock.dsl - -make-table-endnotes - print/dbblock.dsl print/dbtable.dsl - -mif-backend print/dbparam.dsl print/dbprint.dsl - print/dbparam.dsl - -named-formal-objects - print/dbblock.dsl print/dbblock.dsl - -nl-author-string common/dbl1nl.dsl common/dbl10n.dsl - -nl-auto-xref-indirect-connector - common/dbl1nl.dsl common/dbl10n.dsl - -nl-element-name common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-intra-label-sep common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-label-number-format - common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-label-number-format-list - common/dbl1nl.dsl common/dbl1nl.dsl - -nl-label-title-sep common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nl-lot-title common/dbl1nl.dsl common/dbl1nl.dsl - -nl-xref-strings common/dbl1nl.dsl common/dbl10n.dsl - common/dbl1nl.dsl - -nn-author-string common/dbl1nn.dsl common/dbl10n.dsl - -nn-auto-xref-indirect-connector - common/dbl1nn.dsl common/dbl10n.dsl - -nn-element-name common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-intra-label-sep common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-label-number-format - common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-label-number-format-list - common/dbl1nn.dsl common/dbl1nn.dsl - -nn-label-title-sep common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -nn-lot-title common/dbl1nn.dsl common/dbl1nn.dsl - -nn-xref-strings common/dbl1nn.dsl common/dbl1nn.dsl - common/dbl10n.dsl - -no-author-string common/dbl1no.dsl common/dbl10n.dsl - -no-auto-xref-indirect-connector - common/dbl1no.dsl common/dbl10n.dsl - -no-element-name common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-intra-label-sep common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-label-number-format - common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-label-number-format-list - common/dbl1no.dsl common/dbl1no.dsl - -no-label-title-sep common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -no-lot-title common/dbl1no.dsl common/dbl1no.dsl - -no-xref-strings common/dbl1no.dsl common/dbl1no.dsl - common/dbl10n.dsl - -non-table-footnotes - print/dbblock.dsl print/dbblock.dsl - -nop-style print/dbprint.dsl print/dblists.dsl - -normalized-member common/dbcommon.dsl common/dbcommon.dsl - -number-with-numeration - print/dblists.dsl print/dblists.dsl - -object-title-after print/dbblock.dsl print/dbblock.dsl - print/dbmath.dsl - -olink-link print/dblink.dsl print/dblink.dsl - -olink-outline print/dblink.dsl print/dblink.dsl - -olink-outline-xref print/dblink.dsl print/dblink.dsl - -olink-resource-title - common/dbcommon.dsl print/dblink.dsl - -olink-simple print/dblink.dsl print/dblink.dsl - -optional-title common/dbcommon.dsl common/dbcommon.dsl - -optional-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -orderedlist-listitem-label - common/dbcommon.dsl common/dbcommon.dsl - print/dblink.dsl - -orderedlist-listitem-label-recursive - common/dbcommon.dsl print/dblink.dsl - -orderedlist-listitem-number - common/dbcommon.dsl common/dbcommon.dsl - print/dblists.dsl - -outer-parent-list common/dbcommon.dsl print/dbprint.dsl - -overhang-skip common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -page-center-footer print/dbcompon.dsl print/dbcompon.dsl - -page-center-header print/dbcompon.dsl print/dbcompon.dsl - -page-inner-footer print/dbcompon.dsl print/dbcompon.dsl - -page-inner-header print/dbcompon.dsl print/dbcompon.dsl - -page-outer-footer print/dbcompon.dsl print/dbcompon.dsl - -page-outer-header print/dbcompon.dsl print/dbcompon.dsl - -paramdef-parameter print/dbsynop.dsl print/dbsynop.dsl - -part-autolabel common/dbcommon.dsl common/dbcommon.dsl - -part-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -part-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -part-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -part-title common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - -part-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -part-titlepage print/dbttlpg.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -part-titlepage-abbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-abstract - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-address - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-affiliation - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-artpagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-author - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-authorblurb - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-authorgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-authorinitials - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-before - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-bibliomisc - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-biblioset - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-bookbiblio - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-citetitle - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-collab - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-confgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-content? - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-contractnum - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-contractsponsor - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-contrib - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-copyright - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-corpauthor - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-corpname - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-date - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-default - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-edition - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-editor - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-element - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-firstname - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-graphic - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-honorific - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-indexterm - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-invpartnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-isbn - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-issn - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-issuenum - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-itermset - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-keywordset - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-legalnotice - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-lineage - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-mediaobject - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-modespec - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-orgname - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-othercredit - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-othername - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-pagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-printhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-productname - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-productnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-pubdate - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-publisher - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-publishername - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-pubsnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-recto-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-recto-style - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-releaseinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-revhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-seriesinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-seriesvolnums - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-subjectset - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-subtitle - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-surname - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-title - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-titleabbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-verso-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-verso-style - print/dbttlpg.dsl print/dbttlpg.dsl - -part-titlepage-volumenum - print/dbttlpg.dsl print/dbttlpg.dsl - -perl-method-synopsis - print/dbefsyn.dsl print/dbefsyn.dsl - -pl-author-string common/dbl1pl.dsl common/dbl10n.dsl - -pl-auto-xref-indirect-connector - common/dbl1pl.dsl common/dbl10n.dsl - -pl-element-name common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-intra-label-sep common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-label-number-format - common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-label-number-format-list - common/dbl1pl.dsl common/dbl1pl.dsl - -pl-label-title-sep common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -pl-lot-title common/dbl1pl.dsl common/dbl1pl.dsl - -pl-xref-strings common/dbl1pl.dsl common/dbl1pl.dsl - common/dbl10n.dsl - -preface-autolabel common/dbcommon.dsl common/dbcommon.dsl - -preface-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -preface-title common/dbcommon.dsl common/dbcommon.dsl - -preface-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -preferred-mediaobject-extensions - print/db31.dsl common/dbcommon.dsl - -preferred-mediaobject-notations - print/db31.dsl common/dbcommon.dsl - -print-backend print/dbprint.dsl print/dbblock.dsl - print/dbparam.dsl print/dbttlpg.dsl - print/dbprint.dsl - print/dblink.dsl - print/dbtable.dsl - -process-listitem-content - print/dblists.dsl print/dblists.dsl - -process-qanda print/db31.dsl print/db31.dsl - -pt-author-string common/dbl1pt.dsl common/dbl10n.dsl - -pt-auto-xref-indirect-connector - common/dbl1pt.dsl common/dbl10n.dsl - -pt-element-name common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-intra-label-sep common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-label-number-format - common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-label-number-format-list - common/dbl1pt.dsl common/dbl1pt.dsl - -pt-label-title-sep common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -pt-lot-title common/dbl1pt.dsl common/dbl1pt.dsl - -pt-xref-strings common/dbl1pt.dsl common/dbl10n.dsl - common/dbl1pt.dsl - -ptbr-author-string common/dbl1ptbr.dsl common/dbl10n.dsl - -ptbr-auto-xref-indirect-connector - common/dbl1ptbr.dsl common/dbl10n.dsl - -ptbr-element-name common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-intra-label-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-label-number-format - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-label-number-format-list - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -ptbr-label-title-sep - common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -ptbr-lot-title common/dbl1ptbr.dsl common/dbl1ptbr.dsl - -ptbr-xref-strings common/dbl1ptbr.dsl common/dbl1ptbr.dsl - common/dbl10n.dsl - -python-method-synopsis - print/dbefsyn.dsl print/dbefsyn.dsl - -qanda-defaultlabel print/db31.dsl print/db31.dsl - common/dbcommon.dsl - -question-answer-label - common/dbcommon.dsl print/db31.dsl - print/dblink.dsl - -refentry-autolabel common/dbcommon.dsl common/dbcommon.dsl - -refentry-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -refentry-title common/dbcommon.dsl common/dbcommon.dsl - print/dbrfntry.dsl - -refentry-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -reference-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -reference-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -reference-title common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbrfntry.dsl - -reference-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -reference-titlepage - print/dbttlpg.dsl print/dbttlpg.dsl - print/dbrfntry.dsl - -reference-titlepage-abbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-abstract - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-address - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-affiliation - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-artpagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-author - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-authorblurb - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-authorgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-authorinitials - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-before - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-bibliomisc - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-biblioset - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-bookbiblio - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-citetitle - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-collab - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-confgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-content? - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-contractnum - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-contractsponsor - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-contrib - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-copyright - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-corpauthor - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-corpname - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-date - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-default - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-edition - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-editor - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-element - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-firstname - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-graphic - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-honorific - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-indexterm - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-invpartnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-isbn - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-issn - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-issuenum - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-itermset - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-keywordset - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-legalnotice - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-lineage - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-mediaobject - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-modespec - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-orgname - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-othercredit - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-othername - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-pagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-printhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-productname - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-productnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-pubdate - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-publisher - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-publishername - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-pubsnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-recto-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-recto-style - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-releaseinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-revhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-seriesinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-seriesvolnums - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-subjectset - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-subtitle - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-surname - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-title - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-titleabbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-verso-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-verso-style - print/dbttlpg.dsl print/dbttlpg.dsl - -reference-titlepage-volumenum - print/dbttlpg.dsl print/dbttlpg.dsl - -refsection-autolabel - common/dbcommon.dsl common/dbcommon.dsl - -refsection-title common/dbcommon.dsl common/dbcommon.dsl - -refsection-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -refsynopsisdiv-title - common/dbcommon.dsl common/dbcommon.dsl - -refsynopsisdiv-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -ro-author-string common/dbl1ro.dsl common/dbl10n.dsl - -ro-auto-xref-indirect-connector - common/dbl1ro.dsl common/dbl10n.dsl - -ro-element-name common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-intra-label-sep common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-label-number-format - common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-label-number-format-list - common/dbl1ro.dsl common/dbl1ro.dsl - -ro-label-title-sep common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -ro-lot-title common/dbl1ro.dsl common/dbl1ro.dsl - -ro-xref-strings common/dbl1ro.dsl common/dbl10n.dsl - common/dbl1ro.dsl - -rtf-backend print/dbparam.dsl print/dbprint.dsl - print/dbparam.dsl - -ru-author-string common/dbl1ru.dsl common/dbl10n.dsl - -ru-auto-xref-indirect-connector - common/dbl1ru.dsl common/dbl10n.dsl - -ru-element-name common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-intra-label-sep common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-label-number-format - common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-label-number-format-list - common/dbl1ru.dsl common/dbl1ru.dsl - -ru-label-title-sep common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -ru-lot-title common/dbl1ru.dsl common/dbl1ru.dsl - -ru-xref-strings common/dbl1ru.dsl common/dbl10n.dsl - common/dbl1ru.dsl - -section-autolabel common/dbcommon.dsl common/dbl1ptbr.dsl - common/dbl1hu.dsl - common/dbl1zhcn.dsl - common/dbl1zhtw.dsl - common/dbl1zhhk.dsl - common/dbl1nn.dsl - common/dbl1da.dsl - common/dbl1et.dsl - common/dbl1sr.dsl - common/dbl1ko.dsl - common/dbl1de.dsl - common/dbl1ca.dsl - common/dbl1it.dsl - common/dbcommon.dsl - common/dbl1sv.dsl - common/dbl1af.dsl - common/dbl1sk.dsl - common/dbl1pl.dsl - common/dbl1es.dsl - common/dbl1no.dsl - common/dbl1eu.dsl - common/dbl1id.dsl - common/dbl1ro.dsl - common/dbl1xh.dsl - common/dbl1el.dsl - common/dbl1fr.dsl - common/dbl1ja.dsl - common/dbl1en.dsl - common/dbl1pt.dsl - common/dbl1sl.dsl - common/dbl1nl.dsl - common/dbl1cs.dsl - common/dbl1fi.dsl - common/dbl1tr.dsl - common/dbl1uk.dsl - common/dbl1ru.dsl - -section-autolabel-prefix - common/dbcommon.dsl common/dbcommon.dsl - -section-element-list - common/dbcommon.dsl common/dbcommon.dsl - print/dbautoc.dsl - print/dbbibl.dsl - -section-level-by-gi - common/dbcommon.dsl common/dbcommon.dsl - print/dbsect.dsl - -section-level-by-node - common/dbcommon.dsl print/dbsect.dsl - -section-title common/dbcommon.dsl print/db31.dsl - common/dbcommon.dsl - print/dbdivis.dsl - print/dbsect.dsl - print/dbbibl.dsl - -section-title-sosofo - common/dbcommon.dsl common/dbcommon.dsl - -select-displayable-object - common/dbcommon.dsl common/dbcommon.dsl - -set-autolabel common/dbcommon.dsl common/dbcommon.dsl - -set-element-list common/dbcommon.dsl - -set-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -set-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -set-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -set-title common/dbcommon.dsl common/dbcommon.dsl - print/dbttlpg.dsl - print/dbdivis.dsl - -set-title-sosofo common/dbcommon.dsl common/dbcommon.dsl - -set-titlepage print/dbttlpg.dsl print/dbttlpg.dsl - print/dbdivis.dsl - -set-titlepage-abbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-abstract - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-address - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-affiliation - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-artpagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-author - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-authorblurb - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-authorgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-authorinitials - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-before - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-bibliomisc - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-biblioset - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-bookbiblio - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-citetitle - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-collab - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-confgroup - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-content? - print/dbttlpg.dsl - -set-titlepage-contractnum - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-contractsponsor - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-contrib - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-copyright - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-corpauthor - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-corpname - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-date print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-default - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-edition - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-editor - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-element - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-firstname - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-graphic - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-honorific - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-indexterm - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-invpartnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-isbn print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-issn print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-issuenum - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-itermset - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-keywordset - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-legalnotice - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-lineage - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-mediaobject - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-modespec - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-orgname - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-othercredit - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-othername - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-pagenums - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-printhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-productname - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-productnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-pubdate - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-publisher - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-publishername - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-pubsnumber - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-recto-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-recto-style - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-releaseinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-revhistory - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-seriesinfo - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-seriesvolnums - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-subjectset - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-subtitle - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-surname - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-title - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-titleabbrev - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-verso-elements - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-verso-style - print/dbttlpg.dsl print/dbttlpg.dsl - -set-titlepage-volumenum - print/dbttlpg.dsl print/dbttlpg.dsl - -setindex-autolabel common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-ignore-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-restart-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-number-sibling-list - common/dbcommon.dsl common/dbcommon.dsl - -setindex-title common/dbcommon.dsl common/dbcommon.dsl - -setindex-title-sosofo - common/dbcommon.dsl - -sidebar-autolabel common/dbcommon.dsl common/dbcommon.dsl - -simplelist-entry print/dblists.dsl print/dblists.dsl - -simplelist-row print/dblists.dsl print/dblists.dsl - -simplelist-table print/dblists.dsl print/dblists.dsl - -sk-author-string common/dbl1sk.dsl common/dbl10n.dsl - -sk-auto-xref-indirect-connector - common/dbl1sk.dsl common/dbl10n.dsl - -sk-element-name common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-intra-label-sep common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-label-number-format - common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-label-number-format-list - common/dbl1sk.dsl common/dbl1sk.dsl - -sk-label-title-sep common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sk-lot-title common/dbl1sk.dsl common/dbl1sk.dsl - -sk-xref-strings common/dbl1sk.dsl common/dbl1sk.dsl - common/dbl10n.dsl - -sl-author-string common/dbl1sl.dsl common/dbl10n.dsl - -sl-auto-xref-indirect-connector - common/dbl1sl.dsl common/dbl10n.dsl - -sl-element-name common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-intra-label-sep common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-label-number-format - common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-label-number-format-list - common/dbl1sl.dsl common/dbl1sl.dsl - -sl-label-title-sep common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -sl-lot-title common/dbl1sl.dsl common/dbl1sl.dsl - -sl-xref-strings common/dbl1sl.dsl common/dbl10n.dsl - common/dbl1sl.dsl - -spanspec-align common/dbtable.dsl print/dbtable.dsl - -spanspec-char common/dbtable.dsl - -spanspec-charoff common/dbtable.dsl - -spanspec-colsep common/dbtable.dsl print/dbtable.dsl - -spanspec-nameend common/dbtable.dsl common/dbtable.dsl - -spanspec-namest common/dbtable.dsl common/dbtable.dsl - -spanspec-rowsep common/dbtable.dsl print/dbtable.dsl - -spanspec-spanname common/dbtable.dsl - -sr-author-string common/dbl1sr.dsl common/dbl10n.dsl - -sr-auto-xref-indirect-connector - common/dbl1sr.dsl common/dbl10n.dsl - -sr-element-name common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-intra-label-sep common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-label-number-format - common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-label-number-format-list - common/dbl1sr.dsl common/dbl1sr.dsl - -sr-label-title-sep common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -sr-lot-title common/dbl1sr.dsl common/dbl1sr.dsl - -sr-xref-strings common/dbl1sr.dsl common/dbl1sr.dsl - common/dbl10n.dsl - -step-autolabel common/dbcommon.dsl common/dbcommon.dsl - -stylesheet-version print/version.dsl - -sv-author-string common/dbl1sv.dsl common/dbl10n.dsl - -sv-auto-xref-indirect-connector - common/dbl1sv.dsl common/dbl10n.dsl - -sv-element-name common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-intra-label-sep common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-label-number-format - common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-label-number-format-list - common/dbl1sv.dsl common/dbl1sv.dsl - -sv-label-title-sep common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -sv-lot-title common/dbl1sv.dsl common/dbl1sv.dsl - -sv-xref-strings common/dbl1sv.dsl common/dbl1sv.dsl - common/dbl10n.dsl - -table-footnote-number - print/dbblock.dsl print/dbblock.dsl - -tex-backend print/dbparam.dsl print/dbprint.dsl - print/dbparam.dsl - -tgroup-align common/dbtable.dsl print/dbtable.dsl - -tgroup-colsep common/dbtable.dsl print/dbtable.dsl - -tgroup-rowsep common/dbtable.dsl print/dbtable.dsl - -title-style print/dbtitle.dsl print/dbbibl.dsl - print/dblists.dsl - -titlepage-content? print/dbttlpg.dsl print/dbttlpg.dsl - print/dbcompon.dsl - -titlepage-gi-list-by-elements - print/dbttlpg.dsl print/dbttlpg.dsl - print/dbbibl.dsl - -titlepage-gi-list-by-nodelist - print/dbttlpg.dsl print/dbttlpg.dsl - print/dbbibl.dsl - -titlepage-info-elements - common/dbcommon.dsl print/dbdivis.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - -titlepage-nodelist print/dbttlpg.dsl print/dbttlpg.dsl - -toc-depth print/dbautoc.dsl print/dbttlpg.dsl - print/dbdivis.dsl - print/dbrfntry.dsl - print/dbcompon.dsl - -toc-list-filter common/dbcommon.dsl print/dbautoc.dsl - -toc-title print/dbautoc.dsl print/dbautoc.dsl - -tr-author-string common/dbl1tr.dsl common/dbl10n.dsl - -tr-auto-xref-indirect-connector - common/dbl1tr.dsl common/dbl10n.dsl - -tr-element-name common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-intra-label-sep common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-label-number-format - common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-label-number-format-list - common/dbl1tr.dsl common/dbl1tr.dsl - -tr-label-title-sep common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -tr-lot-title common/dbl1tr.dsl common/dbl1tr.dsl - -tr-xref-strings common/dbl1tr.dsl common/dbl10n.dsl - common/dbl1tr.dsl - -uk-author-string common/dbl1uk.dsl common/dbl10n.dsl - -uk-auto-xref-indirect-connector - common/dbl1uk.dsl common/dbl10n.dsl - -uk-element-name common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-intra-label-sep common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-label-number-format - common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-label-number-format-list - common/dbl1uk.dsl common/dbl1uk.dsl - -uk-label-title-sep common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -uk-lot-title common/dbl1uk.dsl common/dbl1uk.dsl - -uk-xref-strings common/dbl1uk.dsl common/dbl10n.dsl - common/dbl1uk.dsl - -update-overhang common/dbtable.dsl print/dbtable.dsl - -variablelist-term-too-long? - common/dbcommon.dsl print/dblists.dsl - -varlistentry-term-too-long? - common/dbcommon.dsl common/dbcommon.dsl - print/dblists.dsl - -verbatim-style print/dbverb.dsl print/dbverb.dsl - print/dbefsyn.dsl - print/dblists.dsl - -vspan common/dbtable.dsl common/dbtable.dsl - print/dbtable.dsl - -xh-author-string common/dbl1xh.dsl common/dbl10n.dsl - -xh-auto-xref-indirect-connector - common/dbl1xh.dsl common/dbl10n.dsl - -xh-element-name common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-intra-label-sep common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-label-number-format - common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-label-number-format-list - common/dbl1xh.dsl common/dbl1xh.dsl - -xh-label-title-sep common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xh-lot-title common/dbl1xh.dsl common/dbl1xh.dsl - -xh-xref-strings common/dbl1xh.dsl common/dbl10n.dsl - common/dbl1xh.dsl - -xref-answer print/dblink.dsl print/dblink.dsl - -xref-author print/dblink.dsl print/dblink.dsl - -xref-authorgroup print/dblink.dsl print/dblink.dsl - -xref-biblioentry print/dblink.dsl print/dblink.dsl - -xref-callout print/dblink.dsl print/dblink.dsl - -xref-general print/dblink.dsl print/dblink.dsl - -xref-glossentry print/dblink.dsl print/dblink.dsl - -xref-listitem print/dblink.dsl print/dblink.dsl - -xref-question print/dblink.dsl print/dblink.dsl - -xref-refentry print/dblink.dsl print/dblink.dsl - -xref-refnamediv print/dblink.dsl print/dblink.dsl - -xreflabel-sosofo print/dblink.dsl print/dblink.dsl - -zhcn-author-string common/dbl1zhcn.dsl common/dbl10n.dsl - -zhcn-auto-xref-indirect-connector - common/dbl1zhcn.dsl common/dbl10n.dsl - -zhcn-element-name common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-intra-label-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-label-number-format - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-label-number-format-list - common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -zhcn-label-title-sep - common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhcn-lot-title common/dbl1zhcn.dsl common/dbl1zhcn.dsl - -zhcn-xref-strings common/dbl1zhcn.dsl common/dbl10n.dsl - common/dbl1zhcn.dsl - -zhtw-author-string common/dbl1zhtw.dsl common/dbl10n.dsl - -zhtw-auto-xref-indirect-connector - common/dbl1zhtw.dsl common/dbl10n.dsl - -zhtw-element-name common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-intra-label-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-label-number-format - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-label-number-format-list - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -zhtw-label-title-sep - common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhtw-lot-title common/dbl1zhtw.dsl common/dbl1zhtw.dsl - -zhtw-xref-strings common/dbl1zhtw.dsl common/dbl1zhtw.dsl - common/dbl10n.dsl - -zhhk-author-string common/dbl1zhhk.dsl common/dbl10n.dsl - -zhhk-auto-xref-indirect-connector - common/dbl1zhhk.dsl common/dbl10n.dsl - -zhhk-element-name common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-intra-label-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-label-number-format - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-label-number-format-list - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -zhhk-label-title-sep - common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - -zhhk-lot-title common/dbl1zhhk.dsl common/dbl1zhhk.dsl - -zhhk-xref-strings common/dbl1zhhk.dsl common/dbl1zhhk.dsl - common/dbl10n.dsl - diff --git a/docs/dsssl/docbook/print/catalog b/docs/dsssl/docbook/print/catalog deleted file mode 100755 index f5ce23a1..00000000 --- a/docs/dsssl/docbook/print/catalog +++ /dev/null @@ -1,3 +0,0 @@ -CATALOG "../catalog" - - diff --git a/docs/dsssl/docbook/print/db31.dsl b/docs/dsssl/docbook/print/db31.dsl deleted file mode 100755 index 1f5c206f..00000000 --- a/docs/dsssl/docbook/print/db31.dsl +++ /dev/null @@ -1,224 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; This module implements support for elements introduced in DocBook 3.1. -;; When DocBook 3.1 is officially released, these rules will get folded -;; into more appropriate modules. - -;; ====================================================================== -;; MediaObject and friends... - -(define preferred-mediaobject-notations - (list "EPS" "PS" "JPG" "JPEG" "PNG" "linespecific")) - -(define preferred-mediaobject-extensions - (list "eps" "ps" "jpg" "jpeg" "png")) - -(define acceptable-mediaobject-notations - (list "GIF" "GIF87a" "GIF89a" "BMP" "WMF")) - -(define acceptable-mediaobject-extensions - (list "gif" "bmp" "wmf")) - -(element mediaobject - (make paragraph - ($mediaobject$))) - -(element inlinemediaobject - (make sequence - ($mediaobject$))) - -(element mediaobjectco - (error "MediaObjectCO is not supported yet.")) - -(element imageobjectco - (error "ImageObjectCO is not supported yet.")) - -(element objectinfo - (empty-sosofo)) - -(element videoobject - (process-children)) - -(element videodata - (empty-sosofo)) - -(element audioobject - (process-children)) - -(element audiodata - (empty-sosofo)) - -(element imageobject - (process-children)) - -(element imagedata - (if (have-ancestor? (normalize "mediaobject")) - ($img$ (current-node) #t) - ($img$ (current-node) #f))) - -(element textobject - (make display-group - (process-children))) - -(element caption - (process-children)) - -;; ====================================================================== -;; InformalFigure - -(element informalfigure - ($informal-object$ %informalfigure-rules% %informalfigure-rules%)) - -;; ====================================================================== -;; Colophon - -(element colophon - ($component$)) - -;; ====================================================================== -;; section -;; sectioninfo - -(element section ($section$)) -(element (section title) (empty-sosofo)) - -;; ====================================================================== -;; QandASet and friends - -(define (qanda-defaultlabel) - (normalize "number")) - -(element qandaset - (let ((title (select-elements (children (current-node)) - (normalize "title")))) - (make display-group - (process-node-list title) - (process-qanda)))) - -(element (qandaset title) - (let* ((enclsect (ancestor-member (current-node) - (list (normalize "section") - (normalize "simplesect") - (normalize "sect5") - (normalize "sect4") - (normalize "sect3") - (normalize "sect2") - (normalize "sect1") - (normalize "refsect3") - (normalize "refsect2") - (normalize "refsect1")))) - (sectlvl (SECTLEVEL enclsect)) - (hs (HSIZE (- 4 (+ sectlvl 1))))) - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< sectlvl 5) 'bold 'medium) - font-posture: (if (< sectlvl 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: %body-start-indent% - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - (process-children)))) - -(element qandadiv - (let ((title (select-elements (children (current-node)) - (normalize "title")))) - (make sequence - (process-node-list title) - (make display-group - start-indent: (+ (inherited-start-indent) 2pi) - (process-qanda))))) - -(element (qandadiv title) - (let* ((hnr (hierarchical-number-recursive (normalize "qandadiv") - (current-node))) - (number (let loop ((numlist hnr) (number "") (sep "")) - (if (null? numlist) - number - (loop (cdr numlist) - (string-append number - sep - (number->string (car numlist))) - "."))))) - (make paragraph - font-weight: 'bold - space-after: %block-sep% - (literal number ". ") - (process-children)))) - -(define (process-qanda #!optional (node (current-node))) - (let* ((preamble (node-list-filter-by-not-gi - (children node) - (list (normalize "title") - (normalize "qandadiv") - (normalize "qandaentry")))) - (divs (node-list-filter-by-gi (children node) - (list (normalize "qandadiv")))) - (entries (node-list-filter-by-gi (children node) - (list (normalize "qandaentry")))) - (inhlabel (inherited-attribute-string (normalize "defaultlabel"))) - (deflabel (if inhlabel inhlabel (qanda-defaultlabel)))) - (make sequence - (process-node-list preamble) - (process-node-list divs) - (process-node-list entries)))) - -(element qandaentry - (process-children)) - -;; space-after on quanda answer is excessive; keep with next should be -;; upstream -;; Adam Di Carlo, adam@onshore.com -(element question - (let* ((chlist (children (current-node))) - (firstch (node-list-first chlist)) - (restch (node-list-rest chlist)) - (label (question-answer-label (current-node)))) - (make sequence - (make paragraph - space-after: (/ %para-sep% 2) - keep-with-next?: #t - (make sequence - (make sequence - font-weight: 'bold - (if (string=? label "") - (empty-sosofo) - (literal label " "))) - (process-node-list (children firstch))) - (process-node-list restch))))) - -(element answer - (let* ((chlist (children (current-node))) - (firstch (node-list-first chlist)) - (restch (node-list-rest chlist)) - (label (question-answer-label (current-node)))) - (make display-group - space-after: %block-sep% - (make paragraph - (make sequence - (make sequence - font-weight: 'bold - (if (string=? label "") - (empty-sosofo) - (literal label " "))) - (process-node-list (children firstch)))) - (process-node-list restch)))) - -;; ====================================================================== -;; constant - -(element constant - ($mono-seq$)) - -;; ====================================================================== -;; varname - -(element varname - ($mono-seq$)) diff --git a/docs/dsssl/docbook/print/dbadmon.dsl b/docs/dsssl/docbook/print/dbadmon.dsl deleted file mode 100755 index c4a2def7..00000000 --- a/docs/dsssl/docbook/print/dbadmon.dsl +++ /dev/null @@ -1,160 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================ ADMONITIONS ============================= - -(define ($graphical-admonition$) - (let* ((adm (current-node)) - (title (select-elements (children adm) - (normalize "title"))) - (title? (not (node-list-empty? title))) - (adm-title (if title? - (with-mode title-sosofo-mode - (process-node-list (node-list-first title))) - (literal (gentext-element-name adm)))) - (graphic (make external-graphic - display?: #f - entity-system-id: ($admon-graphic$))) - (f-child (node-list-first (children (current-node)))) - (r-child (node-list-rest (children (current-node))))) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: (+ (inherited-start-indent) ($admon-graphic-width$)) - font-family-name: %admon-font-family% - font-size: (- %bf-size% 1pt) - font-weight: 'medium - font-posture: 'upright - line-spacing: (* (- %bf-size% 1pt) %line-spacing-factor%) - (if title? - (make display-group - (make paragraph - first-line-start-indent: (- ($admon-graphic-width$)) - (make line-field - field-width: ($admon-graphic-width$) - graphic) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - adm-title)) - (process-children)) - (make display-group - (make paragraph - first-line-start-indent: (- ($admon-graphic-width$)) - (make line-field - field-width: ($admon-graphic-width$) - graphic) - (process-node-list (children f-child))) - (process-node-list r-child)))))) - -(define ($admonition$) - (if %admon-graphics% - ($graphical-admonition$) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: (if %admon-graphics% - (inherited-start-indent) - (+ (inherited-start-indent) (* (ILSTEP) 2))) - font-size: (- %bf-size% 1pt) - font-weight: 'medium - font-posture: 'upright - font-family-name: %admon-font-family% - line-spacing: (* (- %bf-size% 1pt) %line-spacing-factor%) - (process-children)))) - -(define ($admonpara$) - (let* ((title (select-elements - (children (parent (current-node))) (normalize "title"))) - (has-title (not (node-list-empty? title))) - (adm-title (if has-title - (make sequence - (with-mode title-sosofo-mode - (process-node-list (node-list-first title))) - (literal (gentext-label-title-sep - (gi (parent (current-node)))))) - (literal - (gentext-element-name - (parent (current-node))) - (gentext-label-title-sep - (gi (parent (current-node)))))))) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - (if (and (not %admon-graphics%) (= (child-number) 1)) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - adm-title) - (empty-sosofo)) - (process-children-trim)))) - -(element important ($admonition$)) -(element (important title) (empty-sosofo)) -(element (important para) ($admonpara$)) -(element (important simpara) ($admonpara$)) - -(element note ($admonition$)) -(element (note title) (empty-sosofo)) -(element (note para) ($admonpara$)) -(element (note simpara) ($admonpara$)) - -(element tip ($admonition$)) -(element (tip title) (empty-sosofo)) -(element (tip para) ($admonpara$)) -(element (tip simpara) ($admonpara$)) - -;; perils are given special treatment by generating a centered title -;; and throwing a box around them -;; note that the paragraph indents are set by the box characteristics -;; -(define ($peril$) - (let* ((title (select-elements - (children (current-node)) (normalize "title"))) - (has-title (not (node-list-empty? title))) - (adm-title (if has-title - (make sequence - (with-mode title-sosofo-mode - (process-node-list (node-list-first title)))) - (literal - (gentext-element-name - (current-node))))) - (hs (HSIZE 2))) - (if %admon-graphics% - ($graphical-admonition$) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - font-family-name: %admon-font-family% - font-size: (- %bf-size% 1pt) - font-weight: 'medium - font-posture: 'upright - line-spacing: (* (- %bf-size% 1pt) %line-spacing-factor%) - (make box - display?: #t - box-type: 'border - line-thickness: 2pt - start-indent: (+ (inherited-start-indent) (* 2 (ILSTEP)) 2pt) - end-indent: (inherited-end-indent) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: 1em - end-indent: 1em - font-family-name: %title-font-family% - font-weight: 'bold - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - quadding: 'center - keep-with-next?: #t - adm-title) - (process-children)))))) - -(element caution ($peril$)) -(element (caution title) (empty-sosofo)) - -(element warning ($peril$)) -(element (warning title) (empty-sosofo)) diff --git a/docs/dsssl/docbook/print/dbautoc.dsl b/docs/dsssl/docbook/print/dbautoc.dsl deleted file mode 100755 index 2937b813..00000000 --- a/docs/dsssl/docbook/print/dbautoc.dsl +++ /dev/null @@ -1,179 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================== TABLE OF CONTENTS ========================= - -(define %toc-indent% 2pi) -(define %toc-spacing-factor% 0.4) - -;; Returns the depth of auto TOC that should be made at the nd-level -(define (toc-depth nd) - (if (string=? (gi nd) (normalize "book")) - 7 - 1)) - -(define (format-page-number) - (current-node-page-number-sosofo)) - -;; Prints the TOC title if first? is true, otherwise does nothing -(define (toc-title first?) - (let ((hsize (if (or (equal? (gi (current-node)) (normalize "article")) - (equal? (gi (current-node)) (normalize "part"))) - (HSIZE 3) - (HSIZE 4)))) - (if first? - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-size: hsize - line-spacing: (* hsize %line-spacing-factor%) - space-before: (* hsize %head-before-factor%) - space-after: (* hsize %head-after-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %component-title-quadding% - heading-level: (if %generate-heading-level% 1 0) - keep-with-next?: #t - (literal (gentext-element-name (normalize "toc")))) - (empty-sosofo)))) - -;; Prints the TOC title if first? is true, otherwise does nothing -(define (lot-title first? lotgi) - (if first? - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - space-after: (* (HSIZE 4) %head-after-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %component-title-quadding% - heading-level: (if %generate-heading-level% 1 0) - keep-with-next?: #t - (literal ($lot-title$ lotgi))) - (empty-sosofo))) - -;; Print the TOC entry for tocentry -(define ($toc-entry$ tocentry level) - (make paragraph - start-indent: (+ %body-start-indent% - (* %toc-indent% level)) - first-line-start-indent: (* -1 %toc-indent%) - font-weight: (if (= level 1) 'bold 'medium) - space-before: (if (= level 1) (* %toc-spacing-factor% 6pt) 0pt) - space-after: (if (= level 1) (* %toc-spacing-factor% 6pt) 0pt) - keep-with-next?: (if (= level 1) #t #f) - quadding: 'start - (make link - destination: (node-list-address tocentry) - (make sequence - (if (equal? (element-label tocentry) "") - (empty-sosofo) - (make sequence - (element-label-sosofo tocentry) - (literal (gentext-label-title-sep (gi tocentry))))) - (element-title-sosofo tocentry))) - (if (and (= level 1) - ;; ??? %chapter-title-page-separate% - %page-number-restart%) - (empty-sosofo) ;; Don't need the leader etc then - (make sequence - (make leader (literal ".")) - (make link - destination: (node-list-address tocentry) - (make sequence - (if %page-number-restart% - (literal - (string-append - (if (= level 1) - (element-label tocentry #t) - (substring (element-label tocentry #t) - 0 (string-index (element-label tocentry #t) "."))) - (gentext-intra-label-sep "_pagenumber"))) - (empty-sosofo)) - (with-mode toc-page-number-mode - (process-node-list tocentry)))))))) - -;; Build a TOC starting at nd reaching down depth levels. -;; The optional arguments are used on recursive calls to build-toc -;; and shouldn't be set by the initial caller... -;; -(define (build-toc nd depth #!optional (first? #t) (level 1)) - (let* ((toclist (toc-list-filter - (node-list-filter-by-gi (children nd) - (append (division-element-list) - (component-element-list) - (section-element-list)))))) - (if (or (<= depth 0) - (node-list-empty? toclist)) - (empty-sosofo) - (make sequence - (toc-title first?) - (let loop ((nl toclist)) - (if (node-list-empty? nl) - (empty-sosofo) - (sosofo-append - ($toc-entry$ (node-list-first nl) level) - (build-toc (node-list-first nl) (- depth 1) #f (+ level 1)) - (loop (node-list-rest nl))))))))) - -;; Print the LOT entry -(define ($lot-entry$ tocentry) - (make paragraph - start-indent: (+ %body-start-indent% %toc-indent%) - first-line-start-indent: (* -1 %toc-indent%) - font-weight: 'medium - space-before: 0pt - space-after: 0pt - quadding: 'start - (make link - destination: (node-list-address tocentry) - (make sequence - (if (equal? (element-label tocentry) "") - (empty-sosofo) - (make sequence - (element-label-sosofo tocentry #t) - (literal (gentext-label-title-sep (gi tocentry))))) - (element-title-sosofo tocentry))) - (make leader (literal ".")) - (make link - destination: (node-list-address tocentry) - (make sequence - (if %page-number-restart% - (make sequence - (literal (substring (element-label tocentry #t) - 0 (string-index (element-label tocentry #t) "-"))) - (literal (gentext-intra-label-sep "_pagenumber"))) - (empty-sosofo)) - (with-mode toc-page-number-mode - (process-node-list tocentry)))))) - -;; Build a LOT starting at nd for all the lotgi's it contains. -;; The optional arguments are used on recursive calls to build-toc -;; and shouldn't be set by the initial caller... -;; -(define (build-lot nd lotgi #!optional (first? #t)) - (let* ((lotlist (select-elements (descendants nd) - (normalize lotgi)))) - (if (node-list-empty? lotlist) - (empty-sosofo) - (make sequence - (lot-title first? lotgi) - (let loop ((nl lotlist)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (string=? (gi (node-list-first nl)) lotgi) - ($lot-entry$ (node-list-first nl)) - (empty-sosofo)) - (build-lot (node-list-first nl) lotgi #f) - (loop (node-list-rest nl))))))))) - -(mode toc-page-number-mode - (default - (format-page-number))) diff --git a/docs/dsssl/docbook/print/dbbibl.dsl b/docs/dsssl/docbook/print/dbbibl.dsl deleted file mode 100755 index ed6b1d9b..00000000 --- a/docs/dsssl/docbook/print/dbbibl.dsl +++ /dev/null @@ -1,868 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ......................... BIBLIOGRAPHY PARAMS ......................... - -;; these should be in dbparam... -(define %biblsep% ", ") -(define %biblend% ".") - -(define %biblioentry-in-entry-order% #t) - -;; .................... BIBLIOGRAPHY and BIBLIODIV ...................... - -(define (bibliography-content) - ;; Note that the code below works for both the case where the bibliography - ;; has BIBLIODIVs and the case where it doesn't, by the slightly subtle - ;; fact that if it does, then allentries will be (empty-node-list). - (let* ((allbibcontent (children (current-node))) - (prebibcontent (node-list-filter-by-not-gi - allbibcontent - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (allentries (node-list-filter-by-gi - allbibcontent - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (entries (if biblio-filter-used - (biblio-filter allentries) - allentries))) - (make sequence - (process-node-list prebibcontent) - (process-node-list entries)))) - -(element (book bibliography) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (make sequence - ($component-title$) - (bibliography-content)) - (make-endnotes))) - -(element bibliography - ;; A bibliography that's inside something else... - (let* ((sect (ancestor-member (current-node) - (append (section-element-list) - (component-element-list)))) - (hlevel (+ (SECTLEVEL sect) 1)) - (hs (HSIZE (- 4 hlevel)))) - (make sequence - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: (if (or (>= hlevel 3) - (member (gi) (list (normalize "refsect1") - (normalize "refsect2") - (normalize "refsect3")))) - %body-start-indent% - 0pt) - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% (+ hlevel 1) 0) - (element-title-sosofo (current-node))) - (bibliography-content)))) - -(element (bibliography title) (empty-sosofo)) - -(element bibliodiv - (let* ((allentries (node-list-filter-by-gi (children (current-node)) - (list (normalize "biblioentry") - (normalize "bibliomixed")))) - (entries (if biblio-filter-used - (biblio-filter allentries) - allentries))) - (if (and biblio-filter-used (node-list-empty? entries)) - (empty-sosofo) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: %body-start-indent% - (make sequence - ($section-title$) - (process-node-list entries)))))) - -(element (bibliodiv title) (empty-sosofo)) - -;; ..................... BIBLIOGRAPHY ENTRIES ......................... - -(define (biblioentry-inline-sep node rest) - ;; Output the character that should separate inline node from rest - (cond - ((and (equal? (gi node) (normalize "title")) - (equal? (gi (node-list-first rest)) (normalize "subtitle"))) - (make sequence - font-posture: 'italic - (literal ": "))) - (else - (literal %biblsep%)))) - -(define (biblioentry-inline-end blocks) - ;; Output the character that should occur at the end of inline - (literal %biblend%)) - -(define (biblioentry-block-sep node rest) - ;; Output the character that should separate block node from rest - (empty-sosofo)) - -(define (biblioentry-block-end) - ;; Output the character that should occur at the end of block - (empty-sosofo)) - -(element biblioentry - (let* ((expanded-children (expand-children - (children (current-node)) - (biblioentry-flatten-elements))) - (all-inline-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-inline-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-inline-elements) - expanded-children))) - (block-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-block-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-block-elements) - expanded-children))) - (leading-abbrev (if (equal? (normalize "abbrev") - (gi (node-list-first - all-inline-children))) - (node-list-first all-inline-children) - (empty-node-list))) - (inline-children (if (node-list-empty? leading-abbrev) - all-inline-children - (node-list-rest all-inline-children))) - (has-leading-abbrev? (not (node-list-empty? leading-abbrev))) - (xreflabel (if (or has-leading-abbrev? biblio-number) - #f - (attribute-string (normalize "xreflabel"))))) - (make display-group - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) 2pi) - first-line-start-indent: -2pi - - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]\no-break-space;")) - (empty-sosofo)) - - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-inline-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-inline-end block-children) - (biblioentry-inline-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl)))))) - - (make display-group - start-indent: (+ (inherited-start-indent) 2pi) - (let loop ((nl block-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-block-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-block-end) - (biblioentry-block-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl))))))))) - -(mode biblioentry-inline-mode - (element abbrev - (make sequence - (process-children))) - - (element affiliation - (let ((inline-children (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "address"))))) - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (process-node-list (node-list-first nl)) - (if (node-list-empty? (node-list-rest nl)) - (empty-sosofo) - (literal ", ")) - (loop (node-list-rest nl))))))) - - (element artpagenums - (make sequence - (process-children))) - - (element author - (literal (author-list-string))) - - (element authorgroup - (process-children)) - - (element authorinitials - (make sequence - (process-children))) - - (element collab - (let* ((nl (children (current-node))) - (collabname (node-list-first nl)) - (affil (node-list-rest nl))) - (make sequence - (process-node-list collabname) - (if (node-list-empty? affil) - (empty-sosofo) - (let loop ((nl affil)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (literal ", ") - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl))))))))) - - (element (collab collabname) - (process-children)) - - (element confgroup - (let ((inline-children (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "address"))))) - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (process-node-list (node-list-first nl)) - (if (node-list-empty? (node-list-rest nl)) - (empty-sosofo) - (literal ", ")) - (loop (node-list-rest nl))))))) - - (element contractnum - (process-children)) - - (element contractsponsor - (process-children)) - - (element contrib - (process-children)) - - (element copyright - ;; Just print the year(s) - (let ((years (select-elements (children (current-node)) - (normalize "year")))) - (process-node-list years))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element corpauthor - (make sequence - (process-children))) - - (element corpname - (make sequence - (process-children))) - - (element date - (make sequence - (process-children))) - - (element edition - (make sequence - (process-children))) - - (element editor - (make sequence - (literal (gentext-edited-by)) - (literal " ") - (literal (author-list-string)))) - - (element firstname - (make sequence - (process-children))) - - (element honorific - (make sequence - (process-children))) - - (element invpartnumber - (make sequence - (process-children))) - - (element isbn - (make sequence - (process-children))) - - (element issn - (make sequence - (process-children))) - - (element issuenum - (make sequence - (process-children))) - - (element lineage - (make sequence - (process-children))) - - (element orgname - (make sequence - (process-children))) - - (element othercredit - (literal (author-list-string))) - - (element othername - (make sequence - (process-children))) - - (element pagenums - (make sequence - (process-children))) - - (element productname - (make sequence - ($charseq$) -; this is actually a problem since "trade" is the default value for -; the class attribute. we can put this back in in DocBook 5.0, when -; class becomes #IMPLIED -; (if (equal? (attribute-string "class") (normalize "trade")) -; (literal "\trade-mark-sign;") -; (empty-sosofo)) - )) - - (element productnumber - (make sequence - (process-children))) - - (element pubdate - (make sequence - (process-children))) - - (element publisher - (let ((pubname (select-elements (children (current-node)) - (normalize "publishername"))) - (cities (select-elements (descendants (current-node)) - (normalize "city")))) - (make sequence - (process-node-list pubname) - (if (node-list-empty? cities) - (empty-sosofo) - (literal ", ")) - (process-node-list cities)))) - - (element publishername - (make sequence - (process-children))) - - (element (publisher address city) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (empty-sosofo)))) - - (element pubsnumber - (make sequence - (process-children))) - - (element releaseinfo - (make sequence - (process-children))) - - (element seriesvolnums - (make sequence - (process-children))) - - (element subtitle - (make sequence - font-posture: 'italic - (process-children))) - - (element surname - (make sequence - (process-children))) - - (element title - (make sequence - font-posture: 'italic - (process-children))) - - (element titleabbrev - (make sequence - (process-children))) - - (element volumenum - (make sequence - (process-children))) - - (element (bibliomixed title) - (make sequence - font-posture: 'italic - (process-children))) - - - (element (bibliomixed subtitle) - (make sequence - font-posture: 'italic - (process-children))) - - (element (biblioset title) - (let ((rel (case-fold-up - (inherited-attribute-string (normalize "relation"))))) - (cond - ((equal? rel "ARTICLE") (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote)))) - (else (make sequence - font-posture: 'italic - (process-children)))))) - - (element (bibliomset title) - (let ((rel (case-fold-up - (inherited-attribute-string (normalize "relation"))))) - (cond - ((equal? rel "ARTICLE") (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote)))) - (else (make sequence - font-posture: 'italic - (process-children)))))) -) - -(mode biblioentry-block-mode - (element abstract - (make display-group - (process-children))) - - (element (abstract title) - (make paragraph - font-weight: 'bold - (process-children))) - - (element address - ($linespecific-display$ %indent-address-lines% %number-address-lines%)) - - (element authorblurb - (make display-group - (process-children))) - - (element printhistory - (make display-group - (process-children))) - - (element revhistory - (make sequence - (make paragraph - font-weight: 'bold - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (make table-column - column-number: 1 - width: (/ (- %body-width% (inherited-start-indent)) 3)) - (make table-column - column-number: 2 - width: (/ (- %body-width% (inherited-start-indent)) 3)) - (make table-column - column-number: 3 - width: (/ (- %body-width% (inherited-start-indent)) 3)) - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (node-list-filter-by-gi - (descendants (current-node)) - (list (normalize "revremark") - (normalize "revdescription"))))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revnumber)) - (make paragraph - (make sequence - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber))) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revdate)) - (make paragraph - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revauthor)) - (make paragraph - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor))) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - (if (not (node-list-empty? revremark)) - (make paragraph - space-after: %block-sep% - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - (element (revision revdescription) (process-children)) - - (element seriesinfo - ;; This is a nearly biblioentry recursively... - (let* ((expanded-children (expand-children - (children (current-node)) - (biblioentry-flatten-elements))) - (all-inline-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-inline-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-inline-elements) - expanded-children))) - (block-children (if %biblioentry-in-entry-order% - (titlepage-gi-list-by-nodelist - (biblioentry-block-elements) - expanded-children) - (titlepage-gi-list-by-elements - (biblioentry-block-elements) - expanded-children))) - (inline-children all-inline-children)) - (make display-group - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) 2pi) - first-line-start-indent: -2pi - - (let loop ((nl inline-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-inline-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-inline-end block-children) - (biblioentry-inline-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl)))))) - - (make display-group - start-indent: (+ (inherited-start-indent) 2pi) - (let loop ((nl block-children)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (with-mode biblioentry-block-mode - (process-node-list (node-list-first nl))) - (if (node-list-empty? (node-list-rest nl)) - (biblioentry-block-end) - (biblioentry-block-sep (node-list-first nl) - (node-list-rest nl))) - (loop (node-list-rest nl))))))))) -) - -(element bibliomixed - (let* ((all-inline-children (children (current-node))) - (leading-abbrev (if (equal? (normalize "abbrev") - (gi (node-list-first - all-inline-children))) - (node-list-first all-inline-children) - (empty-node-list))) - (inline-children (if (node-list-empty? leading-abbrev) - all-inline-children - (node-list-rest all-inline-children))) - (has-leading-abbrev? (not (node-list-empty? leading-abbrev))) - (xreflabel (if (or has-leading-abbrev? biblio-number) - #f - (attribute-string (normalize "xreflabel"))))) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) 2pi) - first-line-start-indent: -2pi - - (if (or biblio-number xreflabel has-leading-abbrev?) - (make sequence - (literal "[") - - (if biblio-number - (literal (number->string (bibentry-number (current-node)))) - (empty-sosofo)) - - (if xreflabel - (literal xreflabel) - (empty-sosofo)) - - (if has-leading-abbrev? - (with-mode biblioentry-inline-mode - (process-node-list leading-abbrev)) - (empty-sosofo)) - - (literal "]\no-break-space;")) - (empty-sosofo)) - - (with-mode biblioentry-inline-mode - (process-children))))) - -;; ....................... BIBLIOGRAPHY ELEMENTS ....................... - -;; These are element construction rules for bibliography elements that -;; may occur outside of a BIBLIOENTRY or BIBLIOMIXED. - -(element bibliomisc (process-children)) -(element bibliomset (process-children)) -(element biblioset (process-children)) -(element bookbiblio (process-children)) - -(element street ($charseq$)) -(element pob ($charseq$)) -(element postcode ($charseq$)) -(element city ($charseq$)) -(element state ($charseq$)) -(element country ($charseq$)) -(element phone ($charseq$)) -(element fax ($charseq$)) -(element otheraddr ($charseq$)) -(element affiliation ($charseq$)) -(element shortaffil ($charseq$)) -(element jobtitle ($charseq$)) -(element orgdiv ($charseq$)) -(element artpagenums ($charseq$)) - -(element author - (make sequence - (literal (author-list-string)))) - -(element authorgroup (process-children)) - -(element collab (process-children)) -(element collabname ($charseq$)) -(element authorinitials ($charseq$)) -(element confgroup (process-children)) -(element confdates ($charseq$)) -(element conftitle ($charseq$)) -(element confnum ($charseq$)) -(element confsponsor ($charseq$)) -(element contractnum ($charseq$)) -(element contractsponsor ($charseq$)) - -(element copyright - (make paragraph - (make sequence - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children-trim)))) - -(element year - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - -(element holder ($charseq$)) - -(element corpauthor - (make sequence - (literal (author-list-string)))) - -(element corpname ($charseq$)) -(element date ($charseq$)) -(element edition ($charseq$)) -(element editor ($charseq$)) -(element isbn ($charseq$)) -(element issn ($charseq$)) -(element invpartnumber ($charseq$)) -(element issuenum ($charseq$)) - -(element legalnotice ($semiformal-object$)) -(element (legalnotice title) (empty-sosofo)) - -(element modespec (empty-sosofo)) - -(element orgname ($charseq$)) - -(element othercredit - (make sequence - (literal (author-list-string)))) - -(element pagenums ($charseq$)) -(element contrib ($charseq$)) - -(element firstname ($charseq$)) -(element honorific ($charseq$)) -(element lineage ($charseq$)) -(element othername ($charseq$)) -(element surname ($charseq$)) - -(element printhistory (empty-sosofo)) - -(element productname - (make sequence - ($charseq$) -; this is actually a problem since "trade" is the default value for -; the class attribute. we can put this back in in DocBook 5.0, when -; class becomes #IMPLIED -; (if (equal? (attribute-string "class") (normalize "trade")) -; (literal "\trade-mark-sign;") -; (empty-sosofo)) -)) - -(element productnumber ($charseq$)) -(element pubdate ($charseq$)) -(element publisher (process-children)) -(element publishername ($charseq$)) -(element pubsnumber ($charseq$)) -(element releaseinfo (empty-sosofo)) -(element revision ($charseq$)) -(element revnumber ($charseq$)) -(element revremark ($charseq$)) -(element revdescription ($block-container$)) -(element seriesvolnums ($charseq$)) -(element volumenum ($charseq$)) - -;; The (element (bookinfo revhistory)) construction rule is in dbinfo.dsl -;; It calls $book-revhistory$... -(define ($book-revhistory$) - (make sequence - (make paragraph - use: title-style - font-family-name: %title-font-family% - font-weight: 'bold - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (* (HSIZE 1) %head-before-factor%) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - -(element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (node-list-filter-by-gi - (descendants (current-node)) - (list (normalize "revremark") - (normalize "revdescription"))))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revnumber)) - (make paragraph - (make sequence - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber))) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revdate)) - (make paragraph - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - (if (not (node-list-empty? revauthor)) - (make paragraph - (make sequence - (literal (gentext-revised-by)) - (process-node-list revauthor))) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - (if (not (node-list-empty? revremark)) - (make paragraph - space-after: %block-sep% - (process-node-list revremark)) - (empty-sosofo))))))) - -(element (revision revnumber) (process-children-trim)) -(element (revision date) (process-children-trim)) -(element (revision authorinitials) (process-children-trim)) -(element (revision revremark) (process-children-trim)) -(element (revision revdescription) (process-children)) diff --git a/docs/dsssl/docbook/print/dbblock.dsl b/docs/dsssl/docbook/print/dbblock.dsl deleted file mode 100755 index a495663a..00000000 --- a/docs/dsssl/docbook/print/dbblock.dsl +++ /dev/null @@ -1,681 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(element revhistory ($book-revhistory$)) - -(element highlights ($block-container$)) - -(element (para blockquote) - (let* ((attrib (select-elements (children (current-node)) - (normalize "attribution"))) - (paras (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "attribution"))))) - (make sequence - (make paragraph - first-line-start-indent: 0pt ;; workaround a bug/feature? - ;; W/o the preceding line, the first-line-start-indent of the enclosing - ;; paragraph will apply to the paragraphs in this blockquote which is - ;; probably not wanted.. - font-size: (* %bf-size% %smaller-size-factor%) - line-spacing: (* %bf-size% %line-spacing-factor% - %smaller-size-factor%) - space-before: %para-sep% - start-indent: (+ (inherited-start-indent) 1em) - end-indent: 1em - (process-node-list paras)) - (if (node-list-empty? attrib) - (empty-sosofo) - (make paragraph - font-size: (* %bf-size% %smaller-size-factor%) - line-spacing: (* %bf-size% %line-spacing-factor% - %smaller-size-factor%) - space-before: 0pt - end-indent: 1em - quadding: 'end - (make sequence - (literal "\em-dash;") - (process-node-list attrib))))))) - -(element blockquote - (let* ((attrib (select-elements (children (current-node)) - (normalize "attribution"))) - (paras (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "attribution"))))) - (make sequence - (make paragraph - font-size: (* %bf-size% %smaller-size-factor%) - line-spacing: (* %bf-size% %line-spacing-factor% - %smaller-size-factor%) - space-before: %para-sep% - start-indent: (+ (inherited-start-indent) 1em) - end-indent: 1em - (process-node-list paras)) - (if (node-list-empty? attrib) - (empty-sosofo) - (make paragraph - font-size: (* %bf-size% %smaller-size-factor%) - line-spacing: (* %bf-size% %line-spacing-factor% - %smaller-size-factor%) - space-before: 0pt - end-indent: 1em - quadding: 'end - (make sequence - (literal "\em-dash;") - (process-node-list attrib))))))) - -(element (blockquote para) - (if (absolute-last-sibling? (current-node)) - (make paragraph - space-before: %para-sep% - space-after: 0pt - quadding: %default-quadding% - (process-children-trim)) - ($paragraph$))) - -(element epigraph - (let* ((addln-indent (* %text-width% 0.55)) - (attrib (select-elements (children (current-node)) - (normalize "attribution"))) - (paras (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "attribution"))))) - (make display-group - start-indent: (+ %body-start-indent% addln-indent) - font-posture: 'italic - (process-node-list paras) - (if (node-list-empty? attrib) - (empty-sosofo) - (make paragraph - space-before: 0pt - quadding: 'end - (process-node-list attrib)))))) - -(element attribution - ($charseq$)) - -(element (epigraph para) - (if (absolute-last-sibling? (current-node)) - (make paragraph - space-before: %para-sep% - space-after: 0pt - quadding: %default-quadding% - (process-children-trim)) - ($paragraph$))) - -(element para ($paragraph$)) -(element simpara ($paragraph$)) - -(element formalpara ($para-container$)) - -(element (formalpara title) ($runinhead$)) -(element (formalpara para) (make sequence (process-children))) - -(element sidebar - (make box - display?: #t - box-type: 'border - line-thickness: 1pt - start-indent: (inherited-start-indent) - end-indent: (inherited-end-indent) - (if (node-list-empty? (select-elements (children (current-node)) - (normalize "title"))) - (make display-group - start-indent: 2pt - end-indent: 2pt - space-before: %block-sep% - space-after: %block-sep% - (process-children)) - (make display-group - start-indent: 2pt - end-indent: 2pt - space-before: 0pt - space-after: %block-sep% - (make sequence - (let* ((object (current-node)) - (title (select-elements (children object) - (normalize "title"))) - (nsep (gentext-label-title-sep (gi object)))) - (make paragraph - font-weight: 'bold - space-before: %block-sep% - space-after: %para-sep% - keep-with-next?: #t - (literal (gentext-element-name object)) - (if (string=? (element-label object) "") - (literal nsep) - (literal " " (element-label object) nsep)) - (process-node-list (children title)))) - (process-children)))))) - -(element (sidebar title) (empty-sosofo)) - -(element abstract - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: %body-start-indent% - (process-children))) - -(element authorblurb ($block-container$)) - -(element ackno ($paragraph$)) - -(define ($inline-object$) - (process-children)) - -(define ($informal-object$ #!optional (rule-before? #f) (rule-after? #f)) - (make display-group - start-indent: (+ %block-start-indent% (inherited-start-indent)) - space-before: %block-sep% - space-after: %block-sep% - (if rule-before? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-after: (/ %block-sep% 2) - keep-with-next?: #t) - (empty-sosofo)) - (process-children) - (if rule-after? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-before: (/ %block-sep% 2) - keep-with-previous?: #t) - (empty-sosofo)))) - -(define (object-title-after #!optional (node (current-node))) - (if (member (gi node) ($object-titles-after$)) - #t - #f)) - -(define (float-object node) - ;; you could redefine this to make only figures float, or only tables, - ;; or whatever... - #t) - -(define (named-formal-objects) - (list (normalize "figure") - (normalize "table") - (normalize "example") - (normalize "equation"))) - -(define ($formal-object$ #!optional (rule-before? #f) (rule-after? #f)) - (let* ((object-sosofo (make paragraph - space-before: 0pt - space-after: 0pt - start-indent: (+ %block-start-indent% - (inherited-start-indent)) - keep-with-next?: (object-title-after) - (process-children))) - (title-sosofo (with-mode formal-object-title-mode - (process-node-list - (select-elements (children (current-node)) - (normalize "title"))))) - (sosofo (make display-group - space-before: %block-sep% - space-after: %block-sep% - (if rule-before? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-after: (/ %block-sep% 2) - keep-with-next?: #t) - (empty-sosofo)) - (if (object-title-after) - (make sequence - object-sosofo - title-sosofo) - (make sequence - title-sosofo - object-sosofo)) - (if rule-after? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-before: (/ %block-sep% 2) - keep-with-previous?: #t) - (empty-sosofo))))) - (if (and (equal? (print-backend) 'tex) - formal-object-float - (float-object (current-node))) - (make page-float - sosofo) - sosofo))) - -(define ($semiformal-object$) - (if (node-list-empty? (select-elements (children (current-node)) - (normalize "title"))) - ($informal-object$) - ($formal-object$))) - -(mode formal-object-title-mode - (element title - (let* ((object (parent (current-node))) - (nsep (gentext-label-title-sep (gi object)))) - (make paragraph - font-weight: 'bold - space-before: (if (object-title-after (parent (current-node))) - %para-sep% - 0pt) - space-after: (if (object-title-after (parent (current-node))) - 0pt - %para-sep%) - start-indent: (+ %block-start-indent% (inherited-start-indent)) - keep-with-next?: (not (object-title-after (parent (current-node)))) - (if (member (gi object) (named-formal-objects)) - (make sequence - (literal (gentext-element-name object)) - (if (string=? (element-label object) "") - (literal nsep) - (literal " " (element-label object) nsep))) - (empty-sosofo)) - (process-children)))) -) - -(element example - ($formal-object$ %example-rules% %example-rules%)) - -(element (example title) (empty-sosofo)) ; don't show caption below example - -(element informalexample - ($informal-object$ %informalexample-rules% %informalexample-rules%)) - -(element (figure title) (empty-sosofo)) ; don't show caption below figure - -(element figure - ;; FIXME: this is a bit crude... - (let* ((mediaobj (select-elements (children (current-node)) - (normalize "mediaobject"))) - (imageobj (select-elements (children mediaobj) - (normalize "imageobject"))) - (image (select-elements (children imageobj) - (normalize "imagedata"))) - (graphic (select-elements (children (current-node)) - (normalize "graphic"))) - (align (if (node-list-empty? image) - (if (node-list-empty? graphic) - #f - (attribute-string (normalize "align") - (node-list-first graphic))) - (attribute-string (normalize "align") (node-list-first image)))) - (dalign (cond ((equal? align (normalize "center")) - 'center) - ((equal? align (normalize "right")) - 'end) - (else - 'start)))) - (if align - (make display-group - quadding: dalign - ($formal-object$ %figure-rules% %figure-rules%)) - ($formal-object$ %figure-rules% %figure-rules%)))) - -(element informaltable - ($informal-object$ %informaltable-rules% %informaltable-rules%)) - -(element table - ;; can't be a "formal-object" because it requires special handling for - ;; the PGWIDE attribute - (let* ((nsep (gentext-label-title-sep (gi))) - (pgwide (attribute-string (normalize "pgwide"))) - (indent (lambda () (if (not (equal? pgwide "1")) - (+ %block-start-indent% - (inherited-start-indent)) - %cals-pgwide-start-indent%))) - (rule-before? %table-rules%) - (rule-after? %table-rules%) - (title-sosofo (make paragraph - font-weight: 'bold - space-before: (if (object-title-after) - %para-sep% - 0pt) - space-after: (if (object-title-after) - 0pt - %para-sep%) - start-indent: (indent) - keep-with-next?: (not (object-title-after)) - (literal (gentext-element-name (current-node))) - (if (string=? (element-label) "") - (literal nsep) - (literal " " (element-label) nsep)) - (element-title-sosofo))) - (table-sosofo (make display-group - font-weight: 'bold - space-before: 0pt - space-after: 0pt - start-indent: (indent) - keep-with-next?: (object-title-after) - (process-children))) - (table (make display-group - start-indent: (+ %block-start-indent% - (inherited-start-indent)) - space-before: %block-sep% - space-after: %block-sep% - (if rule-before? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-after: (/ %block-sep% 2) - keep-with-next?: #t) - (empty-sosofo)) - (if (object-title-after) - (make sequence - table-sosofo - title-sosofo) - (make sequence - title-sosofo - table-sosofo)) - (if rule-after? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-before: (/ %block-sep% 2) - keep-with-previous?: #t) - (empty-sosofo))))) - (if (and (equal? (print-backend) 'tex) - formal-object-float - (float-object (current-node))) - (make page-float - table) - table))) - -(element (table title) (empty-sosofo)) - -(element comment - (if %show-comments% - (make paragraph - start-indent: 0pt - first-line-start-indent: -10pt - font-posture: 'italic - font-size: (* (inherited-font-size) 0.9) - (make sequence - (make line-field - field-width: 10pt - quadding: 'end - (literal "*")) - (process-children))) - (empty-sosofo))) - -;; In DocBook V4.0 comment became remark -(element remark - (if %show-comments% - (make paragraph - start-indent: 0pt - first-line-start-indent: -10pt - font-posture: 'italic - font-size: (* (inherited-font-size) 0.9) - (make sequence - (make line-field - field-width: 10pt - quadding: 'end - (literal "*")) - (process-children))) - (empty-sosofo))) - -;; ====================================================================== -;; Handle footnotes in the body... - -(define %footnote-field-width% 1.6em) -(define %footnote-number-restarts% #t) -(define %footnote-endnote-break% #f) - -(define (count-footnote? footnote) - ;; don't count footnotes in comments (unless you're showing comments) - ;; or footnotes in tables which are handled locally in the table - (if (or (and (has-ancestor-member? footnote (list (normalize "comment"))) - (not %show-comments%)) - (has-ancestor-member? footnote (list (normalize "tgroup")))) - #f - #t)) - -(define (footnote-number footnote) - ;; This is more complex than it at first appears because footnotes - ;; can be in Comments which may be suppressed. - (let* ((root-list (if %footnote-number-restarts% - (component-element-list) - (list (normalize "book")))) - (footnotes (if %footnote-ulinks% - (component-list-descendant-node-list - footnote - (list (normalize "ulink") (normalize "footnote")) - root-list) - (component-descendant-node-list - footnote - root-list))) - (fn-number (let loop ((nl footnotes) (num 1)) - (if (node-list-empty? nl) - 0 - (if (node-list=? (node-list-first nl) footnote) - num - (if (count-footnote? (node-list-first nl)) - (loop (node-list-rest nl) (+ num 1)) - (loop (node-list-rest nl) num))))))) - (format-number fn-number "1"))) - -(element footnote - (if (and (equal? (print-backend) 'tex) bop-footnotes) - (make sequence - ($ss-seq$ + (literal (footnote-number (current-node)))) - (make page-footnote (process-children))) - ($ss-seq$ + (literal (footnote-number (current-node)))))) - -(element (footnote para) - ;; Note: this can only get called if the backend is 'tex - ;; If the backend is anything else, footnote never calls process - ;; children except in endnote-mode, so this doesn't get called. - (let ((fnnum (footnote-number (parent (current-node))))) - (if (= (child-number) 1) - (make paragraph - font-family-name: %body-font-family% - font-size: (* %footnote-size-factor% %bf-size%) - font-posture: 'upright - quadding: %default-quadding% - line-spacing: (* (* %footnote-size-factor% %bf-size%) - %line-spacing-factor%) - space-before: %para-sep% - space-after: %para-sep% - start-indent: %footnote-field-width% - first-line-start-indent: (- %footnote-field-width%) - (make line-field - field-width: %footnote-field-width% - (literal fnnum - (gentext-label-title-sep (normalize "footnote")))) - (process-children-trim)) - (make paragraph - font-family-name: %body-font-family% - font-size: (* %footnote-size-factor% %bf-size%) - font-posture: 'upright - quadding: %default-quadding% - line-spacing: (* (* %footnote-size-factor% %bf-size%) - %line-spacing-factor%) - space-before: %para-sep% - space-after: %para-sep% - start-indent: %footnote-field-width% - (process-children-trim))))) - -(define (non-table-footnotes footnotenl) - (let loop ((nl footnotenl) (result (empty-node-list))) - (if (node-list-empty? nl) - result - (if (has-ancestor-member? (node-list-first nl) - (list (normalize "tgroup"))) - (loop (node-list-rest nl) - result) - (loop (node-list-rest nl) - (node-list result (node-list-first nl))))))) - -(define (make-endnote-header) - (let ((headsize (if (equal? (gi) (normalize "refentry")) - (HSIZE 2) - (HSIZE 3))) - (indent (lambda () (if (equal? (gi) (normalize "refentry")) - %body-start-indent% - 0pt)))) - (make paragraph - break-before: %footnote-endnote-break% - font-family-name: %title-font-family% - font-weight: 'bold - font-size: headsize - line-spacing: (* headsize %line-spacing-factor%) - space-before: (* headsize %head-before-factor%) - space-after: (* headsize %head-after-factor%) - start-indent: (indent) - quadding: 'start - keep-with-next?: #t - (literal (gentext-endnotes))))) - -(define (make-endnotes #!optional (node (current-node))) - (let* ((allfootnotes (if %footnote-ulinks% - (node-list-filter-by-gi - (descendants node) - (list (normalize "footnote") (normalize "ulink"))) - (select-elements (descendants node) - (normalize "footnote")))) - (footnotes (let loop ((nl (non-table-footnotes allfootnotes)) - (fnlist (empty-node-list))) - (if (node-list-empty? nl) - fnlist - (if (count-footnote? (node-list-first nl)) - (loop (node-list-rest nl) - (node-list fnlist (node-list-first nl))) - (loop (node-list-rest nl) - fnlist)))))) - (if (or (node-list-empty? footnotes) - (and (equal? (print-backend) 'tex) - bop-footnotes)) - (empty-sosofo) - (if (or (equal? (gi node) (normalize "reference")) - (equal? (gi node) (normalize "part"))) - (empty-sosofo) ;; Each RefEntry/Component does its own... - (make sequence - (make-endnote-header) - (with-mode endnote-mode - (process-node-list footnotes))))))) - -(mode endnote-mode - (element footnote - (make sequence - start-indent: %body-start-indent% - (process-children))) - - (element (footnote para) - (let ((fnnum (footnote-number (parent (current-node))))) - (if (= (child-number) 1) - (make paragraph -; I'm not sure this really makes sense in the endnote case... -; font-size: (* %footnote-size-factor% %bf-size%) -; line-spacing: (* (* %footnote-size-factor% %bf-size%) -; %line-spacing-factor%) - space-before: %para-sep% - start-indent: (+ (inherited-start-indent) %footnote-field-width%) - first-line-start-indent: (- %footnote-field-width%) - (make line-field - field-width: %footnote-field-width% - (literal fnnum - (gentext-label-title-sep (normalize "footnote")))) - (process-children-trim)) - (make paragraph - font-size: (* %footnote-size-factor% %bf-size%) - line-spacing: (* (* %footnote-size-factor% %bf-size%) - %line-spacing-factor%) - start-indent: (+ (inherited-start-indent) %footnote-field-width%) - space-before: %para-sep% - (process-children-trim))))) - - (element ulink - (if %footnote-ulinks% - (let ((fnnum (footnote-number (current-node)))) - (make paragraph -; font-size: (* %footnote-size-factor% %bf-size%) -; line-spacing: (* (* %footnote-size-factor% %bf-size%) -; %line-spacing-factor%) - space-before: %para-sep% - start-indent: (+ (inherited-start-indent) %footnote-field-width%) - first-line-start-indent: (- %footnote-field-width%) - (make line-field - field-width: %footnote-field-width% - (literal fnnum - (gentext-label-title-sep (normalize "footnote")))) - (literal (attribute-string "url")))) - (next-match)))) - -;; ====================================================================== -;; Handle table footnotes - -(define (table-footnote-number footnote) - (format-number (component-child-number footnote - ($table-element-list$)) "a")) - -(element (entry footnote) - ($ss-seq$ + (literal (table-footnote-number (current-node))))) - -(element (entry para footnote) - ($ss-seq$ + (literal (table-footnote-number (current-node))))) - -(define (make-table-endnote-header) - (make paragraph - font-family-name: %body-font-family% - font-weight: 'medium - font-size: %bf-size% - start-indent: 0pt - quadding: 'start - (literal (gentext-table-endnotes)))) - -(define (make-table-endnotes) - (let* ((footnotes (select-elements (descendants (current-node)) - (normalize "footnote"))) - (headsize (HSIZE 3)) - (tgroup (ancestor-member (current-node) (list (normalize "tgroup")))) - (cols (string->number (attribute-string (normalize "cols") tgroup)))) - (if (node-list-empty? footnotes) - (empty-sosofo) - (make table-row - (make table-cell - n-columns-spanned: cols - cell-before-row-margin: %cals-cell-before-row-margin% - cell-after-row-margin: %cals-cell-after-row-margin% - cell-before-column-margin: %cals-cell-before-column-margin% - cell-after-column-margin: %cals-cell-after-column-margin% - start-indent: %cals-cell-content-start-indent% - end-indent: %cals-cell-content-end-indent% - (make-table-endnote-header) - (with-mode table-footnote-mode - (process-node-list footnotes))))))) - -(mode table-footnote-mode - (element footnote - (make display-group - font-family-name: %body-font-family% - font-weight: 'medium - font-size: %bf-size% - start-indent: 0pt - quadding: 'start - (process-children))) - - (element (footnote para) - (let ((fnnum (table-footnote-number (parent (current-node))))) - (if (= (child-number) 1) - (make paragraph - start-indent: %footnote-field-width% - first-line-start-indent: (- %footnote-field-width%) - (make line-field - field-width: %footnote-field-width% - (literal fnnum - (gentext-label-title-sep (normalize "footnote")))) - (process-children-trim)) - (make paragraph - start-indent: %footnote-field-width% - (process-children-trim)))))) - diff --git a/docs/dsssl/docbook/print/dbcallou.dsl b/docs/dsssl/docbook/print/dbcallou.dsl deleted file mode 100755 index 9dd7a405..00000000 --- a/docs/dsssl/docbook/print/dbcallou.dsl +++ /dev/null @@ -1,204 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; The support provided below is a little primitive because there's no way -;; to do line-addressing in Jade. -;; -;; CO's are supported with the CO element or, in SCREENCO and -;; PROGRAMLISTINGCO only, AREAs. -;; -;; Notes on the use of AREAs: -;; -;; - Processing is very slow. Jade loops through each AREA for -;; every column on every line. -;; - Only the LINECOLUMN units are supported, and they are #IMPLIED -;; - If a COORDS only specifies a line, the %callout-default-col% will -;; be used for the column. -;; - If the column is beyond the end of the line, that will work OK, but -;; if more than one callout has to get placed beyond the end of the same -;; line, that doesn't work so well. -;; - Embedded tabs foul up the column counting. -;; - Embedded markup fouls up the column counting. -;; - Embedded markup with embedded line breaks fouls up the line counting. -;; - The callout bugs occur immediately before the LINE COLUMN specified. -;; - You can't point to an AREASET, that doesn't make any sense -;; since it would imply a one-to-many link -;; -;; There's still no support for a stylesheet drawing the callouts on a -;; GRAPHIC, and I don't think there ever will be. -;; - -(element areaspec (empty-sosofo)) -(element area (empty-sosofo)) -(element areaset (empty-sosofo)) - -(element co - ($callout-mark$ (current-node))) - -(element programlistingco ($informal-object$)) -(element screenco ($informal-object$)) -(element graphicco ($informal-object$)) - -(element (screenco screen) - ($callout-verbatim-display$ %indent-screen-lines% %number-screen-lines%)) - -(element (programlistingco programlisting) - ($callout-verbatim-display$ %indent-programlisting-lines% - %number-programlisting-lines%)) - -;; ---------------------------------------------------------------------- - -(define ($callout-bug$ conumber) - (if (and conumber %callout-fancy-bug%) - (case conumber - ((1) (literal "\dingbat-negative-circled-sans-serif-digit-one;")) - ((2) (literal "\dingbat-negative-circled-sans-serif-digit-two;")) - ((3) (literal "\dingbat-negative-circled-sans-serif-digit-three;")) - ((4) (literal "\dingbat-negative-circled-sans-serif-digit-four;")) - ((5) (literal "\dingbat-negative-circled-sans-serif-digit-five;")) - ((6) (literal "\dingbat-negative-circled-sans-serif-digit-six;")) - ((7) (literal "\dingbat-negative-circled-sans-serif-digit-seven;")) - ((8) (literal "\dingbat-negative-circled-sans-serif-digit-eight;")) - ((9) (literal "\dingbat-negative-circled-sans-serif-digit-nine;")) - (else (make sequence - font-weight: 'bold - (literal "(" (format-number conumber "1") ")")))) - (make sequence - font-weight: 'bold - (if conumber - (literal "(" (format-number conumber "1") ")") - (literal "(??)"))))) - -(define ($callout-mark$ co) - ;; Print the callout mark for co - (if (equal? (gi co) (normalize "co")) - ($callout-bug$ (if (node-list-empty? co) - #f - (child-number co))) - (let ((areanum (if (node-list-empty? co) - #f - (if (equal? (gi (parent co)) (normalize "areaset")) - (absolute-child-number (parent co)) - (absolute-child-number co))))) - ($callout-bug$ (if (node-list-empty? co) - #f - areanum))))) - -(define ($look-for-callout$ line col #!optional (eol? #f)) - ;; Look to see if a callout should be printed at line col, and print - ;; it if it should - (let* ((areaspec (select-elements (children (parent (current-node))) - (normalize "areaspec"))) - (areas (expand-children (children areaspec) - (list (normalize "areaset"))))) - (let loop ((areanl areas)) - (if (node-list-empty? areanl) - (empty-sosofo) - (make sequence - (if ($callout-area-match$ (node-list-first areanl) line col eol?) - ($callout-area-format$ (node-list-first areanl) line col eol?) - (empty-sosofo)) - (loop (node-list-rest areanl))))))) - -(define ($callout-area-match$ area line col eol?) - ;; Does AREA area match line col? - (let* ((coordlist (split (attribute-string (normalize "coords") area))) - (aline (string->number (car coordlist))) - (acol (if (null? (cdr coordlist)) - #f - (string->number (car (cdr coordlist))))) - (units (if (inherited-attribute-string (normalize "units") area) - (inherited-attribute-string (normalize "units") area) - (normalize "linecolumn")))) - (and (equal? units (normalize "linecolumn")) - (or - (and (equal? line aline) - (equal? col acol)) - (and (equal? line aline) - eol? - (or (not acol) (> acol col))))))) - -(define ($callout-area-format$ area line col eol?) - ;; Format AREA area at the appropriate place - (let* ((coordlist (split (attribute-string (normalize "coords") area))) - (aline (string->number (car coordlist))) - (acol (if (null? (cdr coordlist)) - #f - (string->number (car (cdr coordlist)))))) - (if (and (equal? line aline) - eol? - (or (not acol) (> acol col))) - (make sequence - (let loop ((atcol col)) - (if (>= atcol (if acol acol %callout-default-col%)) - (empty-sosofo) - (make sequence - (literal "\no-break-space;") - (loop (+ atcol 1))))) - ($callout-mark$ area)) - ($callout-mark$ area)))) - -(define ($callout-linespecific-content$ indent line-numbers?) - ;; Print linespecific content in a callout with line numbers - (make sequence - ($line-start$ indent line-numbers? 1) - (let loop ((kl (children (current-node))) - (linecount 1) - (colcount 1) - (res (empty-sosofo))) - (if (node-list-empty? kl) - (sosofo-append res - ($look-for-callout$ linecount colcount #t) - (empty-sosofo)) - (loop - (node-list-rest kl) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - (+ linecount 1) - linecount) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - 1 - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-0000) - colcount - (+ colcount 1))) - (let ((c (node-list-first kl))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-000D) - (sosofo-append res - ($look-for-callout$ linecount colcount #t) - (process-node-list c) - ($line-start$ indent - line-numbers? - (+ linecount 1))) - (sosofo-append res - ($look-for-callout$ linecount colcount) - (process-node-list c))))))))) - -(define ($callout-verbatim-display$ indent line-numbers?) - (let* ((width-in-chars (if (attribute-string "width") - (string->number (attribute-string "width")) - 80)) ;; seems like a reasonable default... - (fsize (lambda () (if %verbatim-size-factor% - (* (inherited-font-size) %verbatim-size-factor%) - (/ (/ (- %text-width% (inherited-start-indent)) - width-in-chars) 0.7))))) - (make paragraph - space-before: (if (INLIST?) %para-sep% %block-sep%) - space-after: (if (INLIST?) %para-sep% %block-sep%) - font-family-name: %mono-font-family% - font-size: (fsize) - font-weight: 'medium - font-posture: 'upright - line-spacing: (* (fsize) %line-spacing-factor%) - start-indent: (inherited-start-indent) - lines: 'asis - input-whitespace-treatment: 'preserve - quadding: 'start - ($callout-linespecific-content$ indent line-numbers?)))) - -;; EOF dbcallout.dsl \ No newline at end of file diff --git a/docs/dsssl/docbook/print/dbcompon.dsl b/docs/dsssl/docbook/print/dbcompon.dsl deleted file mode 100755 index afccd54d..00000000 --- a/docs/dsssl/docbook/print/dbcompon.dsl +++ /dev/null @@ -1,505 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; ============================= COMPONENTS ============================= -;; -;; in docbook, components are containers at the chapter/appendix level - -(define ($title-header-footer-element$) - (let* ((firstchild (node-list-first (children (current-node)))) - (metainfo (if (node-list-empty? firstchild) - (empty-node-list) - (if (member (gi firstchild) (info-element-list)) - firstchild - (empty-node-list)))) - (metatitle (select-elements (children metainfo) (normalize "title"))) - (metatabb (select-elements (children metainfo) (normalize "titleabbrev"))) - (title (select-elements (children (current-node)) - (normalize "title"))) - (titleabb (select-elements (children (current-node)) - (normalize "titleabbrev")))) - (if (node-list-empty? metatabb) - (if (node-list-empty? titleabb) - (if (node-list-empty? metatitle) - title - metatitle) - titleabb) - metatabb))) - -(define ($refentry-header-footer-element$) - (let* ((refdescriptor (node-list-first - (select-elements - (descendants (current-node)) (normalize "refdescriptor")))) - (refname (node-list-first - (select-elements - (descendants (current-node)) (normalize "refname")))) - (refentrytitle (node-list-first - (select-elements - (descendants (current-node)) (normalize "refentrytitle"))))) - (if (node-list-empty? refentrytitle) - (if (node-list-empty? refdescriptor) - refname - refdescriptor) - refentrytitle))) - -(define ($title-header-footer$) - (let* ((title (if (equal? (gi) (normalize "refentry")) - ($refentry-header-footer-element$) - ($title-header-footer-element$)))) - (make sequence - font-posture: 'italic - (with-mode hf-mode - (process-node-list title))))) - -(define ($page-number-header-footer$) - (let ((component (ancestor-member (current-node) - (append (division-element-list) - (component-element-list))))) - (make sequence - font-posture: 'italic - (literal - (gentext-page) - (if %page-number-restart% - (cond - ((equal? (gi component) (normalize "appendix") ) - (string-append - (element-label component #t) - (gentext-intra-label-sep "_pagenumber"))) - ((equal? (gi component) (normalize "chapter")) - (string-append - (element-label component #t) - (gentext-intra-label-sep "_pagenumber"))) - (else "")) - "")) - (page-number-sosofo)))) - -(define (first-page-inner-header gi) - (empty-sosofo)) - -(define (first-page-center-header gi) - (empty-sosofo)) - -(define (first-page-outer-header gi) - (empty-sosofo)) - -(define (page-inner-header gi) - (empty-sosofo)) - -(define (page-center-header gi) - (empty-sosofo)) - -(define (page-outer-header gi) - (cond - ((equal? (normalize gi) (normalize "dedication")) (empty-sosofo)) - ((equal? (normalize gi) (normalize "lot")) (empty-sosofo)) - ((equal? (normalize gi) (normalize "part")) (empty-sosofo)) - ((equal? (normalize gi) (normalize "toc")) (empty-sosofo)) - (else ($title-header-footer$)))) - -(define (first-page-inner-footer gi) - (empty-sosofo)) - -(define (first-page-center-footer gi) - (empty-sosofo)) - -(define (first-page-outer-footer gi) - (cond - ((equal? (normalize gi) (normalize "dedication")) (empty-sosofo)) - ((equal? (normalize gi) (normalize "part")) (empty-sosofo)) - (else ($page-number-header-footer$)))) - -(define (page-inner-footer gi) - (empty-sosofo)) - -(define (page-center-footer gi) - (empty-sosofo)) - -(define (page-outer-footer gi) - ($page-number-header-footer$)) - -(define ($page-number-format$ #!optional (gi (gi))) - (cond - ((equal? (normalize gi) (normalize "toc")) "i") - ((equal? (normalize gi) (normalize "lot")) "i") - ((equal? (normalize gi) (normalize "preface")) "i") - (else "1"))) - -(define ($left-header$ #!optional (gi (gi))) - (if-first-page - (if (equal? %writing-mode% 'left-to-right) - (first-page-inner-header gi) - (first-page-outer-header gi)) - (if %two-side% - (if-front-page - (if (equal? %writing-mode% 'left-to-right) - (page-inner-header gi) - (page-outer-header gi)) - (if (equal? %writing-mode% 'left-to-right) - (page-outer-header gi) - (page-inner-header gi))) - (if (equal? %writing-mode% 'left-to-right) - (page-inner-header gi) - (page-outer-header gi))))) - -(define ($center-header$ #!optional (gi (gi))) - (if-first-page - (first-page-center-header gi) - (page-center-header gi))) - -(define ($right-header$ #!optional (gi (gi))) - (if-first-page - (if (equal? %writing-mode% 'left-to-right) - (first-page-outer-header gi) - (first-page-inner-header gi)) - (if %two-side% - (if-front-page - (if (equal? %writing-mode% 'left-to-right) - (page-outer-header gi) - (page-inner-header gi)) - (if (equal? %writing-mode% 'left-to-right) - (page-inner-header gi) - (page-outer-header gi))) - (if (equal? %writing-mode% 'left-to-right) - (page-outer-header gi) - (page-inner-header gi))))) - -(define ($left-footer$ #!optional (gi (gi))) - (if-first-page - (if (equal? %writing-mode% 'left-to-right) - (first-page-inner-footer gi) - (first-page-outer-footer gi)) - (if %two-side% - (if-front-page - (if (equal? %writing-mode% 'left-to-right) - (page-inner-footer gi) - (page-outer-footer gi)) - (if (equal? %writing-mode% 'left-to-right) - (page-outer-footer gi) - (page-inner-footer gi))) - (if (equal? %writing-mode% 'left-to-right) - (page-inner-footer gi) - (page-outer-footer gi))))) - -(define ($center-footer$ #!optional (gi (gi))) - (if-first-page - (first-page-center-footer gi) - (page-center-footer gi))) - -(define ($right-footer$ #!optional (gi (gi))) - (if-first-page - (if (equal? %writing-mode% 'left-to-right) - (first-page-outer-footer gi) - (first-page-inner-footer gi)) - (if %two-side% - (if-front-page - (if (equal? %writing-mode% 'left-to-right) - (page-outer-footer gi) - (page-inner-footer gi)) - (if (equal? %writing-mode% 'left-to-right) - (page-inner-footer gi) - (page-outer-footer gi))) - (if (equal? %writing-mode% 'left-to-right) - (page-outer-footer gi) - (page-inner-footer gi))))) - -(define ($component$) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (make sequence - ($component-title$) - (process-children)) - (make-endnotes))) - -(define ($component-title$) - (let* ((info (cond - ((equal? (gi) (normalize "appendix")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "article")) - (node-list-filter-by-gi (children (current-node)) - (list (normalize "artheader") - (normalize "articleinfo")))) - ((equal? (gi) (normalize "bibliography")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "chapter")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "dedication")) - (empty-node-list)) - ((equal? (gi) (normalize "glossary")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "index")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "preface")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "reference")) - (select-elements (children (current-node)) (normalize "docinfo"))) - ((equal? (gi) (normalize "setindex")) - (select-elements (children (current-node)) (normalize "docinfo"))) - (else - (empty-node-list)))) - (exp-children (if (node-list-empty? info) - (empty-node-list) - (expand-children (children info) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (parent-titles (select-elements (children (current-node)) (normalize "title"))) - (info-titles (select-elements exp-children (normalize "title"))) - (titles (if (node-list-empty? parent-titles) - info-titles - parent-titles)) - (subtitles (select-elements exp-children (normalize "subtitle")))) - (make sequence - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %component-title-quadding% - heading-level: (if %generate-heading-level% 1 0) - keep-with-next?: #t - - (if (string=? (element-label) "") - (empty-sosofo) - (literal (gentext-element-name-space (current-node)) - (element-label) - (gentext-label-title-sep (gi)))) - - (if (node-list-empty? titles) - (element-title-sosofo) ;; get a default! - (with-mode component-title-mode - (make sequence - (process-node-list titles))))) - - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-posture: 'italic - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* 0.5 (* (HSIZE 3) %head-before-factor%)) - space-after: (* (HSIZE 4) %head-after-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %component-subtitle-quadding% - keep-with-next?: #t - - (with-mode component-title-mode - (make sequence - (process-node-list subtitles))))))) - -(mode component-title-mode - (element title - (process-children)) - - (element subtitle - (process-children)) -) - -;; this is how we prevent the title in the header from acquiring the -;; display treatment that it receives in the body of the document -;; -(mode hf-mode - (element title - (let* ((component (ancestor-member (current-node) - (component-element-list))) - (chaporapp (or (equal? (gi component) (normalize "chapter")) - (equal? (gi component) (normalize "appendix"))))) - (if %chap-app-running-heads% - (make sequence - (if (and chaporapp - %chapter-autolabel% - (or %chap-app-running-head-autolabel% - (attribute-string (normalize "label") component))) - (literal (gentext-element-name-space component) - (element-label component) - (gentext-label-title-sep (gi component))) - (empty-sosofo)) - (process-children-trim)) - (empty-sosofo)))) - - (element titleabbrev - (if %chap-app-running-heads% - (make sequence - (if (or (have-ancestor? (normalize "chapter")) - (have-ancestor? (normalize "appendix"))) - (literal (gentext-element-name-space (parent)) - (element-label (parent)) - (gentext-label-title-sep (gi (parent)))) - (empty-sosofo)) - (process-children-trim)) - (empty-sosofo))) - - (element refentrytitle - (if %chap-app-running-heads% - (process-children-trim) - (empty-sosofo))) - - (element refdescriptor - (if %chap-app-running-heads% - (process-children-trim) - (empty-sosofo))) - - (element refname - (if %chap-app-running-heads% - (process-children-trim) - (empty-sosofo))) - - ;; Graphics aren't allowed in headers and footers... - (element graphic - (empty-sosofo)) - - (element inlinegraphic - (empty-sosofo)) -) - -(element appendix ($component$)) -(element (article appendix) ($section$)) ;; this is a special case -(element (appendix title) (empty-sosofo)) - -(element chapter ($component$)) -(element (chapter title) (empty-sosofo)) - -(element preface ($component$)) -(element (preface title) (empty-sosofo)) - -;; Dedication is empty except in a special mode so that it can be -;; reordered (made to come before the TOCs) -(element dedication (empty-sosofo)) -(mode dedication-page-mode - (element dedication ($component$)) - (element (dedication title) (empty-sosofo)) -) - -;; Articles are like components, except that if they may have much -;; more formal title pages (created with article-titlepage). -;; -(element article - (let* ((info (node-list-filter-by-gi (children (current-node)) - (list (normalize "artheader") - (normalize "articleinfo")))) - (nl (titlepage-info-elements (current-node) info)) - (article-titlepage (if %generate-article-titlepage-on-separate-page% - (make sequence - (if (article-titlepage-content? nl 'recto) - (make simple-page-sequence - page-n-columns: %page-n-columns% - use: default-text-style - quadding: %default-quadding% - (article-titlepage nl 'recto)) - (empty-sosofo)) - (if (article-titlepage-content? nl 'verso) - (make simple-page-sequence - page-n-columns: %page-n-columns% - use: default-text-style - quadding: %default-quadding% - (article-titlepage nl 'verso)) - (empty-sosofo))) - (make sequence - (article-titlepage nl 'recto) - (article-titlepage nl 'verso))))) - (make sequence - (if (and %generate-article-titlepage% - %generate-article-titlepage-on-separate-page%) - article-titlepage - (empty-sosofo)) - - (if (and %generate-article-toc% - (not %generate-article-toc-on-titlepage%) - %generate-article-titlepage-on-separate-page% - (generate-toc-in-front)) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: %article-page-number-restart% - page-number-format: ($page-number-format$ (normalize "toc")) - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - use: default-text-style - quadding: %default-quadding% - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %article-page-number-restart% - (book-start?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - - (if (and %generate-article-titlepage% - (not %generate-article-titlepage-on-separate-page%)) - article-titlepage - (empty-sosofo)) - - (if (and %generate-article-toc% - (generate-toc-in-front) - (not %generate-article-toc-on-titlepage%) - (not %generate-article-titlepage-on-separate-page%)) - (make display-group - space-after: (* (HSIZE 3) %head-after-factor%) - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (process-children) - - (make-endnotes) - - (if (and %generate-article-toc% - (not (generate-toc-in-front)) - (not %generate-article-toc-on-titlepage%) - (not %generate-article-titlepage-on-separate-page%)) - (make display-group - space-after: (* (HSIZE 3) %head-after-factor%) - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo))) - - (if (and %generate-article-toc% - (not %generate-article-toc-on-titlepage%) - %generate-article-titlepage-on-separate-page% - (not (generate-toc-in-front))) - (make simple-page-sequence - page-n-columns: %page-n-columns% - use: default-text-style - quadding: %default-quadding% - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo))))) - -(element (article title) (empty-sosofo)) - diff --git a/docs/dsssl/docbook/print/dbdivis.dsl b/docs/dsssl/docbook/print/dbdivis.dsl deleted file mode 100755 index 3c3ea860..00000000 --- a/docs/dsssl/docbook/print/dbdivis.dsl +++ /dev/null @@ -1,222 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= DIVISIONS ============================== - -(element set - (let* ((setinfo (select-elements (children (current-node)) - (normalize "setinfo"))) - (nl (titlepage-info-elements (current-node) setinfo))) - (make sequence - (if %generate-set-titlepage% - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - (set-titlepage nl 'recto) - (make display-group - break-before: 'page - (set-titlepage nl 'verso))) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-set-toc% - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (set title) (empty-sosofo)) - -(element book - (let* ((bookinfo (select-elements (children (current-node)) - (normalize "bookinfo"))) - (dedication (select-elements (children (current-node)) - (normalize "dedication"))) - (nl (titlepage-info-elements (current-node) bookinfo))) - (make sequence - (if %generate-book-titlepage% - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - (book-titlepage nl 'recto) - (make display-group - break-before: 'page - (book-titlepage nl 'verso))) - (empty-sosofo)) - - (if (node-list-empty? dedication) - (empty-sosofo) - (with-mode dedication-page-mode - (process-node-list dedication))) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-book-toc% - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (let loop ((gilist ($generate-book-lot-list$))) - (if (null? gilist) - (empty-sosofo) - (if (not (node-list-empty? - (select-elements (descendants (current-node)) - (car gilist)))) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "lot")) - use: default-text-style - left-header: ($left-header$ (normalize "lot")) - center-header: ($center-header$ (normalize "lot")) - right-header: ($right-header$ (normalize "lot")) - left-footer: ($left-footer$ (normalize "lot")) - center-footer: ($center-footer$ (normalize "lot")) - right-footer: ($right-footer$ (normalize "lot")) - input-whitespace-treatment: 'collapse - (build-lot (current-node) (car gilist)) - (loop (cdr gilist))) - (loop (cdr gilist))))) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (book title) (empty-sosofo)) - -(element part - (let* ((partinfo (select-elements (children (current-node)) - (normalize "docinfo"))) - (partintro (select-elements (children (current-node)) - (normalize "partintro"))) - - (nl (titlepage-info-elements - (current-node) - partinfo - (if %generate-partintro-on-titlepage% - partintro - (empty-node-list))))) - (make sequence - (if %generate-part-titlepage% - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - (part-titlepage nl 'recto) - (make display-group - break-before: 'page - (part-titlepage nl 'verso))) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if (and %generate-part-toc% - (not %generate-part-toc-on-titlepage%)) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (and (not (node-list-empty? partintro)) - (not %generate-partintro-on-titlepage%)) - ($process-partintro$ partintro #t) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (part title) (empty-sosofo)) - -(element partintro (empty-sosofo)) - -(element (partintro title) - (let* ((hlevel 1) - (hs (HSIZE (- 4 hlevel)))) - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% (+ hlevel 1) 0) - (element-title-sosofo (parent (current-node)))))) - -(define ($process-partintro$ partintro make-page-seq?) - (if make-page-seq? - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (make sequence - (process-node-list (children partintro)) - (make-endnotes partintro))) - (make sequence - start-indent: %body-start-indent% - (process-node-list (children partintro)) - (make-endnotes partintro)))) - diff --git a/docs/dsssl/docbook/print/dbdivis.dsl.orig b/docs/dsssl/docbook/print/dbdivis.dsl.orig deleted file mode 100755 index edf389fd..00000000 --- a/docs/dsssl/docbook/print/dbdivis.dsl.orig +++ /dev/null @@ -1,207 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= DIVISIONS ============================== - -(element set - (let* ((setinfo (select-elements (children (current-node)) - (normalize "setinfo"))) - (nl (titlepage-info-elements (current-node) setinfo))) - (make sequence - (if %generate-set-titlepage% - (make sequence - (set-titlepage nl 'recto) - (set-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-set-toc% - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (set title) (empty-sosofo)) - -(element book - (let* ((bookinfo (select-elements (children (current-node)) - (normalize "bookinfo"))) - (dedication (select-elements (children (current-node)) - (normalize "dedication"))) - (nl (titlepage-info-elements (current-node) bookinfo))) - (make sequence - (if %generate-book-titlepage% - (make sequence - (book-titlepage nl 'recto) - (book-titlepage nl 'verso)) - (empty-sosofo)) - - (if (node-list-empty? dedication) - (empty-sosofo) - (with-mode dedication-page-mode - (process-node-list dedication))) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if %generate-book-toc% - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (let loop ((gilist ($generate-book-lot-list$))) - (if (null? gilist) - (empty-sosofo) - (if (not (node-list-empty? - (select-elements (descendants (current-node)) - (car gilist)))) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "lot")) - use: default-text-style - left-header: ($left-header$ (normalize "lot")) - center-header: ($center-header$ (normalize "lot")) - right-header: ($right-header$ (normalize "lot")) - left-footer: ($left-footer$ (normalize "lot")) - center-footer: ($center-footer$ (normalize "lot")) - right-footer: ($right-footer$ (normalize "lot")) - input-whitespace-treatment: 'collapse - (build-lot (current-node) (car gilist)) - (loop (cdr gilist))) - (loop (cdr gilist))))) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (book title) (empty-sosofo)) - -(element part - (let* ((partinfo (select-elements (children (current-node)) - (normalize "docinfo"))) - (partintro (select-elements (children (current-node)) - (normalize "partintro"))) - - (nl (titlepage-info-elements - (current-node) - partinfo - (if %generate-partintro-on-titlepage% - partintro - (empty-node-list))))) - (make sequence - (if %generate-part-titlepage% - (make sequence - (part-titlepage nl 'recto) - (part-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if (and %generate-part-toc% - (not %generate-part-toc-on-titlepage%)) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (and (not (node-list-empty? partintro)) - (not %generate-partintro-on-titlepage%)) - ($process-partintro$ partintro #t) - (empty-sosofo)) - - (if (generate-toc-in-front) - (process-children) - (empty-sosofo))))) - -(element (part title) (empty-sosofo)) - -(element partintro (empty-sosofo)) - -(element (partintro title) - (let* ((hlevel 1) - (hs (HSIZE (- 4 hlevel)))) - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: 0pt - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% (+ hlevel 1) 0) - (element-title-sosofo (parent (current-node)))))) - -(define ($process-partintro$ partintro make-page-seq?) - (if make-page-seq? - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (make sequence - (process-node-list (children partintro)) - (make-endnotes partintro))) - (make sequence - start-indent: %body-start-indent% - (process-node-list (children partintro)) - (make-endnotes partintro)))) - diff --git a/docs/dsssl/docbook/print/dbefsyn.dsl b/docs/dsssl/docbook/print/dbefsyn.dsl deleted file mode 100755 index 877fda76..00000000 --- a/docs/dsssl/docbook/print/dbefsyn.dsl +++ /dev/null @@ -1,588 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================ CLASS SYNOPSIS ============================= - -(define %indent-classsynopsisinfo-lines% #f) -(define %number-classsynopsisinfo-lines% #f) - -(define %default-classsynopsis-language% "java") - -(element classsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element methodsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element fieldsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element constructorynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -(element destructorsynopsis - (let ((language (if (attribute-string (normalize "language")) - (attribute-string (normalize "language")) - %default-classsynopsis-language%))) - (case language - (("java") (with-mode cs-java-mode - (process-node-list (current-node)))) - (("perl") (with-mode cs-perl-mode - (process-node-list (current-node)))) - (("idl") (with-mode cs-idl-mode - (process-node-list (current-node)))) - (("python") (with-mode cs-python-mode - (process-node-list (current-node)))) - (else (with-mode cs-java-mode - (process-node-list (current-node))))))) - -;; ===== Java ======================================================== - -(mode cs-java-mode - -(element classsynopsis - (let* ((classes (select-elements (children (current-node)) - (normalize "ooclass"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make display-group - use: verbatim-style - (make paragraph - (process-node-list classname) - (process-node-list superclasses) - (literal "{")) - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - (make paragraph - (literal "}"))))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element ooclass - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (process-children))) - -(element oointerface - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (process-children))) - -(element ooexception - (make sequence - (if (first-sibling?) - (literal " ") - (literal ", ")) - (process-children))) - -(element modifier - (make sequence - (process-children) - (literal " "))) - -(element classname - (if (first-sibling?) - (make sequence - (literal "class ") - (process-children) - (literal " ") - (if (last-sibling?) - (empty-sosofo) - (literal "extends "))) - (make sequence - (process-children) - (if (last-sibling?) - (literal " ") - (literal ", "))))) - -(element fieldsynopsis - (make paragraph - use: inline-verbatim-style - (literal " ") - (process-children) - (literal ";"))) - -(element type - (make sequence - (process-children) - (literal " "))) - -(element varname - (make sequence - (process-children))) - -(element initializer - (make sequence - (literal " = ") - (process-children))) - -(element constructorsynopsis - (java-method-synopsis)) - -(element destructorsynopsis - (java-method-synopsis)) - -(element methodsynopsis - (java-method-synopsis)) - -(element void - (literal "void ")) - -(element methodname - (process-children)) - -(element methodparam - (make sequence - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (process-children)) - -(element exceptionname - (make sequence - (if (first-sibling?) - (literal " throws ") - (literal ", ")) - (process-children))) -) - -(define (java-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "methodparam")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make paragraph - use: inline-verbatim-style - (literal " ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal "(") - (process-node-list param) - (literal ")") - (process-node-list excep) - (literal ";")))) - -;; ===== Perl ======================================================== - -(mode cs-perl-mode - -(element classsynopsis - (let* ((modifiers (select-elements (children (current-node)) - (normalize "modifier"))) - (classes (select-elements (children (current-node)) - (normalize "classname"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make display-group - use: verbatim-style; - (make paragraph - (literal "package ") - (process-node-list classname) - (literal ";")) - (if (node-list-empty? superclasses) - (empty-sosofo) - (make sequence - (literal "@ISA = ("); - (process-node-list superclasses) - (literal ";"))) - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo"))))))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element modifier - (literal "Perl ClassSynopses don't use Modifiers")) - -(element classname - (if (first-sibling?) - (process-children) - (make sequence - (process-children) - (if (last-sibling?) - (empty-sosofo) - (literal ", "))))) - -(element fieldsynopsis - (make paragraph - use: inline-verbatim-style - (literal " "); - (process-children) - (literal ";"))) - -(element type - (make sequence - (process-children) - (literal " "))) - -(element varname - (make sequence - (process-children))) - -(element initializer - (make sequence - (literal " = ") - (process-children))) - -(element constructorsynopsis - (perl-method-synopsis)) - -(element destructorsynopsis - (perl-method-synopsis)) - -(element methodsynopsis - (perl-method-synopsis)) - -(element void - (empty-sosofo)) - -(element methodname - (process-children)) - -(element methodparam - (make sequence - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (process-children)) - -(element exceptionname - (literal "Perl ClassSynopses don't use Exceptions")) - -) - -(define (perl-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "type") - (normalize "void")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make paragraph - use: inline-verbatim-style - (literal "sub ") - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal " { ... }")))) - -;; ===== IDL ========================================================= - -(mode cs-idl-mode - -(element classsynopsis - (let* ((modifiers (select-elements (children (current-node)) - (normalize "modifier"))) - (classes (select-elements (children (current-node)) - (normalize "classname"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make display-group - use: verbatim-style; - (make paragraph - (literal "interface ") - (process-node-list modifiers) - (process-node-list classname) - (if (node-list-empty? superclasses) - (literal " ") - (make sequence - (literal " : ") - (process-node-list superclasses))) - (literal "{")) - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - (make paragraph - (literal "}"))))) - -(element classsynopsisinfo - ($verbatim-display$ %indent-classsynopsisinfo-lines% - %number-classsynopsisinfo-lines%)) - -(element modifier - (make sequence - (process-children) - (literal " "))) - -(element classname - (if (first-sibling?) - (process-children) - (make sequence - (process-children) - (if (last-sibling?) - (empty-sosofo) - (literal ", "))))) - -(element fieldsynopsis - (make paragraph - use: inline-verbatim-style - (literal " "); - (process-children) - (literal ";"))) - -(element type - (make sequence - (process-children) - (literal " "))) - -(element varname - (make sequence - (process-children))) - -(element initializer - (make sequence - (literal " = ") - (process-children))) - -(element constructorsynopsis - (idl-method-synopsis)) - -(element destructorsynopsis - (idl-method-synopsis)) - -(element methodsynopsis - (idl-method-synopsis)) - -(element void - (literal "void ")) - -(element methodname - (process-children)) - -(element methodparam - (make sequence - (if (first-sibling?) - (empty-sosofo) - (literal ", ")) - (process-children))) - -(element parameter - (process-children)) - -(element exceptionname - (make sequence - (if (first-sibling?) - (literal " raises(") - (literal ", ")) - (process-children) - (if (last-sibling?) - (literal ")") - (empty-sosofo)))) -) - -(define (idl-method-synopsis #!optional (nd (current-node))) - (let* ((modifiers (select-elements (children nd) - (normalize "modifier"))) - (notmod (node-list-filter-by-not-gi - (children nd) - (list (normalize "modifier")))) - (type (if (equal? (gi (node-list-first notmod)) - (normalize "methodname")) - (empty-node-list) - (node-list-first notmod))) - (methodname (select-elements (children nd) - (normalize "methodname"))) - (param (node-list-filter-by-gi (node-list-rest notmod) - (list (normalize "methodparam")))) - (excep (select-elements (children nd) - (normalize "exceptionname")))) - (make paragraph - use: inline-verbatim-style - (process-node-list modifiers) - (process-node-list type) - (process-node-list methodname) - (literal "(") - (process-node-list param) - (literal ")") - (process-node-list excep) - (literal ";")))) - -;; ===== Python ====================================================== -;; Contributed by Lane Stevens, lane@cycletime.com - -(mode cs-python-mode - (element classsynopsis - (let* ((classes (select-elements (children (current-node)) - (normalize "ooclass"))) - (classname (node-list-first classes)) - (superclasses (node-list-rest classes))) - (make display-group - use: verbatim-style - (make paragraph - (literal "class ") - (process-node-list classname) - (literal "(") - (process-node-list superclasses) - (literal ") :")) - (process-node-list - (node-list-filter-by-gi - (children (current-node)) - (list (normalize "constructorsynopsis") - (normalize "destructorsynopsis") - (normalize "fieldsynopsis") - (normalize "methodsynopsis") - (normalize "classsynopsisinfo")))) - ) - ) - ) - - (element ooclass - (make sequence - (process-children) - (cond - ((first-sibling?) (literal " ")) - ((last-sibling?) (empty-sosofo)) - (#t (literal ", ")) - ) - ) - ) - - (element methodsynopsis - (python-method-synopsis)) - - (element classname - (process-children)) - - (element initializer - (make sequence - (literal " = ") - (process-children))) - - (element methodname - (process-children)) - - (element methodparam - (make sequence - (process-children) - (if (last-sibling?) - (empty-sosofo) - (literal ", ")) - ) - ) - - (element parameter - (process-children)) - ) - -(define (python-method-synopsis #!optional (nd (current-node))) - (let* ((the-method-name (select-elements (children nd) (normalize "methodname"))) - (the-method-params (select-elements (children nd) (normalize "methodparam"))) - ) - (make paragraph - use: inline-verbatim-style - (literal " def ") - (process-node-list the-method-name) - (literal "(") - (process-node-list the-method-params) - (literal ") :")) - ) - ) - -;; EOF diff --git a/docs/dsssl/docbook/print/dbgloss.dsl b/docs/dsssl/docbook/print/dbgloss.dsl deleted file mode 100755 index 66f3330f..00000000 --- a/docs/dsssl/docbook/print/dbgloss.dsl +++ /dev/null @@ -1,117 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= GLOSSARY ELEMENTS ========================== - -(element glossary ($component$)) -(element (article glossary) ($section$)) ;; this is a special case -(element (glossary title) (empty-sosofo)) - -(element glossdiv ($section$)) -(element (glossdiv title) (empty-sosofo)) - -(element glosslist ($block-container$)) -(element glossentry (process-children)) - -;; a glossentry glossterm -(element (glossentry glossterm) ($lowtitle$ 3 2)) -(element (glossdiv glossentry glossterm) ($lowtitle$ 3 3)) -(element (glossentry acronym) (empty-sosofo)) -(element (glossentry abbrev) (empty-sosofo)) -(element glossdef ($indent-para-container$)) - -(element glosssee ($italic-seq$)) - -(element (glossentry glosssee) - (let ((otherterm (attribute-string (normalize "otherterm")))) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) (* (ILSTEP) 2)) - quadding: %default-quadding% - ($italic-seq$ (literal (gentext-element-name (current-node)) - (gentext-label-title-sep (gi)))) - (if otherterm - (make link - destination: (node-list-address (element-with-id otherterm)) - (with-mode otherterm - (process-element-with-id otherterm))) - (process-children))))) - -;; When we hit the first GLOSSSEEALSO, process all of them as a node-list -(element glossseealso - (if (first-sibling?) - (make paragraph - ($italic-seq$ (literal (gentext-element-name (current-node)) - (gentext-label-title-sep (gi)))) - (with-mode glossseealso - (process-node-list - (select-elements (children (parent)) '(glossseealso)))) - (literal ".")) - (empty-sosofo))) - -(mode glossseealso - - (element glossseealso - (let ((otherterm (attribute-string (normalize "otherterm")))) - (make sequence - (if (first-sibling?) - (empty-sosofo) - ($italic-seq$ (literal ", "))) - - (if otherterm ;; but this should be required... - (make link - destination: (node-list-address (element-with-id otherterm)) - (with-mode otherterm - (process-element-with-id otherterm))) - (process-children))))) - -) - -;; This is referenced within the GLOSSSEE and GLOSSSEEALSO element -;; construction expressions. The OTHERTERM attributes on GLOSSSEE and -;; GLOSSSEEALSO (should) refer to GLOSSENTRY elements but we're only -;; interested in the text within the GLOSSTERM. Discard the revision -;; history and the definition from the referenced term. -(mode otherterm - (element glossentry - (process-children)) - (element glossterm - (process-children)) - (element glossdef - (empty-sosofo)) - (element revhistory - (empty-sosofo)) - (element glosssee - (empty-sosofo)) - (element (glossentry acronym) - (empty-sosofo)) - (element (glossentry abbrev) - (empty-sosofo))) - -;; an inline gloss term -(element glossterm - (let* ((linkend (attribute-string (normalize "linkend")))) - (if linkend - (make link - destination: (node-list-address (element-with-id linkend)) - ($italic-seq$)) - ($italic-seq$)))) - -;; a first glossterm -(element firstterm - (let* ((linkend (attribute-string (normalize "linkend"))) - (sosofo (if linkend - (make link - destination: (node-list-address - (element-with-id linkend)) - ($italic-seq$)) - ($italic-seq$)))) - (if firstterm-bold - (make sequence - font-weight: 'bold - sosofo) - sosofo))) diff --git a/docs/dsssl/docbook/print/dbgraph.dsl b/docs/dsssl/docbook/print/dbgraph.dsl deleted file mode 100755 index 85581eff..00000000 --- a/docs/dsssl/docbook/print/dbgraph.dsl +++ /dev/null @@ -1,74 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ==================== GRAPHICS ==================== - -;; NOTE: display #f doesn't seem to work right in the RTF back end... - -(define (graphic-file filename) - (let ((ext (file-extension filename))) - (if (or (not filename) - (not %graphic-default-extension%) - (member ext %graphic-extensions%)) - filename - (string-append filename "." %graphic-default-extension%)))) - -(define ($graphic$ fileref - #!optional (display #f) (format #f) (scale #f) (align #f)) - (let ((graphic-format (if format format "")) - (graphic-scale (if scale (/ (string->number scale) 100) 1)) - (graphic-align (cond ((equal? align (normalize "center")) - 'center) - ((equal? align (normalize "right")) - 'end) - (else - 'start)))) - (make external-graphic - entity-system-id: (graphic-file fileref) - notation-system-id: graphic-format - scale: graphic-scale - display?: display - display-alignment: graphic-align))) - -(define ($img$ #!optional (nd (current-node)) (display #f)) - ;; This function now supports an extension to DocBook. It's - ;; either a clever trick or an ugly hack, depending on your - ;; point of view, but it'll hold us until XLink is finalized - ;; and we can extend DocBook the "right" way. - ;; - ;; If the entity passed to GRAPHIC has the FORMAT - ;; "LINESPECIFIC", either because that's what's specified or - ;; because it's the notation of the supplied ENTITYREF, then - ;; the text of the entity is inserted literally (via Jade's - ;; read-entity external procedure). - ;; - (let* ((fileref (attribute-string (normalize "fileref") nd)) - (entityref (attribute-string (normalize "entityref") nd)) - (format (if (attribute-string (normalize "format") nd) - (attribute-string (normalize "format") nd) - (if entityref - (entity-notation entityref) - #f))) - (align (attribute-string (normalize "align") nd)) - (scale (attribute-string (normalize "scale") nd))) - (if (or fileref entityref) - (if (equal? format (normalize "linespecific")) - (if fileref - (include-file fileref) - (include-file (entity-generated-system-id entityref))) - (if fileref - ($graphic$ fileref display format scale align) - ($graphic$ (entity-generated-system-id entityref) - display format scale align))) - (empty-sosofo)))) - -(element graphic - (make paragraph - space-before: %block-sep% - space-after: %block-sep% - ($img$ (current-node) #t))) - -(element inlinegraphic ($img$)) diff --git a/docs/dsssl/docbook/print/dbindex.dsl b/docs/dsssl/docbook/print/dbindex.dsl deleted file mode 100755 index ba594469..00000000 --- a/docs/dsssl/docbook/print/dbindex.dsl +++ /dev/null @@ -1,156 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ................... INDEX TERMS (EMBEDDED MARKERS) ................... - -(element indexterm - ;; This is different than (empty-sosofo) alone because the backend - ;; will hang an anchor off the empty sequence. This allows the index - ;; to point to the indexterm (but only if the indexterm has an ID). - (make sequence (empty-sosofo))) - -(element primary (empty-sosofo)) -(element secondary (empty-sosofo)) -(element tertiary (empty-sosofo)) -(element see (empty-sosofo)) -(element seealso (empty-sosofo)) - -;; =========================== INDEX ELEMENTS =========================== - -(element setindex ($component$)) -(element (setindex title) (empty-sosofo)) - -(element index - (make simple-page-sequence - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - page-n-columns: 2 - (make sequence - ($component-title$) - (process-children)) - (make-endnotes))) - -;; this is a special case. this prevents the index from causing an error but -;; will make the index a single column. c'est la vie. -(element (article index) ($section$)) - -(element (index title) (empty-sosofo)) - -(element indexdiv ($section$)) -(element (indexdiv title) (empty-sosofo)) - -(element indexentry (process-children)) - -(element primaryie - (make paragraph - font-size: (* (inherited-font-size) %smaller-size-factor%) - (process-children))) - -(element secondaryie - (make paragraph - font-size: (* (inherited-font-size) %smaller-size-factor%) - start-indent: (+ (inherited-start-indent) 1em) - (process-children))) - -(element tertiaryie - (make paragraph - font-size: (* (inherited-font-size) %smaller-size-factor%) - start-indent: (+ (inherited-start-indent) 2em) - (process-children))) - -(define (find-indexterm id) - ;; If you have a lot of indexterms that don't have IDs, this could - ;; be incredibly slow. So don't do that. - (let* ((idtarget (element-with-id id))) - (if (node-list-empty? idtarget) - (let loop ((idnodes (select-elements (descendants (sgml-root-element)) - (normalize "indexterm")))) - (if (node-list-empty? idnodes) - (empty-node-list) - (if (equal? id (string-append "AEN" - (number->string - (all-element-number - (node-list-first idnodes))))) - (node-list-first idnodes) - (loop (node-list-rest idnodes))))) - idtarget))) - -(define (indexentry-link nd) - (let* ((id (attribute-string (normalize "role") nd)) - (target (find-indexterm id)) - (preferred (not (node-list-empty? - (select-elements (children (current-node)) - (normalize "emphasis"))))) - (sosofo (if (node-list-empty? target) - (literal "?") - (make link - destination: (node-list-address target) - (with-mode toc-page-number-mode - (process-node-list target)))))) - (if preferred - (make sequence - font-weight: 'bold - sosofo) - sosofo))) - -(element (primaryie ulink) - (indexentry-link (current-node))) - -(element (secondaryie ulink) - (indexentry-link (current-node))) - -(element (tertiaryie ulink) - (indexentry-link (current-node))) - -(element seeie - (let ((indent (cond ((node-list-empty? - (select-elements - (children (parent (current-node))) - (normalize "secondaryie"))) - 1em) - ((node-list-empty? - (select-elements - (children (parent (current-node))) - (normalize "tertiaryie"))) - 2em) - (else 3em)))) - (make paragraph - font-size: (* (inherited-font-size) %smaller-size-factor%) - start-indent: (+ (inherited-start-indent) indent) - (literal "(" (gentext-index-see) " ") - (process-children) - (literal ")")))) - -(element seealsoie - (let ((indent (cond ((node-list-empty? - (select-elements - (children (parent (current-node))) - (normalize "secondaryie"))) - 1em) - ((node-list-empty? - (select-elements - (children (parent (current-node))) - (normalize "tertiaryie"))) - 2em) - (else 3em)))) - (make paragraph - font-size: (* (inherited-font-size) %smaller-size-factor%) - start-indent: (+ (inherited-start-indent) indent) - (literal "(" (gentext-index-seealso) " ") - (process-children) - (literal ")")))) diff --git a/docs/dsssl/docbook/print/dbinfo.dsl b/docs/dsssl/docbook/print/dbinfo.dsl deleted file mode 100755 index 09e96209..00000000 --- a/docs/dsssl/docbook/print/dbinfo.dsl +++ /dev/null @@ -1,1012 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ................................ INFO ................................ - -;; Rather than make the *INFO containers empty-sosofos, we make them -;; process-children and then make all of the elements they may contain -;; empty in this context. The advantage here is that we can then -;; more easily override some of them in stylesheets that use this one. - -(element setinfo (empty-sosofo)) - -(element (setinfo abbrev) (empty-sosofo)) -(element (setinfo abstract) (empty-sosofo)) -(element (setinfo address) (empty-sosofo)) -(element (setinfo affiliation) (empty-sosofo)) -(element (setinfo artpagenums) (empty-sosofo)) -(element (setinfo author) (empty-sosofo)) -(element (setinfo authorblurb) (empty-sosofo)) -(element (setinfo authorgroup) (empty-sosofo)) -(element (setinfo authorinitials) (empty-sosofo)) -(element (setinfo bibliomisc) (empty-sosofo)) -(element (setinfo biblioset) (empty-sosofo)) -(element (setinfo collab) (empty-sosofo)) -(element (setinfo confgroup) (empty-sosofo)) -(element (setinfo contractnum) (empty-sosofo)) -(element (setinfo contractsponsor) (empty-sosofo)) -(element (setinfo contrib) (empty-sosofo)) -(element (setinfo copyright) (empty-sosofo)) -(element (setinfo corpauthor) (empty-sosofo)) -(element (setinfo corpname) (empty-sosofo)) -(element (setinfo date) (empty-sosofo)) -(element (setinfo edition) (empty-sosofo)) -(element (setinfo editor) (empty-sosofo)) -(element (setinfo firstname) (empty-sosofo)) -(element (setinfo graphic) (empty-sosofo)) -(element (setinfo honorific) (empty-sosofo)) -(element (setinfo invpartnumber) (empty-sosofo)) -(element (setinfo isbn) (empty-sosofo)) -(element (setinfo issn) (empty-sosofo)) -(element (setinfo issuenum) (empty-sosofo)) -(element (setinfo itermset) (empty-sosofo)) -(element (setinfo keywordset) (empty-sosofo)) -(element (setinfo legalnotice) (empty-sosofo)) -(element (setinfo lineage) (empty-sosofo)) -(element (setinfo modespec) (empty-sosofo)) -(element (setinfo orgname) (empty-sosofo)) -(element (setinfo othercredit) (empty-sosofo)) -(element (setinfo othername) (empty-sosofo)) -(element (setinfo pagenums) (empty-sosofo)) -(element (setinfo printhistory) (empty-sosofo)) -(element (setinfo productname) (empty-sosofo)) -(element (setinfo productnumber) (empty-sosofo)) -(element (setinfo pubdate) (empty-sosofo)) -(element (setinfo publisher) (empty-sosofo)) -(element (setinfo publishername) (empty-sosofo)) -(element (setinfo pubsnumber) (empty-sosofo)) -(element (setinfo releaseinfo) (empty-sosofo)) -(element (setinfo revhistory) (empty-sosofo)) -(element (setinfo seriesvolnums) (empty-sosofo)) -(element (setinfo subjectset) (empty-sosofo)) -(element (setinfo subtitle) (empty-sosofo)) -(element (setinfo surname) (empty-sosofo)) -(element (setinfo title) (empty-sosofo)) -(element (setinfo titleabbrev) (empty-sosofo)) -(element (setinfo volumenum) (empty-sosofo)) - -;; BookInfo is handled differently in dbdivis.dsl by using a -;; special mode... - -(element bookinfo (empty-sosofo)) - -(element (bookinfo abbrev) (process-children)) -(element (bookinfo abstract) (process-children)) -(element (bookinfo address) (process-children)) -(element (bookinfo affiliation) (process-children)) -(element (bookinfo artpagenums) (process-children)) -(element (bookinfo author) (process-children)) -(element (bookinfo authorblurb) (process-children)) -(element (bookinfo authorgroup) (process-children)) -(element (bookinfo authorinitials) (process-children)) -(element (bookinfo bibliomisc) (process-children)) -(element (bookinfo biblioset) (process-children)) -(element (bookinfo bookbiblio) (process-children)) -(element (bookinfo collab) (process-children)) -(element (bookinfo confgroup) (process-children)) -(element (bookinfo contractnum) (process-children)) -(element (bookinfo contractsponsor) (process-children)) -(element (bookinfo contrib) (process-children)) -;; (element (bookinfo copyright) (process-children)) ;; the default is good -(element (bookinfo corpauthor) (process-children)) -(element (bookinfo corpname) (process-children)) -(element (bookinfo date) (process-children)) -(element (bookinfo edition) (process-children)) -(element (bookinfo editor) (process-children)) -(element (bookinfo firstname) (process-children)) -(element (bookinfo graphic) (process-children)) -(element (bookinfo honorific) (process-children)) -(element (bookinfo invpartnumber) (process-children)) -(element (bookinfo isbn) (process-children)) -(element (bookinfo issn) (process-children)) -(element (bookinfo issuenum) (process-children)) -(element (bookinfo itermset) (process-children)) -(element (bookinfo keywordset) (process-children)) -(element (bookinfo legalnotice) ($semiformal-object$)) -(element (bookinfo lineage) (process-children)) -(element (bookinfo modespec) (process-children)) -(element (bookinfo orgname) (process-children)) -(element (bookinfo othercredit) (process-children)) -(element (bookinfo othername) (process-children)) -(element (bookinfo pagenums) (process-children)) -(element (bookinfo printhistory) (process-children)) -(element (bookinfo productname) (process-children)) -(element (bookinfo productnumber) (process-children)) -(element (bookinfo pubdate) (process-children)) -(element (bookinfo publisher) (process-children)) -(element (bookinfo publishername) (process-children)) -(element (bookinfo pubsnumber) (process-children)) -(element (bookinfo releaseinfo) (process-children)) -(element (bookinfo revhistory) ($book-revhistory$)) -(element (bookinfo seriesvolnums) (process-children)) -(element (bookinfo subjectset) (process-children)) -(element (bookinfo subtitle) (process-children)) -(element (bookinfo surname) (process-children)) -(element (bookinfo title) (process-children)) -(element (bookinfo titleabbrev) (process-children)) -(element (bookinfo volumenum) (process-children)) - -(element docinfo (empty-sosofo)) - -(element (docinfo abbrev) (empty-sosofo)) -(element (docinfo abstract) (empty-sosofo)) -(element (docinfo address) (empty-sosofo)) -(element (docinfo affiliation) (empty-sosofo)) -(element (docinfo artpagenums) (empty-sosofo)) -(element (docinfo author) (empty-sosofo)) -(element (docinfo authorblurb) (empty-sosofo)) -(element (docinfo authorgroup) (empty-sosofo)) -(element (docinfo authorinitials) (empty-sosofo)) -(element (docinfo bibliomisc) (empty-sosofo)) -(element (docinfo biblioset) (empty-sosofo)) -(element (docinfo collab) (empty-sosofo)) -(element (docinfo confgroup) (empty-sosofo)) -(element (docinfo contractnum) (empty-sosofo)) -(element (docinfo contractsponsor) (empty-sosofo)) -(element (docinfo contrib) (empty-sosofo)) -(element (docinfo copyright) (empty-sosofo)) -(element (docinfo corpauthor) (empty-sosofo)) -(element (docinfo corpname) (empty-sosofo)) -(element (docinfo date) (empty-sosofo)) -(element (docinfo edition) (empty-sosofo)) -(element (docinfo editor) (empty-sosofo)) -(element (docinfo firstname) (empty-sosofo)) -(element (docinfo graphic) (empty-sosofo)) -(element (docinfo honorific) (empty-sosofo)) -(element (docinfo invpartnumber) (empty-sosofo)) -(element (docinfo isbn) (empty-sosofo)) -(element (docinfo issn) (empty-sosofo)) -(element (docinfo issuenum) (empty-sosofo)) -(element (docinfo itermset) (empty-sosofo)) -(element (docinfo keywordset) (empty-sosofo)) -(element (docinfo legalnotice) (empty-sosofo)) -(element (docinfo lineage) (empty-sosofo)) -(element (docinfo modespec) (empty-sosofo)) -(element (docinfo orgname) (empty-sosofo)) -(element (docinfo othercredit) (empty-sosofo)) -(element (docinfo othername) (empty-sosofo)) -(element (docinfo pagenums) (empty-sosofo)) -(element (docinfo printhistory) (empty-sosofo)) -(element (docinfo productname) (empty-sosofo)) -(element (docinfo productnumber) (empty-sosofo)) -(element (docinfo pubdate) (empty-sosofo)) -(element (docinfo publisher) (empty-sosofo)) -(element (docinfo publishername) (empty-sosofo)) -(element (docinfo pubsnumber) (empty-sosofo)) -(element (docinfo releaseinfo) (empty-sosofo)) -(element (docinfo revhistory) (empty-sosofo)) -(element (docinfo seriesvolnums) (empty-sosofo)) -(element (docinfo subjectset) (empty-sosofo)) -(element (docinfo subtitle) (empty-sosofo)) -(element (docinfo surname) (empty-sosofo)) -(element (docinfo title) (empty-sosofo)) -(element (docinfo titleabbrev) (empty-sosofo)) -(element (docinfo volumenum) (empty-sosofo)) - -(element sect1info (process-children)) - -(element (sect1info abbrev) (empty-sosofo)) -(element (sect1info abstract) (empty-sosofo)) -(element (sect1info address) (empty-sosofo)) -(element (sect1info affiliation) (empty-sosofo)) -(element (sect1info artpagenums) (empty-sosofo)) -(element (sect1info author) (empty-sosofo)) -(element (sect1info authorblurb) (empty-sosofo)) -(element (sect1info authorgroup) (empty-sosofo)) -(element (sect1info authorinitials) (empty-sosofo)) -(element (sect1info bibliomisc) (empty-sosofo)) -(element (sect1info biblioset) (empty-sosofo)) -(element (sect1info collab) (empty-sosofo)) -(element (sect1info confgroup) (empty-sosofo)) -(element (sect1info contractnum) (empty-sosofo)) -(element (sect1info contractsponsor) (empty-sosofo)) -(element (sect1info contrib) (empty-sosofo)) -(element (sect1info copyright) (empty-sosofo)) -(element (sect1info corpauthor) (empty-sosofo)) -(element (sect1info corpname) (empty-sosofo)) -(element (sect1info date) (empty-sosofo)) -(element (sect1info edition) (empty-sosofo)) -(element (sect1info editor) (empty-sosofo)) -(element (sect1info firstname) (empty-sosofo)) -(element (sect1info graphic) (empty-sosofo)) -(element (sect1info honorific) (empty-sosofo)) -(element (sect1info invpartnumber) (empty-sosofo)) -(element (sect1info isbn) (empty-sosofo)) -(element (sect1info issn) (empty-sosofo)) -(element (sect1info issuenum) (empty-sosofo)) -(element (sect1info itermset) (empty-sosofo)) -(element (sect1info keywordset) (empty-sosofo)) -(element (sect1info legalnotice) (empty-sosofo)) -(element (sect1info lineage) (empty-sosofo)) -(element (sect1info modespec) (empty-sosofo)) -(element (sect1info orgname) (empty-sosofo)) -(element (sect1info othercredit) (empty-sosofo)) -(element (sect1info othername) (empty-sosofo)) -(element (sect1info pagenums) (empty-sosofo)) -(element (sect1info printhistory) (empty-sosofo)) -(element (sect1info productname) (empty-sosofo)) -(element (sect1info productnumber) (empty-sosofo)) -(element (sect1info pubdate) (empty-sosofo)) -(element (sect1info publisher) (empty-sosofo)) -(element (sect1info publishername) (empty-sosofo)) -(element (sect1info pubsnumber) (empty-sosofo)) -(element (sect1info releaseinfo) (empty-sosofo)) -(element (sect1info revhistory) (empty-sosofo)) -(element (sect1info seriesvolnums) (empty-sosofo)) -(element (sect1info subjectset) (empty-sosofo)) -(element (sect1info subtitle) (empty-sosofo)) -(element (sect1info surname) (empty-sosofo)) -(element (sect1info title) (empty-sosofo)) -(element (sect1info titleabbrev) (empty-sosofo)) -(element (sect1info volumenum) (empty-sosofo)) - -(element sect2info (process-children)) - -(element (sect2info abbrev) (empty-sosofo)) -(element (sect2info abstract) (empty-sosofo)) -(element (sect2info address) (empty-sosofo)) -(element (sect2info affiliation) (empty-sosofo)) -(element (sect2info artpagenums) (empty-sosofo)) -(element (sect2info author) (empty-sosofo)) -(element (sect2info authorblurb) (empty-sosofo)) -(element (sect2info authorgroup) (empty-sosofo)) -(element (sect2info authorinitials) (empty-sosofo)) -(element (sect2info bibliomisc) (empty-sosofo)) -(element (sect2info biblioset) (empty-sosofo)) -(element (sect2info collab) (empty-sosofo)) -(element (sect2info confgroup) (empty-sosofo)) -(element (sect2info contractnum) (empty-sosofo)) -(element (sect2info contractsponsor) (empty-sosofo)) -(element (sect2info contrib) (empty-sosofo)) -(element (sect2info copyright) (empty-sosofo)) -(element (sect2info corpauthor) (empty-sosofo)) -(element (sect2info corpname) (empty-sosofo)) -(element (sect2info date) (empty-sosofo)) -(element (sect2info edition) (empty-sosofo)) -(element (sect2info editor) (empty-sosofo)) -(element (sect2info firstname) (empty-sosofo)) -(element (sect2info graphic) (empty-sosofo)) -(element (sect2info honorific) (empty-sosofo)) -(element (sect2info invpartnumber) (empty-sosofo)) -(element (sect2info isbn) (empty-sosofo)) -(element (sect2info issn) (empty-sosofo)) -(element (sect2info issuenum) (empty-sosofo)) -(element (sect2info itermset) (empty-sosofo)) -(element (sect2info keywordset) (empty-sosofo)) -(element (sect2info legalnotice) (empty-sosofo)) -(element (sect2info lineage) (empty-sosofo)) -(element (sect2info modespec) (empty-sosofo)) -(element (sect2info orgname) (empty-sosofo)) -(element (sect2info othercredit) (empty-sosofo)) -(element (sect2info othername) (empty-sosofo)) -(element (sect2info pagenums) (empty-sosofo)) -(element (sect2info printhistory) (empty-sosofo)) -(element (sect2info productname) (empty-sosofo)) -(element (sect2info productnumber) (empty-sosofo)) -(element (sect2info pubdate) (empty-sosofo)) -(element (sect2info publisher) (empty-sosofo)) -(element (sect2info publishername) (empty-sosofo)) -(element (sect2info pubsnumber) (empty-sosofo)) -(element (sect2info releaseinfo) (empty-sosofo)) -(element (sect2info revhistory) (empty-sosofo)) -(element (sect2info seriesvolnums) (empty-sosofo)) -(element (sect2info subjectset) (empty-sosofo)) -(element (sect2info subtitle) (empty-sosofo)) -(element (sect2info surname) (empty-sosofo)) -(element (sect2info title) (empty-sosofo)) -(element (sect2info titleabbrev) (empty-sosofo)) -(element (sect2info volumenum) (empty-sosofo)) - -(element sect3info (process-children)) - -(element (sect3info abbrev) (empty-sosofo)) -(element (sect3info abstract) (empty-sosofo)) -(element (sect3info address) (empty-sosofo)) -(element (sect3info affiliation) (empty-sosofo)) -(element (sect3info artpagenums) (empty-sosofo)) -(element (sect3info author) (empty-sosofo)) -(element (sect3info authorblurb) (empty-sosofo)) -(element (sect3info authorgroup) (empty-sosofo)) -(element (sect3info authorinitials) (empty-sosofo)) -(element (sect3info bibliomisc) (empty-sosofo)) -(element (sect3info biblioset) (empty-sosofo)) -(element (sect3info collab) (empty-sosofo)) -(element (sect3info confgroup) (empty-sosofo)) -(element (sect3info contractnum) (empty-sosofo)) -(element (sect3info contractsponsor) (empty-sosofo)) -(element (sect3info contrib) (empty-sosofo)) -(element (sect3info copyright) (empty-sosofo)) -(element (sect3info corpauthor) (empty-sosofo)) -(element (sect3info corpname) (empty-sosofo)) -(element (sect3info date) (empty-sosofo)) -(element (sect3info edition) (empty-sosofo)) -(element (sect3info editor) (empty-sosofo)) -(element (sect3info firstname) (empty-sosofo)) -(element (sect3info graphic) (empty-sosofo)) -(element (sect3info honorific) (empty-sosofo)) -(element (sect3info invpartnumber) (empty-sosofo)) -(element (sect3info isbn) (empty-sosofo)) -(element (sect3info issn) (empty-sosofo)) -(element (sect3info issuenum) (empty-sosofo)) -(element (sect3info itermset) (empty-sosofo)) -(element (sect3info keywordset) (empty-sosofo)) -(element (sect3info legalnotice) (empty-sosofo)) -(element (sect3info lineage) (empty-sosofo)) -(element (sect3info modespec) (empty-sosofo)) -(element (sect3info orgname) (empty-sosofo)) -(element (sect3info othercredit) (empty-sosofo)) -(element (sect3info othername) (empty-sosofo)) -(element (sect3info pagenums) (empty-sosofo)) -(element (sect3info printhistory) (empty-sosofo)) -(element (sect3info productname) (empty-sosofo)) -(element (sect3info productnumber) (empty-sosofo)) -(element (sect3info pubdate) (empty-sosofo)) -(element (sect3info publisher) (empty-sosofo)) -(element (sect3info publishername) (empty-sosofo)) -(element (sect3info pubsnumber) (empty-sosofo)) -(element (sect3info releaseinfo) (empty-sosofo)) -(element (sect3info revhistory) (empty-sosofo)) -(element (sect3info seriesvolnums) (empty-sosofo)) -(element (sect3info subjectset) (empty-sosofo)) -(element (sect3info subtitle) (empty-sosofo)) -(element (sect3info surname) (empty-sosofo)) -(element (sect3info title) (empty-sosofo)) -(element (sect3info titleabbrev) (empty-sosofo)) -(element (sect3info volumenum) (empty-sosofo)) - -(element sect4info (process-children)) - -(element (sect4info abbrev) (empty-sosofo)) -(element (sect4info abstract) (empty-sosofo)) -(element (sect4info address) (empty-sosofo)) -(element (sect4info affiliation) (empty-sosofo)) -(element (sect4info artpagenums) (empty-sosofo)) -(element (sect4info author) (empty-sosofo)) -(element (sect4info authorblurb) (empty-sosofo)) -(element (sect4info authorgroup) (empty-sosofo)) -(element (sect4info authorinitials) (empty-sosofo)) -(element (sect4info bibliomisc) (empty-sosofo)) -(element (sect4info biblioset) (empty-sosofo)) -(element (sect4info collab) (empty-sosofo)) -(element (sect4info confgroup) (empty-sosofo)) -(element (sect4info contractnum) (empty-sosofo)) -(element (sect4info contractsponsor) (empty-sosofo)) -(element (sect4info contrib) (empty-sosofo)) -(element (sect4info copyright) (empty-sosofo)) -(element (sect4info corpauthor) (empty-sosofo)) -(element (sect4info corpname) (empty-sosofo)) -(element (sect4info date) (empty-sosofo)) -(element (sect4info edition) (empty-sosofo)) -(element (sect4info editor) (empty-sosofo)) -(element (sect4info firstname) (empty-sosofo)) -(element (sect4info graphic) (empty-sosofo)) -(element (sect4info honorific) (empty-sosofo)) -(element (sect4info invpartnumber) (empty-sosofo)) -(element (sect4info isbn) (empty-sosofo)) -(element (sect4info issn) (empty-sosofo)) -(element (sect4info issuenum) (empty-sosofo)) -(element (sect4info itermset) (empty-sosofo)) -(element (sect4info keywordset) (empty-sosofo)) -(element (sect4info legalnotice) (empty-sosofo)) -(element (sect4info lineage) (empty-sosofo)) -(element (sect4info modespec) (empty-sosofo)) -(element (sect4info orgname) (empty-sosofo)) -(element (sect4info othercredit) (empty-sosofo)) -(element (sect4info othername) (empty-sosofo)) -(element (sect4info pagenums) (empty-sosofo)) -(element (sect4info printhistory) (empty-sosofo)) -(element (sect4info productname) (empty-sosofo)) -(element (sect4info productnumber) (empty-sosofo)) -(element (sect4info pubdate) (empty-sosofo)) -(element (sect4info publisher) (empty-sosofo)) -(element (sect4info publishername) (empty-sosofo)) -(element (sect4info pubsnumber) (empty-sosofo)) -(element (sect4info releaseinfo) (empty-sosofo)) -(element (sect4info revhistory) (empty-sosofo)) -(element (sect4info seriesvolnums) (empty-sosofo)) -(element (sect4info subjectset) (empty-sosofo)) -(element (sect4info subtitle) (empty-sosofo)) -(element (sect4info surname) (empty-sosofo)) -(element (sect4info title) (empty-sosofo)) -(element (sect4info titleabbrev) (empty-sosofo)) -(element (sect4info volumenum) (empty-sosofo)) - -(element sect5info (process-children)) - -(element (sect5info abbrev) (empty-sosofo)) -(element (sect5info abstract) (empty-sosofo)) -(element (sect5info address) (empty-sosofo)) -(element (sect5info affiliation) (empty-sosofo)) -(element (sect5info artpagenums) (empty-sosofo)) -(element (sect5info author) (empty-sosofo)) -(element (sect5info authorblurb) (empty-sosofo)) -(element (sect5info authorgroup) (empty-sosofo)) -(element (sect5info authorinitials) (empty-sosofo)) -(element (sect5info bibliomisc) (empty-sosofo)) -(element (sect5info biblioset) (empty-sosofo)) -(element (sect5info collab) (empty-sosofo)) -(element (sect5info confgroup) (empty-sosofo)) -(element (sect5info contractnum) (empty-sosofo)) -(element (sect5info contractsponsor) (empty-sosofo)) -(element (sect5info contrib) (empty-sosofo)) -(element (sect5info copyright) (empty-sosofo)) -(element (sect5info corpauthor) (empty-sosofo)) -(element (sect5info corpname) (empty-sosofo)) -(element (sect5info date) (empty-sosofo)) -(element (sect5info edition) (empty-sosofo)) -(element (sect5info editor) (empty-sosofo)) -(element (sect5info firstname) (empty-sosofo)) -(element (sect5info graphic) (empty-sosofo)) -(element (sect5info honorific) (empty-sosofo)) -(element (sect5info invpartnumber) (empty-sosofo)) -(element (sect5info isbn) (empty-sosofo)) -(element (sect5info issn) (empty-sosofo)) -(element (sect5info issuenum) (empty-sosofo)) -(element (sect5info itermset) (empty-sosofo)) -(element (sect5info keywordset) (empty-sosofo)) -(element (sect5info legalnotice) (empty-sosofo)) -(element (sect5info lineage) (empty-sosofo)) -(element (sect5info modespec) (empty-sosofo)) -(element (sect5info orgname) (empty-sosofo)) -(element (sect5info othercredit) (empty-sosofo)) -(element (sect5info othername) (empty-sosofo)) -(element (sect5info pagenums) (empty-sosofo)) -(element (sect5info printhistory) (empty-sosofo)) -(element (sect5info productname) (empty-sosofo)) -(element (sect5info productnumber) (empty-sosofo)) -(element (sect5info pubdate) (empty-sosofo)) -(element (sect5info publisher) (empty-sosofo)) -(element (sect5info publishername) (empty-sosofo)) -(element (sect5info pubsnumber) (empty-sosofo)) -(element (sect5info releaseinfo) (empty-sosofo)) -(element (sect5info revhistory) (empty-sosofo)) -(element (sect5info seriesvolnums) (empty-sosofo)) -(element (sect5info subjectset) (empty-sosofo)) -(element (sect5info subtitle) (empty-sosofo)) -(element (sect5info surname) (empty-sosofo)) -(element (sect5info title) (empty-sosofo)) -(element (sect5info titleabbrev) (empty-sosofo)) -(element (sect5info volumenum) (empty-sosofo)) - -(element refsect1info (process-children)) - -(element (refsect1info abbrev) (empty-sosofo)) -(element (refsect1info abstract) (empty-sosofo)) -(element (refsect1info address) (empty-sosofo)) -(element (refsect1info affiliation) (empty-sosofo)) -(element (refsect1info artpagenums) (empty-sosofo)) -(element (refsect1info author) (empty-sosofo)) -(element (refsect1info authorblurb) (empty-sosofo)) -(element (refsect1info authorgroup) (empty-sosofo)) -(element (refsect1info authorinitials) (empty-sosofo)) -(element (refsect1info bibliomisc) (empty-sosofo)) -(element (refsect1info biblioset) (empty-sosofo)) -(element (refsect1info collab) (empty-sosofo)) -(element (refsect1info confgroup) (empty-sosofo)) -(element (refsect1info contractnum) (empty-sosofo)) -(element (refsect1info contractsponsor) (empty-sosofo)) -(element (refsect1info contrib) (empty-sosofo)) -(element (refsect1info copyright) (empty-sosofo)) -(element (refsect1info corpauthor) (empty-sosofo)) -(element (refsect1info corpname) (empty-sosofo)) -(element (refsect1info date) (empty-sosofo)) -(element (refsect1info edition) (empty-sosofo)) -(element (refsect1info editor) (empty-sosofo)) -(element (refsect1info firstname) (empty-sosofo)) -(element (refsect1info graphic) (empty-sosofo)) -(element (refsect1info honorific) (empty-sosofo)) -(element (refsect1info invpartnumber) (empty-sosofo)) -(element (refsect1info isbn) (empty-sosofo)) -(element (refsect1info issn) (empty-sosofo)) -(element (refsect1info issuenum) (empty-sosofo)) -(element (refsect1info itermset) (empty-sosofo)) -(element (refsect1info keywordset) (empty-sosofo)) -(element (refsect1info legalnotice) (empty-sosofo)) -(element (refsect1info lineage) (empty-sosofo)) -(element (refsect1info modespec) (empty-sosofo)) -(element (refsect1info orgname) (empty-sosofo)) -(element (refsect1info othercredit) (empty-sosofo)) -(element (refsect1info othername) (empty-sosofo)) -(element (refsect1info pagenums) (empty-sosofo)) -(element (refsect1info printhistory) (empty-sosofo)) -(element (refsect1info productname) (empty-sosofo)) -(element (refsect1info productnumber) (empty-sosofo)) -(element (refsect1info pubdate) (empty-sosofo)) -(element (refsect1info publisher) (empty-sosofo)) -(element (refsect1info publishername) (empty-sosofo)) -(element (refsect1info pubsnumber) (empty-sosofo)) -(element (refsect1info releaseinfo) (empty-sosofo)) -(element (refsect1info revhistory) (empty-sosofo)) -(element (refsect1info seriesvolnums) (empty-sosofo)) -(element (refsect1info subjectset) (empty-sosofo)) -(element (refsect1info subtitle) (empty-sosofo)) -(element (refsect1info surname) (empty-sosofo)) -(element (refsect1info title) (empty-sosofo)) -(element (refsect1info titleabbrev) (empty-sosofo)) -(element (refsect1info volumenum) (empty-sosofo)) - -(element refsect2info (process-children)) - -(element (refsect2info abbrev) (empty-sosofo)) -(element (refsect2info abstract) (empty-sosofo)) -(element (refsect2info address) (empty-sosofo)) -(element (refsect2info affiliation) (empty-sosofo)) -(element (refsect2info artpagenums) (empty-sosofo)) -(element (refsect2info author) (empty-sosofo)) -(element (refsect2info authorblurb) (empty-sosofo)) -(element (refsect2info authorgroup) (empty-sosofo)) -(element (refsect2info authorinitials) (empty-sosofo)) -(element (refsect2info bibliomisc) (empty-sosofo)) -(element (refsect2info biblioset) (empty-sosofo)) -(element (refsect2info collab) (empty-sosofo)) -(element (refsect2info confgroup) (empty-sosofo)) -(element (refsect2info contractnum) (empty-sosofo)) -(element (refsect2info contractsponsor) (empty-sosofo)) -(element (refsect2info contrib) (empty-sosofo)) -(element (refsect2info copyright) (empty-sosofo)) -(element (refsect2info corpauthor) (empty-sosofo)) -(element (refsect2info corpname) (empty-sosofo)) -(element (refsect2info date) (empty-sosofo)) -(element (refsect2info edition) (empty-sosofo)) -(element (refsect2info editor) (empty-sosofo)) -(element (refsect2info firstname) (empty-sosofo)) -(element (refsect2info graphic) (empty-sosofo)) -(element (refsect2info honorific) (empty-sosofo)) -(element (refsect2info invpartnumber) (empty-sosofo)) -(element (refsect2info isbn) (empty-sosofo)) -(element (refsect2info issn) (empty-sosofo)) -(element (refsect2info issuenum) (empty-sosofo)) -(element (refsect2info itermset) (empty-sosofo)) -(element (refsect2info keywordset) (empty-sosofo)) -(element (refsect2info legalnotice) (empty-sosofo)) -(element (refsect2info lineage) (empty-sosofo)) -(element (refsect2info modespec) (empty-sosofo)) -(element (refsect2info orgname) (empty-sosofo)) -(element (refsect2info othercredit) (empty-sosofo)) -(element (refsect2info othername) (empty-sosofo)) -(element (refsect2info pagenums) (empty-sosofo)) -(element (refsect2info printhistory) (empty-sosofo)) -(element (refsect2info productname) (empty-sosofo)) -(element (refsect2info productnumber) (empty-sosofo)) -(element (refsect2info pubdate) (empty-sosofo)) -(element (refsect2info publisher) (empty-sosofo)) -(element (refsect2info publishername) (empty-sosofo)) -(element (refsect2info pubsnumber) (empty-sosofo)) -(element (refsect2info releaseinfo) (empty-sosofo)) -(element (refsect2info revhistory) (empty-sosofo)) -(element (refsect2info seriesvolnums) (empty-sosofo)) -(element (refsect2info subjectset) (empty-sosofo)) -(element (refsect2info subtitle) (empty-sosofo)) -(element (refsect2info surname) (empty-sosofo)) -(element (refsect2info title) (empty-sosofo)) -(element (refsect2info titleabbrev) (empty-sosofo)) -(element (refsect2info volumenum) (empty-sosofo)) - -(element refsect3info (process-children)) - -(element (refsect3info abbrev) (empty-sosofo)) -(element (refsect3info abstract) (empty-sosofo)) -(element (refsect3info address) (empty-sosofo)) -(element (refsect3info affiliation) (empty-sosofo)) -(element (refsect3info artpagenums) (empty-sosofo)) -(element (refsect3info author) (empty-sosofo)) -(element (refsect3info authorblurb) (empty-sosofo)) -(element (refsect3info authorgroup) (empty-sosofo)) -(element (refsect3info authorinitials) (empty-sosofo)) -(element (refsect3info bibliomisc) (empty-sosofo)) -(element (refsect3info biblioset) (empty-sosofo)) -(element (refsect3info collab) (empty-sosofo)) -(element (refsect3info confgroup) (empty-sosofo)) -(element (refsect3info contractnum) (empty-sosofo)) -(element (refsect3info contractsponsor) (empty-sosofo)) -(element (refsect3info contrib) (empty-sosofo)) -(element (refsect3info copyright) (empty-sosofo)) -(element (refsect3info corpauthor) (empty-sosofo)) -(element (refsect3info corpname) (empty-sosofo)) -(element (refsect3info date) (empty-sosofo)) -(element (refsect3info edition) (empty-sosofo)) -(element (refsect3info editor) (empty-sosofo)) -(element (refsect3info firstname) (empty-sosofo)) -(element (refsect3info graphic) (empty-sosofo)) -(element (refsect3info honorific) (empty-sosofo)) -(element (refsect3info invpartnumber) (empty-sosofo)) -(element (refsect3info isbn) (empty-sosofo)) -(element (refsect3info issn) (empty-sosofo)) -(element (refsect3info issuenum) (empty-sosofo)) -(element (refsect3info itermset) (empty-sosofo)) -(element (refsect3info keywordset) (empty-sosofo)) -(element (refsect3info legalnotice) (empty-sosofo)) -(element (refsect3info lineage) (empty-sosofo)) -(element (refsect3info modespec) (empty-sosofo)) -(element (refsect3info orgname) (empty-sosofo)) -(element (refsect3info othercredit) (empty-sosofo)) -(element (refsect3info othername) (empty-sosofo)) -(element (refsect3info pagenums) (empty-sosofo)) -(element (refsect3info printhistory) (empty-sosofo)) -(element (refsect3info productname) (empty-sosofo)) -(element (refsect3info productnumber) (empty-sosofo)) -(element (refsect3info pubdate) (empty-sosofo)) -(element (refsect3info publisher) (empty-sosofo)) -(element (refsect3info publishername) (empty-sosofo)) -(element (refsect3info pubsnumber) (empty-sosofo)) -(element (refsect3info releaseinfo) (empty-sosofo)) -(element (refsect3info revhistory) (empty-sosofo)) -(element (refsect3info seriesvolnums) (empty-sosofo)) -(element (refsect3info subjectset) (empty-sosofo)) -(element (refsect3info subtitle) (empty-sosofo)) -(element (refsect3info surname) (empty-sosofo)) -(element (refsect3info title) (empty-sosofo)) -(element (refsect3info titleabbrev) (empty-sosofo)) -(element (refsect3info volumenum) (empty-sosofo)) - -(element seriesinfo (process-children)) - -(element (seriesinfo abbrev) (empty-sosofo)) -(element (seriesinfo abstract) (empty-sosofo)) -(element (seriesinfo address) (empty-sosofo)) -(element (seriesinfo affiliation) (empty-sosofo)) -(element (seriesinfo artpagenums) (empty-sosofo)) -(element (seriesinfo author) (empty-sosofo)) -(element (seriesinfo authorblurb) (empty-sosofo)) -(element (seriesinfo authorgroup) (empty-sosofo)) -(element (seriesinfo authorinitials) (empty-sosofo)) -(element (seriesinfo bibliomisc) (empty-sosofo)) -(element (seriesinfo biblioset) (empty-sosofo)) -(element (seriesinfo collab) (empty-sosofo)) -(element (seriesinfo confgroup) (empty-sosofo)) -(element (seriesinfo contractnum) (empty-sosofo)) -(element (seriesinfo contractsponsor) (empty-sosofo)) -(element (seriesinfo contrib) (empty-sosofo)) -(element (seriesinfo copyright) (empty-sosofo)) -(element (seriesinfo corpauthor) (empty-sosofo)) -(element (seriesinfo corpname) (empty-sosofo)) -(element (seriesinfo date) (empty-sosofo)) -(element (seriesinfo edition) (empty-sosofo)) -(element (seriesinfo editor) (empty-sosofo)) -(element (seriesinfo firstname) (empty-sosofo)) -(element (seriesinfo honorific) (empty-sosofo)) -(element (seriesinfo invpartnumber) (empty-sosofo)) -(element (seriesinfo isbn) (empty-sosofo)) -(element (seriesinfo issn) (empty-sosofo)) -(element (seriesinfo issuenum) (empty-sosofo)) -(element (seriesinfo lineage) (empty-sosofo)) -(element (seriesinfo orgname) (empty-sosofo)) -(element (seriesinfo othercredit) (empty-sosofo)) -(element (seriesinfo othername) (empty-sosofo)) -(element (seriesinfo pagenums) (empty-sosofo)) -(element (seriesinfo printhistory) (empty-sosofo)) -(element (seriesinfo productname) (empty-sosofo)) -(element (seriesinfo productnumber) (empty-sosofo)) -(element (seriesinfo pubdate) (empty-sosofo)) -(element (seriesinfo publisher) (empty-sosofo)) -(element (seriesinfo publishername) (empty-sosofo)) -(element (seriesinfo pubsnumber) (empty-sosofo)) -(element (seriesinfo releaseinfo) (empty-sosofo)) -(element (seriesinfo revhistory) (empty-sosofo)) -(element (seriesinfo seriesvolnums) (empty-sosofo)) -(element (seriesinfo subtitle) (empty-sosofo)) -(element (seriesinfo surname) (empty-sosofo)) -(element (seriesinfo title) (empty-sosofo)) -(element (seriesinfo titleabbrev) (empty-sosofo)) -(element (seriesinfo volumenum) (empty-sosofo)) - -(element artheader (empty-sosofo)) - -(element (artheader abbrev) (empty-sosofo)) -(element (artheader abstract) (empty-sosofo)) -(element (artheader address) (empty-sosofo)) -(element (artheader affiliation) (empty-sosofo)) -(element (artheader artpagenums) (empty-sosofo)) -(element (artheader author) (empty-sosofo)) -(element (artheader authorblurb) (empty-sosofo)) -(element (artheader authorgroup) (empty-sosofo)) -(element (artheader authorinitials) (empty-sosofo)) -(element (artheader bibliomisc) (empty-sosofo)) -(element (artheader biblioset) (empty-sosofo)) -(element (artheader bookbiblio) (empty-sosofo)) -(element (artheader collab) (empty-sosofo)) -(element (artheader confgroup) (empty-sosofo)) -(element (artheader contractnum) (empty-sosofo)) -(element (artheader contractsponsor) (empty-sosofo)) -(element (artheader contrib) (empty-sosofo)) -(element (artheader copyright) (empty-sosofo)) -(element (artheader corpauthor) (empty-sosofo)) -(element (artheader corpname) (empty-sosofo)) -(element (artheader date) (empty-sosofo)) -(element (artheader edition) (empty-sosofo)) -(element (artheader editor) (empty-sosofo)) -(element (artheader firstname) (empty-sosofo)) -(element (artheader honorific) (empty-sosofo)) -(element (artheader invpartnumber) (empty-sosofo)) -(element (artheader isbn) (empty-sosofo)) -(element (artheader issn) (empty-sosofo)) -(element (artheader issuenum) (empty-sosofo)) -(element (artheader keywordset) (empty-sosofo)) -(element (artheader lineage) (empty-sosofo)) -(element (artheader orgname) (empty-sosofo)) -(element (artheader othercredit) (empty-sosofo)) -(element (artheader othername) (empty-sosofo)) -(element (artheader pagenums) (empty-sosofo)) -(element (artheader printhistory) (empty-sosofo)) -(element (artheader productname) (empty-sosofo)) -(element (artheader productnumber) (empty-sosofo)) -(element (artheader pubdate) (empty-sosofo)) -(element (artheader publisher) (empty-sosofo)) -(element (artheader publishername) (empty-sosofo)) -(element (artheader pubsnumber) (empty-sosofo)) -(element (artheader releaseinfo) (empty-sosofo)) -(element (artheader revhistory) (empty-sosofo)) -(element (artheader seriesvolnums) (empty-sosofo)) -(element (artheader subtitle) (empty-sosofo)) -(element (artheader surname) (empty-sosofo)) -(element (artheader title) (empty-sosofo)) -(element (artheader titleabbrev) (empty-sosofo)) -(element (artheader volumenum) (empty-sosofo)) - -(element articleinfo (empty-sosofo)) - -(element (articleinfo abbrev) (empty-sosofo)) -(element (articleinfo abstract) (empty-sosofo)) -(element (articleinfo address) (empty-sosofo)) -(element (articleinfo affiliation) (empty-sosofo)) -(element (articleinfo artpagenums) (empty-sosofo)) -(element (articleinfo author) (empty-sosofo)) -(element (articleinfo authorblurb) (empty-sosofo)) -(element (articleinfo authorgroup) (empty-sosofo)) -(element (articleinfo authorinitials) (empty-sosofo)) -(element (articleinfo bibliomisc) (empty-sosofo)) -(element (articleinfo biblioset) (empty-sosofo)) -(element (articleinfo bookbiblio) (empty-sosofo)) -(element (articleinfo collab) (empty-sosofo)) -(element (articleinfo confgroup) (empty-sosofo)) -(element (articleinfo contractnum) (empty-sosofo)) -(element (articleinfo contractsponsor) (empty-sosofo)) -(element (articleinfo contrib) (empty-sosofo)) -(element (articleinfo copyright) (empty-sosofo)) -(element (articleinfo corpauthor) (empty-sosofo)) -(element (articleinfo corpname) (empty-sosofo)) -(element (articleinfo date) (empty-sosofo)) -(element (articleinfo edition) (empty-sosofo)) -(element (articleinfo editor) (empty-sosofo)) -(element (articleinfo firstname) (empty-sosofo)) -(element (articleinfo honorific) (empty-sosofo)) -(element (articleinfo invpartnumber) (empty-sosofo)) -(element (articleinfo isbn) (empty-sosofo)) -(element (articleinfo issn) (empty-sosofo)) -(element (articleinfo issuenum) (empty-sosofo)) -(element (articleinfo lineage) (empty-sosofo)) -(element (articleinfo orgname) (empty-sosofo)) -(element (articleinfo othercredit) (empty-sosofo)) -(element (articleinfo othername) (empty-sosofo)) -(element (articleinfo pagenums) (empty-sosofo)) -(element (articleinfo printhistory) (empty-sosofo)) -(element (articleinfo productname) (empty-sosofo)) -(element (articleinfo productnumber) (empty-sosofo)) -(element (articleinfo pubdate) (empty-sosofo)) -(element (articleinfo publisher) (empty-sosofo)) -(element (articleinfo publishername) (empty-sosofo)) -(element (articleinfo pubsnumber) (empty-sosofo)) -(element (articleinfo releaseinfo) (empty-sosofo)) -(element (articleinfo revhistory) (empty-sosofo)) -(element (articleinfo seriesvolnums) (empty-sosofo)) -(element (articleinfo subtitle) (empty-sosofo)) -(element (articleinfo surname) (empty-sosofo)) -(element (articleinfo title) (empty-sosofo)) -(element (articleinfo titleabbrev) (empty-sosofo)) -(element (articleinfo volumenum) (empty-sosofo)) - -(element refsynopsisdivinfo (process-children)) - -(element (refsynopsisdivinfo graphic) (empty-sosofo)) -(element (refsynopsisdivinfo legalnotice) (empty-sosofo)) -(element (refsynopsisdivinfo modespec) (empty-sosofo)) -(element (refsynopsisdivinfo subjectset) (empty-sosofo)) -(element (refsynopsisdivinfo keywordset) (empty-sosofo)) -(element (refsynopsisdivinfo itermset) (empty-sosofo)) -(element (refsynopsisdivinfo abbrev) (empty-sosofo)) -(element (refsynopsisdivinfo abstract) (empty-sosofo)) -(element (refsynopsisdivinfo address) (empty-sosofo)) -(element (refsynopsisdivinfo artpagenums) (empty-sosofo)) -(element (refsynopsisdivinfo author) (empty-sosofo)) -(element (refsynopsisdivinfo authorgroup) (empty-sosofo)) -(element (refsynopsisdivinfo authorinitials) (empty-sosofo)) -(element (refsynopsisdivinfo bibliomisc) (empty-sosofo)) -(element (refsynopsisdivinfo biblioset) (empty-sosofo)) -(element (refsynopsisdivinfo collab) (empty-sosofo)) -(element (refsynopsisdivinfo confgroup) (empty-sosofo)) -(element (refsynopsisdivinfo contractnum) (empty-sosofo)) -(element (refsynopsisdivinfo contractsponsor) (empty-sosofo)) -(element (refsynopsisdivinfo copyright) (empty-sosofo)) -(element (refsynopsisdivinfo corpauthor) (empty-sosofo)) -(element (refsynopsisdivinfo corpname) (empty-sosofo)) -(element (refsynopsisdivinfo date) (empty-sosofo)) -(element (refsynopsisdivinfo edition) (empty-sosofo)) -(element (refsynopsisdivinfo editor) (empty-sosofo)) -(element (refsynopsisdivinfo invpartnumber) (empty-sosofo)) -(element (refsynopsisdivinfo isbn) (empty-sosofo)) -(element (refsynopsisdivinfo issn) (empty-sosofo)) -(element (refsynopsisdivinfo issuenum) (empty-sosofo)) -(element (refsynopsisdivinfo orgname) (empty-sosofo)) -(element (refsynopsisdivinfo othercredit) (empty-sosofo)) -(element (refsynopsisdivinfo pagenums) (empty-sosofo)) -(element (refsynopsisdivinfo printhistory) (empty-sosofo)) -(element (refsynopsisdivinfo productname) (empty-sosofo)) -(element (refsynopsisdivinfo productnumber) (empty-sosofo)) -(element (refsynopsisdivinfo pubdate) (empty-sosofo)) -(element (refsynopsisdivinfo publisher) (empty-sosofo)) -(element (refsynopsisdivinfo publishername) (empty-sosofo)) -(element (refsynopsisdivinfo pubsnumber) (empty-sosofo)) -(element (refsynopsisdivinfo releaseinfo) (empty-sosofo)) -(element (refsynopsisdivinfo revhistory) (empty-sosofo)) -(element (refsynopsisdivinfo seriesvolnums) (empty-sosofo)) -(element (refsynopsisdivinfo subtitle) (empty-sosofo)) -(element (refsynopsisdivinfo title) (empty-sosofo)) -(element (refsynopsisdivinfo titleabbrev) (empty-sosofo)) -(element (refsynopsisdivinfo volumenum) (empty-sosofo)) -(element (refsynopsisdivinfo honorific) (empty-sosofo)) -(element (refsynopsisdivinfo firstname) (empty-sosofo)) -(element (refsynopsisdivinfo surname) (empty-sosofo)) -(element (refsynopsisdivinfo lineage) (empty-sosofo)) -(element (refsynopsisdivinfo othername) (empty-sosofo)) -(element (refsynopsisdivinfo affiliation) (empty-sosofo)) -(element (refsynopsisdivinfo authorblurb) (empty-sosofo)) -(element (refsynopsisdivinfo contrib) (empty-sosofo)) - -(element prefaceinfo (empty-sosofo)) - -(element (prefaceinfo abbrev) (empty-sosofo)) -(element (prefaceinfo abstract) (empty-sosofo)) -(element (prefaceinfo address) (empty-sosofo)) -(element (prefaceinfo affiliation) (empty-sosofo)) -(element (prefaceinfo artpagenums) (empty-sosofo)) -(element (prefaceinfo author) (empty-sosofo)) -(element (prefaceinfo authorblurb) (empty-sosofo)) -(element (prefaceinfo authorgroup) (empty-sosofo)) -(element (prefaceinfo authorinitials) (empty-sosofo)) -(element (prefaceinfo bibliomisc) (empty-sosofo)) -(element (prefaceinfo biblioset) (empty-sosofo)) -(element (prefaceinfo bookbiblio) (empty-sosofo)) -(element (prefaceinfo collab) (empty-sosofo)) -(element (prefaceinfo confgroup) (empty-sosofo)) -(element (prefaceinfo contractnum) (empty-sosofo)) -(element (prefaceinfo contractsponsor) (empty-sosofo)) -(element (prefaceinfo contrib) (empty-sosofo)) -(element (prefaceinfo copyright) (empty-sosofo)) -(element (prefaceinfo corpauthor) (empty-sosofo)) -(element (prefaceinfo corpname) (empty-sosofo)) -(element (prefaceinfo date) (empty-sosofo)) -(element (prefaceinfo edition) (empty-sosofo)) -(element (prefaceinfo editor) (empty-sosofo)) -(element (prefaceinfo firstname) (empty-sosofo)) -(element (prefaceinfo honorific) (empty-sosofo)) -(element (prefaceinfo invpartnumber) (empty-sosofo)) -(element (prefaceinfo isbn) (empty-sosofo)) -(element (prefaceinfo issn) (empty-sosofo)) -(element (prefaceinfo issuenum) (empty-sosofo)) -(element (prefaceinfo lineage) (empty-sosofo)) -(element (prefaceinfo orgname) (empty-sosofo)) -(element (prefaceinfo othercredit) (empty-sosofo)) -(element (prefaceinfo othername) (empty-sosofo)) -(element (prefaceinfo pagenums) (empty-sosofo)) -(element (prefaceinfo printhistory) (empty-sosofo)) -(element (prefaceinfo productname) (empty-sosofo)) -(element (prefaceinfo productnumber) (empty-sosofo)) -(element (prefaceinfo pubdate) (empty-sosofo)) -(element (prefaceinfo publisher) (empty-sosofo)) -(element (prefaceinfo publishername) (empty-sosofo)) -(element (prefaceinfo pubsnumber) (empty-sosofo)) -(element (prefaceinfo releaseinfo) (empty-sosofo)) -(element (prefaceinfo revhistory) (empty-sosofo)) -(element (prefaceinfo seriesvolnums) (empty-sosofo)) -(element (prefaceinfo subtitle) (empty-sosofo)) -(element (prefaceinfo surname) (empty-sosofo)) -(element (prefaceinfo title) (empty-sosofo)) -(element (prefaceinfo titleabbrev) (empty-sosofo)) -(element (prefaceinfo volumenum) (empty-sosofo)) - -(element chapterinfo (empty-sosofo)) - -(element (chapterinfo abbrev) (empty-sosofo)) -(element (chapterinfo abstract) (empty-sosofo)) -(element (chapterinfo address) (empty-sosofo)) -(element (chapterinfo affiliation) (empty-sosofo)) -(element (chapterinfo artpagenums) (empty-sosofo)) -(element (chapterinfo author) (empty-sosofo)) -(element (chapterinfo authorblurb) (empty-sosofo)) -(element (chapterinfo authorgroup) (empty-sosofo)) -(element (chapterinfo authorinitials) (empty-sosofo)) -(element (chapterinfo bibliomisc) (empty-sosofo)) -(element (chapterinfo biblioset) (empty-sosofo)) -(element (chapterinfo bookbiblio) (empty-sosofo)) -(element (chapterinfo collab) (empty-sosofo)) -(element (chapterinfo confgroup) (empty-sosofo)) -(element (chapterinfo contractnum) (empty-sosofo)) -(element (chapterinfo contractsponsor) (empty-sosofo)) -(element (chapterinfo contrib) (empty-sosofo)) -(element (chapterinfo copyright) (empty-sosofo)) -(element (chapterinfo corpauthor) (empty-sosofo)) -(element (chapterinfo corpname) (empty-sosofo)) -(element (chapterinfo date) (empty-sosofo)) -(element (chapterinfo edition) (empty-sosofo)) -(element (chapterinfo editor) (empty-sosofo)) -(element (chapterinfo firstname) (empty-sosofo)) -(element (chapterinfo honorific) (empty-sosofo)) -(element (chapterinfo invpartnumber) (empty-sosofo)) -(element (chapterinfo isbn) (empty-sosofo)) -(element (chapterinfo issn) (empty-sosofo)) -(element (chapterinfo issuenum) (empty-sosofo)) -(element (chapterinfo lineage) (empty-sosofo)) -(element (chapterinfo orgname) (empty-sosofo)) -(element (chapterinfo othercredit) (empty-sosofo)) -(element (chapterinfo othername) (empty-sosofo)) -(element (chapterinfo pagenums) (empty-sosofo)) -(element (chapterinfo printhistory) (empty-sosofo)) -(element (chapterinfo productname) (empty-sosofo)) -(element (chapterinfo productnumber) (empty-sosofo)) -(element (chapterinfo pubdate) (empty-sosofo)) -(element (chapterinfo publisher) (empty-sosofo)) -(element (chapterinfo publishername) (empty-sosofo)) -(element (chapterinfo pubsnumber) (empty-sosofo)) -(element (chapterinfo releaseinfo) (empty-sosofo)) -(element (chapterinfo revhistory) (empty-sosofo)) -(element (chapterinfo seriesvolnums) (empty-sosofo)) -(element (chapterinfo subtitle) (empty-sosofo)) -(element (chapterinfo surname) (empty-sosofo)) -(element (chapterinfo title) (empty-sosofo)) -(element (chapterinfo titleabbrev) (empty-sosofo)) -(element (chapterinfo volumenum) (empty-sosofo)) - -(element appendixinfo (empty-sosofo)) - -(element (appendixinfo abbrev) (empty-sosofo)) -(element (appendixinfo abstract) (empty-sosofo)) -(element (appendixinfo address) (empty-sosofo)) -(element (appendixinfo affiliation) (empty-sosofo)) -(element (appendixinfo artpagenums) (empty-sosofo)) -(element (appendixinfo author) (empty-sosofo)) -(element (appendixinfo authorblurb) (empty-sosofo)) -(element (appendixinfo authorgroup) (empty-sosofo)) -(element (appendixinfo authorinitials) (empty-sosofo)) -(element (appendixinfo bibliomisc) (empty-sosofo)) -(element (appendixinfo biblioset) (empty-sosofo)) -(element (appendixinfo bookbiblio) (empty-sosofo)) -(element (appendixinfo collab) (empty-sosofo)) -(element (appendixinfo confgroup) (empty-sosofo)) -(element (appendixinfo contractnum) (empty-sosofo)) -(element (appendixinfo contractsponsor) (empty-sosofo)) -(element (appendixinfo contrib) (empty-sosofo)) -(element (appendixinfo copyright) (empty-sosofo)) -(element (appendixinfo corpauthor) (empty-sosofo)) -(element (appendixinfo corpname) (empty-sosofo)) -(element (appendixinfo date) (empty-sosofo)) -(element (appendixinfo edition) (empty-sosofo)) -(element (appendixinfo editor) (empty-sosofo)) -(element (appendixinfo firstname) (empty-sosofo)) -(element (appendixinfo honorific) (empty-sosofo)) -(element (appendixinfo invpartnumber) (empty-sosofo)) -(element (appendixinfo isbn) (empty-sosofo)) -(element (appendixinfo issn) (empty-sosofo)) -(element (appendixinfo issuenum) (empty-sosofo)) -(element (appendixinfo lineage) (empty-sosofo)) -(element (appendixinfo orgname) (empty-sosofo)) -(element (appendixinfo othercredit) (empty-sosofo)) -(element (appendixinfo othername) (empty-sosofo)) -(element (appendixinfo pagenums) (empty-sosofo)) -(element (appendixinfo printhistory) (empty-sosofo)) -(element (appendixinfo productname) (empty-sosofo)) -(element (appendixinfo productnumber) (empty-sosofo)) -(element (appendixinfo pubdate) (empty-sosofo)) -(element (appendixinfo publisher) (empty-sosofo)) -(element (appendixinfo publishername) (empty-sosofo)) -(element (appendixinfo pubsnumber) (empty-sosofo)) -(element (appendixinfo releaseinfo) (empty-sosofo)) -(element (appendixinfo revhistory) (empty-sosofo)) -(element (appendixinfo seriesvolnums) (empty-sosofo)) -(element (appendixinfo subtitle) (empty-sosofo)) -(element (appendixinfo surname) (empty-sosofo)) -(element (appendixinfo title) (empty-sosofo)) -(element (appendixinfo titleabbrev) (empty-sosofo)) -(element (appendixinfo volumenum) (empty-sosofo)) diff --git a/docs/dsssl/docbook/print/dbinline.dsl b/docs/dsssl/docbook/print/dbinline.dsl deleted file mode 100755 index 8e01dbf4..00000000 --- a/docs/dsssl/docbook/print/dbinline.dsl +++ /dev/null @@ -1,261 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================== INLINES =============================== - -(element accel ($score-seq$ 'after)) -(element action ($charseq$)) -(element application ($charseq$)) -(element classname ($mono-seq$)) -(element command ($bold-seq$)) -(element computeroutput ($mono-seq$)) -(element database ($charseq$)) -(element email - (make sequence (literal "<") ($mono-seq$) (literal ">"))) -(element envar ($charseq$)) -(element errorcode ($charseq$)) -(element errorname ($charseq$)) -(element errortype ($charseq$)) -(element filename ($mono-seq$)) -(element function ($mono-seq$)) -(element guibutton ($guilabel-seq$)) -(element guiicon ($guilabel-seq$)) -(element guilabel ($guilabel-seq$)) -(element guimenu ($guilabel-seq$)) -(element guimenuitem ($guilabel-seq$)) -(element guisubmenu ($guilabel-seq$)) -(element hardware ($charseq$)) -(element interface ($charseq$)) -(element interfacedefinition ($charseq$)) -(element keycap ($bold-seq$)) -(element keycode ($charseq$)) - -(element keycombo - (let* ((action (attribute-string (normalize "action"))) - (joinchar - (cond - ((equal? action (normalize "seq")) " ") ;; space - ((equal? action (normalize "simul")) "+") ;; + - ((equal? action (normalize "press")) "-") ;; ? I don't know - ((equal? action (normalize "click")) "-") ;; ? what to do - ((equal? action (normalize "double-click")) "-") ;; ? about the rest - ((equal? action (normalize "other")) "-") ;; ? of these - (else "-")))) - (let loop ((nl (children (current-node))) (count 1)) - (if (node-list-empty? nl) - (empty-sosofo) - (if (equal? count 1) - (make sequence - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl) (+ count 1))) - (make sequence - (literal joinchar) - (process-node-list (node-list-first nl)) - (loop (node-list-rest nl) (+ count 1)))))))) - -(element keysym ($charseq$)) -(element literal ($mono-seq$)) -(element medialabel ($italic-seq$)) - -(element menuchoice - (let* ((shortcut (select-elements (children (current-node)) - (normalize "shortcut"))) - (items (node-list-filter-by-not-gi - (children (current-node)) - (list (normalize "shortcut"))))) - (make sequence - (let loop ((nl items) (first? #t)) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if first? - (process-node-list (node-list-first nl)) - (make sequence - (if (or (equal? (gi (node-list-first nl)) - (normalize "guimenuitem")) - (equal? (gi (node-list-first nl)) - (normalize "guisubmenu"))) - (literal "\rightwards-arrow;") - (literal "+")) - (process-node-list (node-list-first nl)))) - (loop (node-list-rest nl) #f)))) - (if (node-list-empty? shortcut) - (empty-sosofo) - (make sequence - (literal " (") - (process-node-list shortcut) - (literal ")")))))) - -(element methodname ($mono-seq$)) -(element shortcut ($bold-seq$)) -(element mousebutton ($charseq$)) -(element option ($mono-seq$)) - -(element optional - (make sequence - (literal %arg-choice-opt-open-str%) - ($charseq$) - (literal %arg-choice-opt-close-str%))) - -(element parameter ($italic-mono-seq$)) -(element property ($charseq$)) -(element prompt ($mono-seq$)) -(element replaceable ($italic-mono-seq$)) -(element returnvalue ($charseq$)) -(element structfield ($italic-mono-seq$)) -(element structname ($charseq$)) -(element symbol ($charseq$)) -(element systemitem ($charseq$)) -(element token ($charseq$)) -(element type ($charseq$)) -(element userinput ($bold-mono-seq$)) -(element abbrev ($charseq$)) -(element acronym ($charseq$)) - -(element citation - (if biblio-citation-check - (let* ((bgraphies (select-elements (descendants (sgml-root-element)) - (normalize "bibliography"))) - (bchildren1 (expand-children bgraphies - (list (normalize "bibliography")))) - (bchildren2 (expand-children bchildren1 - (list (normalize "bibliodiv")))) - (bibentries (node-list-filter-by-gi - bchildren2 - (list (normalize "biblioentry") - (normalize "bibliomixed"))))) - (let loop ((bibs bibentries)) - (if (node-list-empty? bibs) - (make sequence - (error (string-append "Cannot find citation: " - (data (current-node)))) - (literal "[") ($charseq$) (literal "]")) - (if (citation-matches-target? (current-node) - (node-list-first bibs)) - (make link - destination: (node-list-address (node-list-first bibs)) - (literal "[") ($charseq$) (literal "]")) - (loop (node-list-rest bibs)))))) - (make sequence - (literal "[") ($charseq$) (literal "]")))) - -(element citerefentry - (if %refentry-xref-italic% - ($italic-seq$) - ($charseq$))) - -(element citetitle - (if (equal? (attribute-string (normalize "pubwork")) "article") - (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote))) - ($italic-seq$))) - -(element emphasis - (if (and (attribute-string (normalize "role")) - (or (equal? (attribute-string (normalize "role")) "strong") - (equal? (attribute-string (normalize "role")) "bold"))) - ($bold-seq$) - ($italic-seq$))) - -(element foreignphrase ($italic-seq$)) -(element markup ($charseq$)) -(element phrase ($charseq$)) - -(element quote - (let* ((hnr (hierarchical-number-recursive (normalize "quote") - (current-node))) - (depth (length hnr))) - (if (equal? (modulo depth 2) 1) - (make sequence - (literal (gentext-start-nested-quote)) - (process-children) - (literal (gentext-end-nested-quote))) - (make sequence - (literal (gentext-start-quote)) - (process-children) - (literal (gentext-end-quote)))))) - -(element sgmltag - (let ((class (if (attribute-string (normalize "class")) - (attribute-string (normalize "class")) - (normalize "element")))) - (cond -")))) - ((equal? class (normalize "endtag")) ($mono-seq$ (make sequence - (literal "")))) - ((equal? class (normalize "genentity")) ($mono-seq$ (make sequence - (literal "&") - (process-children) - (literal ";")))) - ((equal? class (normalize "numcharref")) ($mono-seq$ (make sequence - (literal "&#") - (process-children) - (literal ";")))) - ((equal? class (normalize "paramentity")) ($mono-seq$ (make sequence - (literal "%") - (process-children) - (literal ";")))) - ((equal? class (normalize "pi")) ($mono-seq$ (make sequence - (literal "")))) - ((equal? class (normalize "starttag")) ($mono-seq$ (make sequence - (literal "<") - (process-children) - (literal ">")))) - ((equal? class (normalize "sgmlcomment")) ($mono-seq$ (make sequence - (literal "")))) - ((equal? class (normalize "xmlpi")) ($mono-seq$ (make sequence - (literal "")))) -]]> - (else ($charseq$))))) - -(element trademark - (make sequence - ($charseq$) - (cond - ((equal? (attribute-string "class") (normalize "copyright")) - (literal "\copyright-sign;")) - ((equal? (attribute-string "class") (normalize "registered")) - (literal "\registered-sign;")) - ((equal? (attribute-string "class") (normalize "service")) - ($ss-seq$ + (literal "SM"))) - (else - (literal "\trade-mark-sign;"))))) - -(element wordasword ($italic-seq$)) - -(element lineannotation - (make sequence - font-family-name: %body-font-family% - font-posture: 'italic - (process-children))) - -(define ($ss-seq$ plus-or-minus #!optional (sosofo (process-children))) - (make sequence - font-size: - (* (inherited-font-size) %ss-size-factor%) - position-point-shift: - (plus-or-minus (* (inherited-font-size) %ss-shift-factor%)) - sosofo)) - -(element superscript ($ss-seq$ +)) -(element subscript ($ss-seq$ -)) diff --git a/docs/dsssl/docbook/print/dblink.dsl b/docs/dsssl/docbook/print/dblink.dsl deleted file mode 100755 index a1d344f6..00000000 --- a/docs/dsssl/docbook/print/dblink.dsl +++ /dev/null @@ -1,443 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= LINKS AND ANCHORS ========================== - -(element link - ;; No warnings about missing targets. Jade will do that for us, and - ;; this way we can use -wno-idref if we really don't care. - (let* ((endterm (attribute-string (normalize "endterm"))) - (linkend (attribute-string (normalize "linkend"))) - (target (element-with-id linkend)) - (etarget (if endterm - (element-with-id endterm) - (empty-node-list))) - (link-cont (if endterm - (if (node-list-empty? etarget) - (literal - (string-append "LINK CONTENT ENDTERM '" - endterm - "' MISSING")) - (with-mode xref-endterm-mode - (process-node-list etarget))) - (process-children)))) - (if (node-list-empty? target) - link-cont - (make link - destination: (node-list-address target) - link-cont)))) - -(element ulink - (make sequence - (if (node-list-empty? (children (current-node))) - (literal (attribute-string (normalize "url"))) - (make sequence - ($charseq$) - (if (not (equal? (attribute-string (normalize "url")) - (data-of (current-node)))) - (if %footnote-ulinks% - (if (and (equal? (print-backend) 'tex) bop-footnotes) - (make sequence - ($ss-seq$ + (literal (footnote-number (current-node)))) - (make page-footnote - (make paragraph - font-family-name: %body-font-family% - font-size: (* %footnote-size-factor% %bf-size%) - font-posture: 'upright - quadding: %default-quadding% - line-spacing: (* (* %footnote-size-factor% %bf-size%) - %line-spacing-factor%) - space-before: %para-sep% - space-after: %para-sep% - start-indent: %footnote-field-width% - first-line-start-indent: (- %footnote-field-width%) - (make line-field - field-width: %footnote-field-width% - (literal (footnote-number (current-node)) - (gentext-label-title-sep (normalize "footnote")))) - (literal (attribute-string (normalize "url")))))) - ($ss-seq$ + (literal (footnote-number (current-node))))) - (if %show-ulinks% - (make sequence - (literal " (") - (literal (attribute-string (normalize "url"))) - (literal ")")) - (empty-sosofo))) - (empty-sosofo)))))) - -(element footnoteref - (process-element-with-id (attribute-string (normalize "linkend")))) - -(element anchor - ;; This is different than (empty-sosofo) alone because the backend - ;; will hang an anchor off the empty sequence. - (make sequence (empty-sosofo))) - -(element beginpage (empty-sosofo)) - -;; ====================================================================== - -(define (olink-link) - ;; This is an olink without a TARGETDOCENT, treat it as a link within - ;; the same document. - (let* ((localinfo (attribute-string (normalize "localinfo"))) - (target (element-with-id localinfo)) - (linkmode (attribute-string (normalize "linkmode"))) - (modespec (if linkmode (element-with-id linkmode) (empty-node-list))) - (xreflabel (if (node-list-empty? modespec) - #f - (attribute-string (normalize "xreflabel") modespec))) - (linktext (strip (data-of (current-node))))) - (if (node-list-empty? target) - (make sequence - (error (string-append "OLink to missing ID '" localinfo "'")) - (if (and (equal? linktext "") xreflabel) - (literal xreflabel) - (process-children))) - (if (equal? linktext "") - (if xreflabel - (xref-general target xreflabel) - (xref-general target)) - (process-children))))) - -(define (olink-simple) - ;; Assumptions: - ;; - The TARGETDOCENT is identified by a public ID - ;; - If the element has no content, the title extracted by - ;; (olink-resource-title) should be used - ;; - The (olink-resource-title) function can deduce the title from - ;; the pubid and the sysid - (let* ((target (attribute-string (normalize "targetdocent"))) - (pubid (entity-public-id target)) - (sysid (system-id-filename target)) - (title (olink-resource-title pubid sysid)) - (linktext (strip (data-of (current-node))))) - (if (equal? linktext "") - (make sequence - font-posture: 'italic - (literal title)) - (process-children)))) - -(define (olink-outline-xref olroot target linktext) - (let* ((name (attribute-string (normalize "name") target)) - (label (attribute-string (normalize "label") target)) - (title (select-elements (children target) (normalize "ttl"))) - (substitute (list - (list "%g" (if name (literal name) (literal ""))) - (list "%n" (if label (literal label) (literal ""))) - (list "%t" (with-mode olink-title-mode - (process-node-list title))))) - (tlist (match-split-list linktext (assoc-objs substitute)))) - (string-list-sosofo tlist substitute))) - -(define (olink-outline) - (let* ((target (attribute-string (normalize "targetdocent"))) - (linkmode (attribute-string (normalize "linkmode"))) - (localinfo (attribute-string (normalize "localinfo"))) - (modespec (if linkmode (element-with-id linkmode) (empty-node-list))) - (xreflabel (if (node-list-empty? modespec) - "" - (attribute-string (normalize "xreflabel") modespec))) - (pubid (entity-public-id target)) - (sysid (system-id-filename target)) - (basename (trim-string sysid '(".sgm" ".xml" ".sgml"))) - (olinkfile (string-append basename %olink-outline-ext%)) - (olinkdoc (sgml-parse olinkfile)) - (olinkroot (node-property 'document-element olinkdoc)) - (olnode (if localinfo - (element-with-id localinfo olinkroot) - olinkroot)) - (linktext (strip (data-of (current-node))))) - (if (equal? linktext "") - (olink-outline-xref olinkroot olnode xreflabel) - (process-children)))) - -(element olink - (if (not (attribute-string (normalize "targetdocent"))) - (olink-link) - (if (attribute-string (normalize "linkmode")) - (olink-outline) - (olink-simple)))) - -(mode olink-title-mode - (default (process-children)) - - (element ttl - (make sequence - font-posture: 'italic - (process-children))) - - (element it - (make sequence - font-posture: 'upright - (process-children))) - - (element tt - (make sequence - font-family-name: %mono-font-family% - (process-children))) - - (element sub - ($ss-seq$ -)) - - (element sup - ($ss-seq$ +)) -) - -;; ====================================================================== - -(element xref - (let* ((endterm (attribute-string (normalize "endterm"))) - (linkend (attribute-string (normalize "linkend"))) - (target (element-with-id linkend)) - (xreflabel (if (node-list-empty? target) - #f - (attribute-string (normalize "xreflabel") target)))) - (if (node-list-empty? target) - (error (string-append "XRef LinkEnd to missing ID '" linkend "'")) - (if xreflabel - (make link - destination: (node-list-address target) - (literal xreflabel)) - (if endterm - (if (node-list-empty? (element-with-id endterm)) - (error (string-append "XRef EndTerm to missing ID '" - endterm "'")) - (make link - destination: (node-list-address (element-with-id endterm)) - (with-mode xref-endterm-mode - (process-element-with-id endterm)))) - (cond - ((or (equal? (gi target) (normalize "biblioentry")) - (equal? (gi target) (normalize "bibliomixed"))) - ;; xref to the bibliography is a special case - (xref-biblioentry target)) - ((equal? (gi target) (normalize "co")) - ;; callouts are a special case - (xref-callout target)) - ((equal? (gi target) (normalize "listitem")) - (xref-listitem target)) - ((equal? (gi target) (normalize "question")) - (xref-question target)) - ((equal? (gi target) (normalize "answer")) - (xref-answer target)) - ((equal? (gi target) (normalize "refentry")) - (xref-refentry target)) - ((equal? (gi target) (normalize "refnamediv")) - ;; and refnamedivs - (xref-refnamediv target)) - ((equal? (gi target) (normalize "glossentry")) - ;; as are glossentrys - (xref-glossentry target)) - ((equal? (gi target) (normalize "author")) - ;; and authors - (xref-author target)) - ((equal? (gi target) (normalize "authorgroup")) - ;; and authorgroups - (xref-authorgroup target)) - (else - (xref-general target)))))))) - -(define (xref-general target #!optional (xref-string #f)) - ;; This function is used by both XREF and OLINK (when no TARGETDOCENT - ;; is specified). The only case where xref-string is supplied is - ;; on OLINK. - (let ((label (attribute-string (normalize "xreflabel") target))) - (make link - destination: (node-list-address target) - (if xref-string - (auto-xref target xref-string) - (if label - (xreflabel-sosofo label) - (auto-xref target)))))) - -(define (xref-refentry target) -;; refmeta/refentrytitle, refmeta/manvolnum, refnamediv/refdescriptor, -;; refnamediv/refname - (let* ((refmeta (select-elements (children target) - (normalize "refmeta"))) - (refnamediv (select-elements (children target) - (normalize "refnamediv"))) - (rfetitle (select-elements (children refmeta) - (normalize "refentrytitle"))) - (manvolnum (select-elements (children refmeta) - (normalize "manvolnum"))) - (refdescrip (select-elements (children refnamediv) - (normalize "refdescriptor"))) - (refname (select-elements (children refnamediv) - (normalize "refname"))) - - (title (if (node-list-empty? rfetitle) - (if (node-list-empty? refdescrip) - (node-list-first refname) - (node-list-first refdescrip)) - (node-list-first rfetitle)))) - (make link - destination: (node-list-address target) - - (make sequence - font-posture: (if %refentry-xref-italic% - 'italic - (inherited-font-posture)) - - (process-node-list (children title)) - (if (and %refentry-xref-manvolnum% - (not (node-list-empty? manvolnum))) - (process-node-list manvolnum) - (empty-sosofo)))))) - -(define (xref-refnamediv target) - (let* ((refname (select-elements (children target) - (normalize "refname"))) - - (title (node-list-first refname))) - (make link - destination: (node-list-address target) - - (make sequence - font-posture: (if %refentry-xref-italic% - 'italic - (inherited-font-posture)) - - (process-node-list (children title)))))) - -(define (xref-glossentry target) - (let ((glossterms (select-elements (children target) - (normalize "glossterm")))) - (make link - destination: (node-list-address target) - (with-mode xref-glossentry-mode - (process-node-list (node-list-first glossterms)))))) - -(define (xref-author target) - (make link - destination: (node-list-address target) - (literal (author-string target)))) - -(define (xref-authorgroup target) - ;; it's a quirk of author-list-string that it needs to point to - ;; one of the authors in the authorgroup, not the authorgroup. - ;; go figure. - (make link - destination: (node-list-address target) - (let loop ((author (select-elements (children target) - (normalize "author")))) - (if (node-list-empty? author) - (empty-sosofo) - (make sequence - (literal (author-list-string (node-list-first author))) - (loop (node-list-rest author))))))) - -(define (xref-biblioentry target) - (let* ((abbrev (node-list-first - (node-list-filter-out-pis (children target)))) - (label (attribute-string (normalize "xreflabel") target))) - (make link - destination: (node-list-address target) - - (if biblio-xref-title - (let* ((citetitles (select-elements (descendants target) - (normalize "citetitle"))) - (titles (select-elements (descendants target) - (normalize "title"))) - (title (if (node-list-empty? citetitles) - (node-list-first titles) - (node-list-first citetitles)))) - (with-mode xref-title-mode - (process-node-list title))) - (if biblio-number - (make sequence - (literal "[" (number->string (bibentry-number target)) "]")) - (if label - (make sequence - (literal "[" label "]")) - (if (equal? (gi abbrev) (normalize "abbrev")) - (make sequence - (process-node-list abbrev)) - (make sequence - (literal "[" - (attribute-string (normalize "id") target) - "]"))))))))) - -(define (xref-callout target) - (make link - destination: (node-list-address target) - ($callout-mark$ target))) - -(define (xref-listitem target) - (if (equal? (gi (parent target)) (normalize "orderedlist")) - (make link - destination: (node-list-address target) - (literal (orderedlist-listitem-label-recursive target))) - (error - (string-append "XRef to LISTITEM only supported in ORDEREDLISTs")))) - - -(define (xref-question target) - (make link - destination: (node-list-address target) - (make sequence - (literal (gentext-element-name target)) - (literal (gentext-label-title-sep target)) - (literal (question-answer-label target))))) - -(define (xref-answer target) - (xref-question target)) - -(mode xref-endterm-mode - (default - (make sequence - font-posture: 'italic - (process-children-trim)))) - -(define (xreflabel-sosofo xreflabel) - (make sequence - font-posture: 'italic - (literal xreflabel))) - -;; ====================================================================== - -;; Returns the title of the element as a sosofo, italicized for xref. -;; -(define (element-title-xref-sosofo nd) - (make sequence - font-posture: 'italic - (element-title-sosofo nd))) - -(mode xref-title-mode - (element title - (make sequence - font-posture: 'italic - (process-children-trim))) - - (element citetitle - (make sequence - font-posture: 'italic - (process-children-trim))) - - (element refname - (process-children-trim)) - - (element refentrytitle - (process-children-trim)) -) - -(mode xref-glossentry-mode - (element glossterm - ($italic-seq$))) - -;; ====================================================================== - -(define (element-page-number-sosofo target) - (with-mode pageno-mode - (process-node-list target))) - -(mode pageno-mode - (default - (current-node-page-number-sosofo))) - -;; ====================================================================== - diff --git a/docs/dsssl/docbook/print/dblists.dsl b/docs/dsssl/docbook/print/dblists.dsl deleted file mode 100755 index 3e99194e..00000000 --- a/docs/dsssl/docbook/print/dblists.dsl +++ /dev/null @@ -1,516 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; =============================== LISTS ================================ - -(define (BULLTREAT bullfcn ilevel override mark) - (cond - (override (bullfcn override ilevel)) - (mark (bullfcn mark ilevel)) - (else (bullfcn "bullet" ilevel)))) - -(define (BULLSTR m lvl) - (dingbat m)) - -(define (BULLSHIFT m lvl) - (let ((md (case-fold-down m))) - (case md - (("bullet") 0.0em) - (("box") (if (= lvl 1) 0.0em 0.1em)) - (("checkbox") (if (= lvl 1) 0.0em 0.1em)) - (("check") 0.0em) - (("checkedbox") 0.0em) - (("dash") 0.0em) - (("none") 0.0em) - (else 0.0em)))) - -(define (MSIZE m lvl f1 f2) - (if (= lvl 1) - (* %bf-size% f1) - (* %bf-size% f2))) - -(define (BULLSIZE m lvl) - (let ((md (case-fold-down m))) - (case md - (("bullet") (MSIZE m lvl 0.8 0.72)) - (("box") (MSIZE m lvl 0.9 0.72)) - (("checkbox") (MSIZE m lvl 0.9 0.72)) - (("check") (MSIZE m lvl 1.0 1.0)) - (("checkedbox") (MSIZE m lvl 1.0 1.0)) - (("dash") (MSIZE m lvl 1.0 1.0)) - (("none") (MSIZE m lvl 1.0 1.0)) - (else (MSIZE m lvl 1.0 1.0))))) - -(define (OLSTEP) 0.9em) -;; (case -;; (modulo (length (hierarchical-number-recursive (normalize "orderedlist"))) 4) -;; ((1) 1.4em) -;; ((2) 1.4em) -;; ((3) 1.4em) -;; ((0) 1.4em))) - -(define (ILSTEP) 1.0em) - -(define (COSTEP) 1.5pi) - -;; Improve spacing on lists, remove extra space before.. -;; Suggested by Adam Di Carlo, adam@onshore.com -(define ($list$) - (make display-group - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% (inherited-start-indent))) - space-after: (if (INLIST?) %para-sep% %block-sep%))) - -(element itemizedlist ($list$)) - -(element (itemizedlist title) - (make paragraph - use: title-style - (process-children))) - -(define (generic-list-item indent-step line-field) - (let* ((itemcontent (children (current-node))) - (first-child (node-list-first itemcontent)) - (spacing (inherited-attribute-string (normalize "spacing")))) - (make display-group - start-indent: (+ (inherited-start-indent) indent-step) - (make paragraph - use: (cond - ((equal? (gi first-child) (normalize "programlisting")) - verbatim-style) - ((equal? (gi first-child) (normalize "screen")) - verbatim-style) - ((equal? (gi first-child) (normalize "synopsis")) - verbatim-style) - ((equal? (gi first-child) (normalize "literallayout")) - linespecific-style) - ((equal? (gi first-child) (normalize "address")) - linespecific-style) - (else - nop-style)) - space-before: (if (equal? (normalize "compact") spacing) - 0pt - %para-sep%) - first-line-start-indent: (- indent-step) - (make sequence - line-field) - (with-mode listitem-content-mode - (process-node-list first-child))) - (process-node-list (node-list-rest itemcontent))))) - -(define (process-listitem-content) - (if (absolute-first-sibling?) - (make sequence - (process-node-list (children (current-node)))) - (next-match))) - -(mode listitem-content-mode - (element (listitem programlisting) (process-listitem-content)) - (element (listitem screen) (process-listitem-content)) - (element (listitem synopsis) (process-listitem-content)) - (element (listitem funcsynopsis) (process-listitem-content)) - (element (listitem literallayout) (process-listitem-content)) - (element (listitem address) (process-listitem-content)) - (element (listitem para) (process-listitem-content)) - (element (listitem formalpara) (process-listitem-content)) - (element (listitem simpara) (process-listitem-content)) -) - -(element (itemizedlist listitem) - (let ((ilevel (length (hierarchical-number-recursive (normalize "itemizedlist")))) - (override (inherited-attribute-string (normalize "override"))) - (mark (inherited-attribute-string (normalize "mark")))) - (generic-list-item - (ILSTEP) - (if (or (and override - (equal? (normalize override) (normalize "none"))) - (and (not override) - (equal? (normalize mark) (normalize "none")))) - (make line-field - font-size: (BULLTREAT BULLSIZE ilevel override mark) - position-point-shift: (BULLTREAT BULLSHIFT ilevel override mark) - field-width: (ILSTEP) - (literal "\no-break-space;")) - (make line-field - font-size: (BULLTREAT BULLSIZE ilevel override mark) - position-point-shift: (BULLTREAT BULLSHIFT ilevel override mark) - field-width: (ILSTEP) - (literal (BULLTREAT BULLSTR ilevel override mark))))))) - -(element orderedlist ($list$)) - -(element (orderedlist title) - (make paragraph - use: title-style - (process-children))) - -(element (orderedlist listitem) - (let* ((listitems (select-elements (children (parent (current-node))) - (normalize "listitem"))) - (itemnumber (orderedlist-listitem-number (current-node))) - (displaynum (if (string=? (inherited-attribute-string - (normalize "inheritnum")) - (normalize "inherit")) - (let loop ((nd (current-node)) (inum "")) - (if (node-list-empty? nd) - inum - (if (and (equal? (gi nd) - (normalize "listitem")) - (equal? (gi (parent nd)) - (normalize "orderedlist"))) - (loop (parent nd) - (string-append - (number-with-numeration - nd - (inherited-attribute-string - (normalize "numeration") nd) - (orderedlist-listitem-number nd)) - (if (string=? inum "") - "" - ".") - inum)) - (loop (parent nd) inum)))) - (number-with-numeration - (current-node) - (inherited-attribute-string (normalize "numeration")) - (orderedlist-listitem-number (current-node))))) - (listcount (+ (node-list-length listitems) itemnumber)) - (factor (cond - ((> listcount 999) 4) - ((> listcount 99) 3) - ((> listcount 9) 2) - (else 2)))) - (generic-list-item - (* (OLSTEP) factor) - (make line-field - field-width: (* (OLSTEP) factor) - field-align: 'end - (literal displaynum - (gentext-label-title-sep (normalize "orderedlist"))))))) - -(define (number-with-numeration node numeration number) - (let* ((depth (length (hierarchical-number-recursive (normalize "orderedlist") node))) - (rawnum (cond - ((equal? numeration (normalize "arabic")) 1) - ((equal? numeration (normalize "loweralpha")) 2) - ((equal? numeration (normalize "lowerroman")) 3) - ((equal? numeration (normalize "upperalpha")) 4) - ((equal? numeration (normalize "upperroman")) 0) - (else (modulo depth 5)))) - (num (case rawnum - ((1) (format-number number "1")) - ((2) (format-number number "a")) - ((3) (format-number number "i")) - ((4) (format-number number "A")) - ((0) (format-number number "I"))))) - (if (> depth 5) - (string-append "(" num ")") - num))) - -(element variablelist - (let* ((termlength (if (attribute-string (normalize "termlength")) - (string->number - (attribute-string (normalize "termlength"))) - %default-variablelist-termlength%)) - (maxlen (if (> termlength %default-variablelist-termlength%) - termlength - %default-variablelist-termlength%)) - (too-long? (variablelist-term-too-long? termlength))) - (make display-group - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% (inherited-start-indent))) - space-before: (if (INLIST?) %para-sep% %block-sep%) - space-after: (if (INLIST?) %para-sep% %block-sep%) - - (if (and (or (and termlength (not too-long?)) - %always-format-variablelist-as-table%) - (or %may-format-variablelist-as-table% - %always-format-variablelist-as-table%)) - (make table - space-before: (if (INLIST?) %para-sep% %block-sep%) - space-after: (if (INLIST?) %para-sep% %block-sep%) - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% - (inherited-start-indent))) - -;; Calculate the width of the column containing the terms... -;; -;; maxlen in (inherited-font-size) 72pt -;; x ---------- x ----------------------- x ------ = width -;; 12 chars 10pt in -;; - (make table-column - column-number: 1 - width: (* (* (/ maxlen 12) (/ (inherited-font-size) 10pt)) 72pt)) - (with-mode variablelist-table - (process-children))) - (process-children))))) - -(element varlistentry (process-children)) - -(element (varlistentry term) - (make paragraph - space-before: (if (first-sibling?) - %block-sep% - 0pt) - keep-with-next?: #t - first-line-start-indent: 0pt - start-indent: (inherited-start-indent) - (process-children))) - -(element (varlistentry listitem) - (let ((vle-indent 2em)) ; this ought to be in dbparam! - (generic-list-item - vle-indent - (make line-field - field-width: vle-indent - (literal "\no-break-space;"))))) - -(mode variablelist-table - (element varlistentry - (let* ((terms (select-elements (children (current-node)) - (normalize "term"))) - (listitem (select-elements (children (current-node)) - (normalize "listitem"))) - (termlen (if (attribute-string (normalize "termlength") - (parent (current-node))) - (string->number (attribute-string - (normalize "termlength") - (parent (current-node)))) - %default-variablelist-termlength%)) - (too-long? (varlistentry-term-too-long? (current-node) termlen))) - (if too-long? - (make sequence - (make table-row - cell-before-row-margin: %para-sep% - - (make table-cell - column-number: 1 - n-columns-spanned: 2 - n-rows-spanned: 1 - (process-node-list terms))) - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - ;; where terms would have gone - (empty-sosofo)) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - (process-node-list listitem)))) - (make table-row - cell-before-row-margin: %para-sep% - - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - (process-node-list terms)) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - (process-node-list listitem)))))) - - (element (varlistentry term) - (make sequence - (process-children-trim) - (if (not (last-sibling?)) - (literal ", ") - (empty-sosofo)))) - - (element (varlistentry listitem) - (make display-group - start-indent: 0pt - (process-children))) - - ;; Suggested by Nick NICHOLAS, nicholas@uci.edu - (element (variablelist title) - (make table-row - cell-before-row-margin: %para-sep% - (make table-cell - column-number: 1 - n-columns-spanned: 2 - n-rows-spanned: 1 - (make paragraph - use: title-style - start-indent: 0pt - (process-children))))) - -) - -(define (simplelist-table majororder cols members) - (let* ((termcount (node-list-length members)) - (rows (quotient (+ termcount (- cols 1)) cols))) - (make table - space-before: (if (INLIST?) %para-sep% %block-sep%) - space-after: (if (INLIST?) %para-sep% %block-sep%) - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% (inherited-start-indent))) - (if %simplelist-column-width% - (let colloop ((colnum 1)) - (if (> colnum cols) - (empty-sosofo) - (make sequence - (make table-column - width: %simplelist-column-width%) - (colloop (+ colnum 1))))) - (empty-sosofo)) - (let rowloop ((rownum 1)) - (if (> rownum rows) - (empty-sosofo) - (make sequence - (simplelist-row rownum majororder rows cols members) - (rowloop (+ rownum 1)))))))) - -(define (simplelist-row rownum majororder rows cols members) - (make table-row - (let colloop ((colnum 1)) - (if (> colnum cols) - (empty-sosofo) - (make sequence - (simplelist-entry rownum colnum majororder rows cols members) - (colloop (+ colnum 1))))))) - -(define (simplelist-entry rownum colnum majororder rows cols members) - (let ((membernum (if (equal? majororder 'row) - (+ (* (- rownum 1) cols) colnum) - (+ (* (- colnum 1) rows) rownum)))) - (let loop ((nl members) (count membernum)) - (if (<= count 1) - (make table-cell - column-number: colnum - n-columns-spanned: 1 - n-rows-spanned: 1 -;; removed to avoid dependency between dblists and dbtable -;; cell-before-row-margin: %cals-cell-before-row-margin% -;; cell-after-row-margin: %cals-cell-after-row-margin% -;; cell-before-column-margin: %cals-cell-before-column-margin% -;; cell-after-column-margin: %cals-cell-after-column-margin% -;; start-indent: %cals-cell-content-start-indent% -;; end-indent: %cals-cell-content-end-indent% -;; is another variable needed to parameterize these settings, or are -;; constants good enough? - cell-before-row-margin: 0pt - cell-after-row-margin: 0pt - cell-before-column-margin: 3pt - cell-after-column-margin: 3pt - start-indent: 0pt - end-indent: 0pt - quadding: 'start - (if (node-list-empty? nl) - (literal "\no-break-space;") - (process-node-list (node-list-first nl)))) - (loop (node-list-rest nl) (- count 1)))))) - -(element (entry simplelist) - ;; This is to avoid possibly putting tables inside tables, which don't - ;; work in some backends (e.g. RTF) - (make paragraph - (process-children))) - -(element (entry simplelist member) - ;; This is to avoid possibly putting tables inside tables, which don't - ;; work in some backends (e.g. RTF) - (let ((type (inherited-attribute-string (normalize "type")))) - (if (equal? type (normalize "inline")) - (next-match) - (make sequence - (if (equal? (child-number) 1) - (empty-sosofo) - (make paragraph-break)) - (process-children))))) - -(element simplelist - (let ((type (attribute-string (normalize "type"))) - (cols (if (attribute-string (normalize "columns")) - (if (> (string->number (attribute-string (normalize "columns"))) 0) - (string->number (attribute-string (normalize "columns"))) - 1) - 1)) - (members (select-elements (children (current-node)) (normalize "member")))) - (cond - ((equal? type (normalize "inline")) - (process-children)) - ((equal? type (normalize "vert")) - (simplelist-table 'column cols members)) - ((equal? type (normalize "horiz")) - (simplelist-table 'row cols members))))) - -(element member - (let ((type (inherited-attribute-string (normalize "type")))) - (if (equal? type (normalize "inline")) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal ""))) - (make paragraph - quadding: 'start - (process-children))))) - -(element segmentedlist (process-children)) -(element (segmentedlist title) ($lowtitle$ 2 4)) - -(element segtitle (empty-sosofo)) -(mode seglist-in-seg - (element segtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (process-children)))) - -(element seglistitem ($paragraph$)) -(element seg - (let* ((seg-num (child-number (current-node))) - (seglist (parent (parent (current-node)))) - (segtitle (nth-node (select-elements - (descendants seglist) (normalize "segtitle")) seg-num))) - - ;; Note: segtitle is only going to be the right thing in a well formed - ;; SegmentedList. If there are too many Segs or too few SegTitles, - ;; you'll get something odd...maybe an error - - (with-mode seglist-in-seg - (make paragraph - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (sosofo-append (process-node-list segtitle)) - (literal ": ")) - (process-children))))) - -(element calloutlist ($list$)) -(element (calloutlist title) ($lowtitle$ 2 4)) - -(element callout - (let* ((calloutcontent (children (current-node))) - (arearefs (inherited-attribute-string (normalize "arearefs"))) - (idlist (split arearefs))) - (make sequence - start-indent: (+ (inherited-start-indent) (COSTEP)) - - (make paragraph - space-before: %para-sep% - first-line-start-indent: (- (COSTEP)) - (make line-field - field-width: (COSTEP) - (let loop ((ids idlist)) - (if (null? ids) - (empty-sosofo) - (make sequence - ($callout-mark$ (element-with-id (car ids))) - (loop (cdr ids)))))) - (process-node-list (children (node-list-first calloutcontent)))) - - (process-node-list (node-list-rest calloutcontent))))) diff --git a/docs/dsssl/docbook/print/dblot.dsl b/docs/dsssl/docbook/print/dblot.dsl deleted file mode 100755 index 8d3f4f31..00000000 --- a/docs/dsssl/docbook/print/dblot.dsl +++ /dev/null @@ -1,24 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; need test cases to do toc/lot; do these later - -(element toc (empty-sosofo)) -(element (toc title) (empty-sosofo)) -(element tocfront ($paragraph$)) -(element tocentry ($paragraph$)) -(element tocpart (process-children)) -(element tocchap (process-children)) -(element toclevel1 (process-children)) -(element toclevel2 (process-children)) -(element toclevel3 (process-children)) -(element toclevel4 (process-children)) -(element toclevel5 (process-children)) -(element tocback ($paragraph$)) -(element lot (empty-sosofo)) -(element (lot title) (empty-sosofo)) -(element lotentry ($paragraph$)) - diff --git a/docs/dsssl/docbook/print/dbmath.dsl b/docs/dsssl/docbook/print/dbmath.dsl deleted file mode 100755 index ec7efcbb..00000000 --- a/docs/dsssl/docbook/print/dbmath.dsl +++ /dev/null @@ -1,92 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define %equation-autolabel% #f) - -(element equation - ;; derived from $semiformal-object$ - (if (node-list-empty? (select-elements (children (current-node)) - (normalize "title"))) - ($informal-object$ %informalequation-rules% %informalequation-rules%) - ($formal-object$ %informalequation-rules% %informalequation-rules%))) - -(element (equation title) (empty-sosofo)) -(element (equation alt) (empty-sosofo)) -(element (equation graphic) - (make paragraph - space-before: 0pt - space-after: 0pt - ($img$ (current-node) #t))) - -(element informalequation - ;; Derived from informal-object - (let ((rule-before? %informalequation-rules%) - (rule-after? %informalequation-rules%)) - (if %equation-autolabel% - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: (+ %block-start-indent% - (inherited-start-indent)) - keep-with-next?: (object-title-after) - - (if rule-before? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-after: (/ %block-sep% 2) - keep-with-next?: #t) - (empty-sosofo)) - - (make table - (make table-column - column-number: 1 - width: (- %text-width% - (+ (inherited-start-indent) - (inherited-end-indent) - 1in))) - (make table-column - column-number: 2 - width: 1in) - (make table-row - (make table-cell - cell-row-alignment: 'center - start-indent: 0pt - end-indent: 0pt - (process-children)) - (make table-cell - cell-row-alignment: 'center - quadding: 'end - start-indent: 0pt - end-indent: 0pt - (make paragraph - (literal "(" (element-label (current-node)) ")"))))) - - (if rule-after? - (make rule - orientation: 'horizontal - line-thickness: %object-rule-thickness% - display-alignment: 'center - space-before: (/ %block-sep% 2) - keep-with-previous?: #t) - (empty-sosofo))) - ($informal-object$ rule-before? rule-after?)))) - -(element (informalequation alt) (empty-sosofo)) -(element (informalequation graphic) - (make paragraph - space-before: 0pt - space-after: 0pt - quadding: 'end - ($img$ (current-node) #t))) - -(element inlineequation ($inline-object$)) -(element (inlineequation alt) (empty-sosofo)) -(element (inlineequation graphic) - (make sequence - ($img$ (current-node) #f))) - diff --git a/docs/dsssl/docbook/print/dbmsgset.dsl b/docs/dsssl/docbook/print/dbmsgset.dsl deleted file mode 100755 index 642100b0..00000000 --- a/docs/dsssl/docbook/print/dbmsgset.dsl +++ /dev/null @@ -1,51 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ======================== ERROR MESSAGES (ETC.) ======================= - -(element msgset (process-children)) - -(element msgentry ($informal-object$)) - -(element simplemsgentry ($informal-object$)) - -(element msg - (make display-group - font-weight: 'bold - font-family-name: %mono-font-family% - (process-children))) - -(element msgmain (process-children)) - -(element msgsub - (make display-group - start-indent: (+ (inherited-start-indent) (ILSTEP)) - (process-children))) - -(element msgrel (empty-sosofo)) - -(element msgtext (process-children)) - -(element msginfo ($indent-para-container$)) - -(define ($genhead-para$ headtext) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - (make sequence - font-weight: 'bold - (literal - (string-append headtext ": "))) - (process-children))) - -(element msglevel ($genhead-para$ (gentext-element-name (current-node)))) -(element msgorig ($genhead-para$ (gentext-element-name (current-node)))) -(element msgaud ($genhead-para$ (gentext-element-name (current-node)))) - -(element msgexplan ($indent-para-container$)) -(element (msgexplan title) ($runinhead$)) -(element (msgexplan para) (make sequence (process-children))) - diff --git a/docs/dsssl/docbook/print/dbparam.dsl b/docs/dsssl/docbook/print/dbparam.dsl deleted file mode 100755 index 9e87787e..00000000 --- a/docs/dsssl/docbook/print/dbparam.dsl +++ /dev/null @@ -1,2014 +0,0 @@ - - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -;; === Book intro, for dsl2man ========================================== - -DocBook Print Parameters -;; Part of the Modular DocBook Stylesheet distribution -;; NormanWalsh -;; -;; $Revision$ -;; 199719981999 -;; Norman Walsh -;; -;; -;; 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. -;; -;; -;; -;; -;; Please direct all questions, bug reports, or suggestions for changes -;; to Norman Walsh, <ndw@nwalsh.com>. -;; -;; -;; See http://nwalsh.com/docbook/dsssl/ for more information. -;; -;; /DOCINFO -]]> - -;; REFERENCE TOC/LOT Apparatus - -(define %generate-set-toc% - ;; REFENTRY generate-set-toc - ;; PURP Should a Table of Contents be produced for Sets? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Set'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-book-toc% - ;; REFENTRY generate-book-toc - ;; PURP Should a Table of Contents be produced for Books? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Book'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define ($generate-book-lot-list$) - ;; REFENTRY generate-book-lot-list - ;; PURP Which Lists of Titles should be produced for Books? - ;; DESC - ;; This parameter should be a list (possibly empty) of the elements - ;; for which Lists of Titles should be produced for each 'Book'. - ;; - ;; It is meaningless to put elements that do not have titles in this - ;; list. If elements with optional titles are placed in this list, only - ;; the instances of those elements that do have titles will appear in - ;; the LOT. - ;; - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list (normalize "table") -(normalize "figure") -(normalize "example") -(normalize "equation"))) - -(define %generate-part-toc% - ;; REFENTRY generate-part-toc - ;; PURP Should a Table of Contents be produced for Parts? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Part'. - ;; Note: '%generate-part-toc-on-titlepage%' controls whether the Part TOC - ;; is placed on the bottom of the part titlepage or on page(s) of its own. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-part-toc-on-titlepage% - ;; REFENTRY generate-part-toc-on-titlepage - ;; PURP Should the Part TOC appear on the Part title page? - ;; DESC - ;; If true, the Part TOC will be placed on the Part title page. If false, - ;; the TOC will be placed on separate page(s) after the Part title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-reference-toc% - ;; REFENTRY generate-reference-toc - ;; PURP Should a Table of Contents be produced for References? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Reference'. - ;; Note: '%generate-reference-toc-on-titlepage%' controls whether the - ;; Reference TOC - ;; is placed on the bottom of the title page or on page(s) of its own. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-reference-toc-on-titlepage% - ;; REFENTRY generate-reference-toc-on-titlepage - ;; PURP Should the Reference TOC appear on the Reference title page? - ;; DESC - ;; If true, the Reference TOC will be placed on the Reference title page. - ;; If false, - ;; the TOC will be placed on separate page(s) after the title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-article-toc% - ;; REFENTRY generate-article-toc - ;; PURP Should a Table of Contents be produced for Articles? - ;; DESC - ;; If true, a Table of Contents will be generated for each 'Article'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-article-toc-on-titlepage% - ;; REFENTRY generate-article-toc-on-titlepage - ;; PURP Should the Article TOC appear on the Article title page? - ;; DESC - ;; If true, the Article TOC will be placed on the Article title page. - ;; If false, - ;; the TOC will be placed on separate page(s) after the title page. - ;; If false, %generate-article-titlepage-on-separate-page% should be - ;; true. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Titlepages - -(define %generate-set-titlepage% - ;; REFENTRY generate-set-titlepage - ;; PURP Should a set title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Set'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-book-titlepage% - ;; REFENTRY generate-book-titlepage - ;; PURP Should a book title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Book'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-part-titlepage% - ;; REFENTRY generate-part-titlepage - ;; PURP Should a part title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Part'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-partintro-on-titlepage% - ;; REFENTRY generate-partintro-on-titlepage - ;; PURP Should the PartIntro appear on the Part/Reference title page? - ;; DESC - ;; If true, the PartIntro content will appear on the title page of - ;; Parts and References. If false, - ;; it will be placed on separate page(s) after the title page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-reference-titlepage% - ;; REFENTRY generate-reference-titlepage - ;; PURP Should a reference title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Reference'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-article-titlepage% - ;; REFENTRY generate-article-titlepage - ;; PURP Should an article title page be produced? - ;; DESC - ;; If true, a title page will be generated for each 'Article'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %generate-article-titlepage-on-separate-page% - ;; REFENTRY generate-article-ttlpg-on-sep-page - ;; PURP Should the article title page be on a separate page? - ;; DESC - ;; If true, the title page for each 'Article' will occur on its own page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %titlepage-in-info-order% - ;; REFENTRY titlepage-in-info-order - ;; PURP Place elements on title page in document order? - ;; DESC - ;; If true, the elements on the title page will be set in the order that - ;; they appear in the *info element. Otherwise, they will be set in - ;; the order specified in the *-titlepage-*-elements list. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %author-othername-in-middle% - ;; REFENTRY othername-in-middle - ;; PURP Author OTHERNAME appears between FIRSTNAME and SURNAME? - ;; DESC - ;; If true, the OTHERNAME of an AUTHOR appears between the - ;; FIRSTNAME and SURNAME. Otherwise, OTHERNAME is suppressed. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE RefEntries and FuncSynopses - -(define %refentry-new-page% - ;; REFENTRY refentry-new-page - ;; PURP 'RefEntry' starts on new page? - ;; DESC - ;; If true, each 'RefEntry' begins on a new page. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %refentry-keep% - ;; REFENTRY refentry-keep - ;; PURP Keep RefEntrys together? - ;; DESC - ;; Refentry keep indicates how the stylesheet should - ;; attempt to keep each RefEntry. Common values are '#t', for the - ;; smallest possible area, 'page' for the same page, and '#f' to ignore - ;; this characteristic. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %refentry-generate-name% - ;; REFENTRY refentry-generate-name - ;; PURP Output NAME header before 'RefName'(s)? - ;; DESC - ;; If true, a "NAME" section title is output before the list - ;; of 'RefName's. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %refentry-xref-italic% - ;; REFENTRY refentry-xref-italic - ;; PURP Use italic text when cross-referencing RefEntrys? - ;; DESC - ;; If true, italics are used when cross-referencing RefEntrys, either - ;; with XRef or CiteRefEntry. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %refentry-xref-manvolnum% - ;; REFENTRY refentry-xref-manvolnum - ;; PURP Output manvolnum as part of RefEntry cross-reference? - ;; DESC - ;; If true, the manvolnum is used when cross-referencing RefEntrys, either - ;; with XRef or CiteRefEntry. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %funcsynopsis-style% - ;; REFENTRY funcsynopsis-style - ;; PURP What style of 'FuncSynopsis' should be generated? - ;; DESC - ;; If '%funcsynopsis-style%' is 'ansi', - ;; ANSI-style function synopses are generated for a 'FuncSynopsis', - ;; otherwise KR-style function synopses are generated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'ansi) - -(define %kr-funcsynopsis-indent% - ;; REFENTRY kr-funcsynopsis-indent - ;; PURP Indent-depth in KR-style function synopses - ;; DESC - ;; If the '%funcsynopsis-style%' is 'kr', - ;; '%kr-funcsynopsis-indent%' specifies the amount by which parameter - ;; definitions should be indented under the function prototype. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 1pi) - -(define %funcsynopsis-decoration% - ;; REFENTRY funcsynopsis-decoration - ;; PURP Decorate elements of a FuncSynopsis? - ;; DESC - ;; If true, elements of the FuncSynopsis will be decorated (e.g. bold or - ;; italic). The decoration is controlled by functions that can be redefined - ;; in a customization layer. See 'edbsynop.dsl'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Fonts - -(define %refentry-name-font-family% - ;; REFENTRY refentry-name-font-family - ;; PURP The font family used in RefName - ;; DESC - ;; The name of the font family used in 'RefEntry' - ;; 'RefName's. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - %mono-font-family%) - -(define %title-font-family% - ;; REFENTRY title-font-family - ;; PURP The font family used in titles - ;; DESC - ;; The name of the font family used in titles (Arial by default). - ;; - ;; The values used here are system dependent (you have - ;; to have the fonts you select) and backend dependent (the backend has - ;; to know how to use them). - ;; - ;; The values here work for the RTF backend under MS Windows. YMMV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "Arial") - -(define %body-font-family% - ;; REFENTRY body-font-family - ;; PURP The font family used in body text - ;; DESC - ;; The name of the font family used in body text - ;; (Times New Roman by default). - ;; - ;; The values used here are system dependent (you have - ;; to have the fonts you select) and backend dependent (the backend has - ;; to know how to use them). - ;; - ;; The values here work for the RTF backend under MS Windows. YMMV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "Times New Roman") - -(define %mono-font-family% - ;; REFENTRY mono-font-family - ;; PURP The font family used in verbatim environments - ;; DESC - ;; The name of the font family used in verbatim environments (Courier New - ;; by default). - ;; - ;; The values used here are system dependent (you have - ;; to have the fonts you select) and backend dependent (the backend has - ;; to know how to use them). - ;; - ;; The values here work for the RTF backend under MS Windows. YMMV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "Courier New") - -(define %admon-font-family% - ;; REFENTRY admon-font-family - ;; PURP The font family used in admonitions - ;; DESC - ;; The name of the font family used for body text in admonitions (Arial - ;; by default). - ;; - ;; The values used here are system dependent (you have - ;; to have the fonts you select) and backend dependent (the backend has - ;; to know how to use them). - ;; - ;; The values here work for the RTF backend under MS Windows. YMMV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "Arial") - -(define %guilabel-font-family% - ;; REFENTRY guilabel-font-family - ;; PURP The font family used in GUI labels - ;; DESC - ;; The name of the font family used for text that represents text on a - ;; GUI (e.g., text in 'GUILabel', 'GUIMenu', - ;; etc.). (Arial by default). - ;; - ;; The values used here are system dependent (you have - ;; to have the fonts you select) and backend dependent (the backend has - ;; to know how to use them). - ;; - ;; The values here work for the RTF backend under MS Windows. YMMV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "Arial") - -(define %visual-acuity% - ;; REFENTRY visual-acuity - ;; PURP General measure of document text size - ;; DESC - ;; This parameter controls the general size of the text in the document. - ;; Several other values (body font size and margins) have default values that - ;; vary depending on the setting of '%visual-acuity%'. There - ;; are three legal values: 'normal', - ;; the normal, standard document size (10pt body text); - ;; 'presbyopic', - ;; a slightly more generous size (12pt body text); and - ;; 'large-type', - ;; quite large (24pt body text). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ;; "presbyopic" - ;; "large-type" - "normal") - -(define %hsize-bump-factor% - ;; REFENTRY hsize-bump-factor - ;; PURP Font scaling factor - ;; DESC - ;; Internally, the stylesheet refers to font sizes in purely relative - ;; terms. This is done by defining a scaled set of fonts - ;; (sizes 1, 2, 3, etc.) - ;; based at the default text font size (e.g. 10pt). The '%hsize-bump-factor%' - ;; describes the ratio between scaled sizes. The default is 1.2. - ;; - ;; Each hsize is '%hsize-bump-factor%' times larger than - ;; the previous hsize. For example, if the base size is 10pt, and - ;; '%hsize-bump-factor%' - ;; 1.2, hsize 1 is 12pt, hsize 2 is 14.4pt, hsize 3 is 17.28pt, etc. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 1.2) - -(define %smaller-size-factor% - ;; REFENTRY smaller-size-factor - ;; PURP Smaller font scaling factor - ;; DESC - ;; In environments that are usually set with a slightly smaller font size, - ;; for example block quotations, the stylesheet calculates the smaller font - ;; size by muliplying the current font size by '%smaller-size-factor%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.9) - -(define %ss-size-factor% - ;; REFENTRY ss-size-factor - ;; PURP Super/subscript scaling factor - ;; DESC - ;; When text is set as a subscript or superscript, the font size of the - ;; text is multiplied by '%ss-size-factor%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.6) - -(define %ss-shift-factor% - ;; REFENTRY ss-shift-factor - ;; PURP Super/subscript shift factor - ;; DESC - ;; When text is set as a subscript or superscript, it is set above or below - ;; the baseline by a factor of the current font size and '%ss-shift-factor%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.4) - -(define %verbatim-size-factor% - ;; REFENTRY verbatim-size-factor - ;; PURP Verbatim font scaling factor - ;; DESC - ;; When a monospace font is selected, the current font size is multiplied - ;; by the '%verbatim-size-factor%'. If '%verbatim-size-factor%' - ;; is '#f', no scaling is performed (Well, that's not precisely true. - ;; In '$verbatim-display$' - ;; environments, the font size is calculated with respect to the longest line - ;; in the display, if '%verbatim-size-factor%' is '#f'). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.9) - -(define %bf-size% - ;; REFENTRY bf-size - ;; PURP Defines the body font size - ;; DESC - ;; Sets the body font size. This parameter is usually controlled by the - ;; '%visual-acuity%' parameter. - ;; /DESC - ;; /REFENTRY - (case %visual-acuity% - (("tiny") 8pt) - (("normal") 10pt) - (("presbyopic") 12pt) - (("large-type") 24pt))) - -(define-unit em %bf-size%) - -(define %footnote-size-factor% - ;; REFENTRY footnote-size-factor - ;; PURP Footnote font scaling factor - ;; DESC - ;; When printing footnotes, the current font size is multiplied by the - ;; '%footnote-size-factor%'. - ;; /DESC - ;; /REFENTRY - 0.9) - -;; REFERENCE Backends - -(define tex-backend - ;; REFENTRY tex-backend - ;; PURP Are we using the TeX backend? - ;; DESC - ;; This parameter exists so that '-V tex-backend' can be used on the - ;; command line to explicitly select the TeX backend. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define mif-backend - ;; REFENTRY mif-backend - ;; PURP Are we using the MIF backend? - ;; DESC - ;; This parameter exists so that '-V mif-backend' can be used on the - ;; command line to explicitly select the MIF backend. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define rtf-backend - ;; REFENTRY rtf-backend - ;; PURP Are we using the RTF backend? - ;; DESC - ;; This parameter exists so that '-V rtf-backend' can be used on the - ;; command line to explicitly select the RTF backend. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define default-backend - ;; REFENTRY default-backend - ;; PURP What is the default backend? - ;; DESC - ;; This parameter sets the default backend. Selecting an explicit - ;; backend enables features specific to that backend (if there are any). - ;; The legal values are 'rtf', 'tex', 'mif', and '#f'. Using - ;; '#f' implies that no special features are used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define (print-backend) - ;; REFENTRY print-backend - ;; PURP Returns the backend that is being used to format the document - ;; DESC - ;; This parameter controls features in the stylesheet that are backend - ;; specific. The legal values are 'rtf', 'tex', 'mif', and '#f'. Using - ;; '#f' implies that no special features are used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (cond - (tex-backend 'tex) - (mif-backend 'mif) - (rtf-backend 'rtf) - (else default-backend))) - -;; REFERENCE Verbatim Environments - -(define %verbatim-default-width% - ;; REFENTRY verbatim-default-width - ;; PURP Default width of verbatim environments - ;; DESC - ;; If no WIDTH attribute is specified on verbatim environments, - ;; '%verbatim-default-width%' is the default. Note: this width only - ;; comes into play if '%verbatim-size-factor%' is '#f'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 80) - -(define %number-synopsis-lines% - ;; REFENTRY number-synopsis-lines - ;; PURP Enumerate lines in a 'Synopsis'? - ;; DESC - ;; If true, lines in each 'Synopsis' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-funcsynopsisinfo-lines% - ;; REFENTRY number-funcsynopsisinfo-lines - ;; PURP Enumerate lines in a 'FuncSynopsisInfo'? - ;; DESC - ;; If true, lines in each 'FuncSynopsisInfo' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-literallayout-lines% - ;; REFENTRY number-literallayout-lines - ;; PURP Enumerate lines in a 'LiteralLayout'? - ;; DESC - ;; If true, lines in each 'LiteralLayout' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-address-lines% - ;; REFENTRY number-address-lines - ;; PURP Enumerate lines in a 'Address'? - ;; DESC - ;; If true, lines in each 'Address' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-programlisting-lines% - ;; REFENTRY number-programlisting-lines - ;; PURP Enumerate lines in a 'ProgramListing'? - ;; DESC - ;; If true, lines in each 'ProgramListing' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %number-screen-lines% - ;; REFENTRY number-screen-lines - ;; PURP Enumerate lines in a 'Screen'? - ;; DESC - ;; If true, lines in each 'Screen' will be enumerated. - ;; See also '%linenumber-mod%', '%linenumber-length%', - ;; '%linenumber-padchar%', and '($linenumber-space$)'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %linenumber-mod% - ;; REFENTRY linenumber-mod - ;; PURP Controls line-number frequency in enumerated environments. - ;; DESC - ;; Every '%linenumber-mod%' line will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 5) - -(define %linenumber-length% - ;; REFENTRY linenumber-length - ;; PURP Width of line numbers in enumerated environments - ;; DESC - ;; Line numbers will be padded to '%linenumber-length%' - ;; characters. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 3) - -(define %linenumber-padchar% - ;; REFENTRY linenumber-padchar - ;; PURP Pad character in line numbers - ;; DESC - ;; Line numbers will be padded (on the left) with '%linenumber-padchar%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "\no-break-space;") - -(define ($linenumber-space$) - ;; REFENTRY linenumber-space - ;; PURP Returns the sosofo which separates line numbers from the text - ;; DESC - ;; The sosofo returned by '($linenumber-space$)' is placed - ;; between the line number and the corresponding line in - ;; enumerated environments. - ;; - ;; Note: '%linenumber-padchar%'s are separated from lines - ;; that are not enumerated (because they don't match '%linenumber-mod%'). - ;; In other words, '($linenumber-space$)' occurs - ;; on every line. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (literal "\no-break-space;")) - -(define %indent-synopsis-lines% - ;; REFENTRY indent-synopsis-lines - ;; PURP Indent lines in a 'Synopsis'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-funcsynopsisinfo-lines% - ;; REFENTRY indent-funcsynopsisinfo-lines - ;; PURP Indent lines in a 'FuncSynopsisInfo'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-literallayout-lines% - ;; REFENTRY indent-literallayout-lines - ;; PURP Indent lines in a 'LiteralLayout'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-address-lines% - ;; REFENTRY indent-address-lines - ;; PURP Indent lines in a 'Address'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-programlisting-lines% - ;; REFENTRY indent-programlisting-lines - ;; PURP Indent lines in a 'ProgramListing'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %indent-screen-lines% - ;; REFENTRY indent-screen-lines - ;; PURP Indent lines in a 'Screen'? - ;; DESC - ;; If not '#f', each line in the display will be indented - ;; with the content of this variable. Usually it is set to some number - ;; of spaces, but you can indent with any string you wish. - ;; /DESC - ;; /REFENTRY - #f) - -(define %callout-fancy-bug% - ;; REFENTRY callout-fancy-bug - ;; PURP Use fancy callout bugs? - ;; DESC - ;; If true, fancy callout bugs will be used. Otherwise, simple ones are - ;; used. Fancy callout bugs may require the RTF backend. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %callout-default-col% - ;; REFENTRY callout-default-col - ;; PURP Default column for callouts - ;; DESC - ;; If the coordinates of a callout include only a line number, the callout - ;; bug will appear in column '%callout-default-col%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 60) - -;; REFERENCE Labelling - -(define %section-autolabel% - ;; REFENTRY section-autolabel - ;; PURP Are sections enumerated? - ;; DESC - ;; If true, unlabeled sections will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %chapter-autolabel% - ;; REFENTRY chapter-autolabel - ;; PURP Are chapters enumerated? - ;; DESC - ;; If true, chapters will be enumerated. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %label-preface-sections% - ;; REFENTRY label-preface-sections - ;; PURP Are sections in the Preface enumerated? - ;; DESC - ;; If true, unlabeled sections in the Preface will be enumerated - ;; if '%section-autolabel%' is true. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %qanda-inherit-numeration% - ;; REFENTRY qanda-inherit-numeration - ;; PURP Should numbered questions inherit the surrounding numeration? - ;; DESC - ;; If true, question numbers are prefixed with the surrounding - ;; component or section number. Has no effect unless - ;; '%section-autolabel%' is also true. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE Running Heads - -(define %chap-app-running-heads% - ;; REFENTRY chap-app-running-heads - ;; PURP Generate running headers and footers on chapter-level elements? - ;; DESC - ;; If true, running headers and footers are produced on chapter-level - ;; elements. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %chap-app-running-head-autolabel% - ;; REFENTRY chap-app-running-head-autolabel - ;; PURP Put chapter labels in running heads? - ;; DESC - ;; If true, running heads on 'Chapter's and - ;; 'Appendix'es will include an automatic label. - ;; - ;; In other words, if a 'Chapter' has no 'Label' attribute, - ;; and '%chap-app-running-head-autolabel%' - ;; is true, running heads will include the automatic label for the - ;; 'Chapter'. If '%chap-app-running-head-autolabel%' - ;; is false, only the 'Title' (or 'TitleAbbrev') - ;; will appear in the running head. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Paper/Page Characteristics - -(define %paper-type% - ;; REFENTRY paper-type - ;; PURP Name of paper type - ;; DESC - ;; The paper type value identifies the sort of paper in use, for example, - ;; 'A4' or 'USletter'. Setting the paper type is an - ;; easy shortcut for setting the correct paper height and width. - ;; - ;; As distributed, only 'A4' and 'USletter' are supported. You can add - ;; additional paper types by updating 'page-width' and 'page-height'. - ;; If you do, please pass along your updates. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ;; "A4" - "USletter") - -(define %two-side% - ;; REFENTRY two-side - ;; PURP Is two-sided output being produced? - ;; DESC - ;; If '%two-side%' is true, headers and footers are alternated - ;; so that the "outer" and "inner" headers will be correctly - ;; placed in the bound document. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %writing-mode% - ;; REFENTRY writing-mode - ;; PURP The writing mode - ;; DESC - ;; The writing mode is either 'left-to-right', or - ;; 'right-to-left'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'left-to-right) - -(define %page-n-columns% - ;; REFENTRY page-n-columns - ;; PURP Sets the number of columns on each page - ;; DESC - ;; Sets the number of columns on each page - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 1) - -(define %titlepage-n-columns% - ;; REFENTRY titlepage-n-columns - ;; PURP Sets the number of columns on the title page - ;; DESC - ;; Sets the number of columns on the title page - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 1) - -(define %page-column-sep% - ;; REFENTRY page-column-sep - ;; PURP Sets the width of the gutter between columns - ;; DESC - ;; Sets the width of the gutter between columns - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.5in) - -(define %page-balance-columns?% - ;; REFENTRY page-balance-columns - ;; PURP Balance columns on pages? - ;; DESC - ;; If true, the columns on the final page of a multiple column layout - ;; will be balanced. Otherwise, the columns will be completely filled in the - ;; writing direction and the last column may be a different length - ;; than the preceding columns. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %left-margin% - ;; REFENTRY left-margin - ;; PURP Width of left margin - ;; DESC - ;; The '%left-margin%' parameter specifies the width of the left margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 6pi) - -(define %right-margin% - ;; REFENTRY right-margin - ;; PURP Width of the right margin - ;; DESC - ;; The '%right-margin%' parameter specifies the width of the right margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 6pi) - -(define %page-width% - ;; REFENTRY page-width - ;; PURP Specifies the page width - ;; DESC - ;; Identifies the width of the page (length in the writing direction). - ;; It is usually controlled by the '%paper-type%' parameter. - ;; /DESC - ;; /REFENTRY - (case %paper-type% - (("A4landscape") 297mm) - (("USletter") 8.5in) - (("USlandscape") 11in) - (("4A0") 1682mm) - (("2A0") 1189mm) - (("A0") 841mm) - (("A1") 594mm) - (("A2") 420mm) - (("A3") 297mm) - (("A4") 210mm) - (("A5") 148mm) - (("A6") 105mm) - (("A7") 74mm) - (("A8") 52mm) - (("A9") 37mm) - (("A10") 26mm) - (("B0") 1000mm) - (("B1") 707mm) - (("B2") 500mm) - (("B3") 353mm) - (("B4") 250mm) - (("B5") 176mm) - (("B6") 125mm) - (("B7") 88mm) - (("B8") 62mm) - (("B9") 44mm) - (("B10") 31mm) - (("C0") 917mm) - (("C1") 648mm) - (("C2") 458mm) - (("C3") 324mm) - (("C4") 229mm) - (("C5") 162mm) - (("C6") 114mm) - (("C7") 81mm) - (("C8") 57mm) - (("C9") 40mm) - (("C10") 28mm))) - -(define %page-height% - ;; REFENTRY page-height - ;; PURP Specifies the page height - ;; DESC - ;; Identifies the height of the page (length perpendicular to the - ;; writing direction). - ;; It is usually controlled by the '%paper-type%' parameter. - ;; /DESC - ;; /REFENTRY - (case %paper-type% - (("A4landscape") 210mm) - (("USletter") 11in) - (("USlandscape") 8.5in) - (("4A0") 2378mm) - (("2A0") 1682mm) - (("A0") 1189mm) - (("A1") 841mm) - (("A2") 594mm) - (("A3") 420mm) - (("A4") 297mm) - (("A5") 210mm) - (("A6") 148mm) - (("A7") 105mm) - (("A8") 74mm) - (("A9") 52mm) - (("A10") 37mm) - (("B0") 1414mm) - (("B1") 1000mm) - (("B2") 707mm) - (("B3") 500mm) - (("B4") 353mm) - (("B5") 250mm) - (("B6") 176mm) - (("B7") 125mm) - (("B8") 88mm) - (("B9") 62mm) - (("B10") 44mm) - (("C0") 1297mm) - (("C1") 917mm) - (("C2") 648mm) - (("C3") 458mm) - (("C4") 324mm) - (("C5") 229mm) - (("C6") 162mm) - (("C7") 114mm) - (("C8") 81mm) - (("C9") 57mm) - (("C10") 40mm))) - -(define %text-width% - ;; REFENTRY text-width - ;; PURP Specifies the width of the body column - ;; DESC - ;; Identifies the width of the page on which text may occur. - ;; /DESC - ;; /REFENTRY - (- %page-width% (+ %left-margin% %right-margin%))) - -(define %body-width% - ;; REFENTRY body-width - ;; PURP Specifies the width of the text in the body column - ;; DESC - ;; Identifies the width of the page on which text will occur, after - ;; the '%body-start-indent%' is removed. - ;; /DESC - ;; /REFENTRY - (- %text-width% %body-start-indent%)) - -(define %top-margin% - ;; REFENTRY top-margin - ;; PURP Height of top margin - ;; DESC - ;; The '%top-margin%' parameter specifies the height of the - ;; top margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; /REFENTRY - (if (equal? %visual-acuity% "large-type") - 7.5pi - 6pi)) - -(define %bottom-margin% - ;; REFENTRY bottom-margin - ;; PURP Height of bottom margin - ;; DESC - ;; The '%bottom-margin%' parameter specifies the - ;; height of the bottom margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; /REFENTRY - (if (equal? %visual-acuity% "large-type") - 9.5pi - 8pi)) - -(define %header-margin% - ;; REFENTRY header-margin - ;; PURP Height of header margin - ;; DESC - ;; The '%header-margin%' parameter specifies the heigth - ;; of the header margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; /REFENTRY - (if (equal? %visual-acuity% "large-type") - 5.5pi - 4pi)) - -(define %footer-margin% - ;; REFENTRY footer-margin - ;; PURP Height of footer margin - ;; DESC - ;; The '%footer-margin%' parameter specifies the height - ;; of the footer margin - ;; of the page. Note that this setting is relative to the physical page, - ;; not the writing direction. - ;; /DESC - ;; /REFENTRY - 4pi) - -(define %page-number-restart% - ;; REFENTRY page-number-restart - ;; PURP Restart page numbers in each component? - ;; DESC - ;; If true, page numbers are restarted at the beginning of each - ;; component-level - ;; element ('Chapter', 'Appendix', - ;; 'Bibliography', etc.). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %article-page-number-restart% - ;; REFENTRY article-page-number-restart - ;; PURP Restart page numbers in each article? - ;; DESC - ;; If true, page numbers are restarted at the beginning of each - ;; article. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %generate-heading-level% - ;; REFENTRY generate-heading-level - ;; PURP Output RTF heading level characteristics? - ;; DESC - ;; If true, component and section titles will have the heading-level - ;; characteristic in the RTF. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -;; REFERENCE Admonitions - -(define %admon-graphics% - ;; REFENTRY admon-graphics - ;; PURP Use graphics in admonitions? - ;; DESC - ;; If true, admonitions are presented in an alternate style that uses - ;; a graphic. Default graphics are provided in the distribution. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %admon-graphics-path% - ;; REFENTRY admon-graphics-path - ;; PURP Path to admonition graphics - ;; DESC - ;; Sets the path, probably relative to the directory where the HTML - ;; files are created, to the admonition graphics. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "../images/") - -(define admon-graphic-default-extension - ;; REFENTRY admon-graphic-default-extension - ;; PURP Admonition graphic file extension - ;; DESC - ;; Identifies the default extension for admonition graphics. This allows - ;; backends to select different images (e.g., EPS for print, PNG for - ;; PDF, etc.) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".eps") - -(define ($admon-graphic$ #!optional (nd (current-node))) - ;; REFENTRY admon-graphic - ;; PURP Admonition graphic file - ;; DESC - ;; Given an admonition node, returns the name of the graphic that should - ;; be used for that admonition. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (cond ((equal? (gi nd) (normalize "tip")) - (string-append %admon-graphics-path% - (string-append "tip" - admon-graphic-default-extension))) - ((equal? (gi nd) (normalize "note")) - (string-append %admon-graphics-path% - (string-append "note" - admon-graphic-default-extension))) - - ((equal? (gi nd) (normalize "important")) - (string-append %admon-graphics-path% - (string-append "important" - admon-graphic-default-extension))) - - ((equal? (gi nd) (normalize "caution")) - (string-append %admon-graphics-path% - (string-append "caution" - admon-graphic-default-extension))) - ((equal? (gi nd) (normalize "warning")) - (string-append %admon-graphics-path% - (string-append "warning" - admon-graphic-default-extension))) - (else (error (string-append (gi nd) " is not an admonition."))))) - -(define ($admon-graphic-width$ #!optional (nd (current-node))) - ;; REFENTRY admon-graphic-width - ;; PURP Admonition graphic file width - ;; DESC - ;; Given an admonition node, returns the width of the graphic that will - ;; be used for that admonition. - ;; - ;; All of the default graphics in the distribution are 0.3in wide. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.3in) - -;; REFERENCE Quadding - -(define %default-quadding% - ;; REFENTRY default-quadding - ;; PURP The default quadding - ;; DESC - ;; The default quadding ('start', 'center', 'justify', - ;; or 'end'). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'start) - -(define %division-title-quadding% - ;; REFENTRY division-title-quadding - ;; PURP Division title quadding - ;; DESC - ;; The quadding of division-level titles ('Set', 'Book', and 'Part'). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'center) - -(define %division-subtitle-quadding% - ;; REFENTRY division-subtitle-quadding - ;; PURP Division subtitle quadding - ;; DESC - ;; The quadding of division-level subtitles ('Set', 'Book', and 'Part'). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'center) - -(define %component-title-quadding% - ;; REFENTRY component-title-quadding - ;; PURP Component title quadding - ;; DESC - ;; The quadding of component-level titles ('Chapter', - ;; 'Appendix', 'Glossary', etc.). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'start) - -(define %component-subtitle-quadding% - ;; REFENTRY component-subtitle-quadding - ;; PURP Component subtitle quadding - ;; DESC - ;; The quadding of component-level subtitles ('Chapter', - ;; 'Appendix', 'Glossary', etc.). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'start) - -(define %article-title-quadding% - ;; REFENTRY article-title-quadding - ;; PURP Article title quadding - ;; DESC - ;; The quadding of article titles. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'center) - -(define %article-subtitle-quadding% - ;; REFENTRY article-subtitle-quadding - ;; PURP Article subtitle quadding - ;; DESC - ;; The quadding of article subtitles. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'center) - -(define %section-title-quadding% - ;; REFENTRY section-title-quadding - ;; PURP Section title quadding - ;; DESC - ;; The quadding of section-level titles. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'start) - -(define %section-subtitle-quadding% - ;; REFENTRY section-subtitle-quadding - ;; PURP Section subtitle quadding - ;; DESC - ;; The quadding of section-level subtitles. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 'start) - -;; REFERENCE Bibliographies - -(define biblio-citation-check - ;; REFENTRY biblio-citation-check - ;; PURP Check citations - ;; DESC - ;; If true, the content of CITATIONs will be checked against possible - ;; biblioentries. If the citation cannot be found, an error is issued - ;; and the citation is generated. If the citation is found, it is generated - ;; with a cross reference to the appropriate biblioentry. - ;; - ;; A citation matches if the content of the citation element matches the - ;; ID, XREFLABEL, or leading ABBREV of a biblioentry. - ;; - ;; This setting may have significant performance implications on large - ;; documents, hence it is false by default. - ;; - ;; (This option can conveniently be set with '-V biblio-citation-check' - ;; on the Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-filter-used - ;; REFENTRY filter-used - ;; PURP Suppress unreferenced bibliography entries - ;; DESC - ;; If true, bibliography entries which are not cited are suppressed. - ;; A biblioentry is cited if an XREF or LINK matches its ID, or if - ;; a CITE element matches its - ;; ID, XREFLABEL, or leading ABBREV. - ;; - ;; A BIBLIOGRAPHY with no entries will still be output (making a whole - ;; component conditional would be _A LOT_ of work and seems unnecessary), - ;; but BIBLIDIVs with no entries will be suppressed. - ;; - ;; This setting may have significant performance implications, - ;; hence it is false by default. - ;; - ;; (This option can conveniently be set with '-V biblio-filter-used' on the - ;; Jade command line). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-number - ;; REFENTRY biblio-number - ;; PURP Enumerate bibliography entries - ;; DESC - ;; If true, bibliography entries will be numbered. If you cross-reference - ;; bibliography entries, you should probably use biblio-number or - ;; consistently use XREFLABEL or ABBREV. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define biblio-xref-title - ;; REFENTRY biblio-xref-title - ;; PURP Use the titles of bibliography entries in XREFs - ;; DESC - ;; If true, cross references to bibliography entries will use the - ;; title of the entry as the cross reference text. Otherwise, either - ;; the number (see 'biblio-number') or XREFLABEL/ABBREV will be used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE OLinks - -(define %olink-outline-ext% - ;; REFENTRY olink-outline-ext - ;; PURP Extension for olink outline file - ;; DESC - ;; The extension used to find the outline information file. When searching - ;; for outline information about a document, the extension is discarded - ;; from the system ID of the file and '%olinke-outline-ext%' is appended. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".olink") - -;; REFERENCE Footnotes - -(define %footnote-ulinks% - ;; REFENTRY footnote-ulinks - ;; PURP Generate footnotes for ULinks? - ;; DESC - ;; If true, the URL of each ULink will appear as a footnote. - ;; Processing ULinks this way may be very, very slow. It requires - ;; walking over every descendant of every component in order to count - ;; both ulinks and footnotes. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define bop-footnotes - ;; REFENTRY bop-footnotes - ;; PURP Make "bottom-of-page" footnotes? - ;; DESC - ;; If true, footnotes will be done at the bottom of the page instead - ;; of collected together as notes at the end of the section. - ;; This variable is ignored if the print backend does not support - ;; bottom-of-the-page footnotes. At present, only the TeX backend - ;; supports them. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE Graphics - -(define %graphic-default-extension% - ;; REFENTRY graphic-default-extension - ;; PURP Default extension for graphic FILEREFs - ;; DESC - ;; The '%graphic-default-extension%' will be - ;; added to the end of all 'fileref' filenames on - ;; 'Graphic's if they do not end in one of the - ;; '%graphic-extensions%'. Set this to '#f' - ;; to turn off this feature. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %graphic-extensions% - ;; REFENTRY graphic-extensions - ;; PURP List of graphic filename extensions - ;; DESC - ;; The list of extensions which may appear on a 'fileref' - ;; on a 'Graphic' which are indicative of graphic formats. - ;; - ;; Filenames that end in one of these extensions will not have - ;; the '%graphic-default-extension%' added to them. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '("eps" "epsf" "gif" "tif" "tiff" "jpg" "jpeg" "png")) - -(define image-library - ;; REFENTRY image-library - ;; PURP Load image library database for additional info about images? - ;; DESC - ;; If true, an image library database is loaded and extra information - ;; about web graphics is retrieved from it. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define image-library-filename - ;; REFENTRY image-library-filename - ;; PURP Name of the image library database - ;; DESC - ;; If 'image-library' is true, then the database is loaded from - ;; 'image-library-filename'. It's a current limitation that only a - ;; single database can be loaded. - ;; - ;; The image library database is stored in a separate directory - ;; because it must be parsed with the XML declaration. The only - ;; practical way to accomplish this with Jade, if you are processing a - ;; document that uses another declaration, is by having a catalog - ;; file in the directory that contains the image library that - ;; specifies the SGMLDECL. (So if it was in the same directory - ;; as your document, your document would also be parsed with the - ;; XML declaration, which may not be correct.) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - "imagelib/imagelib.xml") - -;; REFERENCE Tables - -(define ($table-element-list$) - ;; REFENTRY table-element-list - ;; PURP List of table element names - ;; DESC - ;; The list of table elements in the DTD. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (list (normalize "table") (normalize "informaltable"))) - -(define %simplelist-column-width% - ;; REFENTRY simplelist-column-width - ;; PURP Width of columns in tabular simple lists - ;; DESC - ;; If set to '#f', the table will span the entire - ;; page width. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -;; REFERENCE VariableLists - -(define %default-variablelist-termlength% - ;; REFENTRY default-variablelist-termlength - ;; PURP Default term length on variablelists - ;; DESC - ;; When formatting a 'VariableList', this value is used as the - ;; default term length, if no 'TermLength' is specified. - ;; - ;; If all of the terms in a list shorter than the term length, - ;; the stylesheet may format them "side-by-side" in a table if - ;; 'may-format-variablelist-as-table' is '#t'. - ;; /DESC - ;; /REFENTRY - 20) - -(define %may-format-variablelist-as-table% - ;; REFENTRY may-format-variablelist-as-table - ;; PURP Format VariableLists as tables? - ;; DESC - ;; If '%may-format-variablelist-as-table%' is '#t', a - ;; 'VariableList' will be formatted as a table, if *all of* - ;; the terms are shorter than the specified 'TermLength'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %always-format-variablelist-as-table% - ;; REFENTRY always-format-variablelist-as-table - ;; PURP Always format VariableLists as tables? - ;; DESC - ;; When a 'VariableList' is formatted, if any of the - ;; terms in the list are too long, the whole list is formatted as a - ;; list. - ;; - ;; If '%always-format-variablelist-as-table%' is - ;; '#t', the 'VariableList' will be - ;; formatted as a table, even if some terms are too long. The terms that - ;; are too long will format span above their associated description. - ;; /DESC - ;; /REFENTRY - #f) - -;; REFERENCE Vertical Spacing - -(define %line-spacing-factor% - ;; REFENTRY line-spacing-factor - ;; PURP Factor used to calculate leading - ;; DESC - ;; The leading is calculated by multiplying the current font size by the - ;; '%line-spacing-factor%'. For example, if the font size is 10pt and - ;; the '%line-spacing-factor%' is 1.1, then the text will be - ;; printed "10-on-11". - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 1.3) - -(define %head-before-factor% - ;; REFENTRY head-before-factor - ;; PURP Factor used to calculate space above a title - ;; DESC - ;; The space before a title is calculated by multiplying the font size - ;; used in the title by the '%head-before-factor%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.75) - -(define %head-after-factor% - ;; REFENTRY head-after-factor - ;; PURP Factor used to calculate space below a title - ;; DESC - ;; The space after a title is calculated by multiplying the font size used - ;; in the title by the '%head-after-factor%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0.5) - -(define %body-start-indent% - ;; REFENTRY body-start-indent - ;; PURP Default indent of body text - ;; DESC - ;; The default indent of body text. Some elements may have more or less - ;; indentation. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 4pi) - -(define %para-sep% - ;; REFENTRY para-sep - ;; PURP Distance between paragraphs - ;; DESC - ;; The '%para-sep%' is the distance between the last line - ;; of one paragraph and the first line of the next. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (/ %bf-size% 2.0)) - -(define %block-sep% - ;; REFENTRY block-sep - ;; PURP Distance between block-elements - ;; DESC - ;; The '%block-sep%' is the vertical distance between - ;; block elements (figures, tables, etc.) - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - (* %para-sep% 2.0)) - -;; REFERENCE Indents - -(define %para-indent% - ;; REFENTRY para-indent - ;; PURP First line start-indent for paragraphs (other than the first) - ;; DESC - ;; The '%para-indent%' is the amount of extra indentation that the - ;; first line of a paragraph should receive. This parameter applies - ;; only to the second and subsequent paragraphs in a section. See - ;; '%para-indent-firstpara%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0pt) - -(define %para-indent-firstpara% - ;; REFENTRY para-indent-firstpara - ;; PURP First line start-indent for the first paragraph - ;; DESC - ;; The '%para-indent-firstpara%' is the amount of extra indentation - ;; that the first line of the first paragraph of a section should receive. - ;; This parameter is frequently '0pt' even when '%para-indent%' is - ;; not. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0pt) - -(define %block-start-indent% - ;; REFENTRY block-start-indent - ;; PURP Extra start-indent for block-elements - ;; DESC - ;; Block elements (tables, figures, verbatim environments, etc.) will - ;; be indented by the specified amount. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 0pt) - -;; REFERENCE Object Rules - -(define %example-rules% - ;; REFENTRY example-rules - ;; PURP Specify rules before and after an Example - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Example'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %figure-rules% - ;; REFENTRY figure-rules - ;; PURP Specify rules before and after an Figure - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Figure'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %table-rules% - ;; REFENTRY table-rules - ;; PURP Specify rules before and after an Table - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Table'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %equation-rules% - ;; REFENTRY equation-rules - ;; PURP Specify rules before and after an Equation - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'Equation'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalexample-rules% - ;; REFENTRY informalexample-rules - ;; PURP Specify rules before and after an InformalExample - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalExample'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalfigure-rules% - ;; REFENTRY informalfigure-rules - ;; PURP Specify rules before and after an InformalFigure - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalFigure'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informaltable-rules% - ;; REFENTRY informaltable-rules - ;; PURP Specify rules before and after an InformalTable - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalTable'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %informalequation-rules% - ;; REFENTRY informalequation-rules - ;; PURP Specify rules before and after an InformalEquation - ;; DESC - ;; If '#t', rules will be drawn before and after each - ;; 'InformalEquation'. - ;; /DESC - ;; /REFENTRY - #f) - -(define %object-rule-thickness% - ;; REFENTRY object-rule-thickness - ;; PURP Width of rules around formal and informal objects - ;; DESC - ;; Specifies the width of the rules drawn before and after an object. - ;; This only applies if the appropriate - ;; '%*-rules%' variable - ;; is '#t'. - ;; /DESC - ;; /REFENTRY - 2pt) - -;; REFERENCE Miscellaneous - -(define ($object-titles-after$) - ;; REFENTRY object-titles-after - ;; PURP List of objects who's titles go after the object - ;; DESC - ;; Titles of formal objects (Figures, Equations, Tables, etc.) - ;; in this list will be placed below the object instead of above it. - ;; - ;; This is a list of element names, for example: - ;; '(list (normalize "figure") (normalize "table"))'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '()) - -(define formal-object-float - ;; REFENTRY formal-object-float - ;; PURP Do formal objects float? - ;; DESC - ;; If '#t', formal objects will float if floating is supported by the - ;; backend. At present, only the TeX backend supports floats. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %default-title-end-punct% - ;; REFENTRY default-title-end-punct - ;; PURP Default punctuation at the end of a run-in head. - ;; DESC - ;; The punctuation used at the end of a run-in head (e.g. on FORMALPARA). - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".") - -(define %content-title-end-punct% - ;; REFENTRY content-title-end-punct - ;; PURP List of punctuation chars at the end of a run-in head - ;; DESC - ;; If a run-in head ends in any of these characters, the - ;; '%default-title-end-punct%' is not used. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - '(#\. #\! #\? #\:)) - -(define %honorific-punctuation% - ;; REFENTRY honorific-punctuation - ;; PURP Punctuation to follow honorifics in names - ;; DESC - ;; The honorific punctuation is placed after the honorific in - ;; a name. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - ".") - -(define %default-simplesect-level% - ;; REFENTRY default-simplesect-level - ;; PURP Default section level for 'SimpleSect's. - ;; DESC - ;; If 'SimpleSect's appear inside other section-level - ;; elements, they are rendered at the appropriate section level, but if they - ;; appear in a component-level element, they are rendered at - ;; '%default-simplesect-level%'. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 4) - -(define %show-ulinks% - ;; REFENTRY show-ulinks - ;; PURP Display URLs after ULinks? - ;; DESC - ;; If true, the URL of each ULink will appear in parenthesis after - ;; the text of the link. If the text of the link and the URL are - ;; identical, the parenthetical URL is suppressed. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define %show-comments% - ;; REFENTRY show-comments - ;; PURP Display Comment elements? - ;; DESC - ;; If true, comments will be displayed, otherwise they are suppressed. - ;; Comments here refers to the 'Comment' element, which will be renamed - ;; 'Remark' in DocBook V4.0, not SGML/XML comments which are unavailable. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #t) - -(define firstterm-bold - ;; REFENTRY firstterm-bold - ;; PURP Make FIRSTTERM elements bold? - ;; DESC - ;; If '#t', FIRSTTERMs will be bold, to distinguish them from - ;; simple GLOSSTERMs. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - #f) - -(define %min-leading% - ;; REFENTRY min-leading - ;; PURP Minumum leading between lines - ;; DESC - ;; The '%min-leading%' parameter specifies the smallest amount of leading - ;; to allow between lines. The default value, '#f', has the side-effect - ;; that leading cannot change. This means that graphics that appear in - ;; a paragraph are truncated if they are taller than the current leading. - ;; By setting this parameter to some small value, we get stretchable - ;; space between lines. - ;; /DESC - ;; AUTHOR N/A - ;; /REFENTRY - 2pt) - -(define %hyphenation% - ;; REFENTRY hyphenation - ;; PURP Allow automatic hyphenation? - ;; DESC - ;; The '%hyphenation%' parameter indicates whether or - ;; not the backend should allow automatic hyphention of text, for example - ;; in paragraphs. The default value, '#f', indicates that - ;; it should not. - ;; /DESC - ;; /REFENTRY - #f) - -(declare-initial-value writing-mode %writing-mode%) - -(declare-initial-value input-whitespace-treatment 'collapse) - -(declare-initial-value left-margin %left-margin%) -(declare-initial-value right-margin %right-margin%) - -(declare-initial-value page-width %page-width%) -(declare-initial-value page-height %page-height%) - -(declare-initial-value min-leading %min-leading%) -(declare-initial-value top-margin %top-margin%) -(declare-initial-value bottom-margin %bottom-margin%) -(declare-initial-value header-margin %header-margin%) -(declare-initial-value footer-margin %footer-margin%) - - - - diff --git a/docs/dsssl/docbook/print/dbprint.dsl b/docs/dsssl/docbook/print/dbprint.dsl deleted file mode 100755 index 82188524..00000000 --- a/docs/dsssl/docbook/print/dbprint.dsl +++ /dev/null @@ -1,193 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define (HSIZE n) - (let ((m (if (< n 0) 0 n))) - (* %bf-size% - (expt %hsize-bump-factor% m)))) - -(define (print-backend) - (cond - (tex-backend 'tex) - (mif-backend 'mif) - (rtf-backend 'rtf) - (else default-backend))) - -;; ====================== COMMON STYLE TEMPLATES ======================= - -(define ($block-container$) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: %body-start-indent% - (process-children))) - -(define (is-first-para #!optional (para (current-node))) - ;; A paragraph is the first paragraph if it is preceded by a title - ;; (or bridgehead) and the only elements that intervene between the - ;; title and the paragraph are *info elements, indexterms, and beginpage. - ;; - (let loop ((nd (ipreced para))) - (if (node-list-empty? nd) - ;; We've run out of nodes. We still might be the first paragraph - ;; preceded by a title if the parent element has an implied - ;; title. - (if (equal? (element-title-string (parent para)) "") - #f ;; nope - #t) ;; yep - (if (or (equal? (gi nd) (normalize "title")) - (equal? (gi nd) (normalize "titleabbrev")) - (equal? (gi nd) (normalize "bridgehead"))) - #t - (if (or (not (equal? (node-property 'class-name nd) 'element)) - (member (gi nd) (info-element-list))) - (loop (ipreced nd)) - #f))))) - -(define (dsssl-language-code #!optional (node (current-node))) - (let* ((lang ($lang$)) - (langcode (if (> (string-index lang "_") 0) - (substring lang 0 (string-index lang "_")) - lang))) - (string->symbol (case-fold-up langcode)))) - -(define (dsssl-country-code #!optional (node (current-node))) - (let* ((lang ($lang$)) - (ctrycode (if (> (string-index lang "_") 0) - (substring lang - (+ (string-index lang "_") 1) - (string-length lang)) - #f))) - (if ctrycode - (string->symbol (case-fold-up ctrycode)) - #f))) - -(define ($paragraph$) - (if (or (equal? (print-backend) 'tex) - (equal? (print-backend) #f)) - ;; avoid using country: characteristic because of a JadeTeX bug... - (make paragraph - first-line-start-indent: (if (is-first-para) - %para-indent-firstpara% - %para-indent%) - space-before: %para-sep% - space-after: %para-sep% - quadding: %default-quadding% - hyphenate?: %hyphenation% - language: (dsssl-language-code) - (process-children)) - (make paragraph - first-line-start-indent: (if (is-first-para) - %para-indent-firstpara% - %para-indent%) - space-before: %para-sep% - space-after: %para-sep% - quadding: %default-quadding% - hyphenate?: %hyphenation% - language: (dsssl-language-code) - country: (dsssl-country-code) - (process-children)))) - -(define ($para-container$) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (if (member (current-node) (outer-parent-list)) - %body-start-indent% - (inherited-start-indent)) - (process-children-trim))) - -(define ($indent-para-container$) - (make paragraph - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) (* (ILSTEP) 2)) - quadding: %default-quadding% - (process-children-trim))) - -(define nop-style - ;; a nop for use: - (style - font-family-name: (inherited-font-family-name) - font-weight: (inherited-font-weight) - font-size: (inherited-font-size))) - -(define default-text-style - (style - font-size: %bf-size% - font-weight: 'medium - font-posture: 'upright - font-family-name: %body-font-family% - line-spacing: (* %bf-size% %line-spacing-factor%))) - -(define ($bold-seq$ #!optional (sosofo (process-children))) - (make sequence - font-weight: 'bold - sosofo)) - -(define ($italic-seq$ #!optional (sosofo (process-children))) - (make sequence - font-posture: 'italic - sosofo)) - -(define ($bold-italic-seq$ #!optional (sosofo (process-children))) - (make sequence - font-weight: 'bold - font-posture: 'italic - sosofo)) - -(define ($mono-seq$ #!optional (sosofo (process-children))) - (let ((%factor% (if %verbatim-size-factor% - %verbatim-size-factor% - 1.0))) - (make sequence - font-family-name: %mono-font-family% - font-size: (* (inherited-font-size) %factor%) - sosofo))) - -(define ($italic-mono-seq$ #!optional (sosofo (process-children))) - (make sequence - font-family-name: %mono-font-family% - font-posture: 'italic - sosofo)) - -(define ($bold-mono-seq$ #!optional (sosofo (process-children))) - (make sequence - font-family-name: %mono-font-family% - font-weight: 'bold - sosofo)) - -(define ($score-seq$ stype #!optional (sosofo (process-children))) - (make score - type: stype - sosofo)) - -(define ($charseq$ #!optional (sosofo (process-children))) - (make sequence - sosofo)) - -(define ($guilabel-seq$ #!optional (sosofo (process-children))) - (make sequence - font-family-name: %guilabel-font-family% - sosofo)) - -;; Stolen from a posting by James on dssslist -(define *small-caps* - (letrec ((signature (* #o375 256)) - (make-afii - (lambda (n) - (glyph-id (string-append "ISO/IEC 10036/RA//Glyphs::" - (number->string n))))) - (gen - (lambda (from count) - (if (= count 0) - '() - (cons (cons (make-afii from) - (make-afii (+ from signature))) - (gen (+ 1 from) - (- count 1))))))) - (glyph-subst-table (gen #o141 26)))) - diff --git a/docs/dsssl/docbook/print/dbprocdr.dsl b/docs/dsssl/docbook/print/dbprocdr.dsl deleted file mode 100755 index ae93396a..00000000 --- a/docs/dsssl/docbook/print/dbprocdr.dsl +++ /dev/null @@ -1,38 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================= PROCEDURES ============================= - -(define (PROCSTEP ilvl) - (if (> ilvl 1) 2.0em 1.8em)) - -(element procedure - (if (node-list-empty? (select-elements (children (current-node)) (normalize "title"))) - ($informal-object$) - ($formal-object$))) - -(element (procedure title) (empty-sosofo)) - -(element substeps - (make display-group - space-before: %para-sep% - space-after: %para-sep% - start-indent: (+ (inherited-start-indent) (PROCSTEP 2)))) - -(element step - (let ((stepcontent (children (current-node))) - (ilevel (length (hierarchical-number-recursive (normalize "step"))))) - (make sequence - start-indent: (+ (inherited-start-indent) (PROCSTEP ilevel)) - - (make paragraph - space-before: %para-sep% - first-line-start-indent: (- (PROCSTEP ilevel)) - (make line-field - field-width: (PROCSTEP ilevel) - (literal ($proc-step-number$ (current-node)))) - (process-node-list (children (node-list-first stepcontent)))) - (process-node-list (node-list-rest stepcontent))))) diff --git a/docs/dsssl/docbook/print/dbrfntry.dsl b/docs/dsssl/docbook/print/dbrfntry.dsl deleted file mode 100755 index c53aca07..00000000 --- a/docs/dsssl/docbook/print/dbrfntry.dsl +++ /dev/null @@ -1,215 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; =========================== REFERENCE PAGES ========================== - -;;(element reference ($component$)) - -(element reference - (let* ((refinfo (select-elements (children (current-node)) - (normalize "docinfo"))) - (refintro (select-elements (children (current-node)) - (normalize "partintro"))) - (nl (titlepage-info-elements - (current-node) - refinfo - (if %generate-partintro-on-titlepage% - refintro - (empty-node-list))))) - (make sequence - (if %generate-reference-titlepage% - (make sequence - (reference-titlepage nl 'recto) - (reference-titlepage nl 'verso)) - (empty-sosofo)) - - (if (not (generate-toc-in-front)) - (process-children) - (empty-sosofo)) - - (if (and %generate-reference-toc% - (not %generate-reference-toc-on-titlepage%)) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: #t - page-number-format: ($page-number-format$ (normalize "toc")) - use: default-text-style - left-header: ($left-header$ (normalize "toc")) - center-header: ($center-header$ (normalize "toc")) - right-header: ($right-header$ (normalize "toc")) - left-footer: ($left-footer$ (normalize "toc")) - center-footer: ($center-footer$ (normalize "toc")) - right-footer: ($right-footer$ (normalize "toc")) - input-whitespace-treatment: 'collapse - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - (if (and (not (node-list-empty? refintro)) - (not %generate-partintro-on-titlepage%)) - ($process-partintro$ refintro #t) - (empty-sosofo)) - - (if (generate-toc-in-front) - (if %refentry-new-page% - (process-children) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (process-children))) - (empty-sosofo))))) - -;; If each RefEntry begins on a new page, this title is going to wind -;; up on its own page, too, so make it a divtitlepage instead. Otherwise, -;; just let it be a component title. -(element (reference title) (empty-sosofo)) -;; (if %refentry-new-page% -;; ($divtitlepage$) -;; (empty-sosofo))) - -(element refentry - (make display-group - keep: %refentry-keep% - (if (or %refentry-new-page% - (node-list=? (current-node) (sgml-root-element))) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - ($refentry-title$) - (process-children)) - (make sequence - ($refentry-title$) - ($block-container$))) - (make-endnotes))) - -(define ($refentry-title$) - (let* ((refmeta (select-elements (children (current-node)) - (normalize "refmeta"))) - (refentrytitle (select-elements (children refmeta) - (normalize "refentrytitle"))) - (refnamediv (select-elements (children (current-node)) - (normalize "refnamediv"))) - (refdescriptor (select-elements (children refnamediv) - (normalize "refdescriptor"))) - (refname (select-elements (children refnamediv) - (normalize "refname"))) - (title (if (node-list-empty? refentrytitle) - (if (node-list-empty? refdescriptor) - (node-list-first refname) - refdescriptor) - refentrytitle)) - (slevel (SECTLEVEL)) ;; the true level in the section hierarchy - (hlevel (if (> slevel 2) 2 slevel)) ;; limit to sect2 equiv. - (hs (HSIZE (- 4 hlevel)))) - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: %body-start-indent% - first-line-start-indent: (- %body-start-indent%) - quadding: 'start - heading-level: (if %generate-heading-level% 2 0) - keep-with-next?: #t - (process-node-list (children title))))) -;; nwalsh, this is wrong, 29 July 1999 -; (if %refentry-function% -; (sosofo-append -; (literal "\no-break-space;") -; (process-first-descendant (normalize "manvolnum"))) -; (empty-sosofo))))) - -(element refmeta (empty-sosofo)) ;; handled by $refentry-title$ - -(element manvolnum - (if %refentry-xref-manvolnum% - (sosofo-append - (literal "(") - (process-children) - (literal ")")) - (empty-sosofo))) - -(element refmiscinfo (empty-sosofo)) - -(element refentrytitle ($charseq$)) - -(element refnamediv - (make paragraph - space-before: %para-sep% - start-indent: %body-start-indent% - quadding: 'start - (process-children))) - -(element refname - (make sequence - (if (and %refentry-generate-name% (first-sibling? (current-node))) - ($lowtitlewithsosofo$ 1 3 (literal (gentext-element-name - (current-node)))) - (empty-sosofo)) - (make sequence - font-weight: 'medium - font-family-name: %refentry-name-font-family% - (process-children) - (if (last-sibling? (current-node)) - (empty-sosofo) - (literal (gentext-intra-label-sep (gi (current-node)))))))) - -(element refpurpose - (make sequence - font-family-name: %body-font-family% - (make sequence - (literal " \em-dash ") - (process-children)) - (make paragraph-break))) - -(element refdescriptor (empty-sosofo)) - -(element refclass - (let ((role (attribute-string "role"))) - (make paragraph - space-before: %para-sep% - start-indent: %body-start-indent% - quadding: 'start - (make sequence - font-weight: 'bold - (literal - (if role - (string-append role ": ") - ""))) - (process-children-trim)))) - -(element refsynopsisdiv ($section$)) - -(element (refsynopsisdiv title) (empty-sosofo)) - -(element refsect1 ($section$)) -(element (refsect1 title) (empty-sosofo)) -(element refsect2 ($section$)) -(element (refsect2 title) (empty-sosofo)) -(element refsect3 ($section$)) -(element (refsect3 title) (empty-sosofo)) - - diff --git a/docs/dsssl/docbook/print/dbsect.dsl b/docs/dsssl/docbook/print/dbsect.dsl deleted file mode 100755 index 649c6ea2..00000000 --- a/docs/dsssl/docbook/print/dbsect.dsl +++ /dev/null @@ -1,205 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ============================== SECTIONS ============================== - -(define (SECTLEVEL #!optional (sect (current-node))) - (section-level-by-node #f sect)) - -;; BRIDGEHEAD isn't a proper section, but appears to be a section title -(element bridgehead - (let* ((renderas (attribute-string "renderas")) - ;; the apparent section level - (hlevel - ;; if not real section level, then get the apparent level - ;; from "renderas" - (if renderas - (section-level-by-gi #f (normalize renderas)) - ;; else use the real level - (SECTLEVEL))) - (hs (HSIZE (- 4 hlevel)))) - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: (if (< hlevel 3) - 0pt - %body-start-indent%) - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - (process-children)))) - -(define ($section$) - (if (node-list=? (current-node) (sgml-root-element)) - (make simple-page-sequence - page-n-columns: %page-n-columns% - page-number-restart?: (or %page-number-restart% - (book-start?) - (first-chapter?)) - page-number-format: ($page-number-format$) - use: default-text-style - left-header: ($left-header$) - center-header: ($center-header$) - right-header: ($right-header$) - left-footer: ($left-footer$) - center-footer: ($center-footer$) - right-footer: ($right-footer$) - start-indent: %body-start-indent% - input-whitespace-treatment: 'collapse - quadding: %default-quadding% - (make sequence - ($section-title$) - (process-children))) - (make display-group - space-before: %block-sep% - space-after: %block-sep% - start-indent: %body-start-indent% - (make sequence - ($section-title$) - (process-children))))) - -(define ($section-title$) - (let* ((sect (current-node)) - (info (info-element)) - (exp-children (if (node-list-empty? info) - (empty-node-list) - (expand-children (children info) - (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (parent-titles (select-elements (children sect) (normalize "title"))) - (info-titles (select-elements exp-children (normalize "title"))) - (titles (if (node-list-empty? parent-titles) - info-titles - parent-titles)) - (subtitles (select-elements exp-children (normalize "subtitle"))) - (renderas (inherited-attribute-string (normalize "renderas") sect)) - ;; the apparent section level - (hlevel - ;; if not real section level, then get the apparent level - ;; from "renderas" - (if renderas - (section-level-by-gi #f (normalize renderas)) - ;; else use the real level - (SECTLEVEL))) - (hs (HSIZE (- 4 hlevel)))) - (make sequence - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (if (node-list-empty? subtitles) - (* hs %head-after-factor%) - 0pt) - start-indent: (if (or (>= hlevel 3) - (member (gi) (list (normalize "refsynopsisdiv") - (normalize "refsect1") - (normalize "refsect2") - (normalize "refsect3")))) - %body-start-indent% - 0pt) - first-line-start-indent: 0pt - quadding: %section-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% hlevel 0) - ;; SimpleSects are never AUTO numbered...they aren't hierarchical - (if (string=? (element-label (current-node)) "") - (empty-sosofo) - (literal (element-label (current-node)) - (gentext-label-title-sep (gi sect)))) - (element-title-sosofo (current-node))) - (with-mode section-title-mode - (process-node-list subtitles)) - ($proc-section-info$ info)))) - -(mode section-title-mode - (element subtitle - (let* ((sect (parent (parent (current-node)))) ;; parent=>sect*info - (renderas (inherited-attribute-string "renderas" sect)) - ;; the apparent section level - (hlevel - ;; if not real section level, then get the apparent level - ;; from "renderas" - (if renderas - (section-level-by-gi #f (normalize renderas)) - ;; else use the real level - (SECTLEVEL))) - (hs (HSIZE (- 3 hlevel)))) ;; one smaller than the title... - (make paragraph - font-family-name: %title-font-family% - font-weight: (if (< hlevel 5) 'bold 'medium) - font-posture: (if (< hlevel 5) 'upright 'italic) - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: 0pt - space-after: (* hs %head-after-factor%) - start-indent: - (if (< hlevel 3) - 0pt - %body-start-indent%) - first-line-start-indent: 0pt - quadding: %section-subtitle-quadding% - keep-with-next?: #t - (process-children)))) -) - -(define ($proc-section-info$ info) - (cond ((equal? (gi) (normalize "sect1")) - ($sect1-info$ info)) - ((equal? (gi) (normalize "sect2")) - ($sect2-info$ info)) - ((equal? (gi) (normalize "sect3")) - ($sect3-info$ info)) - ((equal? (gi) (normalize "sect4")) - ($sect4-info$ info)) - ((equal? (gi) (normalize "sect5")) - ($sect5-info$ info)) - ((equal? (gi) (normalize "section")) - ($section-info$ info)) - ((equal? (gi) (normalize "refsect1")) - ($refsect1-info$ info)) - ((equal? (gi) (normalize "refsect2")) - ($refsect2-info$ info)) - ((equal? (gi) (normalize "refsect3")) - ($refsect3-info$ info)) - (else (empty-sosofo)))) - -(define ($sect1-info$ info) (empty-sosofo)) -(define ($sect2-info$ info) (empty-sosofo)) -(define ($sect3-info$ info) (empty-sosofo)) -(define ($sect4-info$ info) (empty-sosofo)) -(define ($sect5-info$ info) (empty-sosofo)) -(define ($section-info$ info) (empty-sosofo)) -(define ($refsect1-info$ info) (empty-sosofo)) -(define ($refsect2-info$ info) (empty-sosofo)) -(define ($refsect3-info$ info) (empty-sosofo)) - -(element sect1 ($section$)) -(element (sect1 title) (empty-sosofo)) - -(element sect2 ($section$)) -(element (sect2 title) (empty-sosofo)) - -(element sect3 ($section$)) -(element (sect3 title) (empty-sosofo)) - -(element sect4 ($section$)) -(element (sect4 title) (empty-sosofo)) - -(element sect5 ($section$)) -(element (sect5 title) (empty-sosofo)) - -(element simplesect ($section$)) -(element (simplesect title) (empty-sosofo)) - diff --git a/docs/dsssl/docbook/print/dbsynop.dsl b/docs/dsssl/docbook/print/dbsynop.dsl deleted file mode 100755 index 0c34c91b..00000000 --- a/docs/dsssl/docbook/print/dbsynop.dsl +++ /dev/null @@ -1,224 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -;; ========================= SYNTAX DEFINITIONS ========================= - -(element synopsis ($verbatim-display$ %indent-synopsis-lines% - %number-synopsis-lines%)) - -(element cmdsynopsis - ;; Can't be an $informal-object$ because it needs the paragraph - ;; wrapper around process-children - (make display-group - start-indent: (+ %block-start-indent% (inherited-start-indent)) - space-before: %block-sep% - space-after: %block-sep% - (make paragraph - (process-children)))) - -;; Support for ARG provided by James Bostock, augmented by norm -;; - -(element (cmdsynopsis command) - (make sequence - (if (first-sibling? (current-node)) - (empty-sosofo) - (make paragraph-break)) - (next-match) - (literal " "))) - -(element group - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep"))) - (sepchar (if (inherited-attribute-string (normalize "sepchar")) - (inherited-attribute-string (normalize "sepchar")) - " "))) - (make sequence - (if (equal? (absolute-child-number (current-node)) 1) - (empty-sosofo) - (literal sepchar)) - (cond - ((equal? choice (normalize "plain")) (literal %arg-choice-plain-open-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-open-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-open-str%)) - (else (literal %arg-choice-def-open-str%))) - (process-children) - (cond - ((equal? rep (normalize "repeat")) (literal %arg-rep-repeat-str%)) - ((equal? rep (normalize "norepeat")) (literal %arg-rep-norepeat-str%)) - (else (literal %arg-rep-def-str%))) - (cond - ((equal? choice (normalize "plain")) (literal %arg-choice-plain-close-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-close-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-close-str%)) - (else (literal %arg-choice-def-close-str%)))))) - -(element arg - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep"))) - (sepchar (if (inherited-attribute-string (normalize "sepchar")) - (inherited-attribute-string (normalize "sepchar")) - " "))) - (make sequence - (if (equal? (absolute-child-number (current-node)) 1) - (empty-sosofo) - (literal sepchar)) - (cond - ((equal? choice (normalize "plain")) (literal %arg-choice-plain-open-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-open-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-open-str%)) - (else (literal %arg-choice-def-open-str%))) - (process-children) - (cond - ((equal? rep (normalize "repeat")) (literal %arg-rep-repeat-str%)) - ((equal? rep (normalize "norepeat")) (literal %arg-rep-norepeat-str%)) - (else (literal %arg-rep-def-str%))) - (cond - ((equal? choice (normalize "plain")) (literal %arg-choice-plain-close-str%)) - ((equal? choice (normalize "req")) (literal %arg-choice-req-close-str%)) - ((equal? choice (normalize "opt")) (literal %arg-choice-opt-close-str%)) - (else (literal %arg-choice-def-close-str%)))))) - -(element (group arg) - (let ((choice (attribute-string (normalize "choice"))) - (rep (attribute-string (normalize "rep")))) - (make sequence - (if (not (first-sibling? (current-node))) - (literal %arg-or-sep%) - (empty-sosofo)) - (process-children)))) - -(element sbr - (make paragraph-break)) - -;; ---------------------------------------------------------------------- -;; Syntax highlighting... - -(define (funcsynopsis-function #!optional (sosofo (process-children))) - (make sequence - font-weight: 'bold - sosofo)) - -(define (paramdef-parameter #!optional (sosofo (process-children))) - (make sequence - font-posture: 'italic - sosofo)) - -;; ---------------------------------------------------------------------- - -(element synopfragmentref - (let* ((target (element-with-id (attribute-string (normalize "linkend")))) - (snum (child-number target))) - (make sequence - font-posture: 'italic - (make link - destination: (node-list-address target) - (make sequence - font-posture: 'upright - ($callout-bug$ snum))) - (process-children)))) - -(element synopfragment - (let ((snum (child-number (current-node)))) - (make paragraph - ($callout-bug$ snum) - (literal " ") - (process-children)))) - -(element funcsynopsis - (let* ((width-in-chars (if (attribute-string "width") - (string->number (attribute-string "width")) - %verbatim-default-width%)) - (fsize (lambda () (if (or (attribute-string (normalize "width")) - (not %verbatim-size-factor%)) - (/ (/ (- %text-width% (inherited-start-indent)) - width-in-chars) - 0.7) - (* (inherited-font-size) - %verbatim-size-factor%))))) - ;; This used to be a sequence, but that caused the start-indent to be - ;; wrong when it was the first element of a RefSect. Making it a - ;; paragraph makes the bug go away and doesn't seem to have any ill - ;; effects. Need to investigate further... - (make paragraph - font-family-name: %mono-font-family% - font-size: (fsize) - font-weight: 'medium - font-posture: 'upright - line-spacing: (* (fsize) %line-spacing-factor%) - ($informal-object$)))) - -(element funcsynopsisinfo - ;; Fake out the font-size so that when verbatim-display calculates the - ;; verbatim-size-factor it doesn't get squared. This will fail if the - ;; "correct" size isn't bfsize, but what can I do? - (make sequence - font-size: %bf-size% - ($verbatim-display$ %indent-funcsynopsisinfo-lines% - %number-funcsynopsisinfo-lines%))) - -(element funcprototype - (let ((paramdefs (select-elements (children (current-node)) - (normalize "paramdef")))) - (make sequence - (make paragraph - font-family-name: %mono-font-family% - (process-children)) - (if (equal? %funcsynopsis-style% 'kr) - (with-mode kr-funcsynopsis-mode - (process-node-list paramdefs)) - (empty-sosofo))))) - -(element funcdef (process-children)) -(element (funcdef function) - (if %funcsynopsis-decoration% - (funcsynopsis-function) - (process-children))) - -(element void - (if (equal? %funcsynopsis-style% 'ansi) - (literal "(void);") - (literal "();"))) - -(element varargs (literal "(...);")) - -(element paramdef - (let ((param (select-elements (children (current-node)) (normalize "parameter")))) - (make sequence - (if (equal? (child-number (current-node)) 1) - (literal "(") - (empty-sosofo)) - (if (equal? %funcsynopsis-style% 'ansi) - (process-children) - (process-node-list param)) - (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) - (literal ", ") - (literal ");"))))) - -(element (paramdef parameter) - (make sequence - (if %funcsynopsis-decoration% - (paramdef-parameter) - (process-children)) - (if (equal? (gi (ifollow (current-node))) (normalize "parameter")) - (literal ", ") - (empty-sosofo)))) - -(element funcparams - (make sequence - (literal "(") - (process-children) - (literal ")"))) - -(mode kr-funcsynopsis-mode - (element paramdef - (make sequence - (make paragraph - font-family-name: %mono-font-family% - start-indent: (+ (inherited-start-indent) %kr-funcsynopsis-indent%) - (make sequence - (process-children) - (literal ";")))))) diff --git a/docs/dsssl/docbook/print/dbtable.dsl b/docs/dsssl/docbook/print/dbtable.dsl deleted file mode 100755 index 337af874..00000000 --- a/docs/dsssl/docbook/print/dbtable.dsl +++ /dev/null @@ -1,594 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; -;; Table support completely reimplemented by norm 15/16 Nov 1997 -;; -;; ====================================================================== -;; -;; This code is intended to implement the SGML Open Exchange Table Model -;; (http://www.sgmlopen.org/sgml/docs/techpubs.htm) as far as is possible -;; in RTF. There are a few areas where this code probably fails to -;; perfectly implement the model: -;; -;; - Mixed column width units (4*+2pi) are not supported. -;; - The behavior that results from mixing relative units with -;; absolute units has not been carefully considered. -;; - TFOOT appears at the bottom of the table, but is not repeated -;; across the bottom of pages (RTF limitation). -;; - ENTRYTBL is not supported. -;; - Rotated tables (e.g. landscape tables in a portrait document) -;; cannot be supported in a simple-page-sequence -;; -;; ====================================================================== -;; -;; My goal in reimplementing the table model was to provide correct -;; formatting in tables that use MOREROWS. The difficulty is that -;; correct formatting depends on calculating the column into which -;; an ENTRY will fall. -;; -;; This is a non-trivial problem because MOREROWS can hang down from -;; preceding rows and ENTRYs may specify starting columns (skipping -;; preceding ones). -;; -;; A simple, elegant recursive algorithm exists. Unfortunately it -;; requires calculating the column number of every preceding cell -;; in the entire table. Without memoization, performance is unacceptable -;; even in relatively small tables (5x5, for example). -;; -;; In order to avoid recursion, the algorithm used below is one that -;; works forward from the beginning of the table and "passes along" -;; the relevant information (column number of the preceding cell and -;; overhang from the MOREROWS in preceding rows). -;; -;; Unfortunately, this means that element construction rules -;; can't always be used to fire the appropriate rule. Instead, -;; each TGROUP has to process each THEAD/BODY/FOOT explicitly. -;; And each of those must process each ROW explicitly, then each -;; ENTRY/ENTRYTBL explicitly. -;; -;; ---------------------------------------------------------------------- -;; -;; I attempted to simplify this code by relying on inheritence from -;; table-column flow objects, but that wasn't entirely successful. -;; Horizontally spanning cells didn't seem to inherit from table-column -;; flow objects that didn't specify equal spanning. There seemed to -;; be other problems as well, but they could have been caused by coding -;; errors on my part. -;; -;; Anyway, by the time I understood how I could use table-column -;; flow objects for inheritence, I'd already implemented all the -;; machinery below to "work it out by hand". -;; -;; ====================================================================== -;; NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE -;; ---------------------------------------------------------------------- -;; A fairly large chunk of this code is in dbcommon.dsl! -;; ====================================================================== -;; - -;; Default value for FRAME= on tables -(define ($cals-frame-default$) (normalize "all")) - -;; Default for COLSEP/ROWSEP if unspecified. -(define ($cals-rowsep-default$ #!optional (node (current-node))) - ;; Return "0" for #f, "1" for #t - ;; Default is to have rules if FRAME=ALL, otherwise not. Except - ;; that a separator between HEAD and BODY is controlled by - ;; %table-head-body-border%. - ;; - (let* ((table (ancestor-member node ($table-element-list$))) - (frame (if (attribute-string (normalize "frame") table) - (attribute-string (normalize "frame") table) - ($cals-frame-default$))) - (row (ancestor-member node (list (normalize "row"))))) - (if (equal? frame (normalize "all")) - #t - (if (and (equal? (gi (parent row)) (normalize "thead")) - (last-sibling? row)) - %table-head-body-border% - #f)))) - -(define ($cals-colsep-default$ #!optional (node (current-node))) - ;; Default is to have rules if FRAME=ALL, otherwise not. - ;; - (let* ((table (ancestor-member node ($table-element-list$))) - (frame (if (attribute-string (normalize "frame") table) - (attribute-string (normalize "frame") table) - ($cals-frame-default$)))) - (equal? frame (normalize "all")))) - -;; Default for VALIGN if unspecified -(define ($cals-valign-default$) (normalize "top")) - -;; Margins around cell contents -(define %cals-cell-before-row-margin% 3pt) -(define %cals-cell-after-row-margin% 3pt) - -;; seems to be a bug in JadeTeX -- we get a wierd indent on table -;; cells for the first line only. This is a workaround. -;; Adam Di Carlo, adam@onshore.com -(define %cals-cell-before-column-margin% - (cond ((equal? (print-backend) 'tex) - 0pt) - (else - 3pt))) - -(define %cals-cell-after-column-margin% 3pt) - -;; Inheritable start and end indent for cell contents -(define %cals-cell-content-start-indent% 2pt) -(define %cals-cell-content-end-indent% 2pt) - -;; How to indent pgwide tables? (Non-pgwide tables get inherited-start-indent -(define %cals-pgwide-start-indent% %body-start-indent%) - -;; What alignment should tables have on the page -(define %cals-display-align% 'start) - -;; ---------------------------------------------------------------------- -;; Table rule widths - -(define %table-before-row-border% #t) -(define %table-after-row-border% #t) -(define %table-before-column-border% #t) -(define %table-after-column-border% #t) -(define %table-head-body-border% #t) -(define %table-cell-after-column-border% #t) -(define %table-cell-after-row-border% #t) - -;;(define tbl-color-space -;; (color-space "ISO/IEC 10179:1996//Color-Space Family::Device RGB")) -;; -;;(define tbl-red (color tbl-color-space 1 0 0)) -;;(define tbl-green (color tbl-color-space 0 1 0)) -;;(define tbl-blue (color tbl-color-space 0 0 1)) - -(define calc-table-before-row-border - (if (boolean? %table-before-row-border%) - %table-before-row-border% - ;; Avoid problems with the DSSSL compiler when - ;; %table-before-row-border% is boolean. - (let ((border-width %table-before-row-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-after-row-border - (if (boolean? %table-after-row-border%) - %table-after-row-border% - (let ((border-width %table-after-row-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-before-column-border - (if (boolean? %table-before-column-border%) - %table-before-column-border% - (let ((border-width %table-before-column-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-after-column-border - (if (boolean? %table-after-column-border%) - %table-after-column-border% - (let ((border-width %table-after-column-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-head-body-border - (if (boolean? %table-head-body-border%) - %table-head-body-border% - (let ((border-width %table-head-body-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-cell-after-column-border - (if (boolean? %table-cell-after-column-border%) - %table-cell-after-column-border% - (let ((border-width %table-cell-after-column-border%)) - (make table-border - line-thickness: border-width)))) - -(define calc-table-cell-after-row-border - (if (boolean? %table-cell-after-row-border%) - %table-cell-after-row-border% - (let ((border-width %table-cell-after-row-border%)) - (make table-border - line-thickness: border-width)))) - -;; ---------------------------------------------------------------------- -;; Convert colwidth units into table-unit measurements - -(define (colwidth-unit lenstr) - (if (string? lenstr) - (let ((number (length-string-number-part lenstr)) - (units (length-string-unit-part lenstr))) - (if (string=? units "*") - (if (string=? number "") - (table-unit 1) - (table-unit (string->number number))) - (if (string=? units "") - ;; no units, default to points - (* (string->number number) 1pt) - (let* ((unum (string->number number)) - (uname (case-fold-down units))) - (case uname - (("mm") (* unum 1mm)) - (("cm") (* unum 1cm)) - (("in") (* unum 1in)) - (("pi") (* unum 1pi)) - (("pt") (* unum 1pt)) - (("px") (* unum 1px)) - ;; unrecognized units; use points - (else (* unum 1pt))))))) - ;; lenstr is not a string...probably #f - (table-unit 1))) - - -(define (cell-align cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (tgroup (find-tgroup entry)) - (spanname (attribute-string (normalize "spanname") entry)) - (calsalign (if (attribute-string (normalize "align") entry) - (attribute-string (normalize "align") entry) - (if (and spanname - (spanspec-align (find-spanspec spanname))) - (spanspec-align (find-spanspec spanname)) - (if (colspec-align (find-colspec-by-number colnum)) - (colspec-align (find-colspec-by-number colnum)) - (if (tgroup-align tgroup) - (tgroup-align tgroup) - (normalize "left"))))))) - (cond - ((equal? calsalign (normalize "left")) 'start) - ((equal? calsalign (normalize "center")) 'center) - ((equal? calsalign (normalize "right")) 'end) - (else 'start)))) - -(define (cell-valign cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (row (ancestor (normalize "row") entry)) - (tbody (ancestor-member cell (list (normalize "tbody") - (normalize "thead") - (normalize "tfoot")))) - (tgroup (ancestor (normalize "tgroup") entry)) - (calsvalign (if (attribute-string (normalize "valign") entry) - (attribute-string (normalize "valign") entry) - (if (attribute-string (normalize "valign") row) - (attribute-string (normalize "valign") row) - (if (attribute-string (normalize "valign") tbody) - (attribute-string (normalize "valign") tbody) - ($cals-valign-default$)))))) - (cond - ((equal? calsvalign (normalize "top")) 'start) - ((equal? calsvalign (normalize "middle")) 'center) - ((equal? calsvalign (normalize "bottom")) 'end) - (else 'start)))) - -;; ====================================================================== -;; Element rules - -(element tgroup - (let ((frame-attribute (if (inherited-attribute-string (normalize "frame")) - (inherited-attribute-string (normalize "frame")) - ($cals-frame-default$)))) - (make table - ;; These values are used for the outer edges (well, the top, bottom - ;; and left edges for sure; I think the right edge actually comes - ;; from the cells in the last column - before-row-border: (if (cond - ((equal? frame-attribute (normalize "all")) #t) - ((equal? frame-attribute (normalize "sides")) #f) - ((equal? frame-attribute (normalize "top")) #t) - ((equal? frame-attribute (normalize "bottom")) #f) - ((equal? frame-attribute (normalize "topbot")) #t) - ((equal? frame-attribute (normalize "none")) #f) - (else #f)) - calc-table-before-row-border - #f) - after-row-border: (if (cond - ((equal? frame-attribute (normalize "all")) #t) - ((equal? frame-attribute (normalize "sides")) #f) - ((equal? frame-attribute (normalize "top")) #f) - ((equal? frame-attribute (normalize "bottom")) #t) - ((equal? frame-attribute (normalize "topbot")) #t) - ((equal? frame-attribute (normalize "none")) #f) - (else #f)) - calc-table-after-row-border - #f) - before-column-border: (if (cond - ((equal? frame-attribute (normalize "all")) #t) - ((equal? frame-attribute (normalize "sides")) #t) - ((equal? frame-attribute (normalize "top")) #f) - ((equal? frame-attribute (normalize "bottom")) #f) - ((equal? frame-attribute (normalize "topbot")) #f) - ((equal? frame-attribute (normalize "none")) #f) - (else #f)) - calc-table-before-column-border - #f) - after-column-border: (if (cond - ((equal? frame-attribute (normalize "all")) #t) - ((equal? frame-attribute (normalize "sides")) #t) - ((equal? frame-attribute (normalize "top")) #f) - ((equal? frame-attribute (normalize "bottom")) #f) - ((equal? frame-attribute (normalize "topbot")) #f) - ((equal? frame-attribute (normalize "none")) #f) - (else #f)) - calc-table-after-column-border - #f) - display-alignment: %cals-display-align% - (make table-part - content-map: '((thead header) - (tbody #f) - (tfoot footer)) - ($process-colspecs$ (current-node)) - (process-children) - (make-table-endnotes))))) - -(element colspec - ;; now handled by $process-colspecs$ at the top of each tgroup... - (empty-sosofo)) - -(element spanspec - (empty-sosofo)) - -(element thead - ($process-table-body$ (current-node))) - -(element tfoot - ($process-table-body$ (current-node))) - -(element tbody - ($process-table-body$ (current-node))) - -(element row - (empty-sosofo)) ;; this should never happen, they're processed explicitly - -(element entry - (empty-sosofo)) ;; this should never happen, they're processed explicitly - -;; ====================================================================== -;; Functions that handle processing of table bodies, rows, and cells - -(define ($process-colspecs$ tgroup) - (let* ((cols (string->number (attribute-string (normalize "cols"))))) - (let loop ((colnum 1)) - (if (> colnum cols) - (empty-sosofo) - (make sequence - (let ((colspec (find-colspec-by-number colnum))) - (if (node-list-empty? colspec) - (make table-column - column-number: colnum - width: (colwidth-unit "1*")) - ($process-colspec$ colspec colnum))) - (loop (+ colnum 1))))))) - -(define ($process-colspec$ colspec colnum) - (let* ((colwidth (if (attribute-string (normalize "colwidth") colspec) - (attribute-string (normalize "colwidth") colspec) - "1*"))) - (make table-column - column-number: colnum - width: (colwidth-unit colwidth)))) - -(define ($process-table-body$ body) - (let* ((tgroup (ancestor (normalize "tgroup") body)) - (cols (string->number (attribute-string (normalize "cols") tgroup))) - (blabel (cond - ((equal? (gi body) (normalize "thead")) 'thead) - ((equal? (gi body) (normalize "tbody")) 'tbody) - ((equal? (gi body) (normalize "tfoot")) 'tfoot)))) - (make sequence - label: blabel - (let loop ((rows (select-elements (children body) (normalize "row"))) - (overhang (constant-list 0 cols))) - (if (node-list-empty? rows) - (empty-sosofo) - (make sequence - ($process-row$ (node-list-first rows) overhang) - (loop (node-list-rest rows) - (update-overhang (node-list-first rows) overhang)))))))) - -(define ($process-row$ row overhang) - (let* ((tgroup (ancestor (normalize "tgroup") row)) - (maxcol (string->number (attribute-string - (normalize "cols") tgroup))) - (lastentry (node-list-last (node-list-filter-out-pis - (children row)))) - (table (parent tgroup))) - ;; there's no point calculating the row or colsep here, each cell - ;; specifies it which overrides anything we might say here... - (make table-row - (let loop ((cells (node-list-filter-out-pis (children row))) - (prevcell (empty-node-list))) - (if (node-list-empty? cells) - (empty-sosofo) - (make sequence - ($process-cell$ (node-list-first cells) prevcell row overhang) - (loop (node-list-rest cells) (node-list-first cells))))) - - ;; add any necessary empty cells to the end of the row - (let loop ((colnum (+ (cell-column-number lastentry overhang) - (hspan lastentry)))) - (if (> colnum maxcol) - (empty-sosofo) - (make sequence - ($process-empty-cell$ colnum row) - (loop (+ colnum 1)))))))) - -(define ($process-cell$ entry preventry row overhang) - (let* ((colnum (cell-column-number entry overhang)) - (lastcellcolumn (if (node-list-empty? preventry) - 0 - (- (+ (cell-column-number preventry overhang) - (hspan preventry)) - 1))) - (lastcolnum (if (> lastcellcolumn 0) - (overhang-skip overhang lastcellcolumn) - 0)) - (font-name (if (have-ancestor? (normalize "thead") entry) - %title-font-family% - %body-font-family%)) - (weight (if (have-ancestor? (normalize "thead") entry) - 'bold - 'medium)) - (align (cell-align entry colnum))) - - (make sequence - ;; This is a little bit complicated. We want to output empty cells - ;; to skip over missing data. We start count at the column number - ;; arrived at by adding 1 to the column number of the previous entry - ;; and skipping over any MOREROWS overhanging entrys. Then for each - ;; iteration, we add 1 and skip over any overhanging entrys. - (let loop ((count (overhang-skip overhang (+ lastcolnum 1)))) - (if (>= count colnum) - (empty-sosofo) - (make sequence - ($process-empty-cell$ count row) - (loop (overhang-skip overhang (+ count 1)))))) - - ;; Now we've output empty cells for any missing entries, so we - ;; are ready to output the cell for this entry... - (make table-cell - column-number: colnum - n-columns-spanned: (hspan entry) - n-rows-spanned: (vspan entry) - - cell-row-alignment: (cell-valign entry colnum) - - cell-after-column-border: (if (cell-colsep entry colnum) - calc-table-cell-after-column-border - #f) - - cell-after-row-border: (if (cell-rowsep entry colnum) - (if (last-sibling? (parent entry)) - calc-table-head-body-border - calc-table-cell-after-row-border) - #f) - - cell-before-row-margin: %cals-cell-before-row-margin% - cell-after-row-margin: %cals-cell-after-row-margin% - cell-before-column-margin: %cals-cell-before-column-margin% - cell-after-column-margin: %cals-cell-after-column-margin% - - ;; If there is some additional indentation (because we're in a list, - ;; for example) make sure that gets passed along, but don't add - ;; the normal body-start-indent. - start-indent: (+ (- (inherited-start-indent) %body-start-indent%) - %cals-cell-content-start-indent%) - end-indent: %cals-cell-content-end-indent% - (if (equal? (gi entry) (normalize "entrytbl")) - (make paragraph - (literal "ENTRYTBL not supported.")) - (make paragraph - font-family-name: font-name - font-weight: weight - quadding: align - (process-node-list (children entry)))))))) - -(define (empty-cell-colsep colnum row) - (let* ((tgroup (ancestor (normalize "tgroup") row)) - (table (parent tgroup)) - (calscolsep - (if (tgroup-colsep tgroup) - (tgroup-colsep tgroup) - (if (attribute-string (normalize "colsep") table) - (attribute-string (normalize "colsep") table) - (if ($cals-colsep-default$ row) - "1" - "0"))))) - (> (string->number calscolsep) 0))) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(define (cell-colsep cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") (normalize "entrytbl")))) - (spanname (attribute-string (normalize "spanname") entry)) - (tgroup (find-tgroup entry)) - (table (parent tgroup)) - (calscolsep - (if (attribute-string (normalize "colsep") entry) - (attribute-string (normalize "colsep") entry) - (if (and spanname - (spanspec-colsep (find-spanspec spanname))) - (spanspec-colsep (find-spanspec spanname)) - (if (colspec-colsep (find-colspec-by-number colnum)) - (colspec-colsep (find-colspec-by-number colnum)) - (if (tgroup-colsep tgroup) - (tgroup-colsep tgroup) - (if (attribute-string (normalize "colsep") table) - (attribute-string (normalize "colsep") table) - (if ($cals-colsep-default$ cell) - "1" - "0")))))))) - (> (string->number calscolsep) 0))) - -(define (cell-rowsep cell colnum) - (let* ((entry (ancestor-member cell (list (normalize "entry") - (normalize "entrytbl")))) - (spanname (attribute-string (normalize "spanname") entry)) - (row (ancestor (normalize "row") entry)) - (tgroup (find-tgroup entry)) - (table (parent tgroup)) - (calsrowsep - (if (attribute-string (normalize "rowsep") entry) - (attribute-string (normalize "rowsep") entry) - (if (and spanname (spanspec-rowsep (find-spanspec spanname))) - (spanspec-rowsep (find-spanspec spanname)) - (if (colspec-rowsep (find-colspec-by-number colnum)) - (colspec-rowsep (find-colspec-by-number colnum)) - (if (attribute-string (normalize "rowsep") row) - (attribute-string (normalize "rowsep") row) - (if (tgroup-rowsep tgroup) - (tgroup-rowsep tgroup) - (if (attribute-string (normalize "rowsep") table) - (attribute-string (normalize "rowsep") table) - (if ($cals-rowsep-default$ cell) - "1" - "0"))))))))) - (> (string->number calsrowsep) 0))) - -(define (empty-cell-rowsep colnum row) - (let* ((tgroup (ancestor (normalize "tgroup") row)) - (table (parent tgroup)) - (calsrowsep - (if (attribute-string (normalize "rowsep") row) - (attribute-string (normalize "rowsep") row) - (if (tgroup-rowsep tgroup) - (tgroup-rowsep tgroup) - (if (attribute-string (normalize "rowsep") table) - (attribute-string (normalize "rowsep") table) - (if ($cals-rowsep-default$ row) - "1" - "0")))))) - (> (string->number calsrowsep) 0))) - -;; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(define ($process-empty-cell$ colnum row) - (make table-cell - column-number: colnum - n-columns-spanned: 1 - n-rows-spanned: 1 - cell-after-column-border: (if (empty-cell-colsep colnum row) - calc-table-cell-after-column-border - #f) - - cell-after-row-border: (if (empty-cell-rowsep colnum row) - (if (last-sibling? row) - calc-table-head-body-border - calc-table-cell-after-row-border) - #f) - - cell-before-row-margin: %cals-cell-before-row-margin% - cell-after-row-margin: %cals-cell-after-row-margin% - cell-before-column-margin: %cals-cell-before-column-margin% - cell-after-column-margin: %cals-cell-after-column-margin% - start-indent: %cals-cell-content-start-indent% - end-indent: %cals-cell-content-end-indent% - (empty-sosofo))) - -;; EOF diff --git a/docs/dsssl/docbook/print/dbtitle.dsl b/docs/dsssl/docbook/print/dbtitle.dsl deleted file mode 100755 index bec2b350..00000000 --- a/docs/dsssl/docbook/print/dbtitle.dsl +++ /dev/null @@ -1,52 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define title-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - quadding: 'start)) - -;; So we can pass different sosofo's to this routine and get identical -;; treatment (see REFNAME in dbrfntry.dsl) -;; -(define ($lowtitlewithsosofo$ tlevel hlevel sosofo) - (let ((hs (HSIZE (- 3 tlevel)))) - (make paragraph - font-family-name: %title-font-family% - font-weight: 'bold - font-size: hs - line-spacing: (* hs %line-spacing-factor%) - space-before: (* hs %head-before-factor%) - space-after: (* hs %head-after-factor%) - start-indent: %body-start-indent% - quadding: 'start - keep-with-next?: #t - heading-level: (if %generate-heading-level% hlevel 0) - sosofo))) - -(define ($lowtitle$ tlevel hlevel) - ($lowtitlewithsosofo$ tlevel hlevel (process-children))) - -(define ($runinhead$) - (let* ((title (data (current-node))) - (titlelen (string-length title)) - (lastchar (string-ref title (- titlelen 1))) - (punct (if (member lastchar %content-title-end-punct%) - "" - %default-title-end-punct%))) - (make sequence - font-weight: 'bold - (process-children) - (literal punct " ")))) - -(element title ($lowtitle$ 2 4)) ;; the default TITLE format -(element titleabbrev (empty-sosofo)) -(element subtitle (empty-sosofo)) - -(mode title-mode - (element title - (process-children))) diff --git a/docs/dsssl/docbook/print/dbttlpg.dsl b/docs/dsssl/docbook/print/dbttlpg.dsl deleted file mode 100755 index 35e0236c..00000000 --- a/docs/dsssl/docbook/print/dbttlpg.dsl +++ /dev/null @@ -1,6582 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -(define (have-sibling? sibling-gi #!optional (node (current-node))) - (let loop ((nl (children (parent node)))) - (if (node-list-empty? nl) - #f - (if (equal? (gi (node-list-first nl)) sibling-gi) - #t - (loop (node-list-rest nl)))))) - -(define (titlepage-content? elements gis) - (let giloop ((gilist gis)) - (if (null? gilist) - #f - (if (not (node-list-empty? (node-list-filter-by-gi - elements - (list (car gilist))))) - #t - (giloop (cdr gilist)))))) - -(define (titlepage-gi-list-by-elements elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in elements. - (let loop ((gilist elements) (rlist (empty-node-list))) - (if (null? gilist) - rlist - (loop (cdr gilist) - (node-list rlist (node-list-filter-by-gi - nodelist (list (car gilist)))))))) - -(define (titlepage-gi-list-by-nodelist elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in nodelist. - (let loop ((nl nodelist) (rlist (empty-node-list))) - (if (node-list-empty? nl) - rlist - (if (member (gi (node-list-first nl)) elements) - (loop (node-list-rest nl) - (node-list rlist (node-list-first nl))) - (loop (node-list-rest nl) rlist))))) - -(define (titlepage-nodelist elements nodelist) - ;; We expand BOOKBIBLIO, BIBLIOMISC, and BIBLIOSET in the element - ;; list because that level of wrapper usually isn't significant. - (let ((exp-nodelist (expand-children nodelist (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (if %titlepage-in-info-order% - (titlepage-gi-list-by-nodelist elements exp-nodelist) - (titlepage-gi-list-by-elements elements exp-nodelist)))) - -(mode titlepage-address-mode - (default (process-children))) - -;; == Title pages for SETs ============================================== - -(define (set-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (set-titlepage-verso-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "edition") - (normalize "pubdate") - (normalize "copyright") - (normalize "legalnotice") - (normalize "revhistory"))) - -(define (set-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)))) - -(define (set-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)) - elements))) -;; (make simple-page-sequence -;; page-n-columns: %titlepage-n-columns% -;; input-whitespace-treatment: 'collapse -;; use: default-text-style - (make sequence - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (set-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (set-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (set-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (set-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (set-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (set-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (set-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (set-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (set-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (set-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (set-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (set-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (set-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (set-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (set-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (set-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (set-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (set-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (set-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (set-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (set-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (set-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (set-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (set-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (set-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (set-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (set-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (set-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (set-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (set-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (set-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (set-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (set-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (set-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (set-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (set-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (set-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (set-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (set-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (set-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (set-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (set-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (set-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (set-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (set-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (set-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (set-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (set-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (set-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (set-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (set-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (set-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (set-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (set-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (set-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (set-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (set-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (set-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (set-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (set-titlepage-volumenum (node-list-first nl) side)) - (else - (set-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl)))))))) - -(define (set-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (set-titlepage-default node side) - (let ((foo (debug (string-append "No set-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (set-titlepage-element node side) - (if (equal? side 'recto) - (with-mode set-titlepage-recto-mode - (process-node-list node)) - (with-mode set-titlepage-verso-mode - (process-node-list node)))) - -(define (set-titlepage-abbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-abstract node side) - (set-titlepage-element node side)) -(define (set-titlepage-address node side) - (set-titlepage-element node side)) -(define (set-titlepage-affiliation node side) - (set-titlepage-element node side)) -(define (set-titlepage-artpagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-author node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorblurb node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorinitials node side) - (set-titlepage-element node side)) -(define (set-titlepage-bibliomisc node side) - (set-titlepage-element node side)) -(define (set-titlepage-biblioset node side) - (set-titlepage node side)) -(define (set-titlepage-bookbiblio node side) - (set-titlepage node side)) -(define (set-titlepage-citetitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-collab node side) - (set-titlepage-element node side)) -(define (set-titlepage-confgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractnum node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractsponsor node side) - (set-titlepage-element node side)) -(define (set-titlepage-contrib node side) - (set-titlepage-element node side)) -(define (set-titlepage-copyright node side) - (set-titlepage-element node side)) - -(define (set-titlepage-corpauthor node side) - (if (equal? side 'recto) - (set-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode set-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (set-titlepage-corpname node side) - (set-titlepage-element node side)) -(define (set-titlepage-date node side) - (set-titlepage-element node side)) -(define (set-titlepage-edition node side) - (set-titlepage-element node side)) -(define (set-titlepage-editor node side) - (set-titlepage-element node side)) -(define (set-titlepage-firstname node side) - (set-titlepage-element node side)) -(define (set-titlepage-graphic node side) - (set-titlepage-element node side)) -(define (set-titlepage-honorific node side) - (set-titlepage-element node side)) -(define (set-titlepage-indexterm node side) - (set-titlepage-element node side)) -(define (set-titlepage-invpartnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-isbn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issuenum node side) - (set-titlepage-element node side)) -(define (set-titlepage-itermset node side) - (set-titlepage-element node side)) -(define (set-titlepage-keywordset node side) - (set-titlepage-element node side)) -(define (set-titlepage-legalnotice node side) - (set-titlepage-element node side)) -(define (set-titlepage-lineage node side) - (set-titlepage-element node side)) -(define (set-titlepage-mediaobject node side) - (set-titlepage-element node side)) -(define (set-titlepage-modespec node side) - (set-titlepage-element node side)) -(define (set-titlepage-orgname node side) - (set-titlepage-element node side)) -(define (set-titlepage-othercredit node side) - (set-titlepage-element node side)) -(define (set-titlepage-othername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-printhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-productname node side) - (set-titlepage-element node side)) -(define (set-titlepage-productnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubdate node side) - (set-titlepage-element node side)) -(define (set-titlepage-publisher node side) - (set-titlepage-element node side)) -(define (set-titlepage-publishername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubsnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-releaseinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-revhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesvolnums node side) - (set-titlepage-element node side)) -(define (set-titlepage-subjectset node side) - (set-titlepage-element node side)) -(define (set-titlepage-subtitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-surname node side) - (set-titlepage-element node side)) -(define (set-titlepage-title node side) - (set-titlepage-element node side)) -(define (set-titlepage-titleabbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-volumenum node side) - (set-titlepage-element node side)) - -(define set-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define set-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode set-titlepage-recto-mode - (element abbrev - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: set-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: set-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: set-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: set-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (with-mode title-mode - (process-children-trim)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode set-titlepage-verso-mode - (element abbrev - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: set-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: set-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: set-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: set-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: set-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: set-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: set-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - -) - -;; == Title pages for BOOKs ============================================= - -(define (book-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (book-titlepage-verso-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "edition") - (normalize "pubdate") - (normalize "copyright") - (normalize "abstract") - (normalize "legalnotice") - (normalize "revhistory"))) - -(define (book-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)))) - -(define (book-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)) - elements))) -;; (make simple-page-sequence -;; page-n-columns: %titlepage-n-columns% -;; input-whitespace-treatment: 'collapse -;; use: default-text-style - (make sequence - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (book-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (book-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (book-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (book-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (book-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (book-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (book-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (book-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (book-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (book-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (book-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (book-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (book-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (book-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (book-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (book-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (book-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (book-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (book-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (book-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (book-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (book-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (book-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (book-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (book-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (book-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (book-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (book-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (book-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (book-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (book-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (book-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (book-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (book-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (book-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (book-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (book-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (book-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (book-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (book-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (book-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (book-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (book-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (book-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (book-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (book-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (book-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (book-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (book-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (book-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (book-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (book-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (book-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (book-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (book-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (book-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (book-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (book-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (book-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (book-titlepage-volumenum (node-list-first nl) side)) - (else - (book-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl)))))))) - -(define (book-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (book-titlepage-default node side) - (let ((foo (debug (string-append "No book-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (book-titlepage-element node side) - (if (equal? side 'recto) - (with-mode book-titlepage-recto-mode - (process-node-list node)) - (with-mode book-titlepage-verso-mode - (process-node-list node)))) - -(define (book-titlepage-abbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-abstract node side) - (book-titlepage-element node side)) -(define (book-titlepage-address node side) - (book-titlepage-element node side)) -(define (book-titlepage-affiliation node side) - (book-titlepage-element node side)) -(define (book-titlepage-artpagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-author node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorblurb node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorinitials node side) - (book-titlepage-element node side)) -(define (book-titlepage-bibliomisc node side) - (book-titlepage-element node side)) -(define (book-titlepage-biblioset node side) - (book-titlepage node side)) -(define (book-titlepage-bookbiblio node side) - (book-titlepage node side)) -(define (book-titlepage-citetitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-collab node side) - (book-titlepage-element node side)) -(define (book-titlepage-confgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractnum node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractsponsor node side) - (book-titlepage-element node side)) -(define (book-titlepage-contrib node side) - (book-titlepage-element node side)) -(define (book-titlepage-copyright node side) - (book-titlepage-element node side)) - -(define (book-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (book-titlepage-corpname node side) - (book-titlepage-element node side)) -(define (book-titlepage-date node side) - (book-titlepage-element node side)) -(define (book-titlepage-edition node side) - (book-titlepage-element node side)) -(define (book-titlepage-editor node side) - (book-titlepage-element node side)) -(define (book-titlepage-firstname node side) - (book-titlepage-element node side)) -(define (book-titlepage-graphic node side) - (book-titlepage-element node side)) -(define (book-titlepage-honorific node side) - (book-titlepage-element node side)) -(define (book-titlepage-indexterm node side) - (book-titlepage-element node side)) -(define (book-titlepage-invpartnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-isbn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issuenum node side) - (book-titlepage-element node side)) -(define (book-titlepage-itermset node side) - (book-titlepage-element node side)) -(define (book-titlepage-keywordset node side) - (book-titlepage-element node side)) -(define (book-titlepage-legalnotice node side) - (book-titlepage-element node side)) -(define (book-titlepage-lineage node side) - (book-titlepage-element node side)) -(define (book-titlepage-mediaobject node side) - (book-titlepage-element node side)) -(define (book-titlepage-modespec node side) - (book-titlepage-element node side)) -(define (book-titlepage-orgname node side) - (book-titlepage-element node side)) -(define (book-titlepage-othercredit node side) - (book-titlepage-element node side)) -(define (book-titlepage-othername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-printhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-productname node side) - (book-titlepage-element node side)) -(define (book-titlepage-productnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubdate node side) - (book-titlepage-element node side)) -(define (book-titlepage-publisher node side) - (book-titlepage-element node side)) -(define (book-titlepage-publishername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubsnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-releaseinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-revhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesvolnums node side) - (book-titlepage-element node side)) -(define (book-titlepage-subjectset node side) - (book-titlepage-element node side)) -(define (book-titlepage-subtitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-surname node side) - (book-titlepage-element node side)) -(define (book-titlepage-title node side) - (book-titlepage-element node side)) -(define (book-titlepage-titleabbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-volumenum node side) - (book-titlepage-element node side)) - -(define book-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define book-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode book-titlepage-recto-mode - (element abbrev - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: book-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: book-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: book-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: book-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (with-mode title-mode - (process-children-trim)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode book-titlepage-verso-mode - (element abbrev - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: book-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element authorgroup - (let* ((editors (select-elements (children (current-node)) (normalize "editor")))) - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (if (node-list-empty? editors) - (literal (gentext-by)) - (literal (gentext-edited-by))) - (literal "\no-break-space;") - (process-children-trim))))) - - (element authorinitials - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: book-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: book-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #f (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-list-string)))))) - - (element firstname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: book-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: book-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: book-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: book-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: book-titlepage-verso-style - (process-children))) -) - -;; == Title pages for PARTs ============================================= - -(define (part-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle"))) - -(define (part-titlepage-verso-elements) - '()) - -(define (part-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)))) - -(define (part-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements (list (normalize "partintro")))))) - (if (part-titlepage-content? elements side) -;; (make simple-page-sequence -;; page-n-columns: %titlepage-n-columns% -;; input-whitespace-treatment: 'collapse -;; use: default-text-style - (make sequence - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (part-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (part-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (part-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (part-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (part-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (part-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (part-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (part-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (part-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (part-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (part-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (part-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (part-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (part-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (part-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (part-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (part-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (part-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (part-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (part-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (part-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (part-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (part-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (part-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (part-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (part-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (part-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (part-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (part-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (part-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (part-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (part-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (part-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (part-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (part-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (part-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (part-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (part-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (part-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (part-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (part-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (part-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (part-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (part-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (part-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (part-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (part-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (part-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (part-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (part-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (part-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (part-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (part-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (part-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (part-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (part-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (part-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (part-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (part-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (part-titlepage-volumenum (node-list-first nl) side)) - (else - (part-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-part-toc% - %generate-part-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro #f) - (empty-sosofo))) - (empty-sosofo)))) - -(define (part-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (part-titlepage-default node side) - (let ((foo (debug (string-append "No part-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (part-titlepage-element node side) - (if (equal? side 'recto) - (with-mode part-titlepage-recto-mode - (process-node-list node)) - (with-mode part-titlepage-verso-mode - (process-node-list node)))) - -(define (part-titlepage-abbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-abstract node side) - (part-titlepage-element node side)) -(define (part-titlepage-address node side) - (part-titlepage-element node side)) -(define (part-titlepage-affiliation node side) - (part-titlepage-element node side)) -(define (part-titlepage-artpagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-author node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorblurb node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorinitials node side) - (part-titlepage-element node side)) -(define (part-titlepage-bibliomisc node side) - (part-titlepage-element node side)) -(define (part-titlepage-biblioset node side) - (part-titlepage node side)) -(define (part-titlepage-bookbiblio node side) - (part-titlepage node side)) -(define (part-titlepage-citetitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-collab node side) - (part-titlepage-element node side)) -(define (part-titlepage-confgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractnum node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractsponsor node side) - (part-titlepage-element node side)) -(define (part-titlepage-contrib node side) - (part-titlepage-element node side)) -(define (part-titlepage-copyright node side) - (part-titlepage-element node side)) - -(define (part-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (part-titlepage-corpname node side) - (part-titlepage-element node side)) -(define (part-titlepage-date node side) - (part-titlepage-element node side)) -(define (part-titlepage-edition node side) - (part-titlepage-element node side)) -(define (part-titlepage-editor node side) - (part-titlepage-element node side)) -(define (part-titlepage-firstname node side) - (part-titlepage-element node side)) -(define (part-titlepage-graphic node side) - (part-titlepage-element node side)) -(define (part-titlepage-honorific node side) - (part-titlepage-element node side)) -(define (part-titlepage-indexterm node side) - (part-titlepage-element node side)) -(define (part-titlepage-invpartnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-isbn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issuenum node side) - (part-titlepage-element node side)) -(define (part-titlepage-itermset node side) - (part-titlepage-element node side)) -(define (part-titlepage-keywordset node side) - (part-titlepage-element node side)) -(define (part-titlepage-legalnotice node side) - (part-titlepage-element node side)) -(define (part-titlepage-lineage node side) - (part-titlepage-element node side)) -(define (part-titlepage-mediaobject node side) - (part-titlepage-element node side)) -(define (part-titlepage-modespec node side) - (part-titlepage-element node side)) -(define (part-titlepage-orgname node side) - (part-titlepage-element node side)) -(define (part-titlepage-othercredit node side) - (part-titlepage-element node side)) -(define (part-titlepage-othername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-printhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-productname node side) - (part-titlepage-element node side)) -(define (part-titlepage-productnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubdate node side) - (part-titlepage-element node side)) -(define (part-titlepage-publisher node side) - (part-titlepage-element node side)) -(define (part-titlepage-publishername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubsnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-releaseinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-revhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesvolnums node side) - (part-titlepage-element node side)) -(define (part-titlepage-subjectset node side) - (part-titlepage-element node side)) -(define (part-titlepage-subtitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-surname node side) - (part-titlepage-element node side)) -(define (part-titlepage-title node side) - (part-titlepage-element node side)) -(define (part-titlepage-titleabbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-volumenum node side) - (part-titlepage-element node side)) - -(define part-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define part-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode part-titlepage-recto-mode - (element abbrev - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: part-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: part-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: part-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: part-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (let ((division (ancestor-member (current-node) (division-element-list)))) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (if (string=? (element-label division) "") - (empty-sosofo) - (literal (element-label division) - (gentext-label-title-sep (gi division)))) - (with-mode title-mode - (process-children))))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode part-titlepage-verso-mode - (element abbrev - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: part-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: part-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: part-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: part-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: part-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: part-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: part-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element title - (let ((division (ancestor-member (current-node) (division-element-list)))) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (if (string=? (element-label division) "") - (empty-sosofo) - (literal (element-label division) - (gentext-label-title-sep (gi division)))) - (with-mode title-mode - (process-children))))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: part-titlepage-verso-style - (process-children))) -) - -;; == Title pages for ARTICLEs ========================================== -;; -;; Note: Article title pages are a little different in that they do not -;; create their own simple-page-sequence. -;; - -(define (article-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "abstract"))) - -(define (article-titlepage-verso-elements) - '()) - -(define (article-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)))) - -(define (article-titlepage elements #!optional (side 'recto)) - (let* ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)) - elements))) - (if (article-titlepage-content? elements side) - (make sequence - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (article-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (article-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (article-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (article-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (article-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (article-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (article-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (article-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (article-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (article-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (article-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (article-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (article-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (article-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (article-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (article-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (article-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (article-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (article-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (article-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (article-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (article-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (article-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (article-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (article-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (article-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (article-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (article-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (article-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (article-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (article-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (article-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (article-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (article-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (article-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (article-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (article-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (article-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (article-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (article-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (article-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (article-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (article-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (article-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (article-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (article-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (article-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (article-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (article-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (article-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (article-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (article-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (article-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (article-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (article-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (article-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (article-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (article-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (article-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (article-titlepage-volumenum (node-list-first nl) side)) - (else - (article-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-article-toc% - %generate-article-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo))) - (empty-sosofo)))) - -(define (article-titlepage-before node side) - (empty-sosofo)) - -(define (article-titlepage-default node side) - (let ((foo (debug (string-append "No article-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (article-titlepage-element node side) - (if (equal? side 'recto) - (with-mode article-titlepage-recto-mode - (process-node-list node)) - (with-mode article-titlepage-verso-mode - (process-node-list node)))) - -(define (article-titlepage-abbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-abstract node side) - (article-titlepage-element node side)) -(define (article-titlepage-address node side) - (article-titlepage-element node side)) -(define (article-titlepage-affiliation node side) - (article-titlepage-element node side)) -(define (article-titlepage-artpagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-author node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorblurb node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorinitials node side) - (article-titlepage-element node side)) -(define (article-titlepage-bibliomisc node side) - (article-titlepage-element node side)) -(define (article-titlepage-biblioset node side) - (article-titlepage node side)) -(define (article-titlepage-bookbiblio node side) - (article-titlepage node side)) -(define (article-titlepage-citetitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-collab node side) - (article-titlepage-element node side)) -(define (article-titlepage-confgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractnum node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractsponsor node side) - (article-titlepage-element node side)) -(define (article-titlepage-contrib node side) - (article-titlepage-element node side)) -(define (article-titlepage-copyright node side) - (article-titlepage-element node side)) - -(define (article-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (article-titlepage-corpname node side) - (article-titlepage-element node side)) -(define (article-titlepage-date node side) - (article-titlepage-element node side)) -(define (article-titlepage-edition node side) - (article-titlepage-element node side)) -(define (article-titlepage-editor node side) - (article-titlepage-element node side)) -(define (article-titlepage-firstname node side) - (article-titlepage-element node side)) -(define (article-titlepage-graphic node side) - (article-titlepage-element node side)) -(define (article-titlepage-honorific node side) - (article-titlepage-element node side)) -(define (article-titlepage-indexterm node side) - (article-titlepage-element node side)) -(define (article-titlepage-invpartnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-isbn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issuenum node side) - (article-titlepage-element node side)) -(define (article-titlepage-itermset node side) - (article-titlepage-element node side)) -(define (article-titlepage-keywordset node side) - (article-titlepage-element node side)) -(define (article-titlepage-legalnotice node side) - (article-titlepage-element node side)) -(define (article-titlepage-lineage node side) - (article-titlepage-element node side)) -(define (article-titlepage-mediaobject node side) - (article-titlepage-element node side)) -(define (article-titlepage-modespec node side) - (article-titlepage-element node side)) -(define (article-titlepage-orgname node side) - (article-titlepage-element node side)) -(define (article-titlepage-othercredit node side) - (article-titlepage-element node side)) -(define (article-titlepage-othername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-printhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-productname node side) - (article-titlepage-element node side)) -(define (article-titlepage-productnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubdate node side) - (article-titlepage-element node side)) -(define (article-titlepage-publisher node side) - (article-titlepage-element node side)) -(define (article-titlepage-publishername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubsnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-releaseinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-revhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesvolnums node side) - (article-titlepage-element node side)) -(define (article-titlepage-subjectset node side) - (article-titlepage-element node side)) -(define (article-titlepage-subtitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-surname node side) - (article-titlepage-element node side)) -(define (article-titlepage-title node side) - (article-titlepage-element node side)) -(define (article-titlepage-titleabbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-volumenum node side) - (article-titlepage-element node side)) - -(define article-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define article-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode article-titlepage-recto-mode - (element abbrev - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: article-titlepage-verso-style ;; EVEN THOUGH IT'S RECTO! - quadding: 'start - start-indent: (+ (inherited-start-indent) (/ %body-width% 24)) - end-indent: (+ (inherited-end-indent) (/ %body-width% 24)) - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: article-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: article-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: article-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element date - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element keyword - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: article-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: article-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: article-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %article-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element title - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (with-mode title-mode - (process-children-trim)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) -) - -(mode article-titlepage-verso-mode - (element abbrev - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: article-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: article-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: article-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: article-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: article-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: article-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: article-titlepage-verso-style - font-family-name: %title-font-family% - font-weight: 'bold - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (node-list-empty? revnumber) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (node-list-empty? revdate) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (node-list-empty? revauthor) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor))))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - -) - -;; == Title pages for REFERENCEs ======================================== - -(define (reference-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (reference-titlepage-verso-elements) - '()) - -(define (reference-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)))) - -(define (reference-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements (list (normalize "partintro")))))) - (if (reference-titlepage-content? elements side) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (reference-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (reference-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (reference-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (reference-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (reference-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (reference-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (reference-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (reference-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (reference-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (reference-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (reference-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (reference-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (reference-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (reference-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (reference-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (reference-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (reference-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (reference-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (reference-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (reference-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (reference-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (reference-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (reference-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (reference-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (reference-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (reference-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (reference-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (reference-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (reference-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (reference-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (reference-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (reference-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (reference-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (reference-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (reference-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (reference-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (reference-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (reference-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (reference-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (reference-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (reference-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (reference-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (reference-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (reference-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (reference-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (reference-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (reference-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (reference-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (reference-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (reference-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (reference-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (reference-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (reference-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (reference-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (reference-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (reference-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (reference-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (reference-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (reference-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (reference-titlepage-volumenum (node-list-first nl) side)) - (else - (reference-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-reference-toc% - %generate-reference-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro #f) - (empty-sosofo))) - - (empty-sosofo)))) - -(define (reference-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (reference-titlepage-default node side) - (let ((foo (debug (string-append "No reference-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (reference-titlepage-element node side) - (if (equal? side 'recto) - (with-mode reference-titlepage-recto-mode - (process-node-list node)) - (with-mode reference-titlepage-verso-mode - (process-node-list node)))) - -(define (reference-titlepage-abbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-abstract node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-address node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-affiliation node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-artpagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-author node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorblurb node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorinitials node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-bibliomisc node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-biblioset node side) - (reference-titlepage node side)) -(define (reference-titlepage-bookbiblio node side) - (reference-titlepage node side)) -(define (reference-titlepage-citetitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-collab node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-confgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractnum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractsponsor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contrib node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-copyright node side) - (reference-titlepage-element node side)) - -(define (reference-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (reference-titlepage-corpname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-date node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-edition node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-editor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-firstname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-graphic node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-honorific node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-indexterm node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-invpartnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-isbn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issuenum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-itermset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-keywordset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-legalnotice node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-lineage node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-mediaobject node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-modespec node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-orgname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othercredit node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-printhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubdate node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publisher node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publishername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubsnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-releaseinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-revhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesvolnums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subjectset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subtitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-surname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-title node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-titleabbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-volumenum node side) - (reference-titlepage-element node side)) - -(define reference-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define reference-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode reference-titlepage-recto-mode - (element abbrev - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: reference-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: reference-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: reference-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: reference-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (let ((ref (ancestor-member (current-node) - (list (normalize "reference"))))) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (literal (element-label ref) - (gentext-label-title-sep (gi ref))) - (with-mode title-mode - (process-children))))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode reference-titlepage-verso-mode - (element abbrev - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: reference-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: reference-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal " ")))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: reference-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: reference-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: reference-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: reference-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: reference-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element title - (let ((ref (ancestor-member (current-node) - (list (normalize "reference"))))) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (element-label ref) - (gentext-label-title-sep (gi ref))) - (with-mode title-mode - (process-children))))) - - (element formalpara ($para-container$)) - (element (formalpara title) ($runinhead$)) - (element (formalpara para) (make sequence (process-children))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - -) diff --git a/docs/dsssl/docbook/print/dbttlpg.dsl.orig b/docs/dsssl/docbook/print/dbttlpg.dsl.orig deleted file mode 100755 index 10de0b1f..00000000 --- a/docs/dsssl/docbook/print/dbttlpg.dsl.orig +++ /dev/null @@ -1,6539 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://nwalsh.com/docbook/dsssl/ -;; - -(define (have-sibling? sibling-gi #!optional (node (current-node))) - (let loop ((nl (children (parent node)))) - (if (node-list-empty? nl) - #f - (if (equal? (gi (node-list-first nl)) sibling-gi) - #t - (loop (node-list-rest nl)))))) - -(define (titlepage-content? elements gis) - (let giloop ((gilist gis)) - (if (null? gilist) - #f - (if (not (node-list-empty? (node-list-filter-by-gi - elements - (list (car gilist))))) - #t - (giloop (cdr gilist)))))) - -(define (titlepage-gi-list-by-elements elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in elements. - (let loop ((gilist elements) (rlist (empty-node-list))) - (if (null? gilist) - rlist - (loop (cdr gilist) - (node-list rlist (node-list-filter-by-gi - nodelist (list (car gilist)))))))) - -(define (titlepage-gi-list-by-nodelist elements nodelist) - ;; Elements is a list of GIs. Nodelist is a list of nodes. - ;; This function returns all of the nodes in nodelist that - ;; are in elements in the order they occur in nodelist. - (let loop ((nl nodelist) (rlist (empty-node-list))) - (if (node-list-empty? nl) - rlist - (if (member (gi (node-list-first nl)) elements) - (loop (node-list-rest nl) - (node-list rlist (node-list-first nl))) - (loop (node-list-rest nl) rlist))))) - -(define (titlepage-nodelist elements nodelist) - ;; We expand BOOKBIBLIO, BIBLIOMISC, and BIBLIOSET in the element - ;; list because that level of wrapper usually isn't significant. - (let ((exp-nodelist (expand-children nodelist (list (normalize "bookbiblio") - (normalize "bibliomisc") - (normalize "biblioset"))))) - (if %titlepage-in-info-order% - (titlepage-gi-list-by-nodelist elements exp-nodelist) - (titlepage-gi-list-by-elements elements exp-nodelist)))) - -(mode titlepage-address-mode - (default (process-children))) - -;; == Title pages for SETs ============================================== - -(define (set-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (set-titlepage-verso-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "edition") - (normalize "pubdate") - (normalize "copyright") - (normalize "legalnotice") - (normalize "revhistory"))) - -(define (set-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)))) - -(define (set-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (set-titlepage-recto-elements) - (set-titlepage-verso-elements)) - elements))) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (set-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (set-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (set-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (set-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (set-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (set-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (set-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (set-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (set-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (set-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (set-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (set-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (set-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (set-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (set-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (set-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (set-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (set-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (set-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (set-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (set-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (set-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (set-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (set-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (set-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (set-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (set-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (set-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (set-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (set-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (set-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (set-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (set-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (set-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (set-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (set-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (set-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (set-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (set-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (set-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (set-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (set-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (set-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (set-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (set-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (set-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (set-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (set-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (set-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (set-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (set-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (set-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (set-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (set-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (set-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (set-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (set-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (set-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (set-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (set-titlepage-volumenum (node-list-first nl) side)) - (else - (set-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl)))))))) - -(define (set-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (set-titlepage-default node side) - (let ((foo (debug (string-append "No set-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (set-titlepage-element node side) - (if (equal? side 'recto) - (with-mode set-titlepage-recto-mode - (process-node-list node)) - (with-mode set-titlepage-verso-mode - (process-node-list node)))) - -(define (set-titlepage-abbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-abstract node side) - (set-titlepage-element node side)) -(define (set-titlepage-address node side) - (set-titlepage-element node side)) -(define (set-titlepage-affiliation node side) - (set-titlepage-element node side)) -(define (set-titlepage-artpagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-author node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorblurb node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-authorinitials node side) - (set-titlepage-element node side)) -(define (set-titlepage-bibliomisc node side) - (set-titlepage-element node side)) -(define (set-titlepage-biblioset node side) - (set-titlepage node side)) -(define (set-titlepage-bookbiblio node side) - (set-titlepage node side)) -(define (set-titlepage-citetitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-collab node side) - (set-titlepage-element node side)) -(define (set-titlepage-confgroup node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractnum node side) - (set-titlepage-element node side)) -(define (set-titlepage-contractsponsor node side) - (set-titlepage-element node side)) -(define (set-titlepage-contrib node side) - (set-titlepage-element node side)) -(define (set-titlepage-copyright node side) - (set-titlepage-element node side)) - -(define (set-titlepage-corpauthor node side) - (if (equal? side 'recto) - (set-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode set-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (set-titlepage-corpname node side) - (set-titlepage-element node side)) -(define (set-titlepage-date node side) - (set-titlepage-element node side)) -(define (set-titlepage-edition node side) - (set-titlepage-element node side)) -(define (set-titlepage-editor node side) - (set-titlepage-element node side)) -(define (set-titlepage-firstname node side) - (set-titlepage-element node side)) -(define (set-titlepage-graphic node side) - (set-titlepage-element node side)) -(define (set-titlepage-honorific node side) - (set-titlepage-element node side)) -(define (set-titlepage-indexterm node side) - (set-titlepage-element node side)) -(define (set-titlepage-invpartnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-isbn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issn node side) - (set-titlepage-element node side)) -(define (set-titlepage-issuenum node side) - (set-titlepage-element node side)) -(define (set-titlepage-itermset node side) - (set-titlepage-element node side)) -(define (set-titlepage-keywordset node side) - (set-titlepage-element node side)) -(define (set-titlepage-legalnotice node side) - (set-titlepage-element node side)) -(define (set-titlepage-lineage node side) - (set-titlepage-element node side)) -(define (set-titlepage-mediaobject node side) - (set-titlepage-element node side)) -(define (set-titlepage-modespec node side) - (set-titlepage-element node side)) -(define (set-titlepage-orgname node side) - (set-titlepage-element node side)) -(define (set-titlepage-othercredit node side) - (set-titlepage-element node side)) -(define (set-titlepage-othername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pagenums node side) - (set-titlepage-element node side)) -(define (set-titlepage-printhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-productname node side) - (set-titlepage-element node side)) -(define (set-titlepage-productnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubdate node side) - (set-titlepage-element node side)) -(define (set-titlepage-publisher node side) - (set-titlepage-element node side)) -(define (set-titlepage-publishername node side) - (set-titlepage-element node side)) -(define (set-titlepage-pubsnumber node side) - (set-titlepage-element node side)) -(define (set-titlepage-releaseinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-revhistory node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesinfo node side) - (set-titlepage-element node side)) -(define (set-titlepage-seriesvolnums node side) - (set-titlepage-element node side)) -(define (set-titlepage-subjectset node side) - (set-titlepage-element node side)) -(define (set-titlepage-subtitle node side) - (set-titlepage-element node side)) -(define (set-titlepage-surname node side) - (set-titlepage-element node side)) -(define (set-titlepage-title node side) - (set-titlepage-element node side)) -(define (set-titlepage-titleabbrev node side) - (set-titlepage-element node side)) -(define (set-titlepage-volumenum node side) - (set-titlepage-element node side)) - -(define set-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define set-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode set-titlepage-recto-mode - (element abbrev - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: set-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: set-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: set-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: set-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: set-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: set-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (make paragraph - use: set-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (with-mode title-mode - (process-children-trim)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: set-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode set-titlepage-verso-mode - (element abbrev - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: set-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: set-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: set-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: set-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: set-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: set-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: set-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: set-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: set-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: set-titlepage-verso-style - (process-children))) - -) - -;; == Title pages for BOOKs ============================================= - -(define (book-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "graphic") - (normalize "mediaobject") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (book-titlepage-verso-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor") - (normalize "edition") - (normalize "pubdate") - (normalize "copyright") - (normalize "abstract") - (normalize "legalnotice") - (normalize "revhistory"))) - -(define (book-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)))) - -(define (book-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (book-titlepage-recto-elements) - (book-titlepage-verso-elements)) - elements))) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (book-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (book-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (book-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (book-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (book-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (book-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (book-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (book-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (book-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (book-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (book-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (book-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (book-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (book-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (book-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (book-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (book-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (book-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (book-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (book-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (book-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (book-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (book-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (book-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (book-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (book-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (book-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (book-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (book-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (book-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (book-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (book-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (book-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (book-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (book-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (book-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (book-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (book-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (book-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (book-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (book-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (book-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (book-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (book-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (book-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (book-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (book-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (book-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (book-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (book-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (book-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (book-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (book-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (book-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (book-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (book-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (book-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (book-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (book-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (book-titlepage-volumenum (node-list-first nl) side)) - (else - (book-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl)))))))) - -(define (book-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (book-titlepage-default node side) - (let ((foo (debug (string-append "No book-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (book-titlepage-element node side) - (if (equal? side 'recto) - (with-mode book-titlepage-recto-mode - (process-node-list node)) - (with-mode book-titlepage-verso-mode - (process-node-list node)))) - -(define (book-titlepage-abbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-abstract node side) - (book-titlepage-element node side)) -(define (book-titlepage-address node side) - (book-titlepage-element node side)) -(define (book-titlepage-affiliation node side) - (book-titlepage-element node side)) -(define (book-titlepage-artpagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-author node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorblurb node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-authorinitials node side) - (book-titlepage-element node side)) -(define (book-titlepage-bibliomisc node side) - (book-titlepage-element node side)) -(define (book-titlepage-biblioset node side) - (book-titlepage node side)) -(define (book-titlepage-bookbiblio node side) - (book-titlepage node side)) -(define (book-titlepage-citetitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-collab node side) - (book-titlepage-element node side)) -(define (book-titlepage-confgroup node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractnum node side) - (book-titlepage-element node side)) -(define (book-titlepage-contractsponsor node side) - (book-titlepage-element node side)) -(define (book-titlepage-contrib node side) - (book-titlepage-element node side)) -(define (book-titlepage-copyright node side) - (book-titlepage-element node side)) - -(define (book-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (book-titlepage-corpname node side) - (book-titlepage-element node side)) -(define (book-titlepage-date node side) - (book-titlepage-element node side)) -(define (book-titlepage-edition node side) - (book-titlepage-element node side)) -(define (book-titlepage-editor node side) - (book-titlepage-element node side)) -(define (book-titlepage-firstname node side) - (book-titlepage-element node side)) -(define (book-titlepage-graphic node side) - (book-titlepage-element node side)) -(define (book-titlepage-honorific node side) - (book-titlepage-element node side)) -(define (book-titlepage-indexterm node side) - (book-titlepage-element node side)) -(define (book-titlepage-invpartnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-isbn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issn node side) - (book-titlepage-element node side)) -(define (book-titlepage-issuenum node side) - (book-titlepage-element node side)) -(define (book-titlepage-itermset node side) - (book-titlepage-element node side)) -(define (book-titlepage-keywordset node side) - (book-titlepage-element node side)) -(define (book-titlepage-legalnotice node side) - (book-titlepage-element node side)) -(define (book-titlepage-lineage node side) - (book-titlepage-element node side)) -(define (book-titlepage-mediaobject node side) - (book-titlepage-element node side)) -(define (book-titlepage-modespec node side) - (book-titlepage-element node side)) -(define (book-titlepage-orgname node side) - (book-titlepage-element node side)) -(define (book-titlepage-othercredit node side) - (book-titlepage-element node side)) -(define (book-titlepage-othername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pagenums node side) - (book-titlepage-element node side)) -(define (book-titlepage-printhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-productname node side) - (book-titlepage-element node side)) -(define (book-titlepage-productnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubdate node side) - (book-titlepage-element node side)) -(define (book-titlepage-publisher node side) - (book-titlepage-element node side)) -(define (book-titlepage-publishername node side) - (book-titlepage-element node side)) -(define (book-titlepage-pubsnumber node side) - (book-titlepage-element node side)) -(define (book-titlepage-releaseinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-revhistory node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesinfo node side) - (book-titlepage-element node side)) -(define (book-titlepage-seriesvolnums node side) - (book-titlepage-element node side)) -(define (book-titlepage-subjectset node side) - (book-titlepage-element node side)) -(define (book-titlepage-subtitle node side) - (book-titlepage-element node side)) -(define (book-titlepage-surname node side) - (book-titlepage-element node side)) -(define (book-titlepage-title node side) - (book-titlepage-element node side)) -(define (book-titlepage-titleabbrev node side) - (book-titlepage-element node side)) -(define (book-titlepage-volumenum node side) - (book-titlepage-element node side)) - -(define book-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define book-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode book-titlepage-recto-mode - (element abbrev - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: book-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: book-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: book-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: book-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: book-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: book-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (make paragraph - use: book-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (with-mode title-mode - (process-children-trim)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: book-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode book-titlepage-verso-mode - (element abbrev - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: book-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element authorgroup - (let* ((editors (select-elements (children (current-node)) (normalize "editor")))) - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (if (node-list-empty? editors) - (literal (gentext-by)) - (literal (gentext-edited-by))) - (literal "\no-break-space;") - (process-children-trim))))) - - (element authorinitials - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: book-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: book-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #f (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-list-string)))))) - - (element firstname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: book-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: book-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: book-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: book-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: book-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: book-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: book-titlepage-verso-style - (process-children))) -) - -;; == Title pages for PARTs ============================================= - -(define (part-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle"))) - -(define (part-titlepage-verso-elements) - '()) - -(define (part-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)))) - -(define (part-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (part-titlepage-recto-elements) - (part-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements (list (normalize "partintro")))))) - (if (part-titlepage-content? elements side) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (part-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (part-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (part-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (part-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (part-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (part-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (part-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (part-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (part-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (part-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (part-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (part-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (part-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (part-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (part-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (part-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (part-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (part-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (part-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (part-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (part-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (part-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (part-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (part-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (part-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (part-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (part-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (part-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (part-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (part-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (part-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (part-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (part-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (part-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (part-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (part-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (part-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (part-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (part-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (part-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (part-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (part-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (part-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (part-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (part-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (part-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (part-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (part-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (part-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (part-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (part-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (part-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (part-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (part-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (part-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (part-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (part-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (part-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (part-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (part-titlepage-volumenum (node-list-first nl) side)) - (else - (part-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-part-toc% - %generate-part-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro #f) - (empty-sosofo))) - (empty-sosofo)))) - -(define (part-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (part-titlepage-default node side) - (let ((foo (debug (string-append "No part-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (part-titlepage-element node side) - (if (equal? side 'recto) - (with-mode part-titlepage-recto-mode - (process-node-list node)) - (with-mode part-titlepage-verso-mode - (process-node-list node)))) - -(define (part-titlepage-abbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-abstract node side) - (part-titlepage-element node side)) -(define (part-titlepage-address node side) - (part-titlepage-element node side)) -(define (part-titlepage-affiliation node side) - (part-titlepage-element node side)) -(define (part-titlepage-artpagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-author node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorblurb node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-authorinitials node side) - (part-titlepage-element node side)) -(define (part-titlepage-bibliomisc node side) - (part-titlepage-element node side)) -(define (part-titlepage-biblioset node side) - (part-titlepage node side)) -(define (part-titlepage-bookbiblio node side) - (part-titlepage node side)) -(define (part-titlepage-citetitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-collab node side) - (part-titlepage-element node side)) -(define (part-titlepage-confgroup node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractnum node side) - (part-titlepage-element node side)) -(define (part-titlepage-contractsponsor node side) - (part-titlepage-element node side)) -(define (part-titlepage-contrib node side) - (part-titlepage-element node side)) -(define (part-titlepage-copyright node side) - (part-titlepage-element node side)) - -(define (part-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (part-titlepage-corpname node side) - (part-titlepage-element node side)) -(define (part-titlepage-date node side) - (part-titlepage-element node side)) -(define (part-titlepage-edition node side) - (part-titlepage-element node side)) -(define (part-titlepage-editor node side) - (part-titlepage-element node side)) -(define (part-titlepage-firstname node side) - (part-titlepage-element node side)) -(define (part-titlepage-graphic node side) - (part-titlepage-element node side)) -(define (part-titlepage-honorific node side) - (part-titlepage-element node side)) -(define (part-titlepage-indexterm node side) - (part-titlepage-element node side)) -(define (part-titlepage-invpartnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-isbn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issn node side) - (part-titlepage-element node side)) -(define (part-titlepage-issuenum node side) - (part-titlepage-element node side)) -(define (part-titlepage-itermset node side) - (part-titlepage-element node side)) -(define (part-titlepage-keywordset node side) - (part-titlepage-element node side)) -(define (part-titlepage-legalnotice node side) - (part-titlepage-element node side)) -(define (part-titlepage-lineage node side) - (part-titlepage-element node side)) -(define (part-titlepage-mediaobject node side) - (part-titlepage-element node side)) -(define (part-titlepage-modespec node side) - (part-titlepage-element node side)) -(define (part-titlepage-orgname node side) - (part-titlepage-element node side)) -(define (part-titlepage-othercredit node side) - (part-titlepage-element node side)) -(define (part-titlepage-othername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pagenums node side) - (part-titlepage-element node side)) -(define (part-titlepage-printhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-productname node side) - (part-titlepage-element node side)) -(define (part-titlepage-productnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubdate node side) - (part-titlepage-element node side)) -(define (part-titlepage-publisher node side) - (part-titlepage-element node side)) -(define (part-titlepage-publishername node side) - (part-titlepage-element node side)) -(define (part-titlepage-pubsnumber node side) - (part-titlepage-element node side)) -(define (part-titlepage-releaseinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-revhistory node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesinfo node side) - (part-titlepage-element node side)) -(define (part-titlepage-seriesvolnums node side) - (part-titlepage-element node side)) -(define (part-titlepage-subjectset node side) - (part-titlepage-element node side)) -(define (part-titlepage-subtitle node side) - (part-titlepage-element node side)) -(define (part-titlepage-surname node side) - (part-titlepage-element node side)) -(define (part-titlepage-title node side) - (part-titlepage-element node side)) -(define (part-titlepage-titleabbrev node side) - (part-titlepage-element node side)) -(define (part-titlepage-volumenum node side) - (part-titlepage-element node side)) - -(define part-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define part-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode part-titlepage-recto-mode - (element abbrev - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: part-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: part-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: part-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: part-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: part-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: part-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (let ((division (ancestor-member (current-node) (division-element-list)))) - (make paragraph - use: part-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (if (string=? (element-label division) "") - (empty-sosofo) - (literal (element-label division) - (gentext-label-title-sep (gi division)))) - (with-mode title-mode - (process-children))))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: part-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode part-titlepage-verso-mode - (element abbrev - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: part-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: part-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: part-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: part-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: part-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: part-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: part-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: part-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: part-titlepage-verso-style - (process-children))) - - (element title - (let ((division (ancestor-member (current-node) (division-element-list)))) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (if (string=? (element-label division) "") - (empty-sosofo) - (literal (element-label division) - (gentext-label-title-sep (gi division)))) - (with-mode title-mode - (process-children))))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: part-titlepage-verso-style - (process-children))) -) - -;; == Title pages for ARTICLEs ========================================== -;; -;; Note: Article title pages are a little different in that they do not -;; create their own simple-page-sequence. -;; - -(define (article-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "abstract"))) - -(define (article-titlepage-verso-elements) - '()) - -(define (article-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)))) - -(define (article-titlepage elements #!optional (side 'recto)) - (let* ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (article-titlepage-recto-elements) - (article-titlepage-verso-elements)) - elements))) - (if (article-titlepage-content? elements side) - (make sequence - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (article-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (article-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (article-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (article-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (article-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (article-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (article-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (article-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (article-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (article-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (article-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (article-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (article-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (article-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (article-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (article-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (article-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (article-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (article-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (article-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (article-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (article-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (article-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (article-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (article-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (article-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (article-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (article-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (article-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (article-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (article-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (article-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (article-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (article-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (article-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (article-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (article-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (article-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (article-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (article-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (article-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (article-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (article-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (article-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (article-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (article-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (article-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (article-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (article-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (article-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (article-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (article-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (article-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (article-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (article-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (article-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (article-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (article-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (article-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (article-titlepage-volumenum (node-list-first nl) side)) - (else - (article-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-article-toc% - %generate-article-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo))) - (empty-sosofo)))) - -(define (article-titlepage-before node side) - (empty-sosofo)) - -(define (article-titlepage-default node side) - (let ((foo (debug (string-append "No article-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (article-titlepage-element node side) - (if (equal? side 'recto) - (with-mode article-titlepage-recto-mode - (process-node-list node)) - (with-mode article-titlepage-verso-mode - (process-node-list node)))) - -(define (article-titlepage-abbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-abstract node side) - (article-titlepage-element node side)) -(define (article-titlepage-address node side) - (article-titlepage-element node side)) -(define (article-titlepage-affiliation node side) - (article-titlepage-element node side)) -(define (article-titlepage-artpagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-author node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorblurb node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-authorinitials node side) - (article-titlepage-element node side)) -(define (article-titlepage-bibliomisc node side) - (article-titlepage-element node side)) -(define (article-titlepage-biblioset node side) - (article-titlepage node side)) -(define (article-titlepage-bookbiblio node side) - (article-titlepage node side)) -(define (article-titlepage-citetitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-collab node side) - (article-titlepage-element node side)) -(define (article-titlepage-confgroup node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractnum node side) - (article-titlepage-element node side)) -(define (article-titlepage-contractsponsor node side) - (article-titlepage-element node side)) -(define (article-titlepage-contrib node side) - (article-titlepage-element node side)) -(define (article-titlepage-copyright node side) - (article-titlepage-element node side)) - -(define (article-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (article-titlepage-corpname node side) - (article-titlepage-element node side)) -(define (article-titlepage-date node side) - (article-titlepage-element node side)) -(define (article-titlepage-edition node side) - (article-titlepage-element node side)) -(define (article-titlepage-editor node side) - (article-titlepage-element node side)) -(define (article-titlepage-firstname node side) - (article-titlepage-element node side)) -(define (article-titlepage-graphic node side) - (article-titlepage-element node side)) -(define (article-titlepage-honorific node side) - (article-titlepage-element node side)) -(define (article-titlepage-indexterm node side) - (article-titlepage-element node side)) -(define (article-titlepage-invpartnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-isbn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issn node side) - (article-titlepage-element node side)) -(define (article-titlepage-issuenum node side) - (article-titlepage-element node side)) -(define (article-titlepage-itermset node side) - (article-titlepage-element node side)) -(define (article-titlepage-keywordset node side) - (article-titlepage-element node side)) -(define (article-titlepage-legalnotice node side) - (article-titlepage-element node side)) -(define (article-titlepage-lineage node side) - (article-titlepage-element node side)) -(define (article-titlepage-mediaobject node side) - (article-titlepage-element node side)) -(define (article-titlepage-modespec node side) - (article-titlepage-element node side)) -(define (article-titlepage-orgname node side) - (article-titlepage-element node side)) -(define (article-titlepage-othercredit node side) - (article-titlepage-element node side)) -(define (article-titlepage-othername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pagenums node side) - (article-titlepage-element node side)) -(define (article-titlepage-printhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-productname node side) - (article-titlepage-element node side)) -(define (article-titlepage-productnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubdate node side) - (article-titlepage-element node side)) -(define (article-titlepage-publisher node side) - (article-titlepage-element node side)) -(define (article-titlepage-publishername node side) - (article-titlepage-element node side)) -(define (article-titlepage-pubsnumber node side) - (article-titlepage-element node side)) -(define (article-titlepage-releaseinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-revhistory node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesinfo node side) - (article-titlepage-element node side)) -(define (article-titlepage-seriesvolnums node side) - (article-titlepage-element node side)) -(define (article-titlepage-subjectset node side) - (article-titlepage-element node side)) -(define (article-titlepage-subtitle node side) - (article-titlepage-element node side)) -(define (article-titlepage-surname node side) - (article-titlepage-element node side)) -(define (article-titlepage-title node side) - (article-titlepage-element node side)) -(define (article-titlepage-titleabbrev node side) - (article-titlepage-element node side)) -(define (article-titlepage-volumenum node side) - (article-titlepage-element node side)) - -(define article-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define article-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode article-titlepage-recto-mode - (element abbrev - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: article-titlepage-verso-style ;; EVEN THOUGH IT'S RECTO! - quadding: 'start - start-indent: (+ (inherited-start-indent) (/ %body-width% 24)) - end-indent: (+ (inherited-end-indent) (/ %body-width% 24)) - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: article-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: article-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: article-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element date - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %article-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element keyword - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: article-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: article-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: article-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: article-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %article-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) - - (element title - (make paragraph - use: article-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %article-title-quadding% - keep-with-next?: #t - (with-mode title-mode - (process-children-trim)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: article-titlepage-recto-style - quadding: %article-title-quadding% - (process-children))) -) - -(mode article-titlepage-verso-mode - (element abbrev - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: article-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: article-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: article-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: article-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: article-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: article-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: article-titlepage-verso-style - font-family-name: %title-font-family% - font-weight: 'bold - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (node-list-empty? revnumber) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (node-list-empty? revdate) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (node-list-empty? revauthor) - (empty-sosofo) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor))))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: article-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: article-titlepage-verso-style - (process-children))) - - (element title - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (with-mode title-mode - (process-children)))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: article-titlepage-verso-style - (process-children))) - -) - -;; == Title pages for REFERENCEs ======================================== - -(define (reference-titlepage-recto-elements) - (list (normalize "title") - (normalize "subtitle") - (normalize "corpauthor") - (normalize "authorgroup") - (normalize "author") - (normalize "editor"))) - -(define (reference-titlepage-verso-elements) - '()) - -(define (reference-titlepage-content? elements side) - (titlepage-content? elements (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)))) - -(define (reference-titlepage elements #!optional (side 'recto)) - (let ((nodelist (titlepage-nodelist - (if (equal? side 'recto) - (reference-titlepage-recto-elements) - (reference-titlepage-verso-elements)) - elements)) - ;; partintro is a special case... - (partintro (node-list-first - (node-list-filter-by-gi elements (list (normalize "partintro")))))) - (if (reference-titlepage-content? elements side) - (make simple-page-sequence - page-n-columns: %titlepage-n-columns% - input-whitespace-treatment: 'collapse - use: default-text-style - - ;; This hack is required for the RTF backend. If an external-graphic - ;; is the first thing on the page, RTF doesn't seem to do the right - ;; thing (the graphic winds up on the baseline of the first line - ;; of the page, left justified). This "one point rule" fixes - ;; that problem. - (make paragraph - line-spacing: 1pt - (literal "")) - - (let loop ((nl nodelist) (lastnode (empty-node-list))) - (if (node-list-empty? nl) - (empty-sosofo) - (make sequence - (if (or (node-list-empty? lastnode) - (not (equal? (gi (node-list-first nl)) - (gi lastnode)))) - (reference-titlepage-before (node-list-first nl) side) - (empty-sosofo)) - (cond - ((equal? (gi (node-list-first nl)) (normalize "abbrev")) - (reference-titlepage-abbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "abstract")) - (reference-titlepage-abstract (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "address")) - (reference-titlepage-address (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "affiliation")) - (reference-titlepage-affiliation (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "artpagenums")) - (reference-titlepage-artpagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "author")) - (reference-titlepage-author (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorblurb")) - (reference-titlepage-authorblurb (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorgroup")) - (reference-titlepage-authorgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "authorinitials")) - (reference-titlepage-authorinitials (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bibliomisc")) - (reference-titlepage-bibliomisc (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "biblioset")) - (reference-titlepage-biblioset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "bookbiblio")) - (reference-titlepage-bookbiblio (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "citetitle")) - (reference-titlepage-citetitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "collab")) - (reference-titlepage-collab (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "confgroup")) - (reference-titlepage-confgroup (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractnum")) - (reference-titlepage-contractnum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contractsponsor")) - (reference-titlepage-contractsponsor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "contrib")) - (reference-titlepage-contrib (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "copyright")) - (reference-titlepage-copyright (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpauthor")) - (reference-titlepage-corpauthor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "corpname")) - (reference-titlepage-corpname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "date")) - (reference-titlepage-date (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "edition")) - (reference-titlepage-edition (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "editor")) - (reference-titlepage-editor (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "firstname")) - (reference-titlepage-firstname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "graphic")) - (reference-titlepage-graphic (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "honorific")) - (reference-titlepage-honorific (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "indexterm")) - (reference-titlepage-indexterm (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "invpartnumber")) - (reference-titlepage-invpartnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "isbn")) - (reference-titlepage-isbn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issn")) - (reference-titlepage-issn (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "issuenum")) - (reference-titlepage-issuenum (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "itermset")) - (reference-titlepage-itermset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "keywordset")) - (reference-titlepage-keywordset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "legalnotice")) - (reference-titlepage-legalnotice (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "lineage")) - (reference-titlepage-lineage (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "mediaobject")) - (reference-titlepage-mediaobject (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "modespec")) - (reference-titlepage-modespec (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "orgname")) - (reference-titlepage-orgname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othercredit")) - (reference-titlepage-othercredit (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "othername")) - (reference-titlepage-othername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pagenums")) - (reference-titlepage-pagenums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "printhistory")) - (reference-titlepage-printhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productname")) - (reference-titlepage-productname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "productnumber")) - (reference-titlepage-productnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubdate")) - (reference-titlepage-pubdate (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publisher")) - (reference-titlepage-publisher (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "publishername")) - (reference-titlepage-publishername (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "pubsnumber")) - (reference-titlepage-pubsnumber (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "releaseinfo")) - (reference-titlepage-releaseinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "revhistory")) - (reference-titlepage-revhistory (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesinfo")) - (reference-titlepage-seriesinfo (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "seriesvolnums")) - (reference-titlepage-seriesvolnums (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subjectset")) - (reference-titlepage-subjectset (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "subtitle")) - (reference-titlepage-subtitle (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "surname")) - (reference-titlepage-surname (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "title")) - (reference-titlepage-title (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "titleabbrev")) - (reference-titlepage-titleabbrev (node-list-first nl) side)) - ((equal? (gi (node-list-first nl)) (normalize "volumenum")) - (reference-titlepage-volumenum (node-list-first nl) side)) - (else - (reference-titlepage-default (node-list-first nl) side))) - (loop (node-list-rest nl) (node-list-first nl))))) - - (if (and %generate-reference-toc% - %generate-reference-toc-on-titlepage% - (equal? side 'recto)) - (make display-group - (build-toc (current-node) - (toc-depth (current-node)))) - (empty-sosofo)) - - ;; PartIntro is a special case - (if (and (equal? side 'recto) - (not (node-list-empty? partintro)) - %generate-partintro-on-titlepage%) - ($process-partintro$ partintro #f) - (empty-sosofo))) - - (empty-sosofo)))) - -(define (reference-titlepage-before node side) - (if (equal? side 'recto) - (cond - ((equal? (gi node) (normalize "corpauthor")) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;"))) - ((equal? (gi node) (normalize "authorgroup")) - (if (have-sibling? (normalize "corpauthor") node) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - ((equal? (gi node) (normalize "author")) - (if (or (have-sibling? (normalize "corpauthor") node) - (have-sibling? (normalize "authorgroup") node)) - (empty-sosofo) - (make paragraph - space-after: (* (HSIZE 5) %head-after-factor% 8) - (literal "\no-break-space;")))) - (else (empty-sosofo))) - (empty-sosofo))) - -(define (reference-titlepage-default node side) - (let ((foo (debug (string-append "No reference-titlepage-* for " (gi node) "!")))) - (empty-sosofo))) - -(define (reference-titlepage-element node side) - (if (equal? side 'recto) - (with-mode reference-titlepage-recto-mode - (process-node-list node)) - (with-mode reference-titlepage-verso-mode - (process-node-list node)))) - -(define (reference-titlepage-abbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-abstract node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-address node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-affiliation node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-artpagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-author node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorblurb node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-authorinitials node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-bibliomisc node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-biblioset node side) - (reference-titlepage node side)) -(define (reference-titlepage-bookbiblio node side) - (reference-titlepage node side)) -(define (reference-titlepage-citetitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-collab node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-confgroup node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractnum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contractsponsor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-contrib node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-copyright node side) - (reference-titlepage-element node side)) - -(define (reference-titlepage-corpauthor node side) - (if (equal? side 'recto) - (book-titlepage-element node side) - (if (first-sibling? node) - (make paragraph - (with-mode book-titlepage-verso-mode - (process-node-list - (select-elements (children (parent node)) - (normalize "corpauthor"))))) - (empty-sosofo)))) - -(define (reference-titlepage-corpname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-date node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-edition node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-editor node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-firstname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-graphic node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-honorific node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-indexterm node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-invpartnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-isbn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issn node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-issuenum node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-itermset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-keywordset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-legalnotice node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-lineage node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-mediaobject node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-modespec node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-orgname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othercredit node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-othername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pagenums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-printhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-productnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubdate node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publisher node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-publishername node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-pubsnumber node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-releaseinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-revhistory node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesinfo node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-seriesvolnums node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subjectset node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-subtitle node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-surname node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-title node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-titleabbrev node side) - (reference-titlepage-element node side)) -(define (reference-titlepage-volumenum node side) - (reference-titlepage-element node side)) - -(define reference-titlepage-recto-style - (style - font-family-name: %title-font-family% - font-weight: 'bold - font-size: (HSIZE 1))) - -(define reference-titlepage-verso-style - (style - font-family-name: %body-font-family%)) - -(mode reference-titlepage-recto-mode - (element abbrev - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element abstract - (make display-group - use: reference-titlepage-recto-style - quadding: 'start - ($semiformal-object$))) - - (element (abstract title) (empty-sosofo)) - - (element (abstract para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element address - (make display-group - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make display-group - use: reference-titlepage-recto-style - (process-children))) - - (element artpagenums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal author-name)) - (process-node-list author-affil)))) - - (element authorblurb - (make display-group - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element (authorblurb para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - (process-children))) - - (element authorgroup - (make display-group - (process-children))) - - (element authorinitials - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element confgroup - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractnum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contractsponsor - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element contrib - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element copyright - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - (make sequence - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - (process-children)) - ;; This paragraph is a hack to get the spacing right. - ;; Authors always have an affiliation paragraph below them, even if - ;; it's empty, so corpauthors need one too. - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal "\no-break-space;")))) - - (element corpname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element date - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element edition - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 1) - line-spacing: (* (HSIZE 1) %line-spacing-factor%) - space-before: (* (HSIZE 2) %head-before-factor% 6) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal (gentext-edited-by))) - (empty-sosofo)) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 3) - line-spacing: (* (HSIZE 3) %line-spacing-factor%) - space-after: (* (HSIZE 2) %head-after-factor% 4) - quadding: %division-title-quadding% - keep-with-next?: #t - (literal editor-name))))) - - (element firstname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'center) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element isbn - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issn - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element issuenum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element jobtitle - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: reference-titlepage-recto-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: reference-titlepage-recto-style - quadding: 'start - line-spacing: (* 0.8 (inherited-line-spacing)) - font-size: (* 0.8 (inherited-font-size)) - (process-children))) - - (element lineage - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element orgname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othercredit - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element othername - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pagenums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element printhistory - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element productnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubdate - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publisher - (make display-group - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element publishername - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element pubsnumber - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element releaseinfo - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: reference-titlepage-recto-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: reference-titlepage-recto-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element shortaffil - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 4) - line-spacing: (* (HSIZE 4) %line-spacing-factor%) - space-before: (* (HSIZE 4) %head-before-factor%) - quadding: %division-subtitle-quadding% - keep-with-next?: #t - (process-children-trim))) - - (element surname - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) - - (element title - (let ((ref (ancestor-member (current-node) - (list (normalize "reference"))))) - (make paragraph - use: reference-titlepage-recto-style - font-size: (HSIZE 5) - line-spacing: (* (HSIZE 5) %line-spacing-factor%) - space-before: (* (HSIZE 5) %head-before-factor%) - quadding: %division-title-quadding% - keep-with-next?: #t - heading-level: (if %generate-heading-level% 1 0) - (literal (element-label ref) - (gentext-label-title-sep (gi ref))) - (with-mode title-mode - (process-children))))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: reference-titlepage-recto-style - quadding: %division-title-quadding% - (process-children))) -) - -(mode reference-titlepage-verso-mode - (element abbrev - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element abstract ($semiformal-object$)) - - (element (abstract title) (empty-sosofo)) - - (element address - (make display-group - use: reference-titlepage-verso-style - (with-mode titlepage-address-mode - ($linespecific-display$ %indent-address-lines% %number-address-lines%)))) - - (element affiliation - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element artpagenums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element author - ;; Print the author name. Handle the case where there's no AUTHORGROUP - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (not in-group) - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (literal (author-list-string)))) - (make sequence - (literal (author-list-string)))))) - - (element authorblurb - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element authorgroup - (make paragraph - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-by)) - (literal "\no-break-space;") - (process-children-trim)))) - - (element authorinitials - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element bibliomisc (process-children)) - - (element bibliomset (process-children)) - - (element collab - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element confgroup - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contractnum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contractsponsor - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element contrib - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element copyright - (make paragraph - use: reference-titlepage-verso-style - (literal (gentext-element-name (current-node))) - (literal "\no-break-space;") - (literal (dingbat "copyright")) - (literal "\no-break-space;") - (process-children))) - - (element (copyright year) - (make sequence - (process-children) - (if (not (last-sibling? (current-node))) - (literal ", ") - (literal (string-append " " (gentext-by) " "))))) - - (element (copyright holder) ($charseq$)) - - (element corpauthor - ;; note: reference-titlepage-corpauthor takes care of wrapping multiple - ;; corpauthors - (make sequence - (if (first-sibling?) - (if (equal? (gi (parent (current-node))) (normalize "authorgroup")) - (empty-sosofo) - (literal (gentext-by) " ")) - (literal ", ")) - (process-children))) - - (element corpname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element date - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element edition - (make paragraph - (process-children) - (literal "\no-break-space;") - (literal (gentext-element-name-space (gi (current-node)))))) - - (element editor - ;; Print the editor name. - (let ((in-group (have-ancestor? (normalize "authorgroup") (current-node)))) - (if (or #t (not in-group)) ; nevermind, always put out the Edited by - (make paragraph - ;; Hack to get the spacing right below the author name line... - space-after: (* %bf-size% %line-spacing-factor%) - (make sequence - (literal (gentext-edited-by)) - (literal "\no-break-space;") - (literal (author-string)))) - (make sequence - (literal (author-string)))))) - - (element firstname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element graphic - (let* ((nd (current-node)) - (fileref (attribute-string "fileref" nd)) - (entityref (attribute-string "entityref" nd)) - (format (attribute-string "format" nd)) - (align (attribute-string "align" nd))) - (if (or fileref entityref) - (make external-graphic - notation-system-id: (if format format "") - entity-system-id: (if fileref - (graphic-file fileref) - (if entityref - (entity-generated-system-id entityref) - "")) - display?: #t - display-alignment: 'start) - (empty-sosofo)))) - - (element honorific - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element isbn - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element issn - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element itermset (empty-sosofo)) - - (element invpartnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element issuenum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element jobtitle - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element keywordset - (make paragraph - quadding: 'start - (make sequence - font-weight: 'bold - (literal "Keywords: ")) - (process-children))) - - (element (keyword) - (make sequence - (process-children) - (if (not (last-sibling?)) - (literal ", ") - (literal "")))) - - (element legalnotice - (make display-group - use: reference-titlepage-verso-style - ($semiformal-object$))) - - (element (legalnotice title) (empty-sosofo)) - - (element (legalnotice para) - (make paragraph - use: reference-titlepage-verso-style - font-size: (* (inherited-font-size) 0.8) - (process-children-trim))) - - (element lineage - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element modespec (empty-sosofo)) - - (element orgdiv - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element orgname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element othercredit - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element othername - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pagenums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element printhistory - (make display-group - use: reference-titlepage-verso-style - (process-children))) - - (element productname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element productnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pubdate - (make paragraph - (literal (gentext-element-name-space (gi (current-node)))) - (process-children))) - - (element publisher - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element publishername - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element pubsnumber - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element releaseinfo - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element revhistory - (make sequence - (make paragraph - use: reference-titlepage-verso-style - space-before: (* (HSIZE 3) %head-before-factor%) - space-after: (/ (* (HSIZE 1) %head-before-factor%) 2) - (literal (gentext-element-name (current-node)))) - (make table - before-row-border: #f - (process-children)))) - - (element (revhistory revision) - (let ((revnumber (select-elements (descendants (current-node)) - (normalize "revnumber"))) - (revdate (select-elements (descendants (current-node)) - (normalize "date"))) - (revauthor (select-elements (descendants (current-node)) - (normalize "authorinitials"))) - (revremark (select-elements (descendants (current-node)) - (normalize "revremark")))) - (make sequence - (make table-row - (make table-cell - column-number: 1 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revnumber)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-element-name-space (current-node))) - (process-node-list revnumber)) - (empty-sosofo))) - (make table-cell - column-number: 2 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revdate)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (process-node-list revdate)) - (empty-sosofo))) - (make table-cell - column-number: 3 - n-columns-spanned: 1 - n-rows-spanned: 1 - start-indent: 0pt - cell-before-column-margin: (if (equal? (print-backend) 'tex) - 6pt - 0pt) - (if (not (node-list-empty? revauthor)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - (literal (gentext-revised-by)) - (process-node-list revauthor)) - (empty-sosofo)))) - (make table-row - cell-after-row-border: #f - (make table-cell - column-number: 1 - n-columns-spanned: 3 - n-rows-spanned: 1 - start-indent: 0pt - (if (not (node-list-empty? revremark)) - (make paragraph - use: reference-titlepage-verso-style - font-size: %bf-size% - font-weight: 'medium - space-after: (if (last-sibling?) - 0pt - (/ %block-sep% 2)) - (process-node-list revremark)) - (empty-sosofo))))))) - - (element (revision revnumber) (process-children-trim)) - (element (revision date) (process-children-trim)) - (element (revision authorinitials) (process-children-trim)) - (element (revision revremark) (process-children-trim)) - - (element seriesvolnums - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element shortaffil - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element subjectset (empty-sosofo)) - - (element subtitle - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (if (first-sibling?) ": " "; ")) - (process-children))) - - (element surname - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - - (element title - (let ((ref (ancestor-member (current-node) - (list (normalize "reference"))))) - (make sequence - font-family-name: %title-font-family% - font-weight: 'bold - (literal (element-label ref) - (gentext-label-title-sep (gi ref))) - (with-mode title-mode - (process-children))))) - - (element titleabbrev (empty-sosofo)) - - (element volumenum - (make paragraph - use: reference-titlepage-verso-style - (process-children))) - -) diff --git a/docs/dsssl/docbook/print/dbverb.dsl b/docs/dsssl/docbook/print/dbverb.dsl deleted file mode 100755 index 14e11f9b..00000000 --- a/docs/dsssl/docbook/print/dbverb.dsl +++ /dev/null @@ -1,217 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define verbatim-style - (style - font-family-name: %mono-font-family% - font-size: (* (inherited-font-size) - (if %verbatim-size-factor% - %verbatim-size-factor% - 1.0)) - font-weight: 'medium - font-posture: 'upright - line-spacing: (* (* (inherited-font-size) - (if %verbatim-size-factor% - %verbatim-size-factor% - 1.0)) - %line-spacing-factor%) - first-line-start-indent: 0pt - lines: 'asis - input-whitespace-treatment: 'preserve)) - -(define inline-verbatim-style - (style - font-family-name: %mono-font-family% - font-size: (* (inherited-font-size) - (if %verbatim-size-factor% - %verbatim-size-factor% - 1.0)) - font-weight: 'medium - font-posture: 'upright - lines: 'asis - input-whitespace-treatment: 'preserve)) - -(define linespecific-style - (style - first-line-start-indent: 0pt - lines: 'asis - input-whitespace-treatment: 'preserve)) - -(define ($format-indent$ indent) - (literal indent)) - -(define ($format-linenumber$ linenumber) - ;; A line-field would make more sense here, and allow proportional - ;; fonts, but you can't put line-fields in the middle of a paragraph - ;; in the current RTF backend of Jade - (let ((%factor% (if %verbatim-size-factor% - %verbatim-size-factor% - 1.0))) - (if (equal? (remainder linenumber %linenumber-mod%) 0) - (make sequence - use: verbatim-style - (literal (pad-string (format-number linenumber "1") - %linenumber-length% %linenumber-padchar%)) - ($linenumber-space$)) - (make sequence - use: verbatim-style - (literal (pad-string "" %linenumber-length% " ")) - ($linenumber-space$))))) - -(define ($line-start$ indent line-numbers? #!optional (line-number 1)) - (make sequence - (if indent - ($format-indent$ indent) - (empty-sosofo)) - (if line-numbers? - ($format-linenumber$ line-number) - (empty-sosofo)))) - -(define ($linespecific-display$ indent line-numbers?) - (let ((vspace (if (INBLOCK?) - 0pt - (if (INLIST?) - %para-sep% - %block-sep%)))) - (make paragraph - use: linespecific-style - space-before: (if (and (string=? (gi (parent)) (normalize "entry")) - (absolute-first-sibling?)) - 0pt - vspace) - space-after: (if (and (string=? (gi (parent)) (normalize "entry")) - (absolute-last-sibling?)) - 0pt - vspace) - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% (inherited-start-indent))) - (if (or indent line-numbers?) - ($linespecific-line-by-line$ indent line-numbers?) - (process-children))))) - -(define ($linespecific-line-by-line$ indent line-numbers?) - (let ((expanded-content - ;; this is the content with - ;; inlinemediaobject/imageobject[@format='linespecific'] - ;; expanded - (let loop ((kl (children (current-node))) (rl (empty-node-list))) - (if (node-list-empty? kl) - rl - (if (equal? (gi (node-list-first kl)) - (normalize "inlinemediaobject")) - (let* ((imgobj (node-list-filter-by-gi - (children (node-list-first kl)) - (list (normalize "imageobject")))) - (datobj (node-list-filter-by-gi - (children imgobj) - (list (normalize "imagedata"))))) - (if (and (not (node-list-empty? imgobj)) - (not (node-list-empty? datobj)) - (equal? (attribute-string (normalize "format") datobj) - (normalize "linespecific"))) - (loop (node-list-rest kl) - (node-list rl (string->nodes (include-characters - (if (attribute-string (normalize "fileref") datobj) - (attribute-string (normalize "fileref") datobj) - (entity-generated-system-id (attribute-string (normalize "entityref") datobj))))))) - (loop (node-list-rest kl) - (node-list rl (node-list-first kl))))) - (loop (node-list-rest kl) (node-list rl (node-list-first kl)))))))) - (make sequence - ($line-start$ indent line-numbers? 1) - (let loop ((kl expanded-content) - (linecount 1) - (res (empty-sosofo))) - (if (node-list-empty? kl) - res - (loop - (node-list-rest kl) - (if (char=? (node-property 'char (node-list-first kl) - default: #\U-0000) #\U-000D) - (+ linecount 1) - linecount) - (let ((c (node-list-first kl))) - (if (char=? (node-property 'char c default: #\U-0000) - #\U-000D) - (sosofo-append res - (process-node-list c) - ($line-start$ indent line-numbers? - (+ linecount 1))) - (sosofo-append res (process-node-list c)))))))))) - -(define ($verbatim-display$ indent line-numbers?) - (let* ((width-in-chars (if (attribute-string (normalize "width")) - (string->number (attribute-string (normalize "width"))) - %verbatim-default-width%)) - (fsize (lambda () (if (or (attribute-string (normalize "width")) - (not %verbatim-size-factor%)) - (/ (/ (- %text-width% (inherited-start-indent)) - width-in-chars) - 0.7) - (* (inherited-font-size) - %verbatim-size-factor%)))) - (vspace (if (INBLOCK?) - 0pt - (if (INLIST?) - %para-sep% - %block-sep%)))) - (make paragraph - use: verbatim-style - space-before: (if (and (string=? (gi (parent)) (normalize "entry")) - (absolute-first-sibling?)) - 0pt - vspace) - space-after: (if (and (string=? (gi (parent)) (normalize "entry")) - (absolute-last-sibling?)) - 0pt - vspace) - font-size: (fsize) - line-spacing: (* (fsize) %line-spacing-factor%) - start-indent: (if (INBLOCK?) - (inherited-start-indent) - (+ %block-start-indent% (inherited-start-indent))) - (if (or indent line-numbers?) - ($linespecific-line-by-line$ indent line-numbers?) - (process-children))))) - -(element literallayout - (if (equal? (attribute-string "class") (normalize "monospaced")) - ($verbatim-display$ - %indent-literallayout-lines% - (or %number-literallayout-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered")))) - ($linespecific-display$ - %indent-literallayout-lines% - (or %number-literallayout-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered")))))) - -(element address - ($linespecific-display$ - %indent-address-lines% - (or %number-address-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element programlisting - ($verbatim-display$ - %indent-programlisting-lines% - (or %number-programlisting-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element screen - ($verbatim-display$ - %indent-screen-lines% - (or %number-screen-lines% - (equal? (attribute-string (normalize "linenumbering")) - (normalize "numbered"))))) - -(element screenshot (process-children)) -(element screeninfo (empty-sosofo)) - diff --git a/docs/dsssl/docbook/print/docbook.dsl b/docs/dsssl/docbook/print/docbook.dsl deleted file mode 100755 index e0be8c17..00000000 --- a/docs/dsssl/docbook/print/docbook.dsl +++ /dev/null @@ -1,196 +0,0 @@ - -%dbl10n.ent; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; - -(define if-front-page - (external-procedure "UNREGISTERED::James Clark//Procedure::if-front-page")) - -(define if-first-page - (external-procedure "UNREGISTERED::James Clark//Procedure::if-first-page")) - -(declare-characteristic heading-level - "UNREGISTERED::James Clark//Characteristic::heading-level" 0) - -(declare-characteristic page-number-format - "UNREGISTERED::James Clark//Characteristic::page-number-format" "1") - -(declare-characteristic page-number-restart? - "UNREGISTERED::James Clark//Characteristic::page-number-restart?" #f) - -(declare-characteristic page-two-side? - "UNREGISTERED::OpenJade//Characteristic::page-two-side?" %two-side%) - -(declare-characteristic two-side-start-on-right? - "UNREGISTERED::OpenJade//Characteristic::two-side-start-on-right?" %two-side%) - -(declare-characteristic page-n-columns - "UNREGISTERED::James Clark//Characteristic::page-n-columns" 1) - -(declare-characteristic page-column-sep - "UNREGISTERED::James Clark//Characteristic::page-column-sep" %page-column-sep%) - -(declare-characteristic page-balance-columns? - "UNREGISTERED::James Clark//Characteristic::page-balance-columns?" %page-balance-columns?%) - -;; This allows bottom-of-page footnotes -(declare-flow-object-class page-footnote - "UNREGISTERED::Sebastian Rahtz//Flow Object Class::page-footnote") - -;; This allows formal objects to float -(declare-flow-object-class page-float - "UNREGISTERED::Sebastian Rahtz//Flow Object Class::page-float") - -(define read-entity - (external-procedure "UNREGISTERED::James Clark//Procedure::read-entity")) - -(define all-element-number - (external-procedure "UNREGISTERED::James Clark//Procedure::all-element-number")) - -(define debug - (external-procedure "UNREGISTERED::James Clark//Procedure::debug")) - -;; Make text that comes from unimplemented tags easy to spot -(default - (let* ((colr-space (color-space - "ISO/IEC 10179:1996//Color-Space Family::Device RGB")) - (red (color colr-space 1 0 0))) - (make sequence - color: red - (process-children)))) - -&dbcommon.dsl; -&dbctable.dsl; - -&dbl10n.dsl; - -&dbadmon.dsl; -&dbautoc.dsl; -&dbbibl.dsl; -&dbblock.dsl; -&dbcallou.dsl; -&dbcompon.dsl; -&dbdivis.dsl; -&dbgloss.dsl; -&dbgraph.dsl; -&dbindex.dsl; -&dbinfo.dsl; -&dbinline.dsl; -&dblink.dsl; -&dblists.dsl; -&dblot.dsl; -&dbmath.dsl; -&dbmsgset.dsl; -&dbprint.dsl; -&dbprocdr.dsl; -&dbrfntry.dsl; -&dbsect.dsl; -&dbsynop.dsl; -&dbefsyn.dsl; -&dbtable.dsl; -&dbtitle.dsl; -&dbttlpg.dsl; -&dbverb.dsl; -&version.dsl; -&db31.dsl; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dsssl/docbook/print/notoc.dsl b/docs/dsssl/docbook/print/notoc.dsl deleted file mode 100755 index 87137e2e..00000000 --- a/docs/dsssl/docbook/print/notoc.dsl +++ /dev/null @@ -1,29 +0,0 @@ - -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; -;; Example of a customization layer on top of the modular docbook style -;; sheet. Definitions inserted in this file take precedence over -;; definitions in the 'use'd stylesheet(s). - -(define %generate-set-toc% #f) -(define %generate-book-toc% #f) -(define %generate-part-toc% #f) -(define %generate-reference-toc% #f) -(define %generate-article-toc% #f) - - - - - - - diff --git a/docs/dsssl/docbook/print/plain.dsl b/docs/dsssl/docbook/print/plain.dsl deleted file mode 100755 index 93abd8d1..00000000 --- a/docs/dsssl/docbook/print/plain.dsl +++ /dev/null @@ -1,37 +0,0 @@ - -]> - - - - - -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.berkshire.net/~norm/dsssl/ -;; -;; Example of a customization layer on top of the modular docbook style -;; sheet. Definitions inserted in this file take precedence over -;; definitions in the 'use'd stylesheet(s). - -(define %generate-set-titlepage% #f) -(define %generate-book-titlepage% #f) -(define %generate-part-titlepage% #f) -(define %generate-reference-titlepage% #f) -(define %generate-article-titlepage% #f) - -(define %generate-set-toc% #f) -(define %generate-book-toc% #f) -(define %generate-part-toc% #f) -(define %generate-reference-toc% #f) -(define %generate-article-toc% #f) - -(define %generate-book-lot-list% '()) - - - - - - - diff --git a/docs/dsssl/docbook/print/version.dsl b/docs/dsssl/docbook/print/version.dsl deleted file mode 100755 index 2fd44739..00000000 --- a/docs/dsssl/docbook/print/version.dsl +++ /dev/null @@ -1,16 +0,0 @@ -;; $Id$ -;; -;; This file is part of the Modular DocBook Stylesheet distribution. -;; See ../README or http://www.nwalsh.com/docbook/dsssl/ -;; - -;; If **ANY** change is made to this file, you _MUST_ alter the -;; following definition: - -(define (stylesheet-version) - (let* ((version "&VERSION;") - (verslen (string-length version))) - (string-append - "Modular DocBook Print Stylesheet Version " - ;; trim off the trailing newline - (substring version 0 (- verslen 1))))) diff --git a/docs/dsssl/html-common.dsl.in b/docs/dsssl/html-common.dsl.in deleted file mode 100644 index 2b06d18a..00000000 --- a/docs/dsssl/html-common.dsl.in +++ /dev/null @@ -1,254 +0,0 @@ -;; -*- Scheme -*- -;; -;; $Id$ -;; - -;; Returns the depth of the auto-generated TOC (table of -;; contents) that should be made at the nd-level -(define (toc-depth nd) - (if (string=? (gi nd) "book") - 3 ; the depth of the top-level TOC - 1 ; the depth of all other TOCs - )) - -;; re-defining element-id as we need to get the id of the parent -;; element not only for title but also for question in the faq -(define (element-id #!optional (nd (current-node))) - (let ((elem (if (equal? (gi nd) (normalize "title")) (parent nd) - (if (equal? (gi nd) (normalize "question")) (parent nd) - nd)))) - (if (attribute-string (normalize "id") elem) - (attribute-string (normalize "id") elem) - (generate-anchor elem)))) - -;; Make function definitions bold -(element (funcdef function) - ($bold-seq$ - (make sequence - (process-children) - ) - ) - ) - - -;; There are two different kinds of optionals -;; optional parameters and optional parameter parts. -;; An optional parameter is identified by an optional tag -;; with a parameter tag as its parent -;; and only whitespace between them -(element optional - ;;check for true optional parameter - (if (is-true-optional (current-node)) - ;; yes - handle '[...]' in paramdef - (process-children-trim) - ;; no - do '[...]' output - (make sequence - (literal %arg-choice-opt-open-str%) - (process-children-trim) - (literal %arg-choice-opt-close-str%) - ) - ) - ) - -;; Print out parameters in italic -(element (paramdef parameter) - (make sequence - font-posture: 'italic - (process-children-trim) - ) - ) - -;; Now this is going to be tricky -(element paramdef - (make sequence - ;; special treatment for first parameter in funcsynopsis - (if (equal? (child-number (current-node)) 1) - ;; is first ? - (make sequence - ;; start parameter list - (literal " (") - ;; is optional ? - ( if (has-true-optional (current-node)) - (literal %arg-choice-opt-open-str%) - (empty-sosofo) - ) - ) - ;; not first - (empty-sosofo) - ) - - ;; - (process-children-trim) - - ;; special treatment for last parameter - (if (equal? (gi (ifollow (current-node))) (normalize "paramdef")) - ;; more parameters will follow - (make sequence - ;; next is optional ? - ( if (has-true-optional (ifollow (current-node))) - ;; optional - (make sequence - (literal " ") - (literal %arg-choice-opt-open-str%) - ) - ;; not optional - (empty-sosofo) - ) - (literal ", " ) - ) - ;; last parameter - (make sequence - (literal - (let loop ((result "")(count (count-true-optionals (parent (current-node))))) - (if (<= count 0) - result - (loop (string-append result %arg-choice-opt-close-str%)(- count 1)) - ) - ) - ) - ( literal ")" ) - ) - ) - ) - ) - -(element function - (let* ((function-name (data (current-node))) - (linkend - (string-append - "function." - (case-fold-down (string-replace - (string-replace function-name "_" "-") - "::" ".")))) - (target (element-with-id linkend)) - (parent-gi (gi (parent)))) - (cond - ;; function names should be plain in FUNCDEF - ((equal? parent-gi "funcdef") - (process-children)) - - ;; If a valid ID for the target function is not found, or if the - ;; FUNCTION tag is within the definition of the same function, - ;; make it bold, add (), but don't make a link - ((or (node-list-empty? target) - (equal? (case-fold-down - (data (node-list-first - (select-elements - (node-list-first - (children - (select-elements - (children - (ancestor-member (parent) (list "refentry"))) - "refnamediv"))) - "refname")))) - (case-fold-down function-name))) - ($bold-seq$ - (make sequence - (process-children) - (literal "()")))) - - ;; Else make a link to the function and add () - (else - (make element gi: "A" - attributes: (list - (list "HREF" (href-to target))) - ($bold-seq$ - (make sequence - (process-children) - (literal - ) - (literal "()")))))))) - - -;; Dispaly of examples -(element example - (make sequence - (make element gi: "TABLE" - attributes: (list - (list "WIDTH" "100%") - (list "BORDER" "0") - (list "CELLPADDING" "0") - (list "CELLSPACING" "0") - (list "CLASS" "EXAMPLE")) - (make element gi: "TR" - (make element gi: "TD" - ($formal-object$)))))) - - -;; Prosessing tasks for the frontpage -(mode book-titlepage-recto-mode - (element authorgroup - (process-children)) - - (element author - (let ((author-name (author-string)) - (author-affil (select-elements (children (current-node)) - (normalize "affiliation")))) - (make sequence - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (literal author-name)) - (process-node-list author-affil)))) - - (element editor - (let ((editor-name (author-string))) - (make sequence - (if (first-sibling?) - (make element gi: "H2" - attributes: (list (list "CLASS" "EDITEDBY")) - (literal (gentext-edited-by))) - (empty-sosofo)) - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (literal editor-name))))) -) - -;; Display of question tags, link targets -(element question - (let* ((chlist (children (current-node))) - (firstch (node-list-first chlist)) - (restch (node-list-rest chlist))) - (make element gi: "B" - (make element gi: "DIV" - attributes: (list (list "CLASS" (gi))) - (make element gi: "P" - (make element gi: "A" - attributes: (list (list "NAME" (element-id))) - (empty-sosofo)) - (make element gi: "B" - (literal (question-answer-label (current-node)) " ")) - (process-node-list (children firstch))) - (process-node-list restch)))) ) - -;; Adding class HTML parameter to examples -;; having a role parameter, to make PHP examples -;; distinguisable from other ones in the manual -(define ($verbatim-display$ indent line-numbers?) - (let ( -(content (make element gi: "PRE" - attributes: (list - (list "CLASS" (if (attribute-string (normalize "role")) - (attribute-string (normalize "role")) - (gi)))) - (if (or indent line-numbers?) - ($verbatim-line-by-line$ indent line-numbers?) - (process-children-trim))))) - (if %shade-verbatim% -(make element gi: "TABLE" - attributes: (list - (list "BORDER" "0") - (list "BGCOLOR" "#E0E0E0") - (list "CELLPADDING" "5") - ) - (make element gi: "TR" - (make element gi: "TD" - content))) -(make sequence - (para-check) - content - (para-check 'restart))))) - -(define (linebreak) (make element gi: "BR" (empty-sosofo))) - -(define %html-header-tags% - '(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html; charset=@ENCODING@")))) diff --git a/docs/dsssl/html.dsl b/docs/dsssl/html.dsl deleted file mode 100644 index 851c6758..00000000 --- a/docs/dsssl/html.dsl +++ /dev/null @@ -1,22 +0,0 @@ - - - -]> - - - - - -(define %html-ext% ".html") -(define %output-dir% "html") - -&html-common.dsl; -&common.dsl; - - - - - - - diff --git a/docs/dsssl/php.dsl b/docs/dsssl/php.dsl deleted file mode 100644 index 94c76141..00000000 --- a/docs/dsssl/php.dsl +++ /dev/null @@ -1,22 +0,0 @@ - - - -]> - - - - - -(define %html-ext% ".php") -(define %output-dir% "phpweb") - -&html-common.dsl; -&common.dsl; - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/40chg.txt b/docs/dtds/dbxml-4.1.2/40chg.txt deleted file mode 100755 index f1c720a6..00000000 --- a/docs/dtds/dbxml-4.1.2/40chg.txt +++ /dev/null @@ -1,53 +0,0 @@ -19 June 2000 - -Changes from DocBook V3.1 to DocBook XML V4.1: - -Global: - -- Broad changes required for XML compatibility -- Added a *provisional* set of character entities based on the ISO - entity sets. The DocBook TC is not willing to accept the long-term - responsibility for defining and maintaining these sets. The TC - will ask OASIS to form a new TC for this purpose. - -Markup: - -- RFE 17: Added a common attribute 'Condition' for generic effectivity -- RFE 38: The nav.class elements (ToC|LoT|Index|Glossary|Bibliography) are - now allowed at the beginning and end of components and sections -- RFE 58: The 'optmult' and 'reqmult' attribute values have been - removed from Group -- RFE 65: Added several class attribute values to Filename and SystemItem - at the request of the Linux community -- RFE 73: Removed BookBiblio and SeriesInfo -- RFE 81: Added SidebarInfo to Sidebar -- RFE 87: Added 'xmlpi' and 'emptytag' as class values of SGMLTag -- RFE 92: Added 'CO' to Synopsis and LiteralLayout -- RFE 99: Added SimpleMsgEntry as an alternative to MsgEntry in order - to provide a simpler MsgSet construct -- RFE 103: Added RevDescription as an alternative to RevRemark in - RevHistory; this allows longer descriptive text in a revision -- RFE 104: Added 'Specification' to the list of document classes on Article -- RFE 108: Allow admonitions in Answers -- RFE 110: Allow a RevHistory on QandAEntry -- RFE 115: Allow optional Title on OrderedList and ItemizedList -- RFE 116: Added LineNumbering attribute to linespecific environments for - presentation of line numbers -- Added a common attribute 'Security' for effectivity -- Added synopsis markup for modern programming languages (e.g, object - oriented languages like Java, C++, and IDL) -- Renamed DocInfo to PrefaceInfo, ChapterInfo, AppendixInfo, etc. -- Comment was renamed Remark -- InterfaceDefinition was removed - -Other: - -- RFE 88: Added PEs to include/ignore dbnotn.mod and dbcent.mod -- RFE 102: Fixed some outstanding namecase problems -- RFE 105: Added PNG notation -- RFE 106: Removed some odd *.content PEs that interfered with - customization layers -- RFE 109: Added FPI to content of dbgenent.mod (for consistency) -- RFE 111: Added the Euro symbol -- Fixed bug in cals-tbl.dtd; a model group was used for the element - declaration, but the attlist declaration used "Table" literally. diff --git a/docs/dtds/dbxml-4.1.2/41chg.txt b/docs/dtds/dbxml-4.1.2/41chg.txt deleted file mode 100755 index 4bb6b914..00000000 --- a/docs/dtds/dbxml-4.1.2/41chg.txt +++ /dev/null @@ -1,18 +0,0 @@ -27 Aug 2000 - -Changes from DocBook V4.1.1 to DocBook V4.1.2: - -- Fixed broken ISO FPIs in docbook.cat introduced by - careless search-and-replace. - -Changes from DocBook V4.0 to DocBook V4.1.1: - -- Removed some 4.0 future use comments that had accidentally - been left in the DTD -- Fixed system identifiers in docbook.cat -- Added version information to all the ent/*.ent files -- Fixed a number of numeric character references in the ent/*.ent files -- Fixed a couple of incorrect FPIs. -- Renamed dbgenent.ent to dbgenent.mod for parity with SGML version - -See 40chg.txt for a list of the significant changes. diff --git a/docs/dtds/dbxml-4.1.2/ChangeLog b/docs/dtds/dbxml-4.1.2/ChangeLog deleted file mode 100755 index d527597e..00000000 --- a/docs/dtds/dbxml-4.1.2/ChangeLog +++ /dev/null @@ -1,101 +0,0 @@ -2000-08-12 Norman Walsh - - * 40chg.txt: Updated; changed version number - - * 41chg.txt, readme.txt: Updated; changed version number, release date - - * calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbook.cat: - Changed version number - - * docbookx.dtd: DocBook XML V4.1.1 released - -2000-07-06 Norman Walsh - - * 40chg.txt, 41chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbook.cat, readme.txt: - Changed version numbers to 4.1.1beta1 - - * docbook.cat: Fixed incorrect system identifiers - - * docbookx.dtd: Version 4.1.1beta1 released - -2000-06-19 Norman Walsh - - * 40chg.txt: Added notes about comment and interfacedefinition - - * 41chg.txt: New file. - - * calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbook.cat, docbookx.dtd, readme.txt: - Updated version numbers to 4.1 - - * dbgenent.ent: Fixed FPI; added 'XML' - - * dbhierx.mod: Removed 4.0 future use comments - - * dbpoolx.mod: Removed 4.0 future use comments; fixed table model selection comment; fixed 'Norman Walsh' FPIs - - * docbook.cat: New file. - -2000-05-18 Norman Walsh - - * 40chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt: - Removed references to beta6 - - * docbookx.dtd: DocBook XML V4.0 released. - -2000-04-10 Norman Walsh - - * 40chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt: - Updated release date and version to 4.0beta6 - - * dbpoolx.mod: Added support for EBNF hook; fixed equation content bug - -2000-04-03 Norman Walsh - - * 40chg.txt: Added note about renaming DocInfo to *Info. - - * 40chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt: - Updated version numbers - -2000-03-30 Norman Walsh - - * dbpoolx.mod: Removed beginpage from highlights.mix; it's excluded in the SGML version. - -2000-03-24 Norman Walsh - - * 40chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt: - Updated version numbers - - * dbefsyn.mod: Removed - - * dbpoolx.mod: Removed ELEMENT from comments to ease text searching of the DTD. - Merged dbefsyn.mod into dbpoolx.mod - Added Modifier as an optional element at the end of MethodSynopsis - and MethodParam. - -2000-03-07 Norman Walsh - - * 40chg.txt: New file. - - * 40chg.txt, calstblx.dtd, dbcentx.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt, soextblx.dtd: - Updated internal versions to beta3 - -2000-03-03 Norman Walsh - - * dbpoolx.mod: Removed erroneous comment about inline synopses - -2000-03-02 Norman Walsh - - * calstblx.dtd, dbcentx.mod, dbefsyn.mod, dbgenent.ent, dbhierx.mod, dbnotnx.mod, dbpoolx.mod, docbookx.dtd, readme.txt, soextblx.dtd: - New file. - - * dbefsyn.mod, dbpoolx.mod: Added ooclass, oointerface, and ooexception as wrappers for modifiers - and names in classsynopsis. Also allow them inline. - - Fixed SGML PE parsing problem with hook PEs. - - * dbhierx.mod, dbpoolx.mod: Added hook PEs for future module extension - - * dbpoolx.mod: Removed unused PEs for equation content - - * dbpoolx.mod: Made primary optional (XML has no #CONREF) - diff --git a/docs/dtds/dbxml-4.1.2/calstblx.dtd b/docs/dtds/dbxml-4.1.2/calstblx.dtd deleted file mode 100755 index dfc4e7aa..00000000 --- a/docs/dtds/dbxml-4.1.2/calstblx.dtd +++ /dev/null @@ -1,199 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/dbcentx.mod b/docs/dtds/dbxml-4.1.2/dbcentx.mod deleted file mode 100755 index 407828cb..00000000 --- a/docs/dtds/dbxml-4.1.2/dbcentx.mod +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - - - - - - - -%ISOamsa; -]]> - - - -%ISOamsb; -]]> - - - -%ISOamsc; -]]> - - - -%ISOamsn; -]]> - - - -%ISOamso; -]]> - - - -%ISOamsr; -]]> - - - -%ISObox; -]]> - - - -%ISOcyr1; -]]> - - - -%ISOcyr2; -]]> - - - -%ISOdia; -]]> - - - -%ISOgrk1; -]]> - - - -%ISOgrk2; -]]> - - - -%ISOgrk3; -]]> - - - -%ISOgrk4; -]]> - - - -%ISOlat1; -]]> - - - -%ISOlat2; -]]> - - - -%ISOnum; -]]> - - - -%ISOpub; -]]> - - - -%ISOtech; -]]> - - - diff --git a/docs/dtds/dbxml-4.1.2/dbgenent.mod b/docs/dtds/dbxml-4.1.2/dbgenent.mod deleted file mode 100755 index 5dc9a41e..00000000 --- a/docs/dtds/dbxml-4.1.2/dbgenent.mod +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/dbhierx.mod b/docs/dtds/dbxml-4.1.2/dbhierx.mod deleted file mode 100755 index 2b62c618..00000000 --- a/docs/dtds/dbxml-4.1.2/dbhierx.mod +++ /dev/null @@ -1,2074 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbhier; -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbhier2; -]]> - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - -]]> - - - -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> - - - -]]> - - - - - -]]> - - - -]]> - - - - - -]]> - -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - diff --git a/docs/dtds/dbxml-4.1.2/dbnotnx.mod b/docs/dtds/dbxml-4.1.2/dbnotnx.mod deleted file mode 100755 index ef0d4378..00000000 --- a/docs/dtds/dbxml-4.1.2/dbnotnx.mod +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/dbpoolx.mod b/docs/dtds/dbxml-4.1.2/dbpoolx.mod deleted file mode 100755 index 50b3615d..00000000 --- a/docs/dtds/dbxml-4.1.2/dbpoolx.mod +++ /dev/null @@ -1,7516 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -%rdbpool; -]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - - - - -]]> - - - -]]> - -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - - - - - - - - - - - - - - - -]]> - - - - - - - - - - - - - - - - - - - - - - - - -]]> - -%tablemodel; - -]]> - - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> - - -]]> - - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - ]]> - - - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> - - - - - - - -]]> - - - -]]> - ]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - ]]> - - -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - -]]> - - - - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - -]]> -]]> - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - - - -]]> - - - - - - - -]]> -]]> - - - - - - - -]]> - - - - - - -]]> -]]> - - - - - - - - - - -]]> - - - - - - - - - - -]]> -]]> - - - - - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - - - - -]]> - -]]> - - - - - - - -]]> - - - -]]> - - - -]]> - - - -]]> -]]> -]]> - - - diff --git a/docs/dtds/dbxml-4.1.2/docbook.cat b/docs/dtds/dbxml-4.1.2/docbook.cat deleted file mode 100755 index c24e5df7..00000000 --- a/docs/dtds/dbxml-4.1.2/docbook.cat +++ /dev/null @@ -1,59 +0,0 @@ - -- ...................................................................... -- - -- Catalog data for DocBook XML V4.1.2 .................................... -- - -- File docbook.cat ..................................................... -- - - -- Please direct all questions, bug reports, or suggestions for - changes to the docbook@lists.oasis-open.org mailing list. For more - information, see http://www.oasis-open.org/. - -- - - -- This is the catalog data file for DocBook XML V4.1.2. It is provided as - a convenience in building your own catalog files. You need not use - the filenames listed here, and need not use the filename method of - identifying storage objects at all. See the documentation for - detailed information on the files associated with the DocBook DTD. - See SGML Open Technical Resolution 9401 for detailed information - on supplying and using catalog data. - -- - - -- ...................................................................... -- - -- DocBook driver file .................................................. -- - -PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd" - - -- ...................................................................... -- - -- DocBook modules ...................................................... -- - -PUBLIC "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "calstblx.dtd" -PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "soextblx.dtd" -PUBLIC "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" "dbpoolx.mod" -PUBLIC "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" "dbhierx.mod" -PUBLIC "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" "dbgenent.mod" -PUBLIC "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "dbnotnx.mod" -PUBLIC "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" "dbcentx.mod" - - -- ...................................................................... -- - -- ISO entity sets ...................................................... -- - -PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "ent/iso-dia.ent" -PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "ent/iso-num.ent" -PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "ent/iso-pub.ent" -PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "ent/iso-tech.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "ent/iso-lat1.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "ent/iso-lat2.ent" -PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "ent/iso-grk1.ent" -PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "ent/iso-grk2.ent" -PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "ent/iso-grk3.ent" -PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "ent/iso-grk4.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "ent/iso-amsa.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "ent/iso-amsb.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "ent/iso-amsc.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "ent/iso-amsn.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "ent/iso-amso.ent" -PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "ent/iso-amsr.ent" -PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "ent/iso-box.ent" -PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "ent/iso-cyr1.ent" -PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "ent/iso-cyr2.ent" - - -- End of catalog data for DocBook XML V4.1.2 ............................. -- - -- ...................................................................... -- diff --git a/docs/dtds/dbxml-4.1.2/docbookx.dtd b/docs/dtds/dbxml-4.1.2/docbookx.dtd deleted file mode 100755 index 7ff277fc..00000000 --- a/docs/dtds/dbxml-4.1.2/docbookx.dtd +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - - - -%dbnotn; -]]> - - - - - - - -%dbcent; -]]> - - - - - - - - -%dbpool; -]]> - - - - - - -%rdbmods; -]]> - - - - - -%dbhier; -]]> - - - - - - -%dbgenent; -]]> - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/ChangeLog b/docs/dtds/dbxml-4.1.2/ent/ChangeLog deleted file mode 100755 index 74031333..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -1999-03-31 Norman Walsh - - * iso-num.ent: Removed declarations for lt and amp. They're predefined in XML and the decls. were causing IE5 to choke - -1999-01-31 Norman Walsh - - * iso-amsa.ent, iso-amsb.ent, iso-amsc.ent, iso-amsn.ent, iso-amso.ent, iso-amsr.ent, iso-box.ent, iso-cyr1.ent, iso-cyr2.ent, iso-dia.ent, iso-grk1.ent, iso-grk2.ent, iso-grk3.ent, iso-grk4.ent, iso-lat1.ent, iso-lat2.ent, iso-num.ent, iso-pub.ent, iso-tech.ent: - New file. - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent deleted file mode 100755 index 1b64b468..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amsa.ent +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent deleted file mode 100755 index 38bd2e7e..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amsb.ent +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent deleted file mode 100755 index 8485fe38..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amsc.ent +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent deleted file mode 100755 index 7e9d5786..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amsn.ent +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent deleted file mode 100755 index 61f5c4da..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amso.ent +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent b/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent deleted file mode 100755 index 9ef9da0e..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-amsr.ent +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-box.ent b/docs/dtds/dbxml-4.1.2/ent/iso-box.ent deleted file mode 100755 index 1f875305..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-box.ent +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent b/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent deleted file mode 100755 index 2516f8e0..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-cyr1.ent +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent b/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent deleted file mode 100755 index 3edbde0a..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-cyr2.ent +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent b/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent deleted file mode 100755 index 3a4b55c2..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-dia.ent +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent b/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent deleted file mode 100755 index b040985f..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-grk1.ent +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent b/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent deleted file mode 100755 index 63de411c..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-grk2.ent +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent b/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent deleted file mode 100755 index b59c53c4..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-grk3.ent +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent b/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent deleted file mode 100755 index ace7c817..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-grk4.ent +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent b/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent deleted file mode 100755 index 2ec16fff..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-lat1.ent +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent b/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent deleted file mode 100755 index e94ec18d..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-lat2.ent +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-num.ent b/docs/dtds/dbxml-4.1.2/ent/iso-num.ent deleted file mode 100755 index 7f4844c5..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-num.ent +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent b/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent deleted file mode 100755 index 56ede364..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-pub.ent +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent b/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent deleted file mode 100755 index 7264f6b8..00000000 --- a/docs/dtds/dbxml-4.1.2/ent/iso-tech.ent +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/phpdocxml.dcl b/docs/dtds/dbxml-4.1.2/phpdocxml.dcl deleted file mode 100755 index fed21030..00000000 --- a/docs/dtds/dbxml-4.1.2/phpdocxml.dcl +++ /dev/null @@ -1,179 +0,0 @@ -" - PIC "?>" - SHORTREF NONE - - NAMES - SGMLREF - - QUANTITY NONE - - ENTITIES - "amp" 38 - "lt" 60 - "gt" 62 - "quot" 34 - "apos" 39 - - FEATURES - MINIMIZE - DATATAG NO - OMITTAG NO - RANK NO - SHORTTAG - STARTTAG - EMPTY NO - UNCLOSED NO - NETENABL IMMEDNET - ENDTAG - EMPTY NO - UNCLOSED NO - ATTRIB - DEFAULT YES - OMITNAME NO - VALUE NO - EMPTYNRM YES - IMPLYDEF - ATTLIST NO - DOCTYPE NO - ELEMENT NO - ENTITY NO - NOTATION NO - LINK - SIMPLE NO - IMPLICIT NO - EXPLICIT NO - OTHER - CONCUR NO - SUBDOC NO - FORMAL NO - URN NO - KEEPRSRE YES - VALIDITY TYPE - ENTITIES - REF ANY - INTEGRAL YES - APPINFO NONE - SEEALSO "ISO 8879:1986//NOTATION - Extensible Markup Language (XML) 1.0//EN" -> diff --git a/docs/dtds/dbxml-4.1.2/readme.txt b/docs/dtds/dbxml-4.1.2/readme.txt deleted file mode 100755 index 383f7fed..00000000 --- a/docs/dtds/dbxml-4.1.2/readme.txt +++ /dev/null @@ -1,16 +0,0 @@ -README for DocBook XML V4.1.2 - -This is DocBook XML V4.1.2, released 27 Aug 2000. - -See 41chg.txt for information about what has changed since DocBook 4.0. - -For more information about DocBook, please see - - http://www.oasis-open.org/docbook/ - -a partial mirror of the official DocBook site is available at - - http://docbook.org/ - -Please send all questions, comments, concerns, and bug reports to the -DocBook mailing list: docbook@lists.oasis-open.org diff --git a/docs/dtds/dbxml-4.1.2/soextblx.dtd b/docs/dtds/dbxml-4.1.2/soextblx.dtd deleted file mode 100755 index e4ea0eda..00000000 --- a/docs/dtds/dbxml-4.1.2/soextblx.dtd +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/dtds/dbxml-4.1.2/tblcals.xml b/docs/dtds/dbxml-4.1.2/tblcals.xml deleted file mode 100755 index 04a2b1aa..00000000 --- a/docs/dtds/dbxml-4.1.2/tblcals.xml +++ /dev/null @@ -1,26 +0,0 @@ - - -
    Table Test - - - - - - - -foo -bar - - - - -bar - - -bar - - -
    - -
    - diff --git a/docs/dtds/dbxml-4.1.2/tblxchg.xml b/docs/dtds/dbxml-4.1.2/tblxchg.xml deleted file mode 100755 index 8b5205bd..00000000 --- a/docs/dtds/dbxml-4.1.2/tblxchg.xml +++ /dev/null @@ -1,26 +0,0 @@ - - -
    Table Test - - - - - - - -foo -bar - - - - -bar - - -bar - - -
    - -
    - diff --git a/docs/en/appendixes/bugs.xml b/docs/en/appendixes/bugs.xml deleted file mode 100644 index 7623dcb1..00000000 --- a/docs/en/appendixes/bugs.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - BUGS - - Check the BUGS file that comes with - the latest distribution of Smarty, or check the website. - - - diff --git a/docs/en/appendixes/resources.xml b/docs/en/appendixes/resources.xml deleted file mode 100644 index a1972111..00000000 --- a/docs/en/appendixes/resources.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - Resources - Smarty's homepage is located at - &url.smarty; - - - - - - You can join the mailing list by sending an e-mail to - &ml.general.sub;. An archive of the mailing list can - be viewed at here - - - - Forums are at &url.forums; - - - - The wiki is located at &url.wiki; - - - - Join the chat at irc.freenode.net#smarty - - - - FAQ's are here and here - - - - - - diff --git a/docs/en/appendixes/tips.xml b/docs/en/appendixes/tips.xml deleted file mode 100644 index be61b7f6..00000000 --- a/docs/en/appendixes/tips.xml +++ /dev/null @@ -1,449 +0,0 @@ - - - - Tips & Tricks - - - - Blank Variable Handling - - There may be times when you want to print a default value for an empty - variable instead of printing nothing, such as printing - &nbsp; so that - html table backgrounds work properly. Many would use an - {if} - statement to handle this, but there is a shorthand way with Smarty, using - the default - variable modifier. - - Undefined variable errors will show if PHP - - error_reporting() is E_ALL - and a variable had not been assigned to Smarty. - - - - - - Printing &nbsp; when a variable is empty - - - - - -See also -default modifier and -default variable handling. - - - - - - Default Variable Handling - - If a variable is used frequently throughout your templates, applying - the default - modifier every time it is mentioned can get a bit ugly. You - can remedy this by assigning the variable its default value with the - {assign} - function. - - - Assigning a template variable its default value - - - - - - See also - default - modifier and blank variable handling. - - - - - Passing variable title to header template - - When the majority of your templates use the same headers and footers, it - is common to split those out into their own templates and - - {include} them. - But what if the header needs to have a different title, depending on - what page you are coming from? You can pass the title to the header - as an attribute when - it is included. - - - - Passing the title variable to the header template - - - mainpage.tpl - When the main page is drawn, - the title of Main Page is passed to the - header.tpl, and will subsequently be used as the title. - - - - - - - archives.tpl - When the - archives page is drawn, the title will be Archives. - Notice in the archive example, we are using a variable from the - archives_page.conf - file instead of a hard coded variable. - - - - - - - header.tpl - Notice that Smarty News is - printed if the $title variable is not set, using the - default - variable modifier. - - - - -{$title|default:'Smarty News'} - - -]]> - - - - footer.tpl - - - - -]]> - - - - - - Dates - - As a rule of thumb, always pass dates to Smarty as - timestamps. This - allows template designers to use the date_format - modifier for full control over date formatting, and also makes it - easy to compare dates if necessary. - - - Using date_format - - - - - This will output: - - - - - - - - - This will output: - - - - - - Dates can be compared in the template by timestamps with: - - - - - - - When using - {html_select_date} in a template, the programmer - will most likely want to convert the output from the form back into - timestamp format. Here is a function to help you with that. - - - Converting form date elements back to a timestamp - - -]]> - - - - - See also - - {html_select_date}, - - {html_select_time}, - - date_format - and - $smarty.now, - - - - - WAP/WML - - WAP/WML templates require a php - Content-Type header - to be passed along - with the template. The easist way to do this would be to write a custom - function that prints the header. If you are using - caching, that won't - work so we'll do it using the - {insert} - tag; remember {insert} tags are not - cached! Be sure that there is nothing output to the browser before the - template, or else the header may fail. - - - Using {insert} to write a WML Content-Type header - - -]]> - - - your Smarty template must begin with the insert tag : - - - - - - - - - - - - -

    - Welcome to WAP with Smarty! - Press OK to continue... -

    -
    - - -

    - Pretty easy isn't it? -

    -
    -
    -]]> -
    -
    -
    - - - Componentized Templates - - Traditionally, programming templates into your applications goes as - follows: First, you accumulate your variables within your PHP - application, (maybe with database queries.) Then, you instantiate your - Smarty object, assign() - the variables and display() - the template. So lets - say for example we have a stock ticker on our template. We would - collect the stock data in our application, then assign these variables - in the template and display it. Now wouldn't it be nice if you could - add this stock ticker to any application by merely including the - template, and not worry about fetching the data up front? - - - You can do this by writing a custom plugin for fetching the content and - assigning it to a template variable. - - - componentized template - - function.load_ticker.php - - drop file in - - $plugins directory - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - See also - {include_php}, - {include} - and - {php}. - - - - - Obfuscating E-mail Addresses - - Do you ever wonder how your email address gets on so many spam mailing - lists? One way spammers collect email addresses is from web pages. To - help combat this problem, you can make your email address show up in - scrambled javascript in the HTML source, yet it it will look and work - correctly in the browser. This is done with the - - {mailto} plugin. - - - Example of template the Obfuscating an email address - -Send inquiries to -{mailto address=$EmailAddress encode='javascript' subject='Hello'} - -]]> - - - - Technical Note - - This method isn't 100% foolproof. A spammer could conceivably program his - e-mail collector to decode these values, but not likely.... - hopefully..yet ... wheres that quantum computer :-?. - - - - See also - escape - modifier and - {mailto}. - - -
    - - diff --git a/docs/en/appendixes/troubleshooting.xml b/docs/en/appendixes/troubleshooting.xml deleted file mode 100644 index 535d1318..00000000 --- a/docs/en/appendixes/troubleshooting.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - Troubleshooting - - - Smarty/PHP errors - - Smarty can catch many errors such as missing tag attributes - or malformed variable names. If this happens, you will see an error - similar to the following: - - - Smarty errors - - - - - - Smarty shows you the template name, the line number and the error. - After that, the error consists of the actual line number in the Smarty - class that the error occured. - - - - There are certain errors that Smarty cannot catch, such as missing - close tags. These types of errors usually end up in PHP compile-time - parsing errors. - - - - PHP parsing errors - - - - - - - When you encounter a PHP parsing error, the error line number will - correspond to the compiled PHP script, NOT the template itself. Usually - you can look at the template and spot the syntax error. Here are some - common things to look for: missing close tags for - {if}{/if} or - {section}{/section} - , or syntax of logic within an {if} tag. If you - can't find the error, you might have to open the compiled PHP file and - go to the line number to figure out where the corresponding error is in - the template. - - - - - Other common errors - - - - - - - - - The - $template_dir is incorrect, doesn't exist or - the file index.tpl is not in the - templates/ directory - - - - - A - {config_load} - function is within a template (or - config_load() - has been called) and either - $config_dir - is incorrect, does not exist or - site.conf is not in the directory. - - - - - - - - - - - - - Either the - - $compile_diris incorrectly set, - the directory does not exist, or templates_c is a - file and not a directory. - - - - - - - - - - - - The - $compile_dir is not writable by the web server. - See the bottom of the - installing smarty page - for more about permissions. - - - - - - - - - - - This means that - - $caching is enabled and either; - the - $cache_dir - is incorrectly set, the directory does not exist, - or cache/ is a - file and not a directory. - - - - - - - - - - - - This means that - $caching is - enabled and the - $cache_dir - is not writable by the web server. See the bottom of the - installing smarty page - for permissions. - - - - - - - See also - debugging, - - $error_reporting - and - trigger_error(). - - - - - diff --git a/docs/en/bookinfo.xml b/docs/en/bookinfo.xml deleted file mode 100755 index 694575f6..00000000 --- a/docs/en/bookinfo.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - Smarty - the compiling PHP template engine - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/docs/en/designers/chapter-debugging-console.xml b/docs/en/designers/chapter-debugging-console.xml deleted file mode 100644 index 469b0b5a..00000000 --- a/docs/en/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - Debugging Console - - There is a debugging console included with Smarty. The console informs you - of all the - included templates, - assigned variables and - config - file variables for the current invocation of the template. A template file - named debug.tpl is included with the distribution of - Smarty which controls the formatting of the console. - - - Set $debugging - to &true; in Smarty, and if needed set - $debug_tpl to the template resource path to - debug.tpl (this is in - SMARTY_DIR by default). - When you load the page, a Javascript console window will pop up - and give you the names of all the included templates and assigned variables - for the current page. - To see the available variables for a particular - template, see the - {debug} template function. - To disable the debugging console, set - $debugging to - &false;. You can also temporarily turn on the debugging console by putting - SMARTY_DEBUG in the URL if you enable this option with - $debugging_ctrl - . - - - Technical Note - - The debugging console does not work when you use the - fetch() - API, only when using - display(). - It is a set of javascript statements added - to the very bottom of the generated template. If you do not like javascript, - you can edit the debug.tpl template to format the output - however you like. Debug data is not cached and debug.tpl - info is not included in the output of the debug console. - - - - - The load times of each template and config file are in seconds, or - fractions thereof. - - - - See also - troubleshooting, - - $error_reporting - and - trigger_error(). - - - - - - diff --git a/docs/en/designers/config-files.xml b/docs/en/designers/config-files.xml deleted file mode 100644 index 17884508..00000000 --- a/docs/en/designers/config-files.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - Config Files - - Config files are handy for designers to manage global template - variables from one file. One example is template colors. Normally - if you wanted to change the color scheme of an application, you - would have to go through each and every template file and change the - colors. With a config file, the colors can be kept in one place, and - only one file needs to be updated. - - - Example of config file syntax - - - - - - Values of config file - variables can be in quotes, but not necessary. You can use - either single or double quotes. If you have a value that spans more - than one line, enclose the entire value with triple quotes - ("""). You can put comments into config files by any syntax that is - not a valid config file syntax. We recommend using a - # (hash) at the beginning of the line. - - - The example config file above has two sections. Section names are - enclosed in [brackets]. Section names can be arbitrary strings not - containing [ or ] symbols. The - four variables at the top are global variables, or variables not - within a section. These variables are always loaded from the config - file. If a particular section is loaded, then the global variables - and the variables from that section are also loaded. If a variable - exists both as a global and in a section, the section variable is - used. If you name two variables the same within a section, the last - one will be used unless - $config_overwrite is disabled. - - - Config files are loaded into templates with the built-in template function - - {config_load} or the API config_load() function. - - - You can hide variables or entire sections by prepending the variable - name or section name with a period eg [.hidden]. This is useful if your - application reads the config files and gets sensitive data from them - that the template engine does not need. If you have third parties - doing template editing, you can be certain that they cannot read - sensitive data from the config file by loading it into the template. - - - See also - {config_load}, - $config_overwrite, - get_config_vars(), - clear_config() - and - config_load() - - - diff --git a/docs/en/designers/language-basic-syntax.xml b/docs/en/designers/language-basic-syntax.xml deleted file mode 100644 index 5ca67515..00000000 --- a/docs/en/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - Basic Syntax - - All Smarty template tags are enclosed within delimiters. By - default these are { and - }, but they can be changed. - - - For the examples in this manual, we will assume that you are using the default - delimiters. In Smarty, all content outside of delimiters is displayed as - static content, or unchanged. When Smarty encounters template tags, it - attempts to interpret them, and displays the appropriate output in their - place. - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - - diff --git a/docs/en/designers/language-basic-syntax/language-escaping.xml b/docs/en/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index d4b6b7cd..00000000 --- a/docs/en/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - Escaping Smarty Parsing - - It is sometimes desirable or even necessary to have Smarty ignore sections it - would otherwise parse. A classic example is embedding Javascript or CSS code in - a template. The problem arises as those languages use the { and } characters - which are also the default - delimiters for Smarty. - - - - The simplest thing is to avoid the situation altogether by separating your Javascript - and CSS code into their own files and then using standard HTML methods to access them. - - - - Including literal content is possible using - {literal}..{/literal} blocks. - Similar to HTML entity usage, you can use {ldelim},{rdelim} or - {$smarty.ldelim} to display the current delimiters. - - - - It is often convenient to simply change Smarty's - $left_delimiter and - - $right_delimiter. - - - changing delimiters example - -left_delimiter = ''; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - Where the template is: - - - to Smarty - -]]> - - - - diff --git a/docs/en/designers/language-basic-syntax/language-math.xml b/docs/en/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 553fdc86..00000000 --- a/docs/en/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - Math - - Math can be applied directly to variable values. - - - math examples - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - - See also the - {math} function for complex equations - and {eval}. - - - diff --git a/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 8749ba31..00000000 --- a/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - Attributes - - Most of the functions - take attributes that specify or modify - their behavior. Attributes to Smarty functions are much like HTML - attributes. Static values don't have to be enclosed in quotes, but it - is recommended for literal strings. Variables may also be used, and - should not be in quotes. - - - Some attributes require boolean values (&true; or &false;). These - can be specified - as either unquoted true, - on, and yes, or - false, off, and - no. - - - function attribute syntax - - - {html_options options=$companies selected=$company_id} - -]]> - - - - diff --git a/docs/en/designers/language-basic-syntax/language-syntax-comments.xml b/docs/en/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 36eafcaf..00000000 --- a/docs/en/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - Comments - - Template comments are surrounded by asterisks, and that is surrounded - by the - delimiter - tags like so: - - - - - - - - Smarty comments are NOT displayed in the final output of the template, - unlike <!-- HTML comments -->. - These are useful for making internal notes in the templates which no one will see ;-) - - - Comments within a template - - - -{$title} - - - -{* another single line smarty comment *} - - -{* this multiline smarty - comment is - not sent to browser -*} - -{********************************************************* -Multi line comment block with credits block - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* The header file with the main logo and stuff *} -{include file='header.tpl'} - - -{* Dev note: the $includeFile var is assigned in foo.php script *} - -{include file=$includeFile} - -{* this - {html_options options=$vals selected=$selected_id} - -*} - - -{* $affiliate|upper *} - -{* you cannot nest comments *} -{* - -*} - - -{* cvs tag for a template, below the 36 SHOULD be an american currency -. however its converted in cvs.. *} -{* $Id: Exp $ *} -{* $Id: *} - - -]]> - - - - diff --git a/docs/en/designers/language-basic-syntax/language-syntax-functions.xml b/docs/en/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 2faec2ca..00000000 --- a/docs/en/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - Functions - - Every Smarty tag either prints a - variable or invokes some sort - of function. These are processed and displayed by enclosing the - function and its - attributes - within delimiters like so: - {funcname attr1='val1' attr2='val2'}. - - - function syntax - -{$name}! -{else} - hi, {$name} -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - - - - - - Both built-in functions - and custom functions - have the same syntax within templates. - - - Built-in functions are the - inner workings of Smarty, such as - {if}, - {section} and - {strip}. - There should be no need to change or modify them. - - - Custom functions are - additional - functions implemented via plugins. - They can be modified to your liking, or you can create new ones. - - {html_options} and - {popup} - are examples of custom functions. - - - - - See also register_function() - - - - diff --git a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 0b32a134..00000000 --- a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - Embedding Vars in Double Quotes - - - - - Smarty will recognize assigned - variables - embedded in "double quotes" so long as the variable name contains only numbers, - letters, under_scores and brackets[]. - See naming - for more detail. - - - - With any other characters, for example a .period or - $object>reference, then the variable must be - surrounded by `backticks`. - - - You cannot embed - modifiers, they must always - be applied outside of quotes. - - - - - Syntax examples - - - - - - - Practical examples - - - - - - - See also escape. - - - - diff --git a/docs/en/designers/language-basic-syntax/language-syntax-variables.xml b/docs/en/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 1fe0d692..00000000 --- a/docs/en/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - Variables - - Template variables start with the $dollar sign. They can contain numbers, - letters and underscores, much like a - PHP variable. - You can reference arrays - by index numerically or non-numerically. Also reference - object properties and methods. - - Config file variables - are an exception to the $dollar syntax - and are instead referenced with surrounding #hashmarks#, or - via the - - $smarty.config variable. - - - Variables - -bar} <-- display the object property "bar" -{$foo->bar()} <-- display the return value of object method "bar" -{#foo#} <-- display the config file variable "foo" -{$smarty.config.foo} <-- synonym for {#foo#} -{$foo[bar]} <-- syntax only valid in a section loop, see {section} -{assign var=foo value='baa'}{$foo} <-- displays "baa", see {assign} - -Many other combinations are allowed - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passing parameters -{"foo"} <-- static values are allowed - -{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - Request variables such as $_GET, - $_SESSION, etc are available via the - reserved - $smarty variable. - - - - See also - $smarty, - config variables - {assign} - and - assign(). - - - - diff --git a/docs/en/designers/language-builtin-functions.xml b/docs/en/designers/language-builtin-functions.xml deleted file mode 100644 index 0ad9a489..00000000 --- a/docs/en/designers/language-builtin-functions.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - Built-in Functions - - Smarty comes with several built-in functions. These built-in functions - are the integral part of the smarty template engine. You cannot create your own - custom functions - with the same name; and you should not need to - modify the built-in functions. - - - A few of these functions have an assign - attribute which collects the result the function to a named template - variable instead of being output; - much like the - {assign} function. - - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - - - diff --git a/docs/en/designers/language-builtin-functions/language-function-capture.xml b/docs/en/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 9813e947..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - {capture} - - - {capture} is used to collect the output of the template between the - tags into a variable instead of displaying it. Any content between - {capture name='foo'} and {/capture} is collected - into the variable specified in the name attribute. - - The captured content can be used in the - template from the variable $smarty.capture.foo - where foo is the value passed in the name attribute. - If you do not supply the name attribute, then default will - be used as the name ie $smarty.capture.default. - - {capture}'s can be nested. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - no - default - The name of the captured block - - - assign - string - No - n/a - The variable name where to assign the captured output to - - - - - - - - Caution - - Be careful when capturing {insert} - output. If you have - $caching - enabled and you have - {insert} - commands that you expect to run - within cached content, do not capture this content. - - - - - - {capture} with the name attribute - -{$smarty.capture.banner} -{/if} -]]> - - - - - {capture} into a template variable - This example also demonstrates the - {popup} - function - - -Your ip is {$smarty.server.REMOTE_ADDR}. -{/capture} -help -]]> - - - - - - - See also - $smarty.capture, - {eval}, - {fetch}, - fetch() - and {assign}. - - - - \ No newline at end of file diff --git a/docs/en/designers/language-builtin-functions/language-function-config-load.xml b/docs/en/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index b699ff43..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,186 +0,0 @@ - - - - {config_load} - - {config_load} is used for loading config - #variables# - from a configuration file into the template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - The name of the config file to include - - - section - string - No - n/a - The name of the section to load - - - scope - string - no - local - - How the scope of the loaded variables are treated, - which must be one of local, parent or global. local - means variables are loaded into the local template - context. parent means variables are loaded into both - the local context and the parent template that called - it. global means variables are available to all - templates. - - - - global - boolean - No - No - - Whether or not variables are visible to the parent - template, same as scope=parent. NOTE: This attribute is - deprecated by the scope attribute, but still supported. - If scope is supplied, this value is ignored. - - - - - - - - {config_load} - - The example.conf file. - - - - - and the template - - -{#pageTitle#|default:"No title"} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - Config Files - may also contain sections. You can load variables from - within a section with the added attribute - section. Note that global config - variables are always loaded along with section variables, - and same-named section variables overwrite the globals. - - - - Config file sections and the built-in - template function called - {section} - have nothing to do with each other, they just happen to share a common naming - convention. - - - - function {config_load} with section - - -{#pageTitle#} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - -See $config_overwrite -to create arrays of config file variables. - - - - See also the config files page, - config variables page, - $config_dir, - get_config_vars() - and - config_load(). - -
    - - diff --git a/docs/en/designers/language-builtin-functions/language-function-foreach.xml b/docs/en/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 383066f9..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,454 +0,0 @@ - - - - {foreach},{foreachelse} - - {foreach} is used to loop over an - associative array as well a numerically-indexed array, - unlike {section} - which is for looping over numerically-indexed arrays only. - The syntax for - {foreach} is much easier than - {section}, - but as a tradeoff it can only be used - for a single array. Every {foreach} tag must be - paired with a closing {/foreach} tag. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - from - array - Yes - n/a - The array you are looping through - - - item - string - Yes - n/a - The name of the variable that is the current - element - - - key - string - No - n/a - The name of the variable that is the current key - - - name - string - No - n/a - The name of the foreach loop for accessing - foreach properties - - - - - - - - - Required attributes are from and item. - - - - The name of the {foreach} loop can be anything - you like, made up of letters, numbers and underscores, like - PHP variables. - - - - {foreach} loops can be nested, and the nested - {foreach} names must be unique from each other. - - - - The from attribute, usually an array of values, - determines the number of times {foreach} will loop. - - - - {foreachelse} is executed when there are no - values in the from variable. - - - - {foreach} loops also have their own variables that handle properties. - These are accessed with: - - {$smarty.foreach.name.property} with - name being the - name attribute. - - - Note - The name attribute is only required when - you want to access a {foreach} property, unlike - {section}. - Accessing a {foreach} property with name - undefined does not throw an error, but leads to unpredictable results instead. - - - - - - {foreach} properties are - index, - iteration, - first, - last, - show, - total. - - - - - - The <parameter>item</parameter> attribute - -assign('myArray', $arr); -?> -]]> - - Template to output $myArray in an un-ordered list - - -{foreach from=$myArray item=foo} -
  • {$foo}
  • -{/foreach} - -]]> -
    - - The above example will output: - - - -
  • 1000
  • -
  • 1001
  • -
  • 1002
  • - -]]> -
    -
    - - - Demonstrates the <parameter>item</parameter> and <parameter>key</parameter> attributes - - 'Tennis', 3 => 'Swimming', 8 => 'Coding'); -$smarty->assign('myArray', $arr); -?> -]]> - - Template to output $myArray as key/val pair, - like PHP's foreach. - - -{foreach from=$myArray key=k item=v} -
  • {$k}: {$v}
  • -{/foreach} - -]]> -
    - - The above example will output: - - - -
  • 9: Tennis
  • -
  • 3: Swimming
  • -
  • 8: Coding
  • - -]]> -
    -
    - - - - {foreach} with associative <parameter>item</parameter> attribute - - array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') - ); -$smarty->assign('items', $items_list); -?> -]]> - - Template to output $items with - $myId in the url - - -{foreach from=$items key=myId item=i} -
  • {$i.no}: {$i.label}
  • -{/foreach} - -]]> -
    - - The above example will output: - - - -
  • 2456: Salad
  • -
  • 4889: Cream
  • - -]]> - -
    - - - {foreach} with nested <parameter>item</parameter> and <parameter>key</parameter> - Assign an array to Smarty, the key contains the key for each looped value. - -assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - - The template to output $contact. - - - {foreach key=key item=item from=$contact} - {$key}: {$item}
    - {/foreach} -{/foreach} -]]> -
    - - The above example will output: - - - - phone: 1
    - fax: 2
    - cell: 3
    -
    - phone: 555-4444
    - fax: 555-3333
    - cell: 760-1234
    -]]> -
    -
    - - - Database example with {foreachelse} - A database (eg PEAR or ADODB) example of a search script, the query results assigned to Smarty - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - The template which display None found - if no results with {foreachelse}. - -{$con.name} - {$con.nick}

    -{foreachelse} - No items were found in the search -{/foreach} -]]> - - - - - - .index - - index contains the current array index, starting with zero. - - - <parameter>index</parameter> example - - - -{foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - Title - {/if} - {$i.label} -{/foreach} - -]]> - - - - - - .iteration - - iteration contains the current loop iteration and always - starts at one, unlike index. - It is incremented by one on each iteration. - - - <parameter>iteration</parameter> and <parameter>index</parameter> example - - - - - - - - - .first - - first is &true; if the current {foreach} - iteration is the initial one. - - - <parameter>first</parameter> property example - - -{foreach from=$items key=myId item=i name=foo} - - {if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if} - {$i.label} - -{/foreach} - -]]> - - - - - - .last - - last is set to &true; if the current - {foreach} iteration is the final one. - - - <parameter>last</parameter> property example - -{$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} - ... content ... -{/foreach} -]]> -
    -
    -
    - - - .show - - show is used as a parameter to {foreach}. - show is a boolean value. If - &false;, the {foreach} will not be displayed. - If there is a {foreachelse} present, that will be alternately displayed. - - - - - .total - - total contains the number of iterations that this - {foreach} will loop. - This can be used inside or after the {foreach}. - - - <parameter>total</parameter> property example - - -{if $smarty.foreach.foo.last} -
    {$smarty.foreach.foo.total} items
    -{/if} -{foreachelse} - ... something else ... -{/foreach} -]]> -
    -
    - - - See also {section} - and $smarty.foreach. - -
    -
    - - diff --git a/docs/en/designers/language-builtin-functions/language-function-if.xml b/docs/en/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index fcdf3420..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - - {if},{elseif},{else} - - {if} statements in Smarty have much the same flexibility as PHP - if - statements, with a few added features for the template engine. - Every {if} must be paired with a matching - {/if}. {else} and - {elseif} are also permitted. All PHP conditionals - and functions - are recognized, such as ||, or, - &&, and, - is_array(), etc. - - - If $security is enabled, - only PHP functions from the IF_FUNCS array from $security_settings - are allowed. - - - The following is a list of recognized qualifiers, which must be - separated from surrounding elements by spaces. Note that items listed - in [brackets] are optional. PHP equivalents are shown where applicable. - - - - - - - - - - - - Qualifier - Alternates - Syntax Example - Meaning - PHP Equivalent - - - - - == - eq - $a eq $b - equals - == - - - != - ne, neq - $a neq $b - not equals - != - - - > - gt - $a gt $b - greater than - > - - - < - lt - $a lt $b - less than - < - - - >= - gte, ge - $a ge $b - greater than or equal - >= - - - <= - lte, le - $a le $b - less than or equal - <= - - - === - - $a === 0 - check for identity - === - - - ! - not - not $a - negation (unary) - ! - - - % - mod - $a mod $b - modulous - % - - - is [not] div by - - $a is not div by 4 - divisible by - $a % $b == 0 - - - is [not] even - - $a is not even - [not] an even number (unary) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - grouping level [not] even - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [not] an odd number (unary) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [not] an odd grouping - ($a / $b) % 2 != 0 - - - - - - {if} statements - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - - -{* you can also embed php function calls *} -{if count($var) gt 0} - ... -{/if} - -{* check for array. *} -{if is_array($foo) } - ..... -{/if} - -{* check for not null. *} -{if isset($foo) } - ..... -{/if} - - -{* test if values are even or odd *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* test if var is divisible by 4 *} -{if $var is div by 4} - ... -{/if} - - -{* - test if var is even, grouped by two. i.e., - 0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - - - - - - {if} with more examples - - 0} - {* do a foreach loop *} -{/if} - ]]> - - - - - diff --git a/docs/en/designers/language-builtin-functions/language-function-include-php.xml b/docs/en/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index b9865806..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - {include_php} - - Technical Note - - {include_php} is pretty much deprecated from Smarty, you can - accomplish the same functionality via a custom template function. - The only reason to use {include_php} is if you really have a need to - quarantine the php function away from the - plugins/ - directory or your - application code. See the componentized template - example for details. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - The name of the php file to include - - - once - boolean - No - &true; - whether or not to include the php file more than - once if included multiple times - - - assign - string - No - n/a - The name of the variable that the output of - include_php will be assigned to - - - - - - - {include_php} tags are used to include a php script in your template. - If $security is enabled, - then the php script must be located in the $trusted_dir path. - The {include_php} tag must have the attribute - file, which contains the path to the included php file, either - relative to $trusted_dir, - or an absolute path. - - - By default, php files are only included once even if called - multiple times in the template. You can specify that it should be - included every time with the once attribute. - Setting once to &false; will include the php script each time it is - included in the template. - - - You can optionally pass the assign attribute, - which will specify a template variable name that the output of - {include_php} will be assigned to instead of - displayed. - - - The smarty object is available as $this within - the PHP script that you include. - - - function {include_php} - The load_nav.php file: - -query('select url, name from navigation order by name'); -$this->assign('navigation', $db->getRows()); - -?> -]]> - - - where the template is: - - -{$nav.name}
    -{/foreach} -]]> -
    -
    - - See also {include}, - $security, -$trusted_dir, - {php}, {capture}, template resources and componentized templates -
    - diff --git a/docs/en/designers/language-builtin-functions/language-function-include.xml b/docs/en/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 05d859f5..00000000 --- a/docs/en/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,217 +0,0 @@ - - - - {include} - - {include} tags are used for including other templates in the current - template. Any variables available in the current template are also - available within the included template. - - - - - The {include} tag must have - the file attribute - which contains the template resource path. - - - - Setting the optional assign attribute - specifies the template variable that the output of - {include} is assigned to, instead of being displayed. Similar to - {assign}. - - - - Variables can be passed to included templates as - attributes. - Any variables explicitly passed to an included template - are only available within the scope of the included - file. Attribute variables override current template variables, in - the case when they are named the same. - - - - All assigned variable values are restored after the scope of the - included template is left. This means you can use all variables from - the including template inside the included template. But changes to - variables inside the included template are not visible inside the - including template after the {include} statement. - - - - Use the syntax for template resources to - {include} files outside of the - $template_dir directory. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - The name of the template file to include - - - assign - string - No - n/a - The name of the variable that the output of - include will be assigned to - - - [var ...] - [var type] - No - n/a - variable to pass local to template - - - - - - - Simple {include} example - - - - {$title} - - -{include file='page_header.tpl'} - -{* body of template goes here, the $tpl_name variable - is replaced with a value eg 'contact.tpl' -*} -{include file="$tpl_name.tpl"} - -{include file='page_footer.tpl'} - - -]]> - - - - - {include} passing variables - - - - The template above includes the example links.tpl below - - -

    {$title}{/h3> - -]]> - - - L'exemple ci-dessus affichera : - - - -
  • 1000
  • -
  • 1001
  • -
  • 1002
  • - -]]> -
    - - - - Utilisation des attributs <parameter>item</parameter> et <parameter>key</parameter> - - 'Tennis', 3 => 'Natation', 8 => 'Programmation'); -$smarty->assign('myArray', $arr); -?> -]]> - - - Le template affiche le tableau $myArray comme paire cl/valeur, - comme la fonction PHP - foreach. - - - - {foreach from=$myArray key=k item=v} -
  • {$k}: {$v}
  • - {/foreach} - -]]> -
    - - L'exemple ci-dessus affichera : - - - -
  • 9: Tennis
  • -
  • 3: Natation
  • -
  • 8: Programmation
  • - -]]> -
    -
    - - - {foreach} avec un attribut associatif <parameter>item</parameter> - - array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') -); -$smarty->assign('items', $items_list); -?> -]]> - - - Le template affiche $items avec - $myId dans l'URL. - - - - {foreach from=$items key=myId item=i} -
  • {$i.no}: {$i.label}
  • - {/foreach} - - ]]> -
    - - L'exemple ci-dessus affichera : - - - -
  • 2456: Salad
  • -
  • 4889: Cream
  • - -]]> - -
    - - - {foreach} avec <parameter>item</parameter> et <parameter>key</parameter> - Assigne un tableau Smarty, la cl contient la cl pour chaque valeur de la boucle. - -assign('contacts', array( -array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') -)); -?> -]]> - - Le template affiche $contact. - - - {foreach key=key item=item from=$contact} - {$key}: {$item}
    - {/foreach} -{/foreach} -]]> -
    - - L'exemple ci-dessus affichera : - - - -phone: 1
    -fax: 2
    -cell: 3
    -
    -phone: 555-4444
    -fax: 555-3333
    -cell: 760-1234
    -]]> -
    -
    - - - Exemple d'une base de donnes avec {foreachelse} - Exemple d'un script de recherche dans une base de donnes (e.g. PEAR ou ADODB), - le rsultat de la requte est assign Smarty. - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - Le template qui affiche None found - si aucun rsultat avec {foreachelse}. - -{$con.name} - {$con.nick}

    -{foreachelse} -Aucun lment n'a t trouv dans la recherche -{/foreach} -]]> - - - - - .index - - index contient l'index courant du tableau, en commanant par zro. - - - Exemple avec <parameter>index</parameter> - - - {foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - Title - {/if} - {$i.label} - {/foreach} - -]]> - - - - - - .iteration - - iteration contient l'itration courante de la boucle et commence - toujours 1, contrairement - index. - Il est incrment d'un, chaque itration. - - - Exemple avec <parameter>iteration</parameter> et <parameter>index</parameter> - - - - - - - .first - - first vaut &true; si l'itration courante de - {foreach} est l'initial. - - - Exemple avec <parameter>first</parameter> - - - {foreach from=$items key=myId item=i name=foo} - - {if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if} - {$i.label} - - {/foreach} - -]]> - - - - - .last - - last est dfini &true; si l'itration courante de - {foreach} est la dernire. - - - Exemple avec <parameter>last</parameter> - -{$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} -... contenu ... -{/foreach} -]]> -
    -
    -
    - - .show - - show est utilis en tant que paramtre {foreach}. - show est une valeur boolenne. S'il vaut - &false;, {foreach} ne sera pas affich. - S'il y a un {foreachelse}, il sera affich alternativement. - - - - - .total - - total contient le nombre d'itrations que cette boucle - {foreach} effectuera. - Il peut tre utilis dans ou aprs un {foreach}. - - - Exemple avec <parameter>total</parameter> - -
    -{if $smarty.foreach.foo.last} -
    {$smarty.foreach.foo.total} items
    -{/if} -{foreachelse} -... quelque chose d'autre ... -{/foreach} -]]> -
    -
    - - - Voir aussi - {section} - et $smarty.foreach. - -
    - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-if.xml b/docs/fr/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 46ccf82a..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - {if},{elseif},{else} - - L'instruction {if} dans Smarty dispose de la mme flexibilit que l'instruction - PHP if, - avec quelques fonctionnalits supplmentaires pour le - moteur de template. Tous les {if} doivent tre - utiliss de pair avec un {/if}. - {else} et {elseif} sont galement - des balises autorises. Toutes les conditions et fonctions PHP sont reconnues, - comme ||, or, - &&, and, - is_array(), etc. - - - Si $security est actif, - alors le tableau IF_FUNCS dans le tableau - $security_settings (?!). - - - La liste suivante prsente les oprateurs reconnus, qui doivent tre entours d'espaces. - Remarquez que les lments lists entre [crochets] sont optionnels. Les quivalents - PHP sont indiqus lorsque applicables. - - - - - - - - - - - - Oprateur - Syntaxe alternative - Exemple de syntaxe - Signification - Equivalent PHP - - - - - == - eq - $a eq $b - galit - == - - - != - ne, neq - $a neq $b - diffrence - != - - - > - gt - $a gt $b - suprieur - > - - - < - lt - $a lt $b - infrieur - < - - - >= - gte, ge - $a ge $b - suprieur ou gal - >= - - - <= - lte, le - $a le $b - infrieur ou gal - <= - - - === - - $a === 0 - galit (type et valeur) - === - - - ! - not - not $a - ngation - ! - - - % - mod - $a mod $b - modulo - % - - - is [not] div by - - $a is not div by 4 - divisible par - $a % $b == 0 - - - is [not] even - - $a is not even - est [ou non] un nombre pair - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - parite de groupe - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - est [ou non] un nombre impair - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - est [ou non] un groupe impair - ($a / $b) % 2 != 0 - - - - - - Instruction {if} - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* vous pouvez galement faire appel aux fonctions PHP *} -{if count($var) gt 0} - ... -{/if} - -{* Vrifie si c'est un tableau. *} -{if is_array($foo) } -..... -{/if} - -{* Vrifie si la variable est nulle. *} -{if isset($foo) } - ..... -{/if} - -{* teste si les valeurs sont paires(even) ou impaires(odd) *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* teste si la variable est divisible par 4 *} -{if $var is div by 4} - ... -{/if} - -{* teste si la variable est paire, par groupe de deux i.e., -0=paire, 1=paire, 2=impaire, 3=impaire, 4=paire, 5=paire, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=paire, 1=paire, 2=paire, 3=impaire, 4=impaire, 5=impaire, etc. *} -{if $var is even by 3} - ... -{/if} - -]]> - - - - Plus d'exemples avec {if} - - 0) - {* faire une boucle foreach *} - {/if} - ]]> - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-include-php.xml b/docs/fr/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 8d874e8f..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - {include_php} - - - Notes techniques - - {include_php} est presque obsolte dans Smarty. - Vous pouvez obtenir des rsultats quivalents en utilisant les fonctions utilisateur. - La seule raison qui peut vous pousser utiliser {include_php} - est que vous avez besoin de mettre une de vos fonction en quarantaine vis vis du - rpertoire plugins/ - ou de votre application. Reportez-vous l'exemple des - templates composants - pour plus de dtails. - - - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - file - chane de caractre - oui - n/a - Le nom du fichier PHP inclure - - - once - bolen - Non - &true; - Inclure plusieurs fois ou non le fichier PHP si - plusieurs demandes d'inclusions sont fates. - - - assign - chane de caractre - Non - n/a - le nom de la variable PHP dans laquelle la sortie - sera assigne plutt que directement affiche. - - - - - - - Les balises {include_php} sont utilises pour inclure directement - un script PHP dans vos templates. Si - $security est activ, - alors le script excuter doit tre plac dans le chemin - $trusted_dir. La balise - {include_php} attends l'attribut file, - qui contient le chemin du fichier PHP inclure, relatif - $trusted_dir, ou absolu. - - - Par dfaut, les fichiers PHP ne sont inclus qu'une seule fois, mme si - la demande d'inclusion survient plusieurs fois dans le template. - Vous pouvez demander ce que ce fichier soit inclus chaque demande - grce l'attribut once. Mettre l'attribut once - &false; aura pour effet d'inclure le script PHP chaque fois que demand - dans le template. - - - Vous pouvez donner une valeur l'attribut optionnel - assign, pour demander la fonction - {include_php} d'assigner la sortie du script PHP - la variable spcifie plutt que d'en afficher directement le rsultat. - - - L'objet Smarty est disponible en tant que $this dans le script PHP inclus. - - - Fonction {include_php} - Le fichier load_nav.php - -query('select * from site_nav_sections order by name',SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - - - O le template est : - - -{$nav.name}
    -{/foreach} -]]> -
    -
    - - - Voir aussi - {include}, - $security, - $trusted_dir, - {php}, - {capture}, les - ressources de template et les - composants de templates. - -
    - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-include.xml b/docs/fr/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index d066c298..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - {include} - - - Les balises {include} sont utilises pour inclure des templates - l'intrieur d'autres templates. Toutes les variables disponibles - dans le template ralisant l'inclusion sont disponibles dans le - template inclus. - - - - - La balise {include} doit contenir l'attribut - file qui contient le chemin vers la ressource de - template. - - - - La dfinition de l'attribut optionnel assign - spcifie la variable de template assigne la sortie de - {include} au lieu d'tre affiche. Similaire - {assign}. - - - - Les variables peuvent tre passes des templates inclus comme - attributs. - Toutes les variables explicitement passes un template inclus - ne sont disponibles que dans le contexte du fichier inclus. - Les attributs de variables crasent les variables courantes de template, - dans le cas o les noms sont les mmes. - - - - Toutes les valeurs de variables assignes sont restaures une fois le contexte - du template inclus referms. Ceci signifie que vous pouvez utiliser toutes les - variables depuis un template inclus dans le template inclus. Mais les modifications - faites aux variables dans le template inclus ne sont pas visibles dans le template - incluant, pars l'instruction {include} statement. - - - - Utilisez la synthaxe pour les - ressources de template aux fichiers - {include} en dehors du dossier - $template_dir. - - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - file - chane de caractres - Oui - n/a - Le nom du template inclure - - - assign - chane de caractres - Non - n/a - Le nom de la variable dans laquelle sera assigne - la sortie de include - - - [var ...] - [type de variable] - Non - n/a - Variables passer au template - - - - - - Exemple avec {include} - - - - {$title} - - - {include file='page_header.tpl'} - - {* Le corps du template va ici, la variable $tpl_name est remplac par - une valeur, e.g.'contact.pl' *} - {include file='$tpl_name.tpl'} - - {include file='page_footer.tpl'} - - -]]> - - - - Fonction {include}, passage de variables - - - - Le template ci-dessus inclut l'exemple links.tpl - - -

    {$title}{/h3> -
      - {foreach from=$links item=l} - .. faites quelques choses ici ... - - -]]> - - - - - - {include} et assignement une variable - Cet exemple assigne le contenu de nav.tpl la variable - $navbar, qui est alors affiche en haut et en bas de la page. - - - - {include file='nav.tpl' assign=navbar} - {include file='header.tpl' title='Smarty is cool'} - {$navbar} - {* le corps du template va ici *} - {$navbar} - {include file='footer.tpl'} - -]]> - - - - Divers {include}, exemple de ressource template - - - - - - Voir aussi - {include_php}, - {insert}, - {php}, - les ressources de template et - les templates composants. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-insert.xml b/docs/fr/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 02cbc7d0..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - {insert} - - - Les balises {insert} fonctionnent peu prs comme les balises - {include}, - l'exception que leur sortie n'est PAS place en cache lorsque - le cache du template est activ. - Les balises {insert} seront excutes chaque appel du template. - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chane de caractres - Oui - n/a - le nom de la fonction insert (insert_name) - - - assign - chane de caractre - Non - n/a - Le nom de la variable qui recevra la sortie - - - script - chane de caractres - Non - n/a - Le nom du script PHP inclus avant que la fonction - insert ne soit appele. - - - [var ...] - [var type] - Non - n/a - Variable passer la fonction insert - - - - - - Supposons que vous avez un template avec un emplacement - pour un bandeau publicitaire en haut de page. - Ce bandeau publicitaire peut contenir toutes sortes de contenus - HTML, images, flash, etc. Nous ne pouvons pas placer du contenu - statique cet endroit. Nous ne voulons pas non plus que ce - contenu fasse partie du cache. Arrive alors la balise {insert}. - Le template connais #emplacement_bandeau# et #id_site# (rcuprs - depuis un fichier de configuration), - et besoin d'un appel de fonction pour rcuprer le contenu du bandeau. - - - Fonction {insert} - -{* exemple de rcupration d'un bandeau publicitaire *} -{insert name="getBanner" lid=#emplacement_bandeau# sid=#id_site#} - - - - Dans cet exemple, nous utilisons le nom getBanner et lui passons les - paramtres #emplacement_bandeau# et #id_site#. Smarty va rechercher une - fonction appele insert_getBanner () dans votre application PHP, et lui - passer les valeurs #banner_location_id# et #site_id# comme premier - paramtre, dans un tableau associatif. Tous les noms des fonctions {insert} - de votre application doivent tre prefixes de "insert_" pour remdier - d'ventuels conflits de nommage. Votre fonction insert_getBanner () - est suppose traiter les valeurs passes et retourner - un rsultat. Ces rsultats sont affichs dans le template en lieu et - place de la balise. Dans cet exemple, Smarty appellera cette fonction - insert_getBanner(array("lid" => "12345","sid" => "67890")); et affichera - le rsultat retourn la place de la balise {insert}. - - - - - Si vous donnez une valeur l'attribut assign, la sortie de la balise - {insert} sera assign une variable de template de ce nom au lieu d'tre - affiche directement. - - - Assigner la sortie une variable n'est pas - trs utile lorsque le cache est activ. - - - - - - - Si vous donnez une valeur l'attribut script, ce script PHP sera - inclus (une seule fois) avant l'excution de la fonction {insert}. - Le cas peut survenir lorsque la fonction {insert} n'existe pas encore, - et que le script PHP charg de sa dfinission doit tre inclus. - - - Le chemin doit tre absolu ou relatif - $trusted_dir. - Lorsque - $security est actif, - le script doit tre situ dans - $trusted_dir. - - - - L'objet Smarty est pass comme second argument. De cette faon, vous - pouvez utiliser ou modifier des informations sur l'objet Smarty, - directement depuis votre fonction {insert}. - - - Note technique - - Il est possible d'avoir des portions de template qui ne soient pas - grables par le cache. Mme si vous avez activ l'option - caching, les balises {insert} - ne feront pas partie du cache. Elles retourneront un contenu dynamique - chaque invocation de la page. Cette mthode est trs pratique pour - des lments tels que les bandeaux publicitaires, les enqutes, - la mto, les rsultats de recherche, retours utilisateurs, etc. - - - - Voir aussi - {include} - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml b/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0ee62f6c..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - {ldelim},{rdelim} - - {ldelim} et {rdelim} sont utiliss pour - chapper - les dlimiteurs en tant que tels, dans notre cas, - { et }. - Vous pouvez toujours utiliser - {literal}{/literal} - pour chapper des blocks de texte, e.g. Javascript ou css. - Voir aussi - {$smarty.ldelim}. - - - {ldelim}, {rdelim} - - - - - Affichera : - - - - - - Un autre exemple avec du javascript - - - function foo() {ldelim} - ... code ... - {rdelim} - -]]> - - - affichera : - - - - function foo() { - .... code ... - } - -]]> - - - - - un autre exemple avec Javascript - - - function myJsFunction(){ldelim} - alert("Le nom du serveur\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} - -Cliquez ici pour des informations sur le serveur - ]]> - - - - Voir aussi - {literal} et - la dsactivation de l'analyse de Smarty. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-literal.xml b/docs/fr/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 085b1022..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - {literal} - - Les balises {literal} permettent un bloc de donnes - d'tre pris tel - quel, sans qu'il ne soit interprt par Smarty. Trs pratique lors - de l'emplois d'lments tels que javascript, acolades et autres - qui peuvent confondre le moteur de template. Tout le contenu situ - entre les balises {literal}{/literal} ne sera pas interprt, et - affich comme du contenu statique. Si vous voulez inclure des tags de template - dans votre block {literal}, utilisez plutt - {ldelim}{rdelim} - pour chapper les dlimiteurs individuels. - - - Balises {literal} - - - - - - -{/literal} -]]> - - - - - Exemple avec Javascript - - - {literal} - function myJsFunction(name, ip){ - alert("Le nom du serveur\n" + name + "\n" + ip); - } - {/literal} - -Cliquez ici pour plus d'informations sur le serveur -]]> - - - - - Un peu de css dans un template - - - {literal} - /* C'est une ide intressante pour cette section */ - .madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; - } - {/literal} - -
      Avec Smarty, vous pouvez inclure du css dans le template
      -]]> -
      -
      - - Voir aussi - {ldelim} {rdelim} et - la dsactivation de l'analyse de Smarty. - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-php.xml b/docs/fr/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 0efa67fc..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - {php} - - Les balises {php} permettent de rajouter du code PHP - directement dans le template. Ils ne seront pas ignors, quelle que soit la valeur de $php_handling. Pour les - utilisateurs avancs seulement, son utilisation n'est normalement pas - ncessaire et n'est pas recommande. - - - Notes techniques - - Pour accder aux variables PHP dans les blocks {php}, vous devriez avoir besoin - d'utiliser le mot cl PHP global. - - - - Exemple avec la balise {php} - - - - - - - Balises {php} avec le mot cl global et assignement d'une variable - -assign('varX','Strawberry'); -{/php} -{* affichage de la variable *} -{$varX} est ma glce favorite :-) -]]> - - - - Voir aussi - $php_handling, - {include_php}, - {include}, - {insert} et - les templates composantes. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-section.xml b/docs/fr/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 83e1dbee..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,838 +0,0 @@ - - - - - - {section},{sectionelse} - - Une {section} - sert boucler dans des tableaux de donnes, - contrairement {foreach} - qui est utilis pour boucler dans un - simple tableau associatif. - Chaque balise {section} doit aller de paire avec une - balise {/section} fermante. - - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - name - chane de caractre - Oui - n/a - Le nom de la section - - - loop - mixed - Oui - n/a - Valeur qui dtermine le nombre de fois que la boucle sera excute - - - start - entier - Non - 0 - - La position de l'index ou la section commencera son - parcours. Si la valeur donne est ngative, la position de - dpart est calcule depuis la fin du tableau. Par exemple, - s'il existe 7 valeurs dans le tableau parcourir et que start - est -2, l'index de dpart sera 5. Les valeurs incorrectes - (en dehors de la porte du tableau) sont automatiquements - tronques la valeur correcte la plus proche - - - - step - entier - Non - 1 - La valeur du pas qui sera utilis pour parcourir le - tableau.Par exemple, step=2 parcourera les indices - 0,2,4, etc. Si step est ngatif, le tableau sera parcouru en sens - inverse - - - max - entier - Non - n/a - Dfinit le nombre maximum de fois que le tableau sera - parcouru - - - show - boolen - No - &true; - Dtermine s'il est ncessaire d'afficher la - section ou non - - - - - - - - Les paramtres requis sont name et loop. - - - - Le name de la {section} est, selon votre choix, - compos de lettres, chiffres et underscores, comme pour les - variables PHP. - - - - Les sections peuvent tre imbriques mais leurs noms doivent tre uniques. - - - - L'attribut loop, habituellement un tableau de valeurs, - dtermine le nombre de fois que - {section} doit boucler. - - - - Lors de l'affichage d'une variable dans une {section}, le nom de la - {section} doit tre fournis aprs le nom de la variable entre crochets []. - - - - {sectionelse} est excut lorsqu'aucune valeur n'est trouve dans la variable - parcourir. - - - - {section} a galement ces propres variables qui grent les proprits - de la {section}. - Ces proprits sont accessibles comme ceci : - {$smarty.section.name.property} - o name est l'attribut name. - - - - Les proprits de {section} sont - index, - index_prev, - index_next, - iteration, - first, - last, - rownum, - loop, - show, - total. - - - - - Boucler dans un simple tableau avec {section} - -assign() un tableau Smarty - - -assign('custid',$data); -?> -]]> - -Le template qui affiche le tableau - - -{/section} -
      -{* Affiche toutes les valeurs du tableau $custid, en ordre inverse *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
      -{/section} -]]> -
      - - L'exemple ci-dessus affichera : - - - -id: 1001
      -id: 1002
      -
      -id: 1002
      -id: 1001
      -id: 1000
      -]]> -
      -
      - - - - {section} sans un tableau assign - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - L'exemple ci-dessus affichera : - - - -20 18 16 14 12 10 -]]> - - - - - - Nommage d'une {section} - - Le name de la {section} peut tre ce que vous - voulez, voir les variables PHP. - Il sera utilis pour rfrencer les donnes de la {section}. - - - - - - - - - Boucler dans un tableau associatif avec {section} - - Voici un exemple d'affichage d'un tableau associatif de donnes avec - {section}. Ce qui suit est le script PHP assignant - le tableau $contacts Smarty. - - - 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - - -Le template pour afficher $contacts - - - name: {$contacts[customer].name}
      - home: {$contacts[customer].home}
      - cell: {$contacts[customer].cell}
      - e-mail: {$contacts[customer].email} -

      -{/section} -]]> -
      - - L'exemple ci-dessus affichera : - - - - name: John Smith
      - home: 555-555-5555
      - cell: 666-555-5555
      - e-mail: john@myexample.com -

      -

      - name: Jack Jones
      - home phone: 777-555-5555
      - cell phone: 888-555-5555
      - e-mail: jack@myexample.com -

      -

      - name: Jane Munson
      - home phone: 000-555-5555
      - cell phone: 123456
      - e-mail: jane@myexample.com -

      -]]> -
      -
      - - - {section} dmontrant l'utilisation de la variable <varname>loop</varname> - Cet exemple suppose que $custid, $name - et $address sont tous des tableaux contenant le mme - nombre de valeurs. Tout d'abord, le script PHP qui assigne les tableaux Smarty. - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> - -La variable loop dtermine uniquement le nombre - de fois qu'il faut boucler. - Vous pouvez accder n'importe quelle variable du template dans la - {section} - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]} -

      -{/section} -]]> -
      - - L'exemple ci-dessus affichera : - - - - id: 1000
      - name: John Smith
      - address: 253 Abbey road -

      -

      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln -

      -

      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st -

      -]]> -
      -
      - - - - - {section} imbrique - - Les sections peuvent tre imbriques autant de fois que vous le voulez. - Avec les sections imbriques, vous pouvez accder aux structures de donnes - complexes, comme les tableaux multi-dimentionnels. Voici un script PHP qui assigne les - tableaux. - - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> - -Dans ce template, $contact_type[customer] est un tableau de - types de contacts. - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]}
      - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
      - {/section} -{/section} -]]> -
      - - L'exemple ci-dessus affichera : - - - - id: 1000
      - name: John Smith
      - address: 253 N 45th
      - home phone: 555-555-5555
      - cell phone: 666-555-5555
      - e-mail: john@myexample.com
      -
      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln
      - home phone: 123-456-4
      - web: www.example.com
      -
      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st
      - cell phone: 0457878
      -]]> -
      -
      - - - -Exemple avec une base de donnes et {sectionelse} - Les rsultats d'une recherche dans une base de donnes - (e.g. ADODB ou PEAR) sont assigns Smarty - - assign('contacts', $db->getAll($sql)); -?> -]]> - -Le template pour afficher le rsultat de la base de donnes dans un tableau HTML - - - Name>HomeCellEmail -{section name=co loop=$contacts} - - view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{sectionelse} - Aucun lment n'a t trouv -{/section} - -]]> - - - - - - .index - - index contient l'index courant du tableau, en commenant par zro ou par - start s'il est fourni. Il s'incrmente d'un en un ou de - step s'il est fourni. - - - Note technique - - Si les proprits step et start - ne sont pas modifis, alors le fonctionnement est le mme que celui de la proprit - iteration, - mise part qu'il commence zro au lieu de un. - - - -Exemple avec la proprit <varname>index</varname> - -FYI -$custid[customer.index] et -$custid[customer] sont identiques. - - - - -{/section} -]]> - - - L'exemple ci-dessus affichera : - - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - - - .index_prev - - index_prev est l'index de la boucle prcdente. - Lors de la premire boucle, il vaut -1. - - - - - .index_next - - index_next est l'index de la prochaine boucle. - Lors de la prochaine boucle, il vaudra un de moins que l'index courant, suivant - la configuration de l'attribut step, s'il est fourni. - - - -Exemple avec les proprits <varname>index</varname>, <varname>index_next</varname> - et <varname>index_prev</varname> - -assign('rows',$data); -?> -]]> - -Le template pour afficher le tableau ci-dessus dans un tableau HTML - - - - indexid - index_prevprev_id - index_nextnext_id - -{section name=row loop=$rows} - - {$smarty.section.row.index}{$rows[row]} - {$smarty.section.row.index_prev}{$rows[row.index_prev]} - {$smarty.section.row.index_next}{$rows[row.index_next]} - -{/section} - -]]> - - - L'exemple ci-dessus affichera un tableau HTML contenant : - - - - - - - - - - .iteration - - iteration contient l'itration courante de la boucle et commence un. - - - - Ceci n'est pas affect par les proprits {section} - start, step et - max contrairement la proprit - index. - iteration commence galement un au lieu de zro - contrairement index. - rownum - est un alias de iteration, ils sont identiques. - - - -Exemple avec la proprit <varname>iteration</varname> - -assign('arr',$id); -?> -]]> - -Le template pour afficher tous les autres lments du tableau $arr comme - step=2 - - -{/section} -]]> - - - L'exemple ci-dessus affichera : - - - -iteration=2 index=7 id=3007
      -iteration=3 index=9 id=3009
      -iteration=4 index=11 id=3011
      -iteration=5 index=13 id=3013
      -iteration=6 index=15 id=3015
      -]]> -
      - - Un autre exemple d'utilisation de la proprit - iteration est d'afficher un bloc d'en-tte d'un tableau toutes - les 5 lignes. - Utilisez la fonction {if} - avec l'oprateur mod. - - - -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} -  Name>HomeCellEmail - {/if} - -
      view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{/section} - -]]> - - - - - - - .first - - first est dfini &true; si l'itration courante de - {section} est l'initiale. - - - - - - .last - - last est dfini &true; - si l'itration courante de la section est la dernire. - - - Exemple avec les proprits <varname>first</varname> et <varname>last</varname> - - Cet exemple boucle sur le tableau $customers, - affiche un bloc d'en-tte lors de la premire itration et, lors de la dernire, - affiche un bloc de pied de page. Utilise aussi la proprit - total. - - - - idcustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} customers - - {/if} -{/section} -]]> - - - - - - - .rownum - - rownum contient l'itration courante de la boucle, - commenant un. C'est un alias de iteration, - ils fonctionnent exactement de la mme faon. - - - - - .loop - - loop contient le dernier index de la boucle de la section. - Il peut tre utilis dans ou aprs la {section}. - - - Exemple avec la proprit <varname>loop</varname> - - -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - - - L'exemple ci-dessus affichera : - - - -1 id: 1001
      -2 id: 1002
      -There are 3 customers shown above. -]]> -
      -
      -
      - - - .show - - show est utilis en tant que paramtre la section et est une valeur boolenne. - S'il vaut &false;, la section ne sera pas affiche. S'il y a un - {sectionelse}, il sera affich de faon alternative. - - - Exemple avec la proprit <varname>show</varname> - Une valeur boolenne $show_customer_info est passe - depuis l'application PHP, pour rguler l'affichage ou non de cette section. - - -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - - - L'exemple ci-dessus affichera : - - - -2 id: 1001
      -3 id: 1002
      - -the section was shown. -]]> -
      -
      -
      - - - .total - - total contient le nombre d'itrations que cette - {section} bouclera. Il peut tre utilis dans ou aprs une - {section}. - - - Exemple avec la proprit <varname>total</varname> - - -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - - - - Voir aussi - {foreach} et - $smarty.section. - - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-builtin-functions/language-function-strip.xml b/docs/fr/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index cb49371e..00000000 --- a/docs/fr/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - {strip} - - Il est frquent que les designers web rencontrent des problmes - dus aux espaces et retours chariots, qui affectent le rendu HTML - ("fonctionnalits" des navigateurs), les obligeant coller les - balises les unes aux autres. Cette solution rend gnralement le - code illisible et impossible maintenir. - - - Tout contenu situ entre les balises {strip}{/strip} se verra - allg des espaces superflus et des retours chariots en dbut ou en fin - de ligne, avant qu'il ne soit affich. De la sorte, vous pouvez - conserver vos templates lisibles, sans vous soucier des effets - indsirables que peuvent apporter les espaces superflus. - - - - {strip}{/strip} n'affecte en aucun cas le contenu des variables de - template. Voir aussi le modificateur - strip pour un rendu identique pour les variables. - - - - Balises strip - - - - - - Un test - - - - -{/strip} -]]> - - - L'exemple ci-dessus affichera : - - -Un test -]]> - - - - Notez que dans l'exemple ci-dessus, toutes les lignes commencent et - se terminent par des balises HTML. Sachez que si vous avez du texte - en dbut ou en fin de ligne dans des balises strip, ce dernier sera coll - au suivant/prcdent et risque de ne pas tre affich selon - l'effet dsir. - - - Voir aussi - le modificateur strip. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-combining-modifiers.xml b/docs/fr/designers/language-combining-modifiers.xml deleted file mode 100644 index 06bce7bd..00000000 --- a/docs/fr/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - Combiner des modificateurs de variable. - - Vous pouvez appliquer un nombre quelquonque de modificateurs une variable. - Ils seront invoqus dans l'ordre d'apparition, de la gauche vers la droite. - Ils doivent tre spars par un | (pipe). - - - Combiner des modificateurs - -assign('titreArticle', 'Les fumeurs sont productifs, mais la mort -tue l\'efficacite.'); - -?> -]]> - - - O le template est : - - - - - - Cel va afficher : - - - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions.xml b/docs/fr/designers/language-custom-functions.xml deleted file mode 100644 index acfe69a2..00000000 --- a/docs/fr/designers/language-custom-functions.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - Fonctions utilisateur - - Smarty est livr avec plusieurs fonctions utilisateurs que vous pouvez - appeler dans vos templates. - - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-textformat; - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-assign.xml b/docs/fr/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index e92a55c1..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - {assign} - - {assign} est utilis pour dclarer des variables de template - durant l'excution du template. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - var - chane de caractre - Oui - n/a - Le nom de la variable assigne - - - value - chane de caractre - Oui - n/a - La valeur assigne - - - - - - {assign} - - - - - L'exemple ci-dessus affichera : - - - - - - - - {assign} avec quelques fonctions mathmatiques - Cet exemple complexe doit avoir ces variables entre crochets. - - - - - - - Accs aux variables {assign} depuis un script PHP - - Pour accder aux variables {assign} depuis le script PHP, utilisez - get_template_vars(). - Ci-dessous, le template qui cre la variable $foo. - - - - - - Les variables de template ne sont disponibles que aprs/durant l'excution du template, - comme dans le script ci-dessous. - - -get_template_vars('foo'); - -// Rcupre le template dans une variable -$whole_page = $smarty->fetch('index.tpl'); - -// Ceci affichera 'smarty' car le template a t excut -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// Ceci affichera 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - - Les fonctions suivantes peuvent optionnellement assigner - des variables de template. - - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math} et - {textformat}. - - - Voir aussi - assign() et - get_template_vars(). - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-counter.xml b/docs/fr/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 53a41d57..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - {counter} - - {counter} affiche un compteur. - {counter} retient la valeur - du compte chaque itration. Vous pouvez adapter le nombre, l'intervale - et la direction du compteur, ainsi que dcider d'afficher ou non - les valeurs. Vous pouvez lancer plusieurs compteurs simultanment en - leur donnant des noms uniques. Si vous ne donnez pas de nom un - compteur, default sera utilis. - - - Si vous donnez une valeur l'attribut assign, - alors la sortie de la fonction {counter} sera assigne - la variable de template donne plutt que d'tre directement affiche. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chane de caractre - Non - default - Le nom du compteur - - - start - numrique - Non - 1 - La valeur initiale du compteur - - - skip - numrique - Non - 1 - L'intervale du compteur - - - direction - chane de caractres - Non - up - la direction du compteur (up/down) [compte / dcompte] - - - print - boolen - Non - &true; - S'il faut afficher cette valeur ou non - - - assign - chane de caractres - Non - n/a - La variable dans laquelle la valeur du compteur - sera assigne. - - - - - - {counter} - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - L'exemple ci-dessus affichera : - - - -2
      -4
      -6
      -]]> -
      -
      -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-cycle.xml b/docs/fr/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 88904b6d..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - {cycle} - - {cycle} est utilis pour boucler sur un ensemble de valeurs. - Trs pratique pour alterner entre deux ou plusieurs couleurs dans un tableau, - ou plus gnralement pour boucler sur les valeurs d'un tableau. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chane de caractres - Non - default - Le nom du cycle - - - values - divers - Oui - N/A - Les valeurs sur lesquelles boucler, soit une liste - spare par des virgules, (voir l'attribut delimiter), - soit un tableau de valeurs - - - print - boolen - Non - &true; - S'il faut afficher ou non cette valeur - - - advance - boolen - Non - &true; - Oui ou non aller la prochane valeur - - - delimiter - chane de caractres - Non - , - Le dlimiteur utiliser dans la liste. - - - assign - chane de caractres - Non - n/a - La variable de template dans laquelle la sortie - sera assigne - - - reset - boolen - Non - &false; - Le cycle sera dfini la premire valeur - - - - - - - - - Vous pouvez dfinir plusieurs {cycle} dans votre template, en leur - donnant des noms uniques (attribut name). - - - Vous pouvez empcher la valeur courante de s'afficher en dfinissant - l'attribut print &false;. Ce procd peut tre - utile pour discrtement passer outre une valeur de la liste. - - - L'attribut advance est utilis pour rpter une valeur. Lorsque - dfinit &false;, le prochain appel de {cycle} ramnera la mme valeur. - - - Si vous dfinissez l'attribut spcial assign, la sortie de la fonction - {cycle} y sera assigne plutt que d'tre directement affiche. - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - Le template ci-dessus affichera : - - - 1 - - - 2 - - - 3 - -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-debug.xml b/docs/fr/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index cae45f77..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - {debug} - - {debug} amne la console de dbogage sur la page. - Fonctionne quelle que soit la valeur du paramtre - debug de Smarty. - Comme ce dernier est appel lors de l'excution, il n'est capable - d'afficher que les variables assignes - au template, et non les templates en cours d'utilisation. Toutefois, vous - voyez toutes les variables disponibles pour le template courant. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - output - chane de caractres - Non - javascript - Type de sortie, html ou javascript - - - - - - Voir aussi - la console de dbogage. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-eval.xml b/docs/fr/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 12b01eb1..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - {eval} - - {eval} value une variable comme si cette dernire - tait un template. - Peut tre utile pour embarquer des balises de templates ou des variables - de template dans des variables ou des balises/variables dans des - variables de fichiers de configuration. - - - Si vous dfinissez l'attribut assign, la sortie sera assigne la - variable de template dsigne plutt que d'tre affiche dans le - template. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - var - mixed - Oui - n/a - Variable (ou chane de caractres) valuer - - - assign - chane de caractres - Non - n/a - Le nom de la variable PHP dans laquelle la sortie - sera assigne - - - - - - Note technique - - - - Les variables values sont traites de la mme faon que les templates. - Elles suivent les mmes rgles de traitement et de scurit, comme si - elles taient rellement des templates. - - - - Les variables values sont compiles chaque invocation, et la version - compile n'est pas sauvegarde ! Toutefois, si le - cache est activ, la sortie sera place en - cache avec le reste du template. - - - - - - {eval} -Le contenu du fichier de configuration, setup.conf. - - -emphend = -titre = Bienvenue sur la homepage de {$company} ! -ErrorVille = Vous devez spcifier un nom de {#emphstart#}ville{#emphend#}. -ErrorDept = Vous devez spcifier un {#emphstart#}dpartement{#emphend#}. -]]> - - - O le template est : - - - - - - L'exemple ci-dessus affichera : - - -ville. -Vous devez spcifier un dpartement. -]]> - - - - - un autre exemple avec {eval} - - Ceci va afficher le nom du serveur (en majuscule) et son IP. - La variable $str galement venir d'une requte de base de donnes. - - -assign('foo',$str); -?> - ]]> - - - O le template est : - - - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-fetch.xml b/docs/fr/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index df3853fe..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - {fetch} - - {fetch} est utilis pour rcuprer des fichiers depuis le systme de - fichier local, depuis un serveur http ou ftp, et en afficher le contenu. - - - - - - Si le nom du fichier commence par http://, la page internet sera - rcupre, puis affiche. - - - Ceci ne supporte pas les redirections http. Assurez vous d'inclure les - slash de fin sur votre page web si ncessaire. - - - - - - - - Si le nom du fichier commence par ftp://, - le fichier sera rcupr depuis le serveur ftp, et affich. - - - - - - Pour les fichiers du systme local, le chemin doit tre absolu ou - relatif au chemin d'excution du script PHP. - - - Si la variable de template - $security - est active et que vous rcuprez un fichier depuis le systme - de fichiers local, {fetch} - ne permettra que les fichiers se trouvant dans un des dossiers - dfinis dans les dossiers scuriss. - - - - - - - - Si l'attribut assign est dfini, l'affichage - de la fonction {fetch} sera assigne cette - variable de template au lieu d'tre affiche dans le template. - - - - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - file - chane de caractres - Oui - n/a - Le fichier, site http ou ftp rcuprer - - - assign - chane de caractres - Non - n/a - Le nom de la variable PHP dans laquelle la sortie - sera assigne plutt que d'tre directement affiche. - - - - - - - Exempe avec {fetch} - -{$weather} -{/if} -]]> - - - - Voir aussi - {capture}, - {assign} - {eval} et - fetch(). - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 0f678a58..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - {html_checkboxes} - - {html_checkboxes} est une - fonction utilisateur - qui cre un groupe de cases cocher avec les donnes fournies. Elle prend - en compte la liste des lments slectionns par dfaut. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chane de caractres - Non - checkbox - Nom de la liste de cases cocher - - - values - array - Oui, moins que vous n'utilisiez l'attribut - option - n/a - Un tableau de valeurs pour les cases - cocher - - - output - array - Oui, moins que vous n'utilisiez l'attribut - option - n/a - Un tableau de sortie pour les cases cocher - - - selected - chane de caractres/tableau - Non - empty - Les lments cochs de la liste - - - options - Tableau associatif - Oui, moins que vous n'utilisiez values et - output - n/a - Un tableau associatif de valeurs et - sorties - - - separator - chane de caractres - Non - empty - chane de caractre pour sparer chaque case - cocher - - - assign - chane de caractres - Non - empty - Assigne les balises d'un checkbox un tableau plutt que de les afficher - - - labels - boolen - Non - true - Ajoute la balise <label>- la sortie - - - assign - chane de caractres - Non - empty - Assigne la sortie un tableau dont chaque checkbox est un lment. - - - - - - - - - Les attributs requis sont values et - output, moins que vous utilisez - options la place. - - - - - Tous les affichages sont conformes XHTML. - - - - - Tous les paramtres qui ne sont pas dans la liste ci-dessus - sont affichs sous la forme de paires nom/valeur dans chaque - balise <input> cres. - - - - - - {html_checkboxes} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( -'Joe Schmoe', -'Jack Smith', -'Jane Johnson', -'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - o index.tpl est : - - -'} -]]> - - - ou bien, le code PHP est : - - -assign('cust_checkboxes', array( -1000 => 'Joe Schmoe', -1001 => 'Jack Smith', -1002 => 'Jane Johnson', -1003 => 'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - et index.tpl est : - - -'} -]]> - - - Les deux examples donnent l'cran : - - -Joe Schmoe
      - -
      -
      -
      -]]> -
      -
      - - - Exemple avec une base de donnes (eg PEAR ou ADODB) : - - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type, contact from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Le rsultat des requtes de la base de donnes sera affich avec : - - -'} -]]> - - - - Voir aussi - {html_radios} et - {html_options}. - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-image.xml b/docs/fr/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 2719b3eb..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - {html_image} - - {html_image} est une - fonction utilisateur qui gnre la balise - HTML pour une image. La hauteur et la longueur de l'image sont calculs - automatiquement depuis le fichier image si aucune n'est spcifie. - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - file - chane de caractres - Oui - n/a - nom/chemin des images - - - height - chane de caractres - Non - Hauteur de l'image actuelle - Hauteur de l'image afficher - - - width - chane de caractres - Non - Longueur de l'image actuelle - Longueur de l'image afficher - - - basedir - chane de caractres - non - racine du serveur web - Rpertoire depuis lequel baser le calcul des - chemins relatifs - - - alt - chane de caractres - non - - Description alternative de l'image - - - href - chane de caractres - non - n/a - valeur de l'attribut href, indiquant le lien vers l'image - - - path_prefix - chane de caractres - non - n/a - Prfixe pour le chemin de la sortie - - - - - - - - basedir est le dossier de base dans lequel - les images sont bases. S'il n'est pas fourni, la variable d'environnement - $_ENV['DOCUMENT_ROOT'] sera utilise. - Si $security - est activ, le chemin vers l'image doit tre prsent dans le - dossier de scurit. - - - - href est la valeur de l'attribut href de l'image. - Si le lien est fourni, une balise <a href="LINKVALUE"><a> - sera place autour de la balise de l'image. - - - - path_prefix est un prfixe optionnel que vous pouvez fournir. - Il est utile si vous voulez fournir un nom de serveur diffrent pour l'image. - - - - Tous les paramtres qui ne sont pas dans la liste ci-dessus sont affichs - sous la forme d'une paire nom/valeur dans la balise - <img> cre. - - - - - Note technique - - {html_image} requiert un accs au disque dur pour lire l'image et - calculer ses dimensions. Si vous n'utilisez pas un cache, - il est gnralement prfrable d'viter d'utiliser {html_image} - et de laisser les balises images statiques pour de meilleures - performances. - - - - Exemple avec {html_image} - - - - - L'affichage possible du template ci-dessus pourrait tre : - - - - - -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-options.xml b/docs/fr/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 75fb6853..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - {html_options} - - {html_options} est une - fonction personnalise - qui cre un groupe d'options avec les donnes fournies. Elle prend en charge - les lments slectionns par dfaut. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - values - array - Oui, moins que vous n'utilisiez - l'attribut options - n/a - Un tableau de valeurs pour les listes - droulantes - - - output - array - Oui, moins que vous n'utilisiez - l'attribut options - n/a - Un tableau de libells pour la liste - droulante - - - selected - chane de caractres/tableau - Non - empty - Les lments slectionns - - - options - Tableau associatif - Oui, moins que vous n'utilisiez option - et values - n/a - Un tableau associatif valeur / libell - - - name - chane de caractres - Non - empty - Nom du goupe d'options - - - - - - - - Les attributs requis sont - values et output, - moins que vous n'utilisiez options la place. - - - - Si l'attribut optionnel name est fourni, les balises - <select></select> seront cres, - sinon, UNIQUEMENT la liste <option> sera gnre. - - - - Si la valeur fournie est un tableau, il sera trait comme un - <optgroup> HTML, et affichera les groupes. - La rcursivit est supporte avec <optgroup>. - - - - Tous les paramtres qui ne sont pas dans la liste ci-dessus sont affichs - sous la forme de paire nom/valeur dans la balise - <select>. Ils seront ignors si le paramtre optionnel - name n'est pas fourni. - - - - Tous les affichages sont conformes XHTML. - - - - - Un tableau associatif avec l'attribut <varname>options</varname> - -assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') -); -$smarty->assign('mySelect', 9904); -?> -]]> - - - Le template suivant gnrera une liste. Notez la prsence - de l'attribut name qui cre les - balises <select>. - - - - - - - L'affichage de l'exemple ci-dessus sera : - - - - - - - -]]> - - - - - Tableaux spars pour <varname>values</varname> et - <varname>ouptut</varname> - -assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - - - Les tableaux ci-dessus seront affichs avec le template suivant - (notez l'utilisation de la fonction PHP - count() en tant que modificateur pour - dfinir la taille du select). - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - L'exemple ci-dessous affichera : - - - - - - - -]]> - - - - Exemple avec une base de donnes (e.g. ADODB ou PEAR) - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id -from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - O le template pourrait tre celui-ci. Notez l'utilisation du modificateur - truncate. - - - - - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} - -]]> - - - - - Exemple avec <optgroup> - - 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - - Le script ci-dessus et le template suivant - - - - - - - affichera : - - - - - - - - - - - - - -]]> - - - - Voir aussi - {html_checkboxes} - et - {html_radios} - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-radios.xml b/docs/fr/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 15194736..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - {html_radios} - - {html_radios} est une - fonction personnalise - qui cre des boutons radio html partir des donnes fournies. Elle prend en - charge les lments slectionns par dfaut. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - name - chane de caractres - Non - radio - Nom de la liste boutons radio - - - values - tableau - Oui, moins que vous n'utilisiez l'attribut - options - n/a - Le tableau des valeurs des boutons radio - - - output - tableau - Oui, moins que vous n'utilisiez l'attribut - options - n/a - Un tableau de libells pour les boutons radio - - - checked - chane de caractres - Non - empty - Les boutons radios slectionns - - - options - tableau associatif - Oui, moins que vous n'utilisiez values - et outputs - n/a - Un tableau associatif valeurs / libells - - - separator - chane de caractres - Non - empty - Chane de sparation placer entre les - boutons radio - - - assign - chane de caractres - Non - empty - Assigne les balises des boutons radio un tableau plutt que de les afficher - - - - - - - - Les attributs requis sont values et - output, moins que vous n'utilisez - options la place. - - - - Tous les affichages sont conformes XHTML. - - - - Tous les paramtres qui ne sont pas dans la liste ci-dessus sont - affichs sous la forme de paire nom/valeur dans la balise - <input> cres. - - - - - {html_radios} : Premire exemple - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> - -]]> - - - O le template est : - - -'} -]]> - - - - {html_radios} : Deuxime exemple - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - O le template est : - - -'} -]]> - - - Les deux exemples ci-dessus afficheront : - - - - Joe Schmoe
      -
      -
      -
      -]]> -
      -
      - - {html_radios} - Exemple avec une base de donnes (e.g. PEAR ou ADODB): - -assign('types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - La variable assigne depuis la base de donnes ci-dessus sera affiche - avec le template : - - -'} -]]> - - - - Voir aussi - {html_checkboxes} et - {html_options}. - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-select-date.xml b/docs/fr/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 4fdee5c7..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - {html_select_date} - - {html_select_date} est une - fonction personnalise - qui cre des listes droulantes pour saisir la date. Elle peut afficher n'importe - quel jour, mois et anne. - Tous les paramtres qui ne sont pas dans la liste ci-dessous sont - affichs sous la forme pair nom/valeur dans les balises - <select> des jours, mois et annes. - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - prefix - chane de caractres - Non - Date_ - Avec quoi prfixer le nom de variable - - - time - timestamp/YYYY-MM-DD - Non - la date courante au format unix YYYY-MM-DD - format - La date / heure utiliser - - - start_year - chane de caractres - Non - current year - La premire anne dans la liste droulante, soit - le numro de l'anne, soit un nombre relatif l'anne - courante (+/- N). - - - end_year - chane de caractres - Non - mme chose que start_year - La dernire anne dans la liste droulante, soit - le numro de l'anne, soit un nombre relatif l'anne - courante (+/- N). - - - display_days - boolean - Non - true - Si l'on souhaite afficher les jours ou pas. - - - display_months - boolean - Non - true - Si l'on souhaite afficher les mois ou pas. - - - display_years - boolean - Non - true - Si l'on souhaite afficher les annes ou pas. - - - month_format - chane de caractres - Non - %B - le format du mois (strftime) - - - day_format - chane de caractres - Non - %02d - Le format du jour (sprintf) - - - day_value_format - chane de caractres - Non - %d - Le format de la valeur du jour (sprintf) - - - year_as_text - boolean - Non - false - S'il faut afficher l'anne au format texte - - - reverse_years - boolean - Non - false - Affiche les annes dans l'ordre inverse - - - field_array - chane de caractres - Non - null - - Si un nom est donn, la liste droulante sera affiche - de telle faon que les rsultats seront retourns PHP - sous la forme nom[Day] (jour), nom[Year] (anne), - nom[Month] (Mois). - - - - day_size - chane de caractres - Non - null - Ajoute un attribut size la liste - droulante des jours. - - - month_size - chane de caractres - Non - null - Ajoute un attribut size la liste - droulante des mois. - - - year_size - chane de caractres - Non - null - Ajoute un attribut size la liste - droulante des annes. - - - all_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires - toutes les balises select/input. - - - day_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select/input du jour. - - - month_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select/input du mois. - - - year_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select/input de l'anne. - - - field_order - chane de caractres - Non - MDY - L'ordre dans lequel afficher les - listes droulantes. - - - field_separator - chane de caractres - Non - \n - la chane de caractres affiche entre les - diffrents champs. - - - month_value_format - chane de caractres - Non - %m - Le format strftime de la valeur des mois, par dfaut %m - pour les numros. - - - year_empty - chane de caractres - Non - null - S'il est renseign, alors le premier lment de la boite de slection - affiche le texte donn en tant que libell et dispose de la valeur . - Utile par exemple lorsque vous souhaitez que la boite de slection affiche - Slectionnez une anne. - A savoir que vous pouvez spcifier des valeurs de la forme -MM-DD pour - l'attribut time afin d'indiquer une anne non slectionne. - - - month_empty - chane de caractres - Non - null - S'il est renseign, le premier lment de la boite de slection - affiche le texte donn en tant que libell et dispose de la valeur . - A savoir que vous pouvez spcifier des valeurs de la forme YYYY--DD pour - l'attribut time afin d'indiquer qu'il manque le moi. - - - day_empty - chane de caractres - Non - null - S'il est renseign, le premier lment de la boite de slection - affiche le texte donn en tant que libell et dispose de la valeur . - A savoir que vous pouvez spcifier des valeurs de la forme YYYY-MM- pour - l'attribut time afin d'indiquer qu'il manque le jour. - - - - - - - - - Il y a une fonction PHP utile sur la - page des astuces sur les dates pour convertir - les valeurs {html_select_date} en un timestamp. - - - - - {html_select_date} : Premier exemple - Code du template - - - - - Ce qui donne en sortie : - - - - - - - ..... coup ..... - - - - - - - -]]> - - - - {html_select_date} : Deuxime exemple - - - - - Ce qui donne en sortie: (L'anne courante est 2000) - - - - - - ..... coup ..... - - - - -]]> - - - - Voir aussi - {html_select_time}, - date_format, - $smarty.now et - les astuces sur les dates. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-select-time.xml b/docs/fr/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 759a6320..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - {html_select_time} - - {html_select_time} est une - fonction personnalise - qui cre des listes droulantes pour saisir une heure. Elle prends en charge l'heure, - les minutes, les secondes et le mridian. - - - L'attribut time accepte comme paramtre diffrents - formats. Ils peuvent tre un timestamp unique, une chane respectant le format - YYYYMMDDHHMMSS ou une chane - valide pour la fonction php - strtotime(). - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - prefix - chane de caractres - Non - Time_ - Par quoi prfixer la variable. - - - time - timestamp - Non - current time - Quel jour / heure utiliser. - - - display_hours - boolean - Non - &true; - S'il faut afficher l'heure. - - - display_minutes - boolean - Non - &true; - S'il faut afficher les minutes. - - - display_seconds - boolean - Non - &true; - S'il faut afficher les secondes. - - - display_meridian - boolean - Non - &true; - S'il faut afficher le mridian (am/pm) - - - use_24_hours - boolean - Non - &true; - S'il faut utiliser l'horloge 24 heure. - - - minute_interval - integer - Non - 1 - Intervalle des minutes dans la liste - droulante - - - second_interval - integer - Non - 1 - Intervalle des secondes dans la liste - droulante - - - field_array - chane de caractres - Non - n/a - Nom du tableau dans lequel les valeures - seront stockes. - - - all_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select / input. - - - hour_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select / input de l'heure. - - - minute_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select / input des minutes. - - - second_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select / input des secondes. - - - meridian_extra - chane de caractres - Non - null - Ajoute des attributs supplmentaires aux balises - select / input du mridian. - - - - - - html_select_time - - - - - 9:20 et 23 secondes du matin, le template ci-dessus affichera : - - - - - -...coup... - - - -...coup... - - - - - - -]]> - - - - Voir aussi - $smarty.now, - {html_select_date} et - les astuces sur les dates. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-html-table.xml b/docs/fr/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 8b40b03c..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - {html_table} - - {html_table} est une - fonction personnalise - qui transforme un tableau de donnes dans un tabeau HTML. - - - - - - - - - - - Nom de l'attribut - Type - Requis - Dfaut - Description - - - - - loop - tableau - Oui - n/a - Tableau de donnes parcourir - - - cols - mixed - Non - 3 - - Nombre de colonnes de la table ou une liste de noms de colonnes spars par une - virgule ou un tableau contenant les noms des colonnes. Si l'attribut "cols" est vide, - mais que des lignes sont donnes, alors le nombre de colonnes sera calcul - en utilisant le nombre de lignes et le nombre d'lments afficher pour qu'il y - ait juste assez de colonnes pour afficher tous les lments. Si les lignes et - les colonnes sont omis tous les deux, la valeur par dfaut de "cols" sera applique, - savoir 3. Si fourni en tant que liste ou tableau, le nombre de colonnes - est calcul par rapport au nombre d'lments de la liste ou du tableau. - - - - rows - entier - No - empty - - Nombre de lignes de la table. Si l'attribut "rows" est vide, mais que des colonnes - sont donnes, alors le nombre de lignes sera calcule en utilisant le nombre de colonnes - et le nombre d'lments afficher pour qu'il y ait juste assez de lignes pour afficher - tous les lments. - - - - inner - chane de caractres - No - cols - - La direction du rendu des lments conscutifs dans la boucle du tableau. - cols signifie que les lments doivent tre - afficher colonnes par colonnes. - rows signifie que les lments doivent tre - afficher lignes par lignes. - - - - caption - chane de caractres - No - empty - - Texte utiliser pour l'lment <caption> du tableau. - - - - table_attr - chane de caractres - Non - border="1" - attributs pour la balise <table> - - - th_attr - chane de caractres - No - empty - Attributs pour les balises <th> - (les tableaux sont parcourus) - - - tr_attr - chane de caractres - Non - empty - Attributs pour les balises <tr> (les tableaux sont parcourus) - - - td_attr - chane de caractres - Non - empty - Attributs pour les balises <td> - (les tableaux sont parcourus) - - - trailpad - chane de caractres - Non - &nbsp; - Valeur avec laquelle remplir les cellules - restantes de la dernire ligne (si il y en a) - - - hdir - chane de caractres - Non - right - - Direction du rendu. Les valeurs possibles sont right (left-to-right), - left (right-to-left) - - - - vdir - chane de caractres - Non - down - - Direction des colonnes lors du rendu. Les valeurs possibles sont : - down (top-to-bottom), up - (bottom-to-top) - - - - - - - - - L'attribut cols dtermine le nombre - de colonnes dans le tableau. - - - - Les valeurs table_attr, tr_attr - et td_attr dterminent les attributs fournis dans les balises - <table>, <tr> - et <td>. - - - - Si tr_attr ou td_attr - est un tableau, il sera parcourru. - - - - trailpad est la valeur utilise pour complter les cellules - vides de la dernire ligne s'il y en a. - - - - - {html_table} - -assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); -?> -]]> - - - Les variables assignes depuis PHP peuvent tre affiches comme le dmontre - cet exemple. - - - - - 123 - 456 - 789 - - - - -{**** Deuxime exemple ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - - - - - - - -
      1234
      5678
      9   
      - - -{**** Troisime exemple ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - - - - - - - - - - - - -
      firstsecondthirdfourth
      1234
      5678
      9   
      -]]> -
      -
      -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-mailto.xml b/docs/fr/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 1e9e4c05..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - {mailto} - - {mailto} cre un lien mailto: - automatiquement encod (optionnel). - L'encodage rend la tche de rcupration des e-mails sur votre - site plus difficiles aux "web spiders". - - - Note technique - - Javascript n'est certainement pas la forme d'encodage la plus robuste. - Vous pouvez galement utiliser un encodage hexadcimal. - - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - address - chane de caractres - Oui - n/a - L'adresse email - - - text - chane de caractres - Non - n/a - Le texte afficher, par dfaut l'adresse email - - - encode - chane de caractres - Non - none - Comment encoder l'adresse email. - none, hex, javascript - et javascript_charcode sont des valeurs correctes. - - - cc - chane de caractres - Non - n/a - Les adresses email en copie (Cc). - Sparez les entres par une virgule. - - - bcc - chane de caractres - Non - n/a - Les adresses email en copie caches (Bcc). - Sparez les entres par une virgule. - - - subject - chane de caractres - Non - n/a - Sujet de l'email. - - - newsgroups - chane de caractres - Non - n/a - Newsgroup o poster le message. - Sparez les entres par une virgule. - - - followupto - chane de caractres - Non - n/a - Adresses o transmettre le message. - Sparez les entres par une virgule. - - - - extra - chane de caractres - Non - n/a - Toute information que vous souhaitez passer au lien, - par exemple une classe css. - - - - - - Exemple avec {mailto} - - moi@example.com - -{mailto address="moi@example.com" text="envoie moi un email"} -envoie-moi un email - -{mailto address="moi@example.com" encode="javascript"} - - -{mailto address="moi@example.com" encode="hex"} -m&..coup...#x6f;m - -{mailto address="moi@example.com" subject="Hello to you!"} -me@example.com - -{mailto address="moi@example.com" cc="toi@example.com,eux@example.com"} -moi@example.com - -{mailto address="moi@example.com" extra='class="email"'} - - -{mailto address="moi@example.com" encode="javascript_charcode"} - -]]> - - - - Voir aussi - escape, - {textformat} - et le camouflage des adresses E-mail. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-math.xml b/docs/fr/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index bb8f5140..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - {math} - - {math} autorise les designers de templates effectuer - des oprations dans le template. - - - - Toute valeur numrique peut tre utilise dans une - opration, et le rsultat sera affich la place des balises - "equation". - - - - Les variables utilises dans l'opration sont passes en - tant que paramtre, et peuvent tre des variables de templates ou des - valeurs statiques. - - - +, -, /, *, abs, ceil, cos, - exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, - srans et tan sont tous des oprateurs valides. Voir la - documentation PHP pour plus d'informations sur ces fonctions - mathmatiques. - - - - Si vous spcifiez l'attribut assign, la sortie - de la fonction {math} sera assigne la variable - donne plutt que d'tre directement affiche. - - - - - Note technique - - {math} est une fonction coteuse en terme de - performances, du fait qu'elle utilise la fonction PHP - eval(). - Effectuer les calculs dans votre code PHP est beaucoup plus efficient, donc, chaque fois - que possible, effectuez vos calculs directement dans PHP et - assignez le rsultat au template. - Evitez cot que cot les appels rptitifs la fonction {math}, - comme on pourait le faire une - une boucle {section}. - - - - - - - - - - - - Nom attribut - Type - Requis - Dfaut - Description - - - - - equation - chane de caractres - Oui - n/a - L'opration xcuter - - - format - chane de caractres - Non - n/a - Le format du rsultat (sprintf) - - - var - numeric - Oui - n/a - Les variables de l'opration - - - assign - chane de caractres - Non - n/a - Variable de template dans laquelle la sortie - sera assigne - - - [var ...] - numeric - Oui - n/a - Valeurs des variables de l'opration - - - - - - {math} - - Exemple a : - - - - - - L'exemple ci-dessus affichera : - - - - - - Exemple b : - - - - - - L'exemple ci-dessus affichera : - - - - - - Exemple c : - - - - - - L'exemple ci-dessus affichera : - - - - - - Exemple d : - - - - - - L'exemple ci-dessus affichera : - - - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-popup-init.xml b/docs/fr/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index 2ad1838e..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - {popup_init} - - {popup} - est une intgration de overLib, - une librairie capable de raliser des fentres surgissantes (nous parlerons de "popup"). - Ce type de fentre est utilis pour apporter des informations - contextuelles, comme des infobulles d'aides ou astuces. - - - - - {popup_init} doit tre appel une seule fois, - de prfrence dans la balise <head>, dans toutes les pages si vous - comptez utiliser la fonction - {popup}. - - - - Le chemin est relatif au script excut ou un chemin complet (i.e. non relatif au template). - - - - overLib - a t crit par Erik Bosrup, et le site de l'auteur/le tlchargement est disponible l'adresse sur - &url.overLib;. - - - - - {popup_init} - - -{* popup_init doit tre appel une fois en dbut de page. *} -{popup_init src='/javascripts/overlib.js'} - -{* exemple avec une url complte *} -{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'} - - -// le premier exemple affichera - - - - -]]> - - - - -Validation XHTML -{popup_init} ne valide pas en validation stricte et vous devriez - obtenir l'erreur : -document type does not allow element "div" here; -(i.e. une balise <div> dans la balise <head>). - -Ceci signifie que vous devez inclure les balises <script> et -<div> manuellement. - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-popup.xml b/docs/fr/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 4dad51bd..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - {popup} - - {popup} est utilis pour crer une fentre popup javascript. - {popup_init} - DOIT tre appel en premier pour que cela fonctionne. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - text - chane de caractres - Oui - n/a - Le texte/code html afficher dans la popup - - - trigger - chane de caractres - Non - onMouseOver - L'vnement utilis pour rendre la popup active, - onMouseOver ou onClick. - - - sticky - boolen - Non - &false; - Rends la popup active jusqu'a ce qu'elle soit - explicitement ferme. - - - caption - chane de caractres - Non - n/a - Dfini le libell du titre - - - fgcolor - chane de caractres - Non - n/a - Couleur interne de la popup - - - bgcolor - chane de caractres - Non - n/a - Couleur de la bordure de la popup - - - textcolor - chane de caractres - Non - n/a - Couleur du texte l'intrieur de la - popup - - - capcolor - chane de caractres - Non - n/a - Couleur du libell de la popup - - - closecolor - chane de caractres - Non - n/a - Couleur du texte de fermeture - - - textfont - chane de caractres - Non - n/a - La police utiliser dans le texte principal - - - captionfont - chane de caractres - Non - n/a - La police utiliser dans le libell - - - closefont - chane de caractres - Non - n/a - La police pour le texte de fermeture - - - textsize - chane de caractres - Non - n/a - Taille de la police texte prinicpal - - - captionsize - chane de caractres - Non - n/a - Taille de la police du libell - - - closesize - chane de caractres - Non - n/a - Taille de la police du bouton "fermer" - - - width - entier - Non - n/a - Longeur de la popup - - - height - entier - Non - n/a - Hauteur de la popup - - - left - boolen - Non - &false; - La popup va gauche de la souris - - - right - boolen - Non - &false; - La popup va droite de la souris - - - center - boolen - Non - &false; - La popup est centre par rapport la - position de la souris - - - above - boolen - Non - &false; - la popup est au dessus de la souris. NOTE: - possible uniquement si la hauteur est dfinie - - - below - boolen - Non - &false; - La popup apparait en dessous de la souris - - - border - entier - Non - n/a - Rends la bordure de la popup plus paisse ou plus - fine - - - offsetx - entier - Non - n/a - A quelle distance du curseur la popup apparaitra horizontalement. - - - offsety - entier - Non - n/a - A quelle distance du curseur la popup apparaitra verticalement. - - - fgbackground - url vers l'image - Non - n/a - Une image utiliser la place de la couleur de - fonds dans la popup - - - bgbackground - url vers l'image - Non - n/a - Image utiliser la place de la bordure de la - popup. NOTE: vous veillerez dfinir bgcolor "" ou la - couleur apparaitra de mme. NOTE: Lorsque vous avez un - lien de fermeture, Netscape effectuera un nouveau rendu - des cellules du tableau, affichant mal les lments - - - closetext - chane de caractres - Non - n/a - Dfinit le texte de fermeture par autre chose - que "Close" - - - noclose - boolen - Non - n/a - N'affiche pas le bouton "Close" pour les fentres - "collantes". - - - - status - chane de caractres - Non - n/a - Dfini le texte de la barre de statut - du navigateur - - - autostatus - boolen - Non - n/a - Dfini le texte de la barre de statut au contenu - de la popup. NOTE: Ecrase l'attribut status. - - - autostatuscap - chane de caractres - Non - n/a - Dfini le texte de la barre de statut au libell - de la popup. NOTE: Ecrase l'attribut status. - - - inarray - entier - Non - n/a - Indique overLib de lire le texte cet index dans le - tableau ol_text, situ dans overlib.js. Ce paramtre peut tre - utilis la place de text. - - - caparray - entier - Non - n/a - Indique overlib de lire le libell depuis le - tableau ol_caps - - - capicon - url - Non - n/a - Affiche l'image spcifie avant le libell de la - popup - - - snapx - entier - Non - n/a - Aligne la popup sur une grille horizontale - - - snapy - entier - Non - n/a - Aligne la popup sur une grille verticale - - - fixx - entier - Non - n/a - Vrrouille la popup une position horizontale. - Note: remplace les autres paramtres de position - horizontale - - - fixy - entier - Non - n/a - Vrouille la popup une position verticale - Note: remplace les autres paramtres de position - verticale - - - background - url - Non - n/a - Dfini l'image utiliser plutt que le tableau - de fond - - - padx - entier, entier - Non - n/a - carte l'image de fond du reste des lments - avec un espace horizontal, pour le positionnement du texte. - Note: c'est un attribut deux paramtres. - - - pady - entier, entier - Non - n/a - carte l'image de fond du reste des lments - avec un espace vertical, pour le positionnement du texte. - Note: c'est un attribut deux paramtres. - - - fullhtml - boolen - Non - n/a - Vous autorise placer du code html en tant que - contenu de la popup. Le code html est attendu dans - l'attribut text. - - - frame - chane de caractres - Non - n/a - Contrle la popup dans un cadre diffrent. - Voir la documentation d'overlib pour plus de dtails - sur cette fonction. - - - function - chane de caractres - Non - n/a - Appelle la fonction javascript spcifie et prends - sa valeur de retour comme texte devant tre affich - dans la popup. - - - delay - entier - Non - n/a - La popup se comporte comme une infobulle. - Elle disparaitra au bout d'un certain dlai, en - millisecondes. - - - hauto - boolen - Non - n/a - Dtermine automatiquement si la popup doit tre - gauche ou droite de la souris - - - vauto - boolen - Non - n/a - Dtermine automatiquement si la popup doit tre - au-dessus ou au-dessous de la souris - - - - - - {popup} - -mypage - -{* vous pouvez utiliser du html, des liens, etc. dans vos popup *} -ma page - -{* un popup via une cellule du tableau *} -{$part_number} -]]> - - - - Il y a galement un autre bon exemple sur la page de la documentation de - {capture}. - - - Voir aussi - {popup_init} et - overLib. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-custom-functions/language-function-textformat.xml b/docs/fr/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index de88a431..00000000 --- a/docs/fr/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - {textformat} - - {textformat} est une - fonction de bloc - utilise pour formater du texte. - Elle nettoie la chane de ses espaces et caractres spciaux, puis - formate les paragraphes en ajustant ces derniers une certaine limite, - puis en indentant les lignes. - - - Vous pouvez soit utiliser un style prdfini, soit dfinir explicitement - chaque attribut. Actuellement, seul le style prdfini email est - disponible. - - - - - - - - - - - Nom attribut - Type - Requis - Defaut - Description - - - - - style - chane de caractres - Non - n/a - Style prdfini - - - indent - number - Non - 0 - Taille de l'indentation pour chaque - ligne - - - indent_first - number - Non - 0 - Taille de l'indentation de la - premire ligne - - - indent_char - chane de caractres - Non - (single space) - Le caractre (ou la chane) utiliser pour - indenter - - - wrap - number - Non - 80 - combien de caractres doit on ajuster chaque - ligne - - - wrap_char - chane de caractres - Non - \n - Le caractre (ou chane de caractres) avec lequel - terminer les lignes - - - wrap_cut - boolean - Non - &false; - Si true, wrap rduira les lignes au caractre exact - au lieu d'ajuster la fin d'un mot - - - assign - chane de caractres - Non - n/a - Le nom de la variable PHP dans laquelle la - sortie sera assigne - - - - - - {textformat} - - - - - L'exemple ci-dessus affichera : - - - - - - - - - L'exemple ci-dessus affichera : - - - - - - - - - L'exemple ci-dessus affichera : - - - - - - - - - L'exemple ci-dessus affichera : - - - - - - - Voir aussi - {strip} et - {wordwrap}. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers.xml b/docs/fr/designers/language-modifiers.xml deleted file mode 100644 index 3dc6a066..00000000 --- a/docs/fr/designers/language-modifiers.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - Modificateurs de variables - - Les modificateurs de variables peuvent tre appliqus aux - variables, - fonctions utilisateurs - ou chanes de caractres. Pour appliquer un modificateur - de variable, tappez une valeure suivie de | - (pipe) et du nom du modificateur. Un modificateur de variable - est succeptible d'accepter des paramtres additionnels, qui en affectent - le comportement. Ces paramtres suivent le nom du modificateur et - sont spars par un : (deux points). - Toutes les fonctions PHP peuvent tre utilises en tant que modifieurs - implicitement (plus d'informations ci-dessous) et les modificateurs peuvent - tre combins. - - - Exemple de modificateur - - - {html_options output=$myArray|upper|truncate:20} - -]]> - - - - - - Si vous appliquez un modificateur de variable un tableau plutt qu' une - variable simple, le modificateur sera appliqu chaque valeur du tableau. - Si vous souhaitez que le modificateur travaille rellement avec le tableau - en tant que tel, vous devez prfixer le nom du modificateur avec un symbole - @ - - Exemple - {$articleTitle|@count} - affichera le nombre - d'lments dans le tableau $articleTitle en utilisant - la fonction PHP count() - comme modificateur. - - - - - - - - Les modificateurs sont chargs automatiquement depuis votre rpertoire - de plugin $plugins_dir - ou peuvent tre enregistrs explicitement avec - register_modifier() ; - ceci est utile pour partager une fonction dans un scirpt PHP et les templates Smarty. - - - - - - Toutes les fonction PHP peuvent tre utilises comme modificateur, - sans autre dclaration, tel que dans l'exemple ci-dessus. - Cepdendant, l'utilisation de fonctions PHP comme modificateurs - contient deux petits piges viter : - - Le premier - quelques fois, l'ordre des paramtres de la fonction - n'est pas celui attendu. Le formattage de $foo avec - {"%2.f"|sprintf:$foo} fonctionne actuellement, mais - n'est pas aussi intuitif que - {$foo|string_format:"%2.f"}, ce qui est fournit par Smarty. - - - Le deuxime - Si - $security est activ, toutes les fonctions PHP - qui devront tre utilises comme modificateurs, doivent tre dclares dans l'lment - MODIFIER_FUNCS du tableau - - $security_settings. - - - - - - Voir aussi - register_modifier(), - les modificateurs combins. - et tendre Smarty avec des plugins. - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml b/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 99204d95..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - capitalize - - Met la premire lettre de chaque mot d'une variable en majuscule. - C'est l'quivalent de la fonction PHP - - ucfirst(). - - - - - - - - - - - Position du paramtre - Type - Requis - Dfaut - Description - - - - - 1 - boolen - No - &false; - Dtermine si oui ou non les mots contenant des chiffres - doivent tre mis en majuscule - - - - - - Mise en majuscule - -assign('titreArticle', 'Le nouveau php5 est vraiment performant !'); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - lower et - upper. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-cat.xml b/docs/fr/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 727356ff..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - cat - - Cette valeur est concatne la variable donne. - - - - - - - - - - - Position du paramtre - Type - Requis - cat - Description - - - - - 1 - chane de caractres - Non - empty - Valeur concatner la variable donne. - - - - - - cat - -assign('articleTitle', "'Les devins ont prvus que le monde existera toujours"); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml b/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 6b23fe3c..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - count_characters - - Compte le nombre de caractres dans une variable. - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - boolean - Non - &false; - Si l'on doit inclure les espaces dans le compte. - - - - - - count_characters - -assign('titreArticle', 'Vagues de froid lies la temprature.'); - -?> -]]> - - - O le template est : - - - - - - Ce qui donne en sortie : - - - - - - - Voir aussi - count_words, - count_sentences et - count_paragraphs. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4557827c..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - count_paragraphs - - Compte le nombre de paragraphes dans une variable. - - - count_paragraphs - -assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - count_characters, - count_sentences et - count_words. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 106e3bba..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - count_sentences - - Compte le nombre de phrases dans une variable. - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - count_characters, - count_paragraphs et - count_words. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-count-words.xml b/docs/fr/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 75d71079..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - count_words - - Compte le nombre de mots dans une variable. - - - count_words - -assign('TitreArticle', 'Un anneau pour les gouverner tous.'); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - count_characters, - count_paragraphs et - count_sentences. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-date-format.xml b/docs/fr/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 5df543b3..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,280 +0,0 @@ - - - - - - date_format - - Formate une date / heure au format - strftime() donn. - Les dates peuvent tre passes smarty en tant que - timestamp unix, - timestamp mysql ou comme chane quelconque contenant mois jour anne - (interprtable par - strtotime()). - Les concepteurs de templates peuvent utiliser date_format pour contrler - parfaitement le format de sortie de la date. - Si la date passe date_format est vide, et qu'un - second paramtre est donn, ce dernier sera utilis comme tant la date formater. - - - - - - - - - - - Position du paramtre - Type - Requis - Dfaut - Description - - - - - 1 - chane de caractres - Non - %b %e, %Y - Format de sortie de la date. - - - 2 - chane de caractres - Non - n/a - Date par dfaut si aucune n'est spcifie en entre. - - - - - - - - - Depuis Smarty 2.6.10, les valeurs numriques passes date_format - sont toujours (except pour les timestamps mysql, voir - ci-dessous) interprtes comme un timestamp Unix. - - - Avant la version 2.6.10 de Smarty, les chanes numriques qui taient - galement analysables par strtotime() - en PHP (comme YYYYMMDD), - taient, parfois, dpendament de l'implmentation de strtotime(), - interprtes en tant que des chanes date et NON des timestamps. - - - La seule exception est les timestamps MySQL : Ils sont uniquement numriques - et d'une longueur de 14 caractres (YYYYMMDDHHMMSS). Les timestamps - MySQL ont la priorit sur les timestamps Unix. - - - - Note pour les dveloppeurs - - date_format est essentiellement un gestionnaire pour la fonction PHP - strftime(). - Vous pourriez avoir plus ou moins d'options disponibles suivant le systme sur lequel - la fonction PHP strftime() - a t compil. Vrifiez la documentation pour votre systme pour avoir une liste complte - des options disponibles. - - - - - date_format - -assign('config',$config); -$smarty->assign('hier', strtotime('-1 day')); - -?> -]]> - - - O le template est (utilisation de - $smarty.now) : - - - - - - Affichera : - - - - - - - Conversion de date_format : - - - %a - Abrviation du jour de la semaine, selon les paramtres locaux. - - - %A - Nom du jour de la semaine, selon les paramtres locaux. - - - %b - Abrviation du nom du jour, selon les paramtres locaux. - - - %B - Nom complet du mois, selon les paramtres locaux. - - - %c - Prfrences d'affichage selon les paramtres locaux. - - - %C - Sicle, (L'anne divise par 100 et tronque comme un entier, de 00 99) - - - %d - Jour du mois, en tant que nombre dcimal (de 01 31) - - - %D - mme chose que %m/%d/%y - - - %e - Jour du mois en tant que nombre dcimal. Un chiffre unique est prcd par - un espace (de 1 31) - - - %g - Position de la semaine dans le sicle [00,99] - - - %G - Position de la semaine, incluant le sicle [0000,9999] - - - %h - identique %b - - - %H - L'heure en tant que dcimale, en utilisant une horloge sur 24 (de 00 23) - - - %I - L'heure en tant que dcimale en utilisant une horloge sur 12 (de 01 to 12) - - - %j - jour de l'anne (de 001 366) - - - %k - Heure (horloge sur 24). Les numros un chiffre sont prcds d'un espace. (de 0 23) - - - %l - Heure (horloge sur 12). Les numros un chiffre sont prcds d'un espace. (de 1 12) - - - %m - Mois en tant que nombre dcimal (de 01 12) - - - %M - Minute en tant que nombre dcimal - - - %n - Retour chariot (nouvelle ligne). - - - %p - soit am soit pm selon l'heure donne, ou alors leurs correspondances locales. - - - %r - heure en notation a.m. et p.m. - - - %R - Heure au format 24 heures - - - %S - Secondes en tant que nombre dcimal. - - - %t - Caractre tabulation. - - - %T - Heure courante, quivalent %H:%M:%S - - - %u - Jour de la semaine en tant que nombre dcimal [1,7], ou 1 reprsente le lundi. - - - %U - Le numro de la semaine en nombre dcimal, utilisant le premier dimanche - en tant que premier jour de la premire semaine. - - - %V - Le numro de la semaine de l'anne courante selon la norme ISO 8601:1988, - de 01 53, ou la semaine 1 est la premire semaine qui dispose au minimum - de 4 jours dans l'anne courante et ou Lundi est le premier jour - de cette semaine. - - - %w - Jour de la semaine en tant que nombre dcimal, dimanche tant 0 - - - %W - Le numro de la semaine de l'anne courante en tant que nombre dcimal, - ou Lundi est le premier jour de la premire semaine. - - - %x - Reprsentation prfre de la date selon les paramtres locaux. - - - %X - Reprsentation prfre de l'heure selon les paramtres locaux, sans la - date. - - - %y - L'anne en tant que nombre dcimal, sans le sicle. (de 00 99) - - - %Y - L'anne en tant que nombre dcimal, avec le sicle. - - - %Z - Zone horraire, nom ou abrviation - - - %% - Un caractre litral `%' - - - - - Voir aussi - $smarty.now, - strftime(), - {html_select_date} et - les astuces sur les dates. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-default.xml b/docs/fr/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 48e6a7d1..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - default - - Utilis pour dfinir une valeur par dfaut une variable. - Si la variable est vide ou indfinie, la valeur donne est affiche - en lieu et place. default attends un seul argument. - - - - - Avec - error_reporting(E_ALL), les variables non - dclares lanceront toujours une erreur dans le template. Cette fonction est - utile pour remplacer les chanes vides ou de longueurs vides. - - - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - chane de caractres - Non - empty - La valeur par dfaut de la sortie si la variable - d'entre est vide. - - - - - - Dfaut - -assign('TitreArticle', 'Les portes de la moria restent fermes.'); -$smarty->assign('email',''); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - la gestion des variables par dfaut - et la gestion de l'effacement des variables. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-escape.xml b/docs/fr/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 22281142..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - escape - - escape est utilis pour encoder / chapper - une variable pour quelles soient compatibles - avec les url html, avec les hexadcimaux, - avec les entits hexadcimales, avec javascript - et avec les e-mails. - Par dfaut, ce paramtre est html. - - - - - - - - - - - - Position du paramtre - Type - Requis - Valeurs possibles - Dfaut - Description - - - - - 1 - chane de caractre - Non - - html, htmlall, - url, - urlpathinfo, quotes, - hex, hexentity, - javascript, mail - - html - Format d'chappement utiliser. - - - 2 - chane de caractre - Non - - ISO-8859-1, UTF-8, ... n'importe quel jeu de - caractres support par - htmlentities() - - ISO-8859-1 - Le jeu de caractres pass htmlentities() - - - - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); -?> -]]> - - - Voici des exemples de template avec escape suivis par l'affichage produit. - - - *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* chappe toutes les entits html *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -cliquez-ici -cliquez-ici - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -{$EmailAddress|escape:"hexentity"} -{$EmailAddress|escape:'mail'} {* ceci convertit un email en texte *} -bob..snip..et - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - - - - - Autres exemples - Les fonctions PHP peuvent tre utilises comme modificateurs, suivant la - configuration de - - $security. - - -click here -]]> - - - Et ceci est utile pour les e-mails, mais lisez plutt la documentation de - {mailto} - -{$EmailAddress|escape:'mail'} -]]> - - - - Voir aussi la - l'anayse Smarty d'chappement, - {mailto} et - le mascage des adresses e-mail. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-indent.xml b/docs/fr/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 523309c1..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - indent - - Indente chacune des lignes d'une chane. Comme paramtre optionnel, - vous pouvez spcifier le nombre de caractres utiliser pour l'indentation (4 par dfaut). - Comme second paramtre optionnel, vous - pouvez spcifier le caractre utiliser pour l'indentation (utilisez - "\t" pour les tabulations). - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 4 - De combien de caractres l'indentation doit tre effectue. - - - 2 - chane de caractre - Non - (espace) - Caractre utiliser pour l'indentation. - - - - - - indent - -assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> - - -O le template est : - - - - - -Affichera : - - - - - - - Voir aussi - strip, - wordwrap et - spacify. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-lower.xml b/docs/fr/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 0bcea136..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - lower - - Met une variable en minuscules. C'est l'quivalent de la fonction PHP - strtolower(). - - - lower - -assign('TitreArticle', 'Deux Suspects Se Sont Sauvs.'); -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - upper et - capitalize. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml b/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 398d1440..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - nl2br - - Transforme toutes les fins de lignes en balises <br />. - quivalent la fonction PHP - nl2br(). - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - O le template est : - - - - - - Affichera : - - -aujourd'hui, nuit noire -]]> - - - - Voir aussi - word_wrap, - count_paragraphs et - count_sentences. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 38e05dbe..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - regex_replace - - Un rechercher / remplacer avec une expression rgulire. Utilise la mme - syntaxe que la fonction PHP - preg_replace(). - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - chane de caractre - Oui - n/a - Expression rgulire remplacer. - - - 2 - chane de caractre - Oui - n/a - La chane de remplacement. - - - - - - regex_replace - -assign('TitreArticle', "L'infertilit est un maux grandissant\n, disent les experts."); - -?> -]]> - - -O le template est : - - - - - -Affichera : - - - - - - - Voir aussi - replace et - escape. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-replace.xml b/docs/fr/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 597d51c8..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - replace - - Un simple remplacement de chane de caractres. C'est l'quivalent - de la fonction PHP - str_replace(). - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - chane de caractres - Oui - n/a - chane remplacer. - - - 2 - chane de caractres - Oui - n/a - chane de remplacement. - - - - - - replace - -assign('titreArticle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - -Ou le template est : - - - - - -Affichera : - - - - - - - Voir aussi - regex_replace et - escape. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-spacify.xml b/docs/fr/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 1b8e07bd..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - spacify - - spacify est un moyen pour insrer un espace entre tous les caractres - d'une variable. Optionnellement, vous pouvez lui passer un caractre - (ou une chane) diffrent de l'espace insrer. - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - chane de caractre - Non - espace - Ce qui est insr entre chaque caractre de la variable. - - - - - - spacify - -assign('titreArticle', 'Quelque chose s\'est mal pass et provoqu -cet accident, disent les experts'); - -?> -]]> - - -O le template est : - - - - - -Affichera : - - - - - - - Voir aussi - wordwrap et - nl2br. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-string-format.xml b/docs/fr/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 3aca76fd..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - string_format - - Un moyen pour formater les chanes de caractres, comme par exemple les - nombres dcimaux. Utilise la syntaxe de - sprintf() - pour formater les lments. - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - chane de caractres - Oui - n/a - Le format utiliser (sprintf) - - - - - - string_format - -assign('nombre', 23.5787446); - -?> -]]> - - -O le template est : - - - - - -Affichera : - - - - - - - Voir aussi - date_format. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index bc854a55..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - strip_tags - - Supprime toutes les balises, et plus gnralement tout ce qui se trouve - entre < et >. - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - bool - Non - &true; - Si l'on remplace les lments par ' ' ou par '' - - - - - - strip_tags - -assign('articleTitle', - "Blind Woman Gets New - Kidney from Dad she Hasn't Seen in years." - ); - -?> -]]> - - -O le template est : - - - - - -Affichera : - - -New Kidney from Dad she Hasn't Seen in years. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - - - - Voir aussi - replace - et - regex_replace. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-strip.xml b/docs/fr/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 3947ae38..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - strip - - Remplace les espaces multiples, les nouvelles lignes et les tabulations - par un espace simple, ou une chane donne. - - - Note - - Si vous voulez raliser cette action sur un bloc complet du template, - utilisez la fonction {strip}. - - - - strip - -assign('titreArticle', "Une runion autour\n d'un feu de chemine\t -est toujours agrable."); -$smarty->display('index.tpl'); -?> -]]> - - - O le template est : - - - - - - Affichera : - - - - - - - Voir aussi - {strip} et - truncate. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-truncate.xml b/docs/fr/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 2fcaf9a8..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - truncate - - Tronque une variable une certaine longueur, par dfaut 80. - Un second paramtre optionnel permet de spcifier une chane afficher - la fin de la variable une fois tronque. Les caractres de fin sont - inclus dans la longueur de la chane tronquer. Par dfaut, - truncate tentera de couper la chane la fin d'un mot. - Si vous voulez tronquer la chane au caractre exact, donnez la valeur &true; au - dernier paramtre optionnel. - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 80 - Le nombre de caractres maximums au-del duquel - on effectue le troncage - - - 2 - chane de caractre - Non - ... - Le texte qui remplace le texte tronqu. Sa longueur est - incluse dans la configuration de la longueur tronquer. - - - 3 - boolen - Non - &false; - Dtermine si le troncage est effectu sur - le dernier mot (&false;), ou au caractre exact (&true;). - - - - 4 - boolen - Non - &false; - Ceci dtermine si le troncage intervient la fin de la - chane (&false;), ou au milieu de la chane (&true;). Notez que si - ceci vaut &true;, alors les limites de mots sont ignores. - - - - - - truncate - -assign('titreArticle', 'Deux soeurs runies aprs 18 ans de sparation.'); - -?> -]]> - - -O le template est : - - - - - -Ce qui donne en sortie : - - - - - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-upper.xml b/docs/fr/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 96dcc625..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - upper - - Met une variable en majuscules. C'est l'quivalent de la fonction PHP - strtoupper(). - - - upper - -assign('titreArticle', "Si l'attaque n'est pas mise en place -rapidement, cel risque de durer longtemps."); -?> -]]> - - - O le template est : - - - - - - Affichera : - - -Si l'attaque n'est pas mise en place rapidement, cel risque de durer longtemps. -SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CEL RISQUE DE DURER LONGTEMPS. - - - - Voir aussi - lower et - capitalize. - - - - \ No newline at end of file diff --git a/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 85c29f51..00000000 --- a/docs/fr/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - wordwrap - - Ajuste une chane de caractres une taille de colonne, par dfaut 80. - Un second paramtre optionnel vous permet de spcifier la chane utiliser - pour l'ajustement la nouvelle ligne (retour chariot "\n" par dfaut). - Par dfaut, wordwrap tente un ajustement la fin d'un mot. - Si vous voulez autoriser le dcoupage des mots pour un ajustement au caractre prs, - passez &true; au troisime paramtre optionnel. Ceci est l'quivalent de la - fonction PHP wordwrap(). - - - - - - - - - - - Position du paramtre - Type - Requis - Defaut - Description - - - - - 1 - entier - Non - 80 - La nombre de colonnes sur lequel ajuster l'affichage. - - - 2 - chane de caractres - Non - \n - chane de caractres utilise pour l'ajustement. - - - 3 - boolen - Non - &false; - Dtermine si l'ajustement se fait en fin de mot - (&false;) ou au caractre exact (&true;). - - - - - - wordwrap - -assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); -?> -]]> - - - O le template est : - - -\n"} - -{$titreArticle|wordwrap:30:"\n":true} -]]> - - - L'exemple ci-dessus affichera : - - -; -nouveau rein d'un pre
      ; -qu'elle n'a pas vu depuis
      ; -des annes. - -Une femme aveugle obtient un n -ouveau rein d'un pre qu'elle -n'a pas vu depuis des annes. -]]> -
      -
      - - Voir aussi - nl2br et - {textformat}. - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-variables.xml b/docs/fr/designers/language-variables.xml deleted file mode 100644 index bf67853c..00000000 --- a/docs/fr/designers/language-variables.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Variables - - Smarty possde diffrents types de variables. Le type de ces variables dpend - du symbole qui les prfixe, ou des symboles qui les entourent. - - - Les variables de Smarty peuvent tre soit affiches directement, soit utilises - comme arguments pour les - fonctions - et modificateurs, l'intrieur d'expressions - conditionnelles, etc. - Pour afficher une variable, il suffit de l'entourer par des - dlimiteurs de - telle sorte qu'elle soit la seule chose qu'ils contiennent. - - Exemple de variables - - -]]> - - - - Astuce - La faon de la simple d'analyser les variables Smarty est - d'utiliser la - console de dbogage. - - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - diff --git a/docs/fr/designers/language-variables/language-assigned-variables.xml b/docs/fr/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index cb0e9cbc..00000000 --- a/docs/fr/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - Variables assignes depuis PHP - - Pour utiliser une variables assignes depuis PHP, il - faut la prfixer par le symbole dollar $. - Les variables asignes depuis un template grce la fonction - {assign} sont - manipules de la mme faon. - - - Variables assignes - Script PHP - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - O index.tpl est : - - - -{* ceci ne fonctionnera pas car $vars est sensible la casse *} -Cette semaine, le meeting est {$meetingplace}. -{* ceci fonctionnera *} -Cette semaine, le meeting est {$meetingPlace}. -]]> - - - Affichera : - - - -Cette semaine, le meeting est . -Cette semaine, le meeting est New York. -]]> - - - - - Tableaux associatifs - - Vous pouvez galement utiliser des variables sous forme de tableaux - associatifs assignes depuis PHP en en spcifiant la clef, - aprs le symbole '.' (point). - - - Accder aux variables de tableaux associatifs - -assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - - - O index.tpl est : - - - -{$Contacts.email}
      -{* vous pouvez afficher des tableaux de tableaux *} -{$Contacts.phone.home}
      -{$Contacts.phone.cell}
      -]]> -
      - - Affichera : - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - Tableaux indexs - - Vous pouvez utiliser des tableaux indexs de la mme faon - que vous le faites en PHP. - - - Accs aux tableaux grce l'index - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - O index.tpl est : - - - -{$Contacts[1]}
      -{* Vous pouvez galement afficher des tableaux *} -{$Contacts[2][0]}
      -{$Contacts[2][1]}
      -]]> -
      - - Affichera : - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - Objets - - Les attributs des objets - assigns depuis PHP peuvent tre utilises en - en spcifiant le nom aprs le symbole ->. - - - Accder aux attributs des objets - -name}
      -email: {$person->email}
      -]]> -
      - - Affichera : - - - -email: zaphod@slartibartfast.example.com
      -]]> -
      -
      -
      -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-variables/language-config-variables.xml b/docs/fr/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 44f968bd..00000000 --- a/docs/fr/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Variables charges depuis des fichiers de configuration - - Les variables rcupres depuis un - fichier de configuration sont utilises - entoures du symbole dise (#), ou via la variable spciale smarty - $smarty.config. - La dernire synthaxe est utile pour mettre entre guillemets les valeurs des attributs. - - - variables de fichiers de configuration - - Exemple de fichier de configuration - foo.conf : - - - - - - Exemple de template : - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - Un template dmontrant la mthode - - $smarty.config : - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - Les deux exemples ci-dessus afficheront : - - - -C'est le mien - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Les variables de fichier de configuration ne peuvent tre utiliss tant - qu'elles n'ont pas t charges. Cette procdure est explique - plus loin dans le document, voir {config_load}. - - - Voir aussi - les variables et - les variables rserves $smarty. - -
      - - \ No newline at end of file diff --git a/docs/fr/designers/language-variables/language-variables-smarty.xml b/docs/fr/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index ee6e8370..00000000 --- a/docs/fr/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - Variable rserve {$smarty} - - La variable PHP rserve {$smarty} peut tre - utilise pour accder plusieurs - variables d'environnements. En voici la liste complte. - - - - Variables de requte - - Les variables de requte - comme $_GET, $_POST, - $_COOKIE, $_SERVER, - $_ENV et $_SESSION - (voir - $request_vars_order - et - $request_use_auto_globals) - peuvent tre utilises comme dans l'exemple suivant : - - - Afficher des variables de requte - - - - - - - Pour des raisons historiques, {$SCRIPT_NAME} peut tre accd - directement, cependant, {$smarty.server.SCRIPT_NAME} est - la solution propose pour accder cette valeur. - - -click me -click me -]]> - - - - - - {$smarty.now} - - Le timestamp - courant peut tre rcupr grce {$smarty.now}. - La valeur correspond au nombre de secondes coules depuis - Epoch (1 Janvier 1970) et peut tre pass directement au modificateur - de variable date - date_format - des fins d'affichage. Notez que - time() - est appel chaque invocation, i.e. - un script qui prend 3 secondes s'excuter avec $smarty.now - au dbut et la fin montrera les 3 secondes de diffrence. - - Utilisation de {$smarty.now} - - - - - - - - - {$smarty.const} - - Vous pouvez directement accder aux constantes PHP. - Voir aussi les constantes smarty. - - - - - - -Affiche la constante dans un template comme : - - - - - - - - - {$smarty.capture} - - La sortie du template ralise via - {capture}..{/capture} - peut tre rcupre par l'intermdiaire de la variable - {$smarty.capture}. Voir la section - sur {capture} pour un - exemple ce sujet. - - - - - {$smarty.config} - - La variable {$smarty.config} peut tre utilise pour dsigner une - variable d'un fichier de configuration. - {$smarty.config.foo} est un synonyme de - {#foo#}. Voir la section - {config_load} - pour un exemple ce sujet. - - - - - {$smarty.section}, {$smarty.foreach} - - La variable {section} - peut tre utilise pour accder aux proprits - des boucles {$smarty.section} et - {$smarty.foreach}. Voir la documentation de - {section} et - {foreach}. - Ils ont des valeurs vraiment utiles comme - .first, .index, etc. - - - - - {$smarty.template} - - Retourne le nom du template courant. Cet exemple montre le container.tpl - ainsi que le banner.tpl inclu avec - {$smarty.template}. - - -Le conteneur principal est {$smarty.template}
      -{include file='banner.tpl'} -]]> - - - Affichera : - - -Le conteneur principal est container.tpl
      -banner.tpl -]]> - - - - - {$smarty.version} - - Retourne la version de Smarty ayant servie compiler le template. - - -Gnr par Smarty {$smarty.version} -]]> - - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Ces variables sont utilises pour afficher le dlmiteur gauche et le dlimiteur droit. Lisez aussi - la partie - {ldelim},{rdelim}. - - - Voir aussi - les variables et - les variables de configuration. - - - - - \ No newline at end of file diff --git a/docs/fr/getting-started.xml b/docs/fr/getting-started.xml deleted file mode 100644 index 59bfd4eb..00000000 --- a/docs/fr/getting-started.xml +++ /dev/null @@ -1,600 +0,0 @@ - - - - - - Pour commencer - - - Qu'est-ce que Smarty ? - - Smarty est un moteur de template pour PHP. Plus prcisment, il facilite - la sparation entre la logique applicative et la prsentation. - Cel s'explique plus facilement dans une situation o le - programmeur et le designer de templates jouent des rles diffrents, ou, - comme la plupart du temps, sont deux personnes distinctes. - - - Supposons par exemple que vous concevez une page Web qui affiche un - article de newsletter. Le titre, le sous-titre, l'auteur et le corps - sont des lments de contenu, ils ne contiennent aucune information - concernant la prsentation. Ils sont transmis Smarty par l'application, - puis le designer de templates ditent les templates et utilisent une - combinaison de balises HTML et de balises de templates pour formater - la prsentation de ces lments (tableaux HTML, couleurs d'arrire-plan, - tailles des polices, feuilles de styles, etc.). Un beau jour le programmeur - a besoin de changer la faon dont le contenu de l'article - est rcupr (un changement dans la logique applicative). Ce - changement n'affecte pas le designer de templates, le contenu - arrivera toujours au template de la mme faon. De mme, si le - le designer de templates veut changer compltement l'apparence - du template, aucun changement dans la logique de l'application - n'est ncessaire. Ainsi le programmeur peut changer la logique - de l'application sans restructurer les templates, et le designer - de templates peut changer les templates sans briser la logique - applicative. - - - Un des objectifs de Smarty est la sparation de la logique mtier de la - logique de prsentation. Cel signifie que les templates peuvent contenir - des traitements, du moment qu'il soit relatif de la prsentation. - Inclure d'autres templates, alterner les couleurs des lignes - d'un tableau, mettre du texte en majuscule, parcourir un tableau de donnes - pour l'afficher, etc. sont toutes des actions relatives du traitement - de prsentation. Cel ne signifie pas que Smarty requiert une telle sparation - de votre part. Smarty ne sais pas quoi est quoi, c'est donc vous de placer - la logique de prsentation dans vos templates. Ainsi, si vous - ne dsirez pas - disposer de logique mtier dans vos templates, placez tous vos contenus - dans des variables au format texte uniquement. - - - L'un des aspects unique de Smarty est la compilation des templates. - Cel signifie que Smarty lit les templates et cre des scripts PHP partir - de ces derniers. Une fois crs, ils sont excuts. - Il n'y a donc pas d'analyse coteuse de template chaque requte, - et les templates peuvent bnficier des solutions de cache PHP - comme Zend Accelerator (&url.zend;) ou - PHP Accelerator. - - - Quelques caractristiques de Smarty : - - - - - Il est trs rapide. - - - - - Il est efficace, le parser PHP s'occupe du sale travail. - - - - - Pas d'analyse de template coteuse, une seule compilation. - - - - - Il sait ne recompiler que les fichiers de templates qui ont t modifis. - - - - - Vous pouvez crer des - fonctions utilisateurs et des - modificateurs de variables personnaliss, le langage de - template est donc extrmement extensible. - - - - - Syntaxe des templates configurable, vous - pouvez utiliser {}, {{}}, <!--{}-->, etc. comme - dlimiteurs tag. - - - - - Les instructions if/elseif/else/endif - sont passes au parser PHP, la syntaxe de l'expression {if...} - peut tre aussi simple ou aussi complexe que vous - le dsirez. - - - - - Imbrication illimite de sections, de 'if', etc. autorise. - - - - - Il est possible d'inclure du code PHP - directement dans vos templates, bien que cel ne soit pas obligatoire - (ni conseill), v que le moteur est extensible. - - - - - Support de cache intgr. - - - - - Sources de templates arbitraires. - - - - - Fonctions de gestion de cache personnalisables. - - - - - Architecture de plugins - - - - - - - Installation - - - Ce dont vous avez besoin - - Smarty ncessite un serveur Web utilisant PHP 4.0.6 ou suprieur. - - - - - Installation de base - - Copiez les fichiers bibliothques de Smarty du sous-dossier - /libs/ de la distribution un emplacement - accessible PHP. Ce sont des fichiers PHP que vous NE DEVEZ PAS - modifier. Ils sont partags par toutes les applications et ne seront - mis jour que lorsque vous installerez une nouvelle version de - Smarty. - - - fichiers ncessaires de la bibliothque SMARTY - - - - - - - Smarty utilise une constante PHP appele SMARTY_DIR qui - reprsente le chemin complet de la bibliothque Smarty. - En fait, si votre application trouve le fichier - Smarty.class.php, vous n'aurez pas - besoin de dfinir la variable - SMARTY_DIR, - Smarty s'en chargera pour vous. - En revanche, si Smarty.class.php - n'est pas dans votre rpertoire d'inclusion ou que vous ne - donnez pas un chemin absolu votre application, vous - devez dfinir SMARTY_DIR explicitement. - SMARTY_DIR - doit avoir tre termin par un slash. - - - - Crer une instance de Smarty - - Voici comment crer une instance de Smarty dans vos scripts PHP : - - - -]]> - - - - - Essayez de lancer le script ci-dessus. Si vous obtenez une erreur indiquant - que le fichier Smarty.class.php n'est pas trouv, - tentez l'une des actions suivantes : - - - - Dfinition manuelle de la constante SMARTY_DIR - - -]]> - - - - - Dfinir le chemin absolu au fichier de la bibliothque - - -]]> - - - - - Ajout du dossier contenant la bibliothque l'include_path de PHP - - -]]> - - - - - Maintenant que les fichiers de la librairie sont en place, - il est temps de dfinir les rpertoires de Smarty, pour votre application. - - - Smarty a besoin de quatre rpertoires qui sont, par dfaut, - 'templates/', - 'templates_c/', - 'configs/' et - 'cache/'. - - - Chacun d'entre eux peut tre dfini - via les attributs - $template_dir, - - $compile_dir, - $config_dir et - - $cache_dir respectivement. Il est vivement - conseill que vous rgliez ces rpertoires sparment pour chaque - application qui utilise Smarty. - - - Assurez-vous de bien connatre chemin de la racine - de votre arborescence Web. Dans notre exemple, la racine - est /web/www.example.com/docs/. Seul Smarty - accde aux rpertoires en question, et jamais le serveur Web. - Pour des raisons de scurit, il est donc conseill de - sortir ces rpertoires dans un rpertoire - en dehors de l'arborescence - Web. - - - Dans notre exemple d'installation, nous allons rgler l'environnement - de Smarty pour une application de livre d'or. Nous avons ici choisi - une application principalement pour mettre en vidence une - convention de nommage des rpertoires. Vous pouvez utiliser le mme - environnement pour n'importe quelle autre application, il suffit de - remplacer livredor avec le nom de votre application. - Nous allons mettre nos rpertoires Smarty dans - /web/www.example.com/smarty/livredor/. - - - Vous allez avoir besoin d'au moins un fichier la racine de - l'arborescence Web, - il s'agit du script auquel l'internaute a accs. Nous allons l'appeler - 'index.php' et le placer dans un sous-rpertoire - appel /livredor/. - - - - Technical Note - - Il est pratique de configurer le serveur Web de - sorte que index.php soit identifi comme fichier - par dfaut de ce rpertoire. Aicnsi, si l'on tape - http://www.example.com/livredor/, le script - index.php soit excut sans que - index.php ne soit spcifi dans l'URL. Avec - Apache, vous pouvez rgler cela en ajoutant index.php - la ligne o se trouve DirectoryIndex (sparez chaque entre - par un espace) dans le httpd.conf. - - - - - - - - - Jetons un coup d'oeil la structure de fichier obtenue : - - - - Structure de fichiers - - - - - - - Smarty a besoin d'accder en criture - aux rpertoires - $compile_dir et - $cache_dir, - assurez-vous donc que le serveur Web dispose de ces droits d'accs. - Il s'agit gnralement de l'utilisateur "nobody" et du group - "nobody". Pour les utilisateurs de OS X, l'utilisateur par dfaut - est "web" et le group "web". Si vous utilisez Apache, vous pouvez - parcourir le fichier httpd.conf (en gnral dans - "/usr/local/apache/conf/") pour dterminer quel est l'utilisateur - et le groupe auquel il appartient. - - - - rgler les permissions d'accs - - - - - - - Note - - La commande chmod 770 est relativement bien scurise, elle donne - l'utilisateur "nobody" et au groupe "nobody" les accs en - lecture/criture aux rpertoires. Si vous voulez donner le droit d'accs - en lecture tout le monde (principalement pour pouvoir accder - vous-mme ces fichiers), vous pouvez lui prfrer chmod 775. - - - - - Nous devons crer le fichier index.tpl que Smarty va charger. - Il va se trouver dans le dossier - $template_dir. - - - - Notre /web/www.example.com/smarty/templates/index.tpl - - - - - - - - Note technique - - {* Smarty *} est un - commentaire - de template. Il n'est pas obligatoire mais il est bon de commencer tous vos templates - avec ce commentaire. Cel rend le fichier facilement - reconnaissable en plus de son extension. Les diteurs - de texte peuvent par exemple reconnatre le fichier et - adapter la coloration syntaxique. - - - - - Maintenant passons l'dition du fichier index.php. Nous allons - crer une instance de Smarty, - assigner - une valeur une variable de template et - afficher le rsultat avec index.tpl. - - - - dition de /web/www.example.com/docs/livredor/index.php - -template_dir = '/web/www.example.com/smarty/livredor/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/livredor/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/livredor/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/livredor/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Note techique - - Dans notre exemple, nous avons configur les chemins absolus - pour chacun des rpertoires Smarty. Si - /web/www.example.com/smarty/livredor/ - est dans votre include_path PHP alors ces rglages ne sont pas ncessaires. - Quoi qu'il en soit, il est plus efficace et (par exprience) - moins gnrateur d'erreurs de les dfinir avec des chemins - absolus. Cel nous garantit que Smarty rcuprera les bons fichiers. - - - - - Et maintenant appelez le fichier index.php avec navigateur - Web. Vous devriez voir "Bonjour, Ned, Bienvenue dans Smarty !". - - - Vous venez de terminer l'installation de base de Smarty ! - - - - Configuration avance - - - Ceci est la suite de l'installation de base, veuillez - lire cette dernire avant de poursuivre. - - - - Une manire un peu plus commode de configurer Smarty est de faire votre - propre classe fille et de l'initialiser selon votre environnement. - De la sorte, nous n'aurons plus besoin de configurer chaques fois les - chemins de notre environnement. Crons un nouveau rpertoire - /php/includes/livredor/ et un nouveau fichier - appel setup.php. - Dans notre exemple d'environnement, /php/includes est notre - include_path PHP. Assurez-vous de faire la mme chose ou alors d'utiliser - des chemins absolus. - - - - dition de /php/includes/livredor/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/livredor/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/livredor/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/livredor/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/livredor/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - Modifions maintenant le fichier index.php pour qu'il utilise - setup.php - - - - dition de /web/www.example.com/docs/livredor/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); - -?> -]]> - - - - - Vous savez maintenant qu'il est facile de crer une instance de Smarty, - correctement configure, en utilisant Smarty_livredor() - qui initialise automatiquement tout ce qu'il faut pour votre application. - - - - - - - - \ No newline at end of file diff --git a/docs/fr/language-defs.ent b/docs/fr/language-defs.ent deleted file mode 100644 index 8eb16df1..00000000 --- a/docs/fr/language-defs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/docs/fr/language-snippets.ent b/docs/fr/language-snippets.ent deleted file mode 100644 index 74f4279e..00000000 --- a/docs/fr/language-snippets.ent +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - Note technique - - Le paramtre merge respecte les cls du tableau, - donc, si vous fusionnez deux tableaux indexs numriquement, ils peuvent - se recouvrir les uns les autres ou aboutir des cls non squentielles. Ceci - est difrent de la fonction PHP array_merge() - qui limine des cls numriques et les renumrote. - -'> - - -En tant que troisime paramtre optionnel, vous pouvez passer un -identifiant de compilation $compile_id. -C'est au cas o vous voudriez compiler plusieurs versions du -mme template, par exemple, pour avoir des templates compils -pour diffrents langages. Une autre utilit pour l'identifiant de compilation -$compile_id est lorsque vous utilisez plus d'un -$template_dir mais -seulement un $compile_dir. -Dfinissez un $compile_id -spar pour chaque -$template_dir, -sinon, les templates du mme nom s'effaceront. Vous pouvez galement -dfinir la variable $compile_id une seule -fois plutt que de la passer chaque appel la fonction.'> - - - La fonction PHP de callback function peut tre soit : - - - Une chane de caractres contenant la fonction name - - - - Un tableau sous la forme array(&$object, $method) o - &$object est une rfrence d'objet et - $method une chane contenant le nom de la mthode - - - - Un tableau sous la forme - array($class, $method) o - $class est le nom de la classe et - $method est une mthode de la classe. - - - '> \ No newline at end of file diff --git a/docs/fr/livedocs.ent b/docs/fr/livedocs.ent deleted file mode 100644 index 0e9e5652..00000000 --- a/docs/fr/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/docs/fr/make_chm_index.html b/docs/fr/make_chm_index.html deleted file mode 100644 index a01d830c..00000000 --- a/docs/fr/make_chm_index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Manuel Smarty - - - - - - - -

      - -

      -
      -

      Manuel Smarty

      -
      Monte Ohrt
      -
      Andrei Zmievski
      -
      -

      Ce fichier a t gnr : [GENTIME]
      -Allez sur http://smarty.php.net/download-docs.php -pour rcuprer la version actuelle.

      - -
      - -
      - diff --git a/docs/fr/preface.xml b/docs/fr/preface.xml deleted file mode 100644 index ad2429e6..00000000 --- a/docs/fr/preface.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Prface - - "Comment rendre mes scripts PHP indpendants de la prsentation ?". - Voici sans doute la question la plus pose sur la mailing list - PHP. Alors que PHP est tiquet "langage de script - pour HTML", on se rend vite compte, aprs quelques projets qui mlangent - sans complexe HTML et PHP, que la sparation entre la forme et - le contenu, c'est bien [TM]. De plus, dans de nombreuses entreprises - les rles du designer et du programmeur sont distincts. La solution template - coule donc de source. - - - Dans notre entreprise par exemple, le dveloppement d'une application - se fait de la manire suivante : une fois le cahier des charges crit, - le designer ralise une maquette, et donne ses interfaces - au programmeur. Le programmeur implmente les fonctionnalits applicatives - et utilise les maquettes pour faire des squelettes de templates. Le projet - est alors pass au designer HTML/responsable de la mise en page qui amne les - templates jusqu'au fate de leur gloire. Il est possible que le projet fasse - une fois ou deux des allers/retours entre la programmation et la prsentation. - En consquence, il est important de disposer d'un bon systme de template. Les - programmeurs ne veulent pas avoir faire au HTML, et ne veulent pas non plus - que les designers HTML bidouillent le code PHP. Les designers ont besoin d'outils - comme des fichiers de configuration, des blocs dynamiques et d'autres solutions - pour rpondre des problmatiques d'interface, mais ne veulent pas - ncessairement avoir faire toutes les subtilits de la programmation PHP. - - - Un rapide tour d'horizon des solutions type template aujourd'hui et - l'on s'aperoit que la plupart d'entre elles n'offrent que des moyens - rudimentaires pour substituer des variables dans des templates, ainsi que des - fonctionnalits limites de blocs dynamiques. Cependant nous avons - besoin d'un peu plus. Nous ne voulons pas que les programmeurs - s'occupent de la prsentation HTML du TOUT, mais cel est pratiquement - invitable. Par exemple, si un designer veut des couleurs d'arrire plan - diffrentes pour alterner entre diffrents blocs dynamiques, il est ncessaire - que ce dernier travaille avec le programmeur. Nous avons aussi besoin que les - designers soient capables de travailler avec leurs propres fichiers - de configuration pour y rcuprer des variables, exploitables dans leurs - templates. Et la liste est longue. - - - Fin 1999, nous avons commenc crire une spcification pour un moteur de - template. Une fois la spcification termine, - nous avons commenc travailler sur un moteur de template crit - en C qui pourrait, avec un peu de chance, tre inclus PHP. - Non seulement nous avons rencontr des problmes techniques complexes, - mais nous avons particips de nombreux dbats sur ce que devait - et ce que ne devait pas faire un moteur de template. De cette exprience nous avons - dcid qu'un moteur de template se devait d'tre crit sous la forme d'une - classe PHP, afin que quiconque puisse l'utiliser sa convenance. Nous - avons donc ralis un moteur de template qui se contentait de faire cel, - et SmartTemplate a vu le jour (note : cette - classe n'a jamais t soumise au public). C'tait une classe qui - faisait pratiquement tout ce que nous voulions : substitution de variables, - inclusion d'autres templates, intgration avec des fichiers de configuration, - intgration de code PHP, instruction 'if' basique et une gestion plus robuste - des blocks dynamiques imbriqus. Elle faisait tout cel avec des expressions - rationnelles et le code se rvla, comment dire, impntrable. De plus, elle tait - relativement lente pour les grosses applications cause de l'analyse - et du travail sur les expressions rationnelles qu'elle devait faire chaque - excution. Le plus gros problme du point de vue du programmeur tait - tout le travail ncessaire en amont, dans le script PHP, pour configurer - et excuter les templates, et les blocs dynamiques. Comment rendre tout ceci - plus simple ? - - - Puis vint la vision de ce que devait devenir Smarty. Nous - savons combien le code PHP peut tre rapide sans le cot - d'analyse des templates. Nous savons aussi combien fastidieux - et dcourageant peut paratre le langage pour le designer moyen, et que - cel peut tre remplac par une syntaxe spcifique, beaucoup - plus simple. Et si nous combinions les deux forces ? Ainsi, Smarty - tait n...:-) - - - - diff --git a/docs/fr/programmers/advanced-features.xml b/docs/fr/programmers/advanced-features.xml deleted file mode 100644 index 40de54e2..00000000 --- a/docs/fr/programmers/advanced-features.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Fonctionnalits avances - &programmers.advanced-features.advanced-features-objects; - &programmers.advanced-features.advanced-features-prefilters; - - &programmers.advanced-features.advanced-features-postfilters; - - &programmers.advanced-features.advanced-features-outputfilters; - - &programmers.advanced-features.section-template-cache-handler-func; - - &programmers.advanced-features.template-resources; - - diff --git a/docs/fr/programmers/advanced-features/advanced-features-objects.xml b/docs/fr/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 4089019e..00000000 --- a/docs/fr/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - Objets - - Smarty donne l'accs aux objets - PHP travers les templates. Il y a 2 moyens d'y avoir accs. - - - - Le premier consiste - allouer les objets - au template puis de les utiliser avec une syntaxe similaire a celles - des fonctions personnalises. - - - Le deuxime moyen consiste assigner des objets - aux templates et de les utiliser comme n'importe quelle - variable. - - - - La premire mthode a une syntaxe beaucoup plus sympathique. - Elle est aussi plus scurise, puisqu'un objet allou ne peut avoir accs - qu'a certaines mthodes et proprits. Nanmoins, - un objet allou ne peut pas avoir de lien sur lui-mme - ou tre mis dans un tableau d'objet, etc. - Vous devez choisir la mthode qui correspond a vos - besoins, mais tGchez d'utiliser la premire mthode autant que possible - afin de rduire la syntaxe des templates au minimum. - - - Si l'option de scurit - est active, aucune mthode ou fonctions prives - n'est accessible (commentant par "_"). S'il existe une mthode et une - proprit du mme nom, c'est la mthode qui sera utilise. - - - Vous pouvez restreindre l'accs aux mthodes et aux proprits en - les listant dans un tableau en tant que troisime paramtre - d'allocation. - - - Par dfaut, les paramtres passs aux objets depuis le template le sont de la - mme faon que les fonctions utilisateurs - les rcuprent. - Le premier paramtre correspond un tableau associatif, le second l'objet - Smarty. Si vous souhaitez que les paramtres soient passs un un, comme - dans un appel traditionnel, dfinissez registration, quatrime paramtre optionnel, - &false;. - - - Le cinquime paramtre optionnel n'a d'effet que si le paramtre - format vaut true et il contient - une liste de mthodes qui doivent tre traites comme des blocks. Cel signifie - que ces mthodes ont un tag fermant dans le template - ({foobar->meth2}...{/foobar->meth2}) et que les paramtres - de ces mthodes fonctionnent de la mme faon que les paramtres des - blocks de fonctions des plugins : - Ils contiennent 4 paramtres - $params, - $content, - &$smarty et - &$repeat et ils fonctionnent de la mme - faon que les blocks de fonctions des plugins. - - - Utilisation d'un objet allou ou assign - -register_object('foobar',$myobj); -// on restreint l'accs a certaines mthodes et proprits en les listant -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); -// pour utiliser le format habituel de paramtre objet, passez le boolen = false -$smarty->register_object('foobar',$myobj,null,false); - -// on peut aussi assigner des objets. Assignez par rfrence quand c'est possible -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> - -?> -]]> - - - Et voici comment accder vos objets dans index.tpl : - - -meth1 p1="foo" p2=$bar} - -{* on peut aussi assigner la sortie *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output) - -{* access our assigned object *} -{$myobj->meth1("foo",$bar)} -]]> - - - - Voir aussi - register_object() et - assign(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 11f54c94..00000000 --- a/docs/fr/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - Filtres de sortie - - Quand le template est appel via les fonctions - display() ou - fetch(), - sa sortie est envoye travers un ou plusieurs filtres de sorties. - Ils diffrent des filtres - de post-compilation dans le sens o ils agissent sur la sortie - des templates, une fois excuts, et non sur les sources des templates. - - - - Les filtres de sortie peuvent tre soit - dclars soit - chargs depuis les rpertoires - des plugins en utilisant la fonction - load_filter() - ou en rglant la variable - $autoload_filters. - Smarty passera la sortie du template en premier argument et attendra - de la fonction qu'elle retourne le rsultat de l'excution. - - - Utilisation d'un filtre de sortie - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// dornavant toute occurence d'un adresse email dans le rsultat du template -// aura un protection simple contre les robots spammers -?> -]]> - - - - Voir aussi - register_outpurfilter(), - load_filter(), - $autoload_filters, - les filtres de post-compilation et - $plugins_dir. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/advanced-features/advanced-features-postfilters.xml b/docs/fr/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index fe5d8de8..00000000 --- a/docs/fr/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - Filtres de post-compilation - - Les filtres de post-compilation sont des fonctions PHP que vos templates - excutent aprs avoir t compils. Les filtres de post-compilation - peuvent tre soit dclars, soit chargs - depuis les rpertoires des plugins - en utilisant la fonction - load_filter() ou en rglant - la variable - $autoload_filters. - Smarty passera le template compil en tant que premier paramtre et attendra - de la fonction qu'elle retourne le rsultat de l'excution. - - - Utilisation d'un filtre de post-compilation de templates - -\n\"; ?>\n".$tpl_source; -} - -// enregistre le filtre de post-compilation -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - Votre template Smarty index.tpl ressemblera, aprs compilation : - - - -{* reste du contenu du template... *} -]]> - - - - Voir aussi - register_postfilter(), - les pr-filtres et - load_filter(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/advanced-features/advanced-features-prefilters.xml b/docs/fr/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index eb6931d3..00000000 --- a/docs/fr/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - Filtres de pr-compilation - - Les filtres de pr-compilation sont des fonctions PHP que vos templates - excutent avant qu'ils ne soient compils. Cel peut tre utile - pour pr-traiter vos templates afin d'enlever les commentaires - inutiles, garder un oeil sur ce que les gens mettent dans leurs templates, etc. - - - Les filtre de pr-compilations peuvent tre soit - dclars, soit chargs - partir des rpertoires de plugins - en utilisant la fonction load_filter() ou - en rglant la variable - $autoload_filters. - - - Smarty passera la fonction le code source en tant que premier argument, - et attendra en retour le code modifi. - - - Utilisation un filtre de pr-compilation de template - - Ceci va effacer tous les commentaires de la source du template. - - -/U",'',$tpl_source); -} - -// enregistrer le filtre de pr-compilation -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - - - - Voir aussi - register_prefilter(), - les post-filtres et - load_filter(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index dab4c843..00000000 --- a/docs/fr/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - Fonction de gestion du cache - - Une alternative au mcanisme de cache par dfaut (bas sur des fichiers - de cache) consiste spcifier une fonction de gestion de cache utilisateur - qui sera utilise pour lire, crire et effacer les fichiers de cache. - - - Il suffit de crer dans votre application une fonction que Smarty - utilisera pour la gestion du cache et d'assigner le nom de cette - fonction la variable de classe - $cache_handler_func. - Smarty utilisera alors cette fonction pour grer les donnes du cache. - - - - - Le premier argument est l'action, qui sera read, write and - clear. - - - - Le second paramtre est l'objet Smarty. - - - - Le troisime est le contenu - du cache. Pour crire, Smarty passe le contenu du cache dans ces paramtres. - Pour lire, Smarty s'attend ce que votre fonction accepte ce paramtre - par rfrence et que vous le remplissiez avec les donnes du cache. Pour effacer, - il suffit de passer une variable fictive car cette dernire n'est pas utilise. - - - - Le quatrime paramtre est le nom du fichier de template (utile pour - lire/crire). - - - - Le cinquime paramtre est l'identifiant $cache_id. - - - - Le sixime est l'identifiant optionnel - $compile_id. - - - - Le septime et dernier paramtre $exp_time - a t ajout dans Smarty-2.6.0. - - - - - - Exemple d'utilisation de MySQL pour la source du cache - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -la base mysql est attendu dans ce format : - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*****/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) -{ - // l'hte de la bd, l'utilisateur, et le mot de passe - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // cre un identifiant de cache unique - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // rcupre le cache dans la base de donnes - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // sauvegarde le cache dans la base de donnes - - if($use_gzip && function_exists("gzcompress")) { - // compresse le contenu pour gagner de la place - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - case 'clear': - // efface les donnes du cache - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // les efface toutes - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - default: - // erreur, action inconnue - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - - \ No newline at end of file diff --git a/docs/fr/programmers/advanced-features/template-resources.xml b/docs/fr/programmers/advanced-features/template-resources.xml deleted file mode 100644 index b9cf8831..00000000 --- a/docs/fr/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - Ressources - - Les templates peuvent provenir d'une grande varit de ressources. Quand vous - affichez (display()) ou - rcuprez (fetch()) un - template, ou quand vous incluez un template dans un autre template, vous fournissez - un type de ressource, suivi par le chemin appropri et le nom du template. - Si une ressource n'est pas explicitement donne, la valeur de la variable $default_resource_type - sera utilise. - - - Templates depuis $template_dir - - Les templates du rpertoire - $template_dir n'ont pas - besoin d'une ressource template, bien que vous puissiez utiliser - la ressource "file" pour tre cohrent. Vous n'avez qu' fournir - le chemin vers le template que vous voulez utiliser, relatif - au rpertoire racine - $template_dir. - - - Utilisation de templates depuis $template_dir - -display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // le mme que ci-dessus -?> - -{* le template Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* le mme que ci-dessus *} -]]> - - - - - Templates partir de n'importe quel rpertoire - - Les templates en-dehors du rpertoire - $template_dir - ncessitent le type de ressource template, suivi du chemin absolu et du nom du - template. - - - Utilisation d'un template depuis n'importe quel rpertoire - -display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Le template Smarty : - - - - - - - - Chemin de fichiers Windows - - Si vous utilisez Windows, les chemins de fichiers sont la plupart - du temps sur un disque identifi par une lettre (c:) au dbut du chemin. - Assurez-vous de bien mettre file: dans le chemin pour viter des - conflits d'espace de noms et obtenir les rsultats escompts. - - - Utilisation de templates avec des chemins de fichiers Windows - -display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Le template Smarty : - - - - - - - - - - Templates depuis d'autres sources - - Vous pouvez rcuprer les templates partir de n'importe quelle - source laquelle vous avez accs avec PHP : base de donnes, - sockets, LDAP et ainsi de suite. Il suffit d'crire les fonctions - de ressource plugins et de les enregistrer auprs de Smarty. - - - - Reportez-vous la section ressource plugins - pour plus d'informations sur les fonctions que vous tes cens fournir. - - - - - Notez que vous ne pouvez pas craser la ressource file: native, - toutefois, vous pouvez fournir une ressource qui rcupre un template depuis - le systme de fichier par un autre moyen en l'enregistrant sous un autre - nom de ressource. - - - - Utilisation de ressources utilisateurs - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // requte BD pour remplir $tpl_timestamp - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // on suppose que tous les templates sont svrs - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // pas utilise pour les templates dans notre cas -} - -// enregistre le nom de ressource "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// utilise la ressource depuis le script PHP -$smarty->display("db:index.tpl"); -?> -]]> - - - Le template Smarty : - - - - - - - - - Fonction de gestion de template par dfaut - - Vous pouvez spcifier une fonction qui sera utilise pour - rcuprer le contenu d'un template dans le cas o le template - ne peut pas tre rcupr depuis sa ressource. Une utilisation possible est - la cration de templates la vole. - - - utilisation de la fonction de gestion de template par dfaut - -_write_file($resource_name,$template_source); - return true; - } - } else { - // pas un fichier - return false; - } -} - -// rgle la fonction par dfaut -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions.xml b/docs/fr/programmers/api-functions.xml deleted file mode 100644 index 8a591f4b..00000000 --- a/docs/fr/programmers/api-functions.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - Mthodes - &programmers.api-functions.api-append; - &programmers.api-functions.api-append-by-ref; - &programmers.api-functions.api-assign; - &programmers.api-functions.api-assign-by-ref; - &programmers.api-functions.api-clear-all-assign; - &programmers.api-functions.api-clear-all-cache; - &programmers.api-functions.api-clear-assign; - &programmers.api-functions.api-clear-cache; - &programmers.api-functions.api-clear-compiled-tpl; - &programmers.api-functions.api-clear-config; - &programmers.api-functions.api-config-load; - &programmers.api-functions.api-display; - &programmers.api-functions.api-fetch; - &programmers.api-functions.api-get-config-vars; - &programmers.api-functions.api-get-registered-object; - &programmers.api-functions.api-get-template-vars; - &programmers.api-functions.api-is-cached; - &programmers.api-functions.api-load-filter; - &programmers.api-functions.api-register-block; - &programmers.api-functions.api-register-compiler-function; - &programmers.api-functions.api-register-function; - &programmers.api-functions.api-register-modifier; - &programmers.api-functions.api-register-object; - &programmers.api-functions.api-register-outputfilter; - &programmers.api-functions.api-register-postfilter; - &programmers.api-functions.api-register-prefilter; - &programmers.api-functions.api-register-resource; - &programmers.api-functions.api-trigger-error; - - &programmers.api-functions.api-template-exists; - &programmers.api-functions.api-unregister-block; - &programmers.api-functions.api-unregister-compiler-function; - &programmers.api-functions.api-unregister-function; - &programmers.api-functions.api-unregister-modifier; - &programmers.api-functions.api-unregister-object; - &programmers.api-functions.api-unregister-outputfilter; - &programmers.api-functions.api-unregister-postfilter; - &programmers.api-functions.api-unregister-prefilter; - &programmers.api-functions.api-unregister-resource; - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-append-by-ref.xml b/docs/fr/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index af172193..00000000 --- a/docs/fr/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - append_by_ref() - Ajoute des valeurs par rfrence - - - Description - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - Utilise pour ajouter des valeurs un - template par rfrence plutt que par copie. - Si vous ajoutez une variable par rfrence puis changez sa - valeur, le changement est aussi rpercut sur la valeur assigne. - Pour les objets, - append_by_ref() ne fait pas de copie en mmoire de l'objet - assign. Voir la documentation PHP pour plus d'informations sur les - rfrences de variable. - Si vous passez le troisime paramtre &true;, la valeur - sera fusionne avec le tableau courant plutt que d'tre ajoute. - - ¬e.parameter.merge; - - Exemple avec append_by_ref - -append_by_ref('Nom',$myname); -$smarty->append_by_ref('Adresse',$address); -?> -]]> - - - - Voir aussi - append(), - assign() et - get_template_vars(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-append.xml b/docs/fr/programmers/api-functions/api-append.xml deleted file mode 100644 index b4148ba2..00000000 --- a/docs/fr/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - append() - Ajoute un lment un tableau assign - - - Description - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - Si vous utilisez cette fonction avec une chane de caractres, elle est - convertie en tableau auquel on ajoute ensuite l'lment. Vous pouvez - explicitement passer des paires nom/valeur. Si vous passez le troisime - paramtre (optionel) &true;, la valeur sera fusionne - avec le tableau plutt que d'tre ajoute. - - ¬e.parameter.merge; - - Exemple avec append - -append("Nom","Fred"); -$smarty->append("Adresse",$address); - -$array = array(1 => 'un', 2 => 'deux'); -$smarty->append('X', $array); -$array2 = array(3 => 'trois', 4 => 'quatre'); -// La ligne suivante ajoute un second lment au tableau X -$smarty->append('X', $array2); - -// passe un tableau associatif -$smarty->append(array('Ville' => 'Lincoln','Pays' => 'Nebraska')); -?> -]]> - - - - Voir aussi - append_by_ref(), - assign() et - get_template_vars(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-assign-by-ref.xml b/docs/fr/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 46c4b2f9..00000000 --- a/docs/fr/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - assign_by_ref() - Assigne des valeurs par rfrence - - - Description - - voidassign_by_ref - stringvarname - mixedvar - - - Utilise pour assigner des valeurs aux - templates par rfrence plutt que par copie. Rfrez-vous au manuel PHP - pour une explication plus prcise sur les rfrences des variables. - - - Note technique - - Si vous assignez une variable par rfrence puis changez sa - valeur, le changement est aussi rpercut sur la valeur assigne. - Pour les objets, - assign_by_ref() ne fait pas de copie en mmoire de l'objet - assign. Rfrez-vous au manuel PHP pour une explication plus prcise sur - les rfrences de variable. - - - - Exemple avec assign_by_ref() - -assign_by_ref("Nom",$myname); -$smarty->assign_by_ref("Adresse",$address); -?> -]]> - - - - Voir aussi - assign(), - clear_all_assign(), - append(), - {assign} et - get_template_vars(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-assign.xml b/docs/fr/programmers/api-functions/api-assign.xml deleted file mode 100644 index 5d0c17ee..00000000 --- a/docs/fr/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - assign() - Assigne des valeurs au template - - - Description - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - Vous pouvez explicitement passer des paires nom/valeur, ou - des tableaux associatifs contenant des paires nom/valeur. - - - Exemple avec assign() - -assign("Nom","Fred"); -$smarty->assign("Adresse",$address); - -// passe un tableau associatif -$smarty->assign(array('Ville' => 'Lincoln','Pays' => 'Nebraska')); - -// passe un tableau -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// Passe une ligne d'une base de donnes (eg adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - Accder cela dans un template avec - - - - - - - Pour des assignements plus complexes de tableaux, lisez - {foreach} et - {section}. - - - Voir aussi - assign_by_ref(), - get_template_vars(), - clear_assign(), - append() et - {assign}. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-all-assign.xml b/docs/fr/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index e1d57065..00000000 --- a/docs/fr/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - clear_all_assign() - Efface les valeurs de toutes les variables assignes - - - Description - - voidclear_all_assign - - - - Exemple avec clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// affichera -print_r( $smarty->get_template_vars() ); - -// efface toutes les variables assignes -$smarty->clear_all_assign(); - -// n'affichera rien -print_r( $smarty->get_template_vars() ); - -?> -]]> - - - - Voir aussi - clear_assign(), - clear_config(), - get_template_vars(), - assign() et - append(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-all-cache.xml b/docs/fr/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index f9bd4da9..00000000 --- a/docs/fr/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - clear_all_cache() - Efface les fichiers de cache des templates - - - Description - - voidclear_all_cache - intexpire_time - - - Vous pouvez passer un paramtre optionnel afin d'indiquer l'ge minimun - que doivent avoir les fichiers de cache pour qu'ils soient effacs. - - - Exemple avec clear_all_cache - -clear_all_cache(); - -// efface tous les fichiers vieux d'une heure -$smarty->clear_all_cache(3600); -?> -]]> - - - - Voir aussi - clear_cache(), - is_cached() et - le cache. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-assign.xml b/docs/fr/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index b7ce1f6c..00000000 --- a/docs/fr/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - clear_assign() - Efface la valeur d'une variable assigne - - - Description - - voidclear_assign - mixedvar - - - Il peut s'agir d'une simple valeur ou d'un tableau de valeur. - - - Exemple avec clear_assign() - -clear_assign('Name'); - -// efface plusieurs variables -$smarty->clear_assign(array('Name','Address','Zip')); -?> -]]> - - - - Voir aussi - clear_all_assign(), - clear_config(), - get_template_vars(), - assign() et - append(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-cache.xml b/docs/fr/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 0a019e8d..00000000 --- a/docs/fr/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - clear_cache() - Efface le cache d'un template spcifique - - - Description - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - - intexpire_time - - - - - Si vous avez plusieurs fichiers de cache - pour ce template, vous pouvez en spcifier un en particulier en passant son identifiant - cache_id en deuxime paramtre. - - - Vous pouvez aussi passer un identifiant de compilation - $compile_id - en troisime paramtre. Vous pouvez grouper - des templates ensemble afin qu'ils puissent tre supprims en groupe. Rfrez-vous la - section sur le cache pour plus d'informations. - - - Vous pouvez passer un quatrime paramtre pour indiquer un ge - minimum en secondes que le fichier en cache doit avoir avant d'tre effac. - - - - - Exemple avec clear_cache() - -clear_cache('index.tpl'); - -// efface un fichier de cache grce son identifiant de cache -$smarty->clear_cache('index.tpl','CACHEID'); -?> -]]> - - - - Voir aussi le - clear_all_cache() et - la section sur le cache. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 29ee8e3e..00000000 --- a/docs/fr/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - clear_compiled_tpl() - Efface la version compile d'un template spcifi - - - Description - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - Utilise pour effacer la version compile du template spcifi ou - de tous les templates si aucun n'est spcifi. - Si vous passez uniquement un - $compile_id, - le template compil correspondant ce - $compile_id - sera effac. Si vous passez un exp_time, les templates compils plus vieux que - exp_time secondes - seront effacs, par dfaut, tous les templates compils seront - effacs au v de leurs ges. Cette fonction est destine un usage - avanc et n'est habituellement pas utilise. - - - Exemple avec clear_compiled_tpl() - -clear_compiled_tpl('index.tpl'); - -// efface tout le contenu du rpertoire des templates compils -$smarty->clear_compiled_tpl(); -?> -]]> - - - - Voir aussi - clear_cache(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-clear-config.xml b/docs/fr/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 69a3607d..00000000 --- a/docs/fr/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - clear_config() - Efface toutes les variables de configuration assignes - - - Description - - voidclear_config - stringvar - - - Utilise pour effacer toutes les variables - de configuration assignes. - Si un nom de variable est spcifi, seule cette variable sera efface. - - - Exemple avec clear_config() - -clear_config(); - -// efface une seule variable -$smarty->clear_config('foobar'); -?> -]]> - - - - Voir aussi les - get_config_vars(), - les variables de configuration, - les fichiers de configuration, - {config_load}, - config_load() et - clear_assign(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-config-load.xml b/docs/fr/programmers/api-functions/api-config-load.xml deleted file mode 100644 index da4eb318..00000000 --- a/docs/fr/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - config_load() - Charge les donnes d'un fichier de configuration et les assigne au template - - - Description - - voidconfig_load - stringfile - stringsection - - - Utilise pour charger des donnes d'un fichier - de configuration et les assigner a un template. Cette fonction fonctionne - exactement comme la fonction de template {config_load}. - - - Note technique - - Comme pour Smarty 2.4.0, les variables de templates assignes - sont conserves entre chaque appel - fetch() et - display(). - Les variables de configuration charges avec config_load() sont - globales. Les fichiers de configuration sont aussi compils pour une - excution plus rapide et respecte les rglages de $force_compile et de $compile_check. - - - - Exemple avec config_load() - -config_load('my.conf'); - -// charge une section -$smarty->config_load('my.conf','foobar'); -?> -]]> - - - - Voir aussi - {config_load}, - get_config_vars(), - clear_config() et les - variables de configuration. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-display.xml b/docs/fr/programmers/api-functions/api-display.xml deleted file mode 100644 index 9110be8c..00000000 --- a/docs/fr/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - display() - Affiche le template - - - Description - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - Utilise pour afficher un template. Il faut fournir un type et un - chemin de ressource template - valides. Vous pouvez passer en second paramtre un identifiant - de fichier de $cache id. Reportez-vous la section - cache pour plus de renseignements. - - ¶meter.compileid; - - Exemple avec display() - -caching = true; - -// ne fait un appel la base de donnes que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) { - - // quelques donnes - $address = '245 N 50th'; - $db_data = array( - 'Ville' => 'Lincoln', - 'Pays' => 'Nebraska', - 'Code postal' = > '68502' - ); - - $smarty->assign('Nom','Fred'); - $smarty->assign('Adresse',$address); - $smarty->assign($db_data); - -} - -// affichage -$smarty->display('index.tpl'); -?> -]]> - - - - Utilisez la syntaxe des ressources templates - pour afficher des fichiers en-dehors du rpertoire - $template_dir. - - - Exemples de fonction d'affichage de ressources templates - -display('/usr/local/include/templates/header.tpl'); - -// chemin absolu (mm chose) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// chemin absolu Windows (on DOIT utiliser le prfixe "file:") -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// inclue partir de la ressource template nomme "db" -$smarty->display('db:header.tpl'); -?> -]]> - - - - Voir aussi - fetch() et - template_exists(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-fetch.xml b/docs/fr/programmers/api-functions/api-fetch.xml deleted file mode 100644 index af2266e4..00000000 --- a/docs/fr/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - - fetch() - Retourne le rsultat du template - - - Description - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - Utilise pour renvoyer le rsultat du template plutt que de - l'afficher. - Il faut passer un type et un chemin de ressource template - valides. Vous pouvez passer un identifiant de cache $cache id en deuxime - paramtre. Reportez-vous la section cache - pour plus de renseignements. - - ¶meter.compileid; - - - - Exemple avec fetch() - -caching = true; - -// ne fait un appel la base de donnes que si le fichier -// de cache n'existe pas -if(!$smarty->is_cached('index.tpl')) -{ - - // quelques donnes - $address = '245 N 50th'; - $db_data = array( - 'Ville' => 'Lincoln', - 'Pays' => 'Nebraska', - 'Code postal' = > '68502' - ); - - $smarty->assign('Nom','Fred'); - $smarty->assign('Adresse',$address); - $smarty->assign($db_data); - -} - -// rcupre le rsultat -$output = $smarty->fetch('index.tpl'); - -// fait quelque chose avec $output ici - -echo $output; -?> -]]> - - - - - - - Utilisation de fetch() pour envoyer un email - - Le template email_body.tpl : - - - - - - Le template email_disclaimer.tpl qui utilise le modificateur - {textformat}. - - - - - - et le script PHP utilisant la fonction PHP - mail() - - - getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - - - - - Voir aussi - {fetch} - display(), - {eval} et - template_exists(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-get-config-vars.xml b/docs/fr/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index edc977fa..00000000 --- a/docs/fr/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - get_config_vars() - Retourne la valeur de la variable de configuration passe en paramtre - - - Description - - arrayget_config_vars - stringvarname - - - Si aucun paramtre n'est donn, un tableau de toutes les variables de - configuration charges est retourn. - - - Exemple avec get_config_vars() - -get_config_vars('foo'); - -// rcupre toutes les variables de configuration charges -$all_config_vars = $smarty->get_config_vars(); - -// les affiche a l'cran -print_r($all_config_vars); -?> -]]> - - - - Voir aussi - clear_config(), - {config_load}, - config_load() et - get_template_vars(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-get-registered-object.xml b/docs/fr/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 173b8835..00000000 --- a/docs/fr/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - get_registered_object() - Retourne la rfrence d'un objet enregistr - - - Description - - arrayget_registered_object - stringobject_name - - - Utile quand vous voulez accder directement un - objet enregistr - avec une fonction utilisateur. Lisez la documentation sur les - objets pour plus d'informations. - - - Exemple avec get_registered_object() - -get_registered_object($params['object']); - // $obj_ref est maintenant une rfrence vers l'objet - } -} -?> -]]> - - - - Voir aussi - register_object(), - unregister_object() et - la section sur les objets. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-get-template-vars.xml b/docs/fr/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index be70a08f..00000000 --- a/docs/fr/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - get_template_vars() - Retourne la valeur assigne passe en paramtre - - - Description - - arrayget_template_vars - stringvarname - - - Si aucun paramtre n'est donn, un tableau de toutes les variables - assignes est retourn. - - - Exemple avec get_template_vars - -get_template_vars('foo'); - -// rcupre toutes les variables assignes a ce template -$all_tpl_vars = $smarty->get_template_vars(); - -// les affiche a l'cran -print_r($all_tpl_vars); -?> -]]> - - - - Voir aussi - assign(), - {assign}, - append(), - clear_assign(), - clear_all_assign() et - get_config_vars(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-is-cached.xml b/docs/fr/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 204c6f2e..00000000 --- a/docs/fr/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - is_cached() - Retourne &true; s'il y a un fichier de cache valide pour ce template - - - Description - - boolis_cached - stringtemplate - stringcache_id - stringcompile_id - - - - - Cel fonctionne seulement si - $caching est dfini &true;, voir aussi la - section sur le cache pour plus d'informations. - - - - Vous pouvez aussi passer en second paramtre un identifiant - de $cache_id au cas o vous voudriez - plusieurs - fichiers de cache pour ce template. - - - - Vous pouvez donner un - $compile id - en tant que troisime paramtre. Si vous ne spcifiez pas ce paramtre, le - - $compile_id persistant sera utilis. - - - - Si vous ne voulez pas passer un $cache_id mais plutt un - - $compile_id, vous devez passer - &null; en tant que $cache_id. - - - - - Note technique - - Si is_cached() retourne &true;, il charge en fait le cache existant et - le stocke en interne. Tout appel supplmentaire - display() ou - fetch() retournera ce - contenu stock en interne - sans tenter de recharger le fichier en cache. Cel vite des problmatiques d'accs concurents, - lorsqu'un second processus efface le cache entre l'appel de - is_cached() et l'appel - display() - comme dans l'un de nos exemples ci-dessus. Cel signifie galement que les appels - clear_cache() - et les changements de paramtres du cache peuvent n'avoir aucun effet alors que - is_cached() a retourn &true;. - - - - - Exemple avec is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { -//aucun appel la base de donne -} - -$smarty->display('index.tpl'); -?> -]]> - - - - Exemple avec is_cached() et plusieurs templates - -caching = true; - -if(!$smarty->is_cached('index.tpl', 'FrontPage')) { - //appel de la base de donnes, assignation des variables -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - - - - Voir aussi - clear_cache(), - clear_all_cache() et - la section sur le cache. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-load-filter.xml b/docs/fr/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 059e8950..00000000 --- a/docs/fr/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - load_filter() - Charge un plugin de filtrage - - - Description - - voidload_filter - stringtype - stringname - - - Le premier argument spcifie le type du filtre - et peut prendre l'une des valeurs suivantes : pre, post ou - output. Le second argument spcifie le nom du plugin - de filtrage. - - - Chargement de plugins de filtrage - -load_filter('pre', 'trim'); - -// charge un autre pr-filtre nomm 'datefooter' -$smarty->load_filter('pre', 'datefooter'); - -// charge un filtre de sortie nomm 'compress' -$smarty->load_filter('output', 'compress'); - -?> -]]> - - - - Voir aussi - register_prefilter(), - register_postfilter(), - register_outputfilter(), - $autoload_filters et - les fonctionnalits avances. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-block.xml b/docs/fr/programmers/api-functions/api-register-block.xml deleted file mode 100644 index d970c025..00000000 --- a/docs/fr/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - register_block() - Dclare dynamiquement des plugins de fonction de blocs - - - Description - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Utilise pour dclarer dynamiquement des plugins de fonction - de blocs. Il faut passer en paramtre le nom de la fonction - de blocs, suivi du nom de la fonction PHP qui l'implmente. - - &api.register.snippet; - - Les paramtre cacheable et - cache_attrs peuvent tre omis dans la plupart - des cas. Voir Contrler la mise en cache des sorties des Plugins - pour plus d'informations concernant cette utilisation. - - - Exemple avec register_block() - -register_block('translate', 'do_translation'); -?> -]]> - - - Le template Smarty : - - - - - - - Voir aussi - unregister_block() et - les plugins de fonction de blocs. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-compiler-function.xml b/docs/fr/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 812cc2dc..00000000 --- a/docs/fr/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - register_compiler_function() - Dclare dynamiquement un plugin de fonction de compilation - - - Description - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - Il faut passer en paramtres le nom de la fonction - de compilation, suivi par la fonction PHP qui l'implmente. - - &api.register.snippet; - - Le paramtre cacheable peut tre omis dans la - plupart des cas. Voir Contrler la mise en cache des sorties des Plugins - pour plus d'informations concernant cette utilisation. - - - Voir aussi - - unregister_compiler_function() et - les plugins de fonction de compilation. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-function.xml b/docs/fr/programmers/api-functions/api-register-function.xml deleted file mode 100644 index f8b41181..00000000 --- a/docs/fr/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - register_function() - Dclare dynamiquement des plugins de fonction de templates - - - Description - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - Il faut passer en paramtres le nom de la fonction - de templates, suivi par le nom de la fonction PHP qui l'implmente. - - &api.register.snippet; - - Les paramtres cacheable et - cache_attrs peut tre omis dans la - plupart des cas. Voir Contrler la mise en cache des sorties des Plugins - pour plus d'informations concernant cette utilisation. - - - Exemple avec register_function() - -register_function('date_now', 'print_current_date'); - -function print_current_date ($params) { - extract($params); - if(empty($format)) - $format="%b %e, %Y"; - echo strftime($format,time()); -} - -?> -]]> - - - O le template est : - - - - - - - - Voir aussi - unregister_function() et - les plugins de fonction. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-modifier.xml b/docs/fr/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index a3b2ef33..00000000 --- a/docs/fr/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - register_modifier() - Dclare dynamiquement un plugin de modificateur - - - Description - - voidregister_modifier - stringname - mixedimpl - - - Il faut passer en paramtre le nom du modificateur de variables, - suivi de la fonction PHP qui l'implmente. - - &api.register.snippet; - - register_modifier() - -register_modifier('ss', 'stripslashes'); -?> -]]> - - - O le template est : - - - -]]> - - - - Voir aussi - unregister_modifier(), - register_function(), - les modifieurs, - l'extension de Smarty avec des plugins et - la cration de plugins modifieurs. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-object.xml b/docs/fr/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 40861224..00000000 --- a/docs/fr/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - register_object() - Enregistre un objet utiliser dans un template - - - Description - - voidregister_object - stringobject_name - objectobject - arrayallowed_methods_properties - - booleanformat - arrayblock_methods - - - Reportez-vous la section - objet de - ce manuel pour plus d'informations. - - - Voir aussi - get_registered_object() et - unregister_object(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-outputfilter.xml b/docs/fr/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 483ffa3e..00000000 --- a/docs/fr/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - register_outputfilter() - Dclare dynamiquement des filtres de sortie - - - Description - - voidregister_outputfilter - mixedfunction - - - Utilise pour dclarer dynamiquement des - filtres de sortie, pour - agir sur la sortie d'un template avant qu'il ne soit affich. - Reportez-vous la section - filtres de sortie pour plus d'information sur le sujet. - - &api.register.snippet; - - Voir aussi - unregister_outputfilter(), - load_filter(), - $autoload_filters et - les filtres de sortie de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-postfilter.xml b/docs/fr/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 40967406..00000000 --- a/docs/fr/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - register_postfilter() - Dclare dynamiquement des filtres de post-compilation - - - Description - - voidregister_postfilter - mixedfunction - - - Utilise pour dclarer dynamiquement des - filtres de post-compilation pour y faire - passer des templates une fois qu'ils ont t compils. Reportez-vous - la section - filtres de post-compilation de templates - pour avoir plus de renseignements sur la faon de paramtrer les fonctions - de post-compilation. - - &api.register.snippet; - - Voir aussi - - unregister_postfilter(), - - register_prefilter(), - load_filter(), - - $autoload_filters et - les filtres de sortie de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-prefilter.xml b/docs/fr/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 7e4b349d..00000000 --- a/docs/fr/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - register_prefilter() - Dclare dynamiquement des filtres de pr-compilation - - - Description - - voidregister_prefilter - mixedfunction - - - Utilise pour dclarer dynamiquement des - filtres de pr-compilation pour y faire - passer des templates avant qu'ils ne soient compils. Reportez-vous - la section - filtres de pr-compilation de templates - pour avoir plus de renseignements sur la faon de paramtrer les fonctions - de pr-compilation. - - &api.register.snippet; - - Voir aussi - unregister_prefilter(), - register_postfilter(), - register_ouputfilter(), - load_filter(), - $autoload_filters et - les filtres de sortie de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-register-resource.xml b/docs/fr/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 0907c43b..00000000 --- a/docs/fr/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - register_resource() - Dclare dynamiquement une ressource plugin - - - Description - - voidregister_resource - stringname - arrayresource_funcs - - - Utilise pour dclarer dynamiquement une ressource plugin - dans Smarty. Il faut passer en paramtre le nom de la ressource - et le tableau des fonctions PHP qui l'implmentent. Reportez-vous - la section ressources templates - pour avoir plus d'informations sur la faon de paramtrer une fonction - rcuprant des templates. - - Note technique - - Un nom de ressource doit tre compos d'au moins deux caractres. - Les noms de ressources d'un seul caractre seront ignors et utiliss - comme tant une partie du chemin du fichier, comme avec - $smarty->display('c:/path/to/index.tpl'); - - - - - - - - Le tableau de fonctions PHP resource_funcs - doit tre compos de 4 ou 5 lments. - - - S'il est compos de 4 lments, - les lments seront les noms de fonctions pour, respectivement, - source, timestamp, secure et - trusted de la ressource. - - - S'il est compos de 5 lments, le premier lment devra tre une - rfrence sur un objet ou le nom d'une classe de l'objet ou une classe - implmentant la ressource et les 4 lments suivants doivent tre - les noms des mthodes implmentant source, - timestamp, secure - et trusted. - - - - - Exemple avec register_resource() - -register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - - - - Voir aussi - unregister_resource() et - les ressources de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-template-exists.xml b/docs/fr/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 6bcf7e0b..00000000 --- a/docs/fr/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - template_exists() - Vrifie si un template spcifique existe - - - Description - - booltemplate_exists - stringtemplate - - - Elle accepte soit un chemin vers le template, soit une ressource de type - chane de caractres spcifiant le nom du template. - - - - template_exists() - - Cet exemple utilise $_GET['page'] pour inclure le contenu d'un template. - Si le template n'existe pas, une page d'erreur sera affich la place. - Le fichier page_container.tpl : - - - - {$title} - - {include file='page_top.tpl'} - - {* inclure le contenu du milieu de la page *} - {include file=$page_mid} - - {include file='page_footer.tpl'} - - ]]> - - - Et le script PHP - - -template_exists($mid_template) ){ - $mid_template = 'page_not_found.inc.tpl'; -} -$smarty->assign('page_mid', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - - - - Voir aussi - display(), - fetch(), - {include} et - {insert}. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-trigger-error.xml b/docs/fr/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 52c73260..00000000 --- a/docs/fr/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - trigger_error() - Affiche un message d'erreur - - - Description - - voidtrigger_error - stringerror_msg - intlevel - - - Cette fonction peut-tre utilise pour afficher un message d'erreur - en utilisant Smarty. Le paramtre level - peut prendre l'une des valeures utilises par la fonction PHP - trigger_error(), - i.e. E_USER_NOTICE, E_USER_WARNING, etc. Par dfaut - il s'agit de E_USER_WARNING. - - - Voir aussi - $error_reporting, - le dbogage et - Troubleshooting. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-block.xml b/docs/fr/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 5469dfe6..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - unregister_block() - Dsalloue dynamiquement un plugin de fonction de blocs - - - Description - - voidunregister_block - stringname - - - Utilise pour dsallouer dynamiquement un plugin de fonction - de blocs. Passez en paramtre le nom name du bloc. - - - Voir aussi - register_block() et - les plugins de fonctions de blocs. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml b/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index c2ee7548..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - unregister_compiler_function() - Dsalloue dynamiquement une fonction de compilation - - - Description - - voidunregister_compiler_function - stringname - - - Passez en paramtre le nom name de - la fonction de compilation. - - - Voir aussi - - register_compiler_function() et - les plugins de fonction de compilation. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-function.xml b/docs/fr/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index e3eb8d19..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - unregister_function() - Dsalloue dynamiquement un plugin de fonction de templates - - - Description - - voidunregister_function - stringname - - - Passez en paramtres le nom de la fonction de templates. - - - Exemple avec unregister_function() - -unregister_function('fetch'); - -?> -]]> - - - - Voir aussi - register_function(). - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-modifier.xml b/docs/fr/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 3eac194e..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - unregister_modifier() - Dsalloue dynamiquement un plugin modificateur de variable - - - Description - - voidunregister_modifier - stringname - - - Passez en paramtre le nom du modificateur de templates. - - - Exemple avec unregister_modifier() - -unregister_modifier('strip_tags'); - -?> -]]> - - - - Voir aussi - register_modifier() et - les plugins modificateur. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-object.xml b/docs/fr/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index f73de7c4..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_object() - Dsalloue dynamiquement un objet - - - Description - - voidunregister_object - stringobject_name - - - Voir aussi - register_object() et - la section sur les objets. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml b/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index f9b4a106..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - unregister_outputfilter() - Dsalloue dynamiquement un filtre de sortie - - - Description - - voidunregister_outputfilter - stringfunction_name - - - Utilise pour dsallouer dynamiquement un filtre de sortie. - - - Voir aussi - register_outputfilter() et - les filtres de sortie de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-postfilter.xml b/docs/fr/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 81355d00..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_postfilter() - Dsallouer dynamiquement un filtre de post-compilation - - - Description - - voidunregister_postfilter - stringfunction_name - - - Voir aussi - register_postfilter() et - les filtres de post-compilation. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-prefilter.xml b/docs/fr/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index ac2618c4..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - unregister_prefilter() - Dsalloue dynamiquement un filtre de pr-compilation - - - Description - - voidunregister_prefilter - stringfunction_name - - - Voir aussi - register_prefilter() et - les pr-filtres. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-functions/api-unregister-resource.xml b/docs/fr/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 83fe577b..00000000 --- a/docs/fr/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - unregister_resource() - Dsalloue dynamiquement un plugin ressource - - - Description - - voidunregister_resource - stringname - - - Passez en paramtre le nom de la ressource. - - - Exemple avec unregister_resource() - -unregister_resource("db"); - -?> -]]> - - - - Voir aussi - register_resource() et - les ressources de template. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables.xml b/docs/fr/programmers/api-variables.xml deleted file mode 100644 index 1d9dcad4..00000000 --- a/docs/fr/programmers/api-variables.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - Variables - - &programmers.api-variables.variable-template-dir; - &programmers.api-variables.variable-compile-dir; - &programmers.api-variables.variable-config-dir; - &programmers.api-variables.variable-plugins-dir; - &programmers.api-variables.variable-debugging; - &programmers.api-variables.variable-debug-tpl; - &programmers.api-variables.variable-debugging-ctrl; - &programmers.api-variables.variable-autoload-filters; - &programmers.api-variables.variable-compile-check; - &programmers.api-variables.variable-force-compile; - &programmers.api-variables.variable-caching; - &programmers.api-variables.variable-cache-dir; - &programmers.api-variables.variable-cache-lifetime; - &programmers.api-variables.variable-cache-handler-func; - &programmers.api-variables.variable-cache-modified-check; - &programmers.api-variables.variable-config-overwrite; - &programmers.api-variables.variable-config-booleanize; - &programmers.api-variables.variable-config-read-hidden; - &programmers.api-variables.variable-config-fix-newlines; - &programmers.api-variables.variable-default-template-handler-func; - &programmers.api-variables.variable-php-handling; - &programmers.api-variables.variable-security; - &programmers.api-variables.variable-secure-dir; - &programmers.api-variables.variable-security-settings; - &programmers.api-variables.variable-trusted-dir; - &programmers.api-variables.variable-left-delimiter; - &programmers.api-variables.variable-right-delimiter; - &programmers.api-variables.variable-compiler-class; - &programmers.api-variables.variable-request-vars-order; - &programmers.api-variables.variable-request-use-auto-globals; - &programmers.api-variables.variable-error-reporting; - &programmers.api-variables.variable-compile-id; - &programmers.api-variables.variable-use-sub-dirs; - &programmers.api-variables.variable-default-modifiers; - &programmers.api-variables.variable-default-resource-type; - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-autoload-filters.xml b/docs/fr/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index b8842b20..00000000 --- a/docs/fr/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - $autoload_filters - - Si vous dsirez charger des filtres a chaque invocation - de templates, vous pouvez le spcifier en utilisant cette - variable. Les types de filtres et les valeurs sont des - tableaux comportant le nom des filtres. - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -]]> - - - - - Voir aussi - register_outputfilter(), - register_prefilter(), - register_postfilter() et - load_filter(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-cache-dir.xml b/docs/fr/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index c6dacbfe..00000000 --- a/docs/fr/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - $cache_dir - - Il s'agit du nom du rpertoire o les caches des templates - sont stocks. Par dfaut il s'agit de - ./cache, ce qui signifie - que Smarty va chercher ce rpertoire - dans le mme rpertoire que le script PHP en cours d'excution. - Ce dossier doit tre accessible en criture par - le serveur web - (Voir l'installation pour plus d'informations). - Vous pouvez aussi utiliser votre propre fonction de - gestion de cache - personnalis pour contrler les fichiers de cache, qui ignorera - cette configuration. - Voir aussi $use_sub_dirs. - - - Note technique - - Ce rglage doit tre soit un chemin absolu, soit un chemin - relatif. include_path n'a aucune influence lors de l'criture des fichiers. - - - - Note technique - - Il n'est pas conseill de mettre ce rpertoire - dans l'arborescence Web. - - - - Voir aussi - $caching, - $use_sub_dirs, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check et - la section sur le cache. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-cache-handler-func.xml b/docs/fr/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 04c8f67e..00000000 --- a/docs/fr/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $cache_handler_func - - Vous pouvez utiliser votre propre fonction de gestion du cache plutt que - d'utiliser celle livre avec Smarty - ($cache_dir). - Rfrez-vous la section sur la - fonction de gestion de cache - personnalise pour plus de dtails. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-cache-lifetime.xml b/docs/fr/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 7f4ca1a8..00000000 --- a/docs/fr/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - $cache_lifetime - - Il s'agit de la dure en secondes pendant laquelle un cache de template - est valide. Une fois cette dure dpasse, le cache est regnr. - - - - - $caching doit tre activ (soit 1 ou 2) pour que - $cache_lifetime ait une quelconque utilit. - - - - Avec une valeur de -1, le cache n'expire jamais. - - - Avec une valeur de 0, le cache est toujours regnr (utile - a des fins de tests seulement. Une meilleure faon de dsactiver - le cache est de mettre $caching = 0). - - - Si vous souhaitez donner a certains templates leur propre dure de vie - en cache, vous pouvez le faire en rglant - $caching 2, - puis $cache_lifetime une unique valeur juste avant d'appeler - display() - ou fetch(). - - - - - Si $force_compile est - activ, les fichiers du cache seront regnrs a chaque fois, - dsactivant ainsi le cache. Vous pouvez effacer tous les fichiers du cache - avec la function - clear_all_cache() - ou de faon individuelle (ou groupe) avec la fonction clear_cache(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-cache-modified-check.xml b/docs/fr/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4af095ba..00000000 --- a/docs/fr/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $cache_modified_check - - Si cette variable est &true;, Smarty respectera l'en-tte - If-Modified-Since envoy par le client. Si la date de dernire - modification du fichier de cache n'a pas chang depuis la dernire - visite, alors un en-tte '304: Not Modified' sera envoy la place - du contenu. Cel ne fonctionne qu'avec du contenu mis en cache hors de la - balise {insert}. - - - Voir aussi - $caching, - $cache_lifetime, - $cache_handler_func - et la section sur le cache. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-caching.xml b/docs/fr/programmers/api-variables/variable-caching.xml deleted file mode 100644 index b838fe51..00000000 --- a/docs/fr/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - $caching - - Ce paramtre demande Smarty de mettre ou non en cache la sortie des - templates. - Par dfaut, ce rglage est 0 (dsactiv). Si vos templates - gnrent du contenu redondant, il est conseill d'activer le - cache. Cel permettra un gain de performance consquent. - - - - Vous pouvez aussi avoir de - nombreux fichiers de cache - pour un mme template. - - - - - Une valeur de 1 ou 2 active le cache. - - - - 1 indique a Smarty d'utiliser la variable - $cache_lifetime - pour dterminer si le fichier de cache a expir. - - - Une valeur de 2 indique Smarty d'utiliser la valeur - $cache_lifetime - spcifie la - gnration du cache. Ainsi vous pouvez rgler - la dure de vie d'un fichier de cache avant de rcuprer - le template pour avoir un certain contrle quand ce fichier en particulier expire. Voir - aussi is_cached(). - - - - Si $compile_check - est actif, le contenu du cache sera regnr si un des templates ou un des fichiers de - configuration qui fait partie de ce fichier de cache a t modifi. - - - Si - $force_compile est actif, le contenu du cache - est toujours regnr. - - - - - Voir aussi - $cache_dir, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check, - is_cached() et - la section sur le cache. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-compile-check.xml b/docs/fr/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 157ed926..00000000 --- a/docs/fr/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - $compile_check - - A chaque invocation de l'application PHP, Smarty fait - un test pour voir si le template courant a t modifi - (date de dernire modification diffrente) depuis sa - dernire compilation. S'il a chang, le template est recompil. - Si le template n'a pas encore t compil, il le sera - quelque soit la valeur de ce rglage. - Par dfaut cette valeur est &true;. - - - Quand une application est mise en production (les templates - ne changent plus), cette vrification n'est pas ncessaire. - Assurez-vous de mettre $compile_check &false; - pour des performances maximales. Notez que si vous mettez ce paramtre &false; et qu'un - template est modifi, vous ne verrez *pas* le changement - car le template ne sera *pas* recompil. Si le processus de cache - est activ et que $compile_check l'est aussi, alors les fichiers - du cache seront regnrs si un template concern ou un fichier de - configuration concern est modifi. Voir aussi $force_compile ou clear_compiled_tpl(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-compile-dir.xml b/docs/fr/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index c2e11854..00000000 --- a/docs/fr/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - $compile_dir - - C'est le nom du rpertoire o se trouvent les templates - compils. Par dfaut, il s'agit de ./templates_c, - ce qui signifie que Smarty va chercher ce rpertoire - dans le mme rpertoire que le script PHP en cours d'excution. - Ce dossier doit tre accessible en criture - par le serveur web. - (Voir l'installation pour plus d'informations). - - - Note technique - - Ce rglage doit tre soit un chemin absolu, soit un chemin - relatif. include_path n'est pas utilis pour crire des fichiers. - - - - Note technique - - Il n'est pas conseill de mettre ce rpertoire - sous la racine de l'arborescence Web. - - - - Voir aussi - $compile_id et - $use_sub_dirs. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-compile-id.xml b/docs/fr/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index a4f98a96..00000000 --- a/docs/fr/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - $compile_id - - Identifiant persistant du compilateur. On peut passer le mme - $compile_id a chaque appel de fonction mais une - alternative consiste rgler ce - $compile_id, qui sera utilis implicitement. - - - Avec un $compile_id, vous pouvez contourner la limitation qui fait - que vous ne pouvez pas utiliser le mme - $compile_dir pour - diffrents $template_dirs. - Si vous dfinissez un $compile_id distinct pour - chaque $template_dir, - alors Smarty indique aux templates compils part par leur - $compile_id. - - - Si vous avez par exemple un pr-filtre - qui traduit vos templates au moment de la compilation, alors, vous devriez utiliser le langage - courant comme $compile_id et vous devriez obtenir un jeu - de templates compils pour chaque langage que vous utiliserez. - - - Un autre exemple serait d'utiliser le mme dossier de compilation - travers de multiples domaines / vhosts. - - - $compile_id dans un environement d'hte virtuel - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/chemin/vers/shared_compile_dir'; - -?> -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-compiler-class.xml b/docs/fr/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index d46239da..00000000 --- a/docs/fr/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - $compiler_class - - Spcifie le nom de la classe du compilateur qui va tre utilise pour - compiler les templates. Le compilateur par dfaut est - 'Smarty_Compiler'. Rserv aux utilisateurs avancs. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-config-booleanize.xml b/docs/fr/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index f759dc59..00000000 --- a/docs/fr/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $config_booleanize - - Si cette variable est &true;, les valeurs on/true/yes - et off/false/no dans - les fichiers de configuration - sont automitiquement converties en boolen. De cette faon vous pouvez - utiliser ces valeurs dans le template de la faon suivante : {if #foobar#}...{/if}. - Si foobar est on, true ou yes, - l'instruction {if} sera excute. &true; par dfaut. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-config-dir.xml b/docs/fr/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 1e3b9621..00000000 --- a/docs/fr/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $config_dir - - Il s'agit du rpertoire utilis pour stocker les - fichiers de configuration - utiliss dans les templates. - La valeur par dfaut est ./configs, - ce qui signifie que Smarty va chercher ce rpertoire - dans le mme rpertoire que le script PHP qui s'excute. - - - Note technique - - Il n'est pas conseill de mettre ce rpertoire - sous la racine de l'arborescence Web. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-config-fix-newlines.xml b/docs/fr/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index c805e728..00000000 --- a/docs/fr/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - $config_fix_newlines - - Si cette variable est mise &true;, les caractres de nouvelles lignes mac et dos - ('\r' et '\r\n') sont convertis en - '\n' quand ils sont analyss. &true; par dfaut. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-config-overwrite.xml b/docs/fr/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 5d9d42ac..00000000 --- a/docs/fr/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - $config_overwrite - - Si cette variable est &true; (par dfaut), les variables lues dans les - fichiers de configuration - peuvent s'craser entre elles. Sinon les variables - seront mises dans un tableau. Trs utile si vous voulez stocker - des tableaux de donnes dans des fichiers de configuration, listez - simplement chaque lment plusieurs fois. - - - - Tableau de variables de configuration - - Cet exemple utilise - {cycle} - pour afficher un tableau dont les lignes sont alternativement rouge/verte/bleu - avec $config_overwrite = &false;. - - Le fichier de configuration - - - - - Le template avec une boucle - {section}. - - - - {section name=r loop=$rows} - - ....etc.... - - {/section} - -]]> - - - - Voir aussi - {config_load}, - get_config_vars(), - clear_config(), - config_load() et - les fichiers de configuration. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-config-read-hidden.xml b/docs/fr/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 5e876678..00000000 --- a/docs/fr/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $config_read_hidden - - Si cette variable est &true;, les sections caches (dont les noms - commencent par un point) dans les fichiers de configuration - peuvent tre lues depuis les templates. On laisse habituellement cel &false;, de - cette faon vous pouvez stocker des donnes sensibles dans les fichiers - de configuration, par exemple des paramtres de base de donnes, - sans vous soucier de la faon dont les templates les chargent. - Mise &false; par dfaut. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-debug-tpl.xml b/docs/fr/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index a16b4475..00000000 --- a/docs/fr/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $debug_tpl - - C'est le nom du fichier template utilis pour la - console de dbogage. Par dfaut debug.tpl, - il se situe dans SMARTY_DIR. - - - Voir aussi - $debugging et - la console de dbogage. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-debugging-ctrl.xml b/docs/fr/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f09d333e..00000000 --- a/docs/fr/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - $debugging_ctrl - - Cela permet d'avoir différents moyens pour activer - le débogage. NONE signifie qu'aucune - méthode alternative n'est autorisée. URL - signifie que si SMARTY_DEBUG se - trouve dans QUERY_STRING, le débogage - est activé à l'invocation du script. Si - $debugging - est à &true;, cette valeur est sans effet. - - - $debugging_ctrl sur localhost - -debugging = false; // the default -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> - - - - Voir aussi - la console de débogage et - $debugging. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-debugging.xml b/docs/fr/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index c0bc160a..00000000 --- a/docs/fr/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - $debugging - - Cel active la - console de dbogage. - La console est une fentre javascript qui vous informe des templates - inclus et des variables - assignes depuis PHP et des - variables des fichiers de configuration - pour le script courant. Il ne montre pas les variables assignes - dans un template avec - {assign}. - - - Voir aussi - $debugging_ctrl - sur la faon d'activer le dbogage depuis l'url. - - - Voir aussi - {debug}, - $debug_tpl et - $debugging_ctrl. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-default-modifiers.xml b/docs/fr/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index 2617399a..00000000 --- a/docs/fr/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $default_modifiers - - Il s'agit d'un tableau de modificateurs utilis pour assigner - une valeur par dfaut a chaque variable dans un template. - Par exemple, pour par dfaut chapper les caractres HTML de chaque variable, - utilisez array('escape:"htmlall"'). Pour rendre une variable indpendante - des modificateurs par dfaut, passez-lui en paramtre le modificateur - nodefaults : {$var|smarty:nodefaults}. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-default-resource-type.xml b/docs/fr/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 09a734e3..00000000 --- a/docs/fr/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - $default_resource_type - - Ceci dit smarty quel type de ressource utiliser implicitement. La valeur - par dfaut est file, signifiant que - $smarty->display('index.tpl') et - $smarty->display('file:index.tpl') sont la mme chose. Voyez le chapitre - ressource pour plus de dtails. - - - - diff --git a/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml b/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 4208c556..00000000 --- a/docs/fr/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - $default_template_handler_func - - Cette fonction est appele quand un template ne peut pas tre - obtenu avec sa ressource. - - - diff --git a/docs/fr/programmers/api-variables/variable-error-reporting.xml b/docs/fr/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 0071aa3f..00000000 --- a/docs/fr/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $error_reporting - - Lorsque cette valeur est configure une valeur non nulle, - sa valeur est utilise comme le - error_reporting-level - de PHP l'intrieur de display() - et fetch(). Lorsque le dboguage - est ignor, cette valeur est ignore et error-level est non-modifi. - - - Voir aussi - trigger_error(), - le dbogage et - Troubleshooting. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-force-compile.xml b/docs/fr/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 7b7989d0..00000000 --- a/docs/fr/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $force_compile - - Cel oblige Smarty (re)compiler les templates chaque - invocation. Ce rglage supplante - $compile_check. - Par dfaut, il vaut &false;. Ceci est commode pour le dveloppement - et le dbogage - mais ne devrait jamais tre utilis dans un environnment de production. - Si le systme de cache est actif, les - fichiers du cache seront regnrs chaque appel. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-left-delimiter.xml b/docs/fr/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 38e91dbb..00000000 --- a/docs/fr/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $left_delimiter - - Il s'agit du dlimiteur gauche utilis par le moteur de templates. La - valeur par dfaut est {. - - - Voir aussi - $right_delimiter et - l'analyse d'chapement Smarty. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-php-handling.xml b/docs/fr/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 76a741b5..00000000 --- a/docs/fr/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - $php_handling - - Indique Smarty comment interprter le code PHP - intgr dans les templates. Il y a quatre valeurs possibles, par - dfaut SMARTY_PHP_PASSTHRU. Notez - que cel n'affecte PAS le code PHP entour des balises - {php}{/php} - dans le template. - - - SMARTY_PHP_PASSTHRU - Smarty crit les balises - telles quelles. - SMARTY_PHP_QUOTE - Smarty transforme les balises - en entits HTML. - SMARTY_PHP_REMOVE - Smarty supprime les balises - des templates. - SMARTY_PHP_ALLOW - Smarty excute les balises - comme du code PHP. - - - - Intgrer du code PHP dans les templates est vivement - dconseill. Prfrez les - fonctions utilisateurs ou les - modificateurs de variables. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-plugins-dir.xml b/docs/fr/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 8f048ad4..00000000 --- a/docs/fr/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - $plugins_dir - - C'est le rpertoire (ou les rpertoires) dans lequel Smarty ira chercher - les plugins dont il a besoin. La valeur par dfaut est - plugins/ sous - le rpertoire SMARTY_DIR. - Si vous donnez un chemin relatif, Smarty - regardera d'abord relativement au - SMARTY_DIR, puis relativement - au rpertoire de travail courant, puis relativement chaque entre de votre rpertoire - d'inclusion PHP. Si $plugins_dir est un tableau de rpertoires, Smarty - cherchera les plugins dans chaque rpertoire de plugins, - dans l'ordre donn. - - - Note technique - - Pour des raisons de performances, ne rglez pas votre $plugins_dir - pour qu'il utilise votre include_path PHP. Utilisez un - chemin absolu ou un chemin relatif a SMARTY_DIR ou - au rpertoire de travail courant. - - - - - Ajout d'un dossier local de plugins - -plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - - - - - Plusieurs $plugins_dir - -plugins_dir = array( - 'plugins', // the default under SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 2b8a6517..00000000 --- a/docs/fr/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - $request_use_auto_globals - - Spcifie si Smarty doit utiliser les variables PHP $HTTP_*_VARS[] - ($request_use_auto_globals=&false; qui est la valeur par dfaut) ou - $_*[] ($request_use_auto_globals=&true;). Cela affecte les templates - qui utilisent - {$smarty.request.*}, {$smarty.get.*} etc.. - - - Attention - - Si vous configurez $request_use_auto_globals to true &true;, - $request_vars_order - n'a plus d'effets et la valeur de la directive de configuration - gpc_order de PHP est utilise. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-request-vars-order.xml b/docs/fr/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 2e4305ca..00000000 --- a/docs/fr/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $request_vars_order - - L'ordre dans lequel les variables de requtes sont enregistres, - identique a variables_order dans php.ini. - - - Voir aussi - $smarty.request et - $request_use_auto_globals. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-right-delimiter.xml b/docs/fr/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 76b32b24..00000000 --- a/docs/fr/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $right_delimiter - - Il s'agit du dlimiteur droit utilis par le moteur de templates. - La valeur par dfaut est }. - - - Voir aussi - $left_delimiter et - l'analyse d'chappement Smarty. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-secure-dir.xml b/docs/fr/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 907d0833..00000000 --- a/docs/fr/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - $secure_dir - - Il s'agit d'un tableau contenant tous les fichiers et rpertoires locaux qui sont - considrs comme scuriss. - {include} et - {fetch} l'utilisent quand - la scurit est active. - - - Exemple avec $secure_dir - -secure_dir = $secure_dirs; -?> -]]> - - - - Voir aussi - la configuration pour la scuritet - $trusted_dir. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-security-settings.xml b/docs/fr/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 06f36ba7..00000000 --- a/docs/fr/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - $security_settings - - Ces rglages servent craser ou spcifier les paramtres de scurit - quand celle-ci est active. - Les rglages possibles sont les suivants : - - - - - PHP_HANDLING - boolen. Si &true;, le - rglage $php_handling - n'est pas vrifi. - - - - - IF_FUNCS - Le tableau des noms de fonctions - PHP autorises dans les intructions - {if}. - - - - - INCLUDE_ANY - boolen. Si &true;, - les templates peuvent tre inclus de n'importe o, quelque soit - le contenu de $secure_dir. - - - - - PHP_TAGS - boolen. Si &true;, - les balises {php}{/php} - sont autorises dans les templates. - - - - - MODIFIER_FUNCS - Le tableau des noms de fonctions - autorises tre utilises comme modificateurs de - variables. - - - - - ALLOW_CONSTANTS - boolen. Si l'accs aux constantes via - la syntaxe {$smarty.const.name} - est autoris ou non. - - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-security.xml b/docs/fr/programmers/api-variables/variable-security.xml deleted file mode 100644 index 863bd829..00000000 --- a/docs/fr/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - $security - - Cette variable vaut &false; par dfaut. La scurit est de rigueur - quand vous n'tes pas compltement sr des personnes qui ditent les templates - (par ftp par exemple) et que vous voulez rduire le risque que - la scurit du systme soit compromise par le langage de template. - Activer cette option de scurit applique les rgles suivantes - au langage de template, moins que - $security_settings - ne spcifie le contraire : - - - - - Si $php_handling - est rgle SMARTY_PHP_ALLOW, cela est implicitement - chang SMARTY_PHP_PASSTHRU. - - - - - Les fonctions PHP ne sont pas autorises dans les - instructions {if}, - part celles dclares dans - $security_settings. - - - - - Les templates ne peuvent tre inclus que depuis - des rpertoires lists dans le tableau - $secure_dir. - - - - - Les fichiers locaux ne peuvent tre rcuprs que depuis - les rpertoires lists dans le tableau - $secure_dir en - utilisant {fetch}. - - - - - Les balises {php}{/php} - ne sont pas autorises. - - - - - Les fonctions PHP ne sont pas autorises en tant - modificateurs, part celles spcifies dans - $security_settings. - - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-template-dir.xml b/docs/fr/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index a3a21913..00000000 --- a/docs/fr/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - $template_dir - - C'est le nom par dfaut du rpertoire des templates. - Si vous ne spcifiez aucun chemin lors de l'utilisation de templates, Smarty - les cherchera cet emplacement. Par dfaut, il s'agit de - ./templates, ce qui signifie - qu'il va chercher le rpertoire templates/ - dans le rpertoire o se trouve le script PHP en cours d'excution. - - - - Note technique - - Il n'est pas conseill de mettre ce rpertoire dans l'arborescence Web. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-trusted-dir.xml b/docs/fr/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index af79ac23..00000000 --- a/docs/fr/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $trusted_dir - - $trusted_dir n'est utilise lorsque - $security est active. - C'est un tableau de tous les rpertoires qui peuvent tre considrs comme svrs. - Les rpertoires svrs sont ceux qui contiennent des scripts PHP qui - sont excuts directement depuis les templates avec - {include_php}. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml b/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 50327fb6..00000000 --- a/docs/fr/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - $use_sub_dirs - - Smarty va crer des sous-dossiers dans les dossiers - templates_c et - cache - si la variable $use_sub_dirs est dfini &true; (Par dfaut, vaut &false;). - Dans un environnement o il peut y avoir potentiellement des centaines de milliers - de fichiers de crs, ceci peut rendre le systme de fichiers plus rapide. - D'un autre ct, quelques environnements n'acceptent pas que les processus PHP - crent des dossiers, donc, cette variable doit tre dsactive par dfaut. - - - Les sous-dossiers sont plus efficaces, utilisez-les - donc si vous le pouvez. - Thoriquement, vous obtiendrez plus de performance sur un systme de fichier - contenant 10 dossiers contenant chaque, 100 fichiers plutt qu'un dossier - contenant 1000 fichiers. C'est par exemple le cas avec Solaris 7 (UFS)... - avec les systmes de fichiers rcents comme ext3 ou reiserfs, la diffrence - est proche de zro. - - - Note technique - - - $use_sub_dirs=true ne fonctionne pas avec - safe_mode=On, - raison pour laquelle c'est paramtrable et que c'est dsactiv par dfaut. - - - - $use_sub_dirs=true sous Windows peut causer des problmes. - - - Safe_mode est obsolte depuis PHP6. - - - - - - Voir aussi - $compile_id, - $cache_dir et - $compile_dir. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/caching.xml b/docs/fr/programmers/caching.xml deleted file mode 100644 index d37f85ae..00000000 --- a/docs/fr/programmers/caching.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - Cache - - Le cache est utilise pour acclrer l'appel de display() ou de fetch() en sauvegardant leur rsultat - dans un fichier. Si un fichier de cache est disponible lors d'un appel, - il sera affich sans qu'il ne soit ncessaire de regnrer le rsultat. - Le systme de cache peut acclrer les traitements de faon impressionnante, - en particulier les templates dont la compilation est trs longue. Comme - le rsultat de display() ou de - fetch()est dans le cache, un fichier de cache - peut tre compos de plusieurs fichiers de templates, plusieurs fichiers - de configuration, etc. - - - Comme les templates sont dynamiques, il est important de faire attention - la faon dont les fichiers de cache sont gnrs, et pour combien de temps. - Si par exemple vous affichez la page d'accueil de votre site Web dont le - contenu ne change pas souvent, il peut tre intressant de mettre cette page - dans le cache pour une heure ou plus. A l'inverse, si vous affichez une page - de mto mise a jour toutes les minutes, mettre cette page en cache - n'a aucun sens. - - &programmers.caching.caching-setting-up; - &programmers.caching.caching-multiple-caches; - &programmers.caching.caching-groups; - - &programmers.caching.caching-cacheable; - - - \ No newline at end of file diff --git a/docs/fr/programmers/caching/caching-cacheable.xml b/docs/fr/programmers/caching/caching-cacheable.xml deleted file mode 100644 index af5a0574..00000000 --- a/docs/fr/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - Contrler la mise en cache des sorties des Plugins - - Depuis Smarty-2.6.0, la mise en cache des plugins peut tre dclare lors - de leur inscription. Les troisimes paramtres de - register_block(), - - register_compiler_function() - et register_function() sont appels - $cacheable et valent &true; par dfaut, ce qui est - aussi le comportement par dfaut des versions de Smarty prcdent la 2.6.0 - - - - Lors de l'inscription d'un plugin avec $cacheable=false, le plugin est - appel chaque fois que la page est affiche, mme si la page vient du - cache. La fonction plugin se comporte presque comme la fonction - {insert}. - - - - Contrairement {insert} - les attributs pour le plugin ne sont pas mis en cache par dfaut. Cel peut - tre le cas en utilisant le quatrime paramtre - $cache_attrs. $cache_attrs - est un tableau de noms d'attributs qui doivent tre mis en cache, pour que - la fonction plugin reoive les valeurs telles qu'elles taient dfinies lorsque - la page a t mise en cache, chaque rcupration partir du cache. - - - - Eviter la mise en cache du rsultat d'un plugin - -caching = 1; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) { - return $remain . " second(s)"; - } else { - return "done"; - } -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // rcupration de $obj partir de la page et assignation... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - O index.tpl contient : - - -endtime} -]]> - - - Le nombre de secondes avant que la date de fin de $obj ne soit atteinte - change chaque affichage de la page, mme si la page est mise en cache. - Comme l'attribut endtime est mis en cache, il n'y a que l'objet qui ait - besoin d'tre extrait de la base de donnes lors de la mise en cache de - la page, mais pas lors des affichages ultrieurs de la page. - - - - - Eviter la mise en cache d'une portion du template - -caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - O index.tpl contient : - - - - - - - - Lors du rechargement de la page, vous remarquerez que les deux dates sont - diffrentes. L'une est dynamic et l'autre est static. - Vous pouvez faire ce que vous voulez entre {dynamic}...{/dynamic} - et tre srs que cela ne sera pas mis en cache comme le reste de la page. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/caching/caching-groups.xml b/docs/fr/programmers/caching/caching-groups.xml deleted file mode 100644 index b631cd3e..00000000 --- a/docs/fr/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - Groupes de fichiers de cache - - Vous pouvez faire des groupements plus labors en paramtrant les - groupes de $cache_id. Il suffit de sparer chaque sous-groupe - avec une barre verticale | dans la valeur de $cache_id. - Vous pouvez faire autant de sous-groupes que vous le dsirez. - - - - - Vous pouvez voir les groupes de cache comme une hirarchie de dossiers. - Par exemple, un groupe de cache 'a|b|c' peut tre considr comme - la hirarchie de dossiers '/a/b/c/'. - - - - clear_cache(null,'a|b|c') - supprimera les fichiers - '/a/b/c/*'. clear_cache(null,'a|b') - supprimera les fichiers '/a/b/*'. - - - - Si vous spcifiez un - $compile_id - de cette faon clear_cache(null,'a|b','foo') il sera trait comme un groupe de - cache appos '/a/b/c/foo/'. - - - - Si vous spcifiez un nom de template de cette faon - clear_cache('foo.tpl','a|b|c') alors Smarty tentera d'effacer - '/a/b/c/foo.tpl'. - - - - Vous ne POUVEZ PAS effacer un nom de template spcifi sous un groupe de - cache multiple comme '/a/b/*/foo.tpl', le groupement de cache fonctionne - UNIQUEMENT de gauche droite. Vous pourriez vouloir grouper vos templates - sous un groupe de cache simple hirarchis pour tre capable de les effacer - comme un groupe. - - - - - Le groupement de cache ne devrait pas tre confondu avec votre hirarchie - de dossiers de templates, le groupement de cache n'a aucune connaissance - de la faon dont vos templates sont structurs. Donc, par exemple, si - vous avez une structure de template comme themes/blue/index.tpl et - que vous voulez tre capable d'effacer tous les fichiers de cache pour le thme blue, - vous devriez crer une structure de groupe de cache qui reflte la structure - de fichiers de vos templates, comme display('themes/blue/index.tpl','themes|blue'), - et les effacer avec clear_cache(null,'themes|blue'). - - - Groupes d'identifiants de cache - -caching = true; - -// efface tous les fichiers de cache avec "sports|basketball" comme premiers -// groupes d'identifiants de cache -$smarty->clear_cache(null,'sports|basketball'); - -// efface tous les fichiers de cache "sports" comme premier groupe d'identifiants. -// Inclue donc "sports|basketball" ou "sports|nimportequoi|nimportequoi|..." -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/caching/caching-multiple-caches.xml b/docs/fr/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 82ee88c6..00000000 --- a/docs/fr/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - Caches multiples pour une seule page - - Vous pouvez avoir plusieurs fichiers de caches pour un mme appel - aux fonctions display() ou - fetch(). Imaginons qu'un appel a - display('index.tpl') puisse avoir plusieurs rsultats, en fonction de - certaines conditions, et que vous vouliez des fichiers de cache spars - pour chacun d'eux. Vous pouvez faire cel en passant un identifiant de - cache ($cache_id) en deuxime paramtre l'appel de fonction. - - - Passage d'un $cache_id display() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Nous passons ci-dessus la variable $my_cache_id - display() comme - identifiant de cache. Pour chaque valeur distincte de $my_cache_id, - un fichier de cache distinct va tre cr. Dans cet exemple, - article_id a t pass dans l'URL et est utilis en tant qu'identifiant - de cache. - - - Note technique - - Soyez prudent en passant des valeurs depuis un client (navigateur Web) - vers Smarty (ou vers n'importe quelle application PHP). Bien que l'exemple - ci-dessus consistant utiliser article_id depuis l'URL puisse paraetre - commode, le rsultat peut s'avrer mauvais. L'identifiant - de cache est utilis pour crer un rpertoire sur le systme de fichiers, - donc si l'utilisateur dcide de donner une trs grande valeur article_id - ou d'crire un script qui envoie des article_id de faon alatoire, - cel pourra causer des problmes cot serveur. Assurez-vous de bien - tester toute donne passe en paramtre avant de l'utiliser. Dans cet - exemple, peut-tre savez-vous que article_id a une longueur de 10 - caractres, est exclusivement compos de caractres alph-numriques et - doit avoir une valeur contenue dans la base de donnes. Vrifiez-le bien ! - - - - Assurez-vous de bien passer le mme identifiant aux fonctions - is_cached() et - clear_cache(). - - - Passer un cache_id a is_cached() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // pas de fichier de cache dispo, on assigne donc les variables - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Vous pouvez effacer tous les fichiers de cache pour un identifiant - de cache particulier en passant &null; en tant que premier paramtre - clear_cache(). - - - Effacement de tous les fichiers de cache pour un identifiant de cache particulier - -caching = true; - -// efface tous les fichiers de cache avec "sports" comme identifiant -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - - - - De cette manire, vous pouvez "grouper" vos fichiers de cache en leur - donnant le mme identifiant. - - - - \ No newline at end of file diff --git a/docs/fr/programmers/caching/caching-setting-up.xml b/docs/fr/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 516a8ff1..00000000 --- a/docs/fr/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - Paramtrer le cache - - La premire chose faire est d'activer le cache en - mettant - $caching - = 1 (ou 2). - - - Activation du cache - -caching = 1; - -$smarty->display('index.tpl'); -?> -]]> - - - - Avec le cache activ, la fonction display('index.tpl') va afficher - le template mais sauvegardera par la mme occasion une copie du rsultat - dans un fichier (de cache) du rpertoire - $cache_dir. - Au prochain appel de display('index.tpl'), le fichier de cache sera prfr - la rutilisation du template. - - - Note technique - - Les fichiers situs dans - $cache_dir - sont nomms de la mme faon que les templates. - Bien qu'ils aient une extension .php, ils ne sont pas vraiment - directement excutable. N'ditez surtout pas ces fichiers ! - - - - Tout fichier de cache a une dure de vie limite dtermine par $cache_lifetime. La valeur par - dfaut est 3600 secondes, i.e. 1 heure. Une fois que cette dure est - dpasse, le cache est regnr. Il est possible de donner - une dure d'expiration propre chaque fichier de cache en rglant - $caching=2. - Se reporter la documentation de $cache_lifetime pour plus de - dtails. - - - Rglage individuel de $cache_lifetime - -caching = 2; // rgler la dure de vie individuellement - -// rgle la dure de vie du cache a 15 minutes pour index.tpl -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// rgle la dure de vie du cache 1 heure pour home.tpl -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE : le rglage suivant ne fonctionne pas quand $caching = 2. La dure de vie -// du fichier de cache de home.tpl a dja t rgle a 1 heure et ne respectera -// plus la valeur de $cache_lifetime. Le cache de home.tpl expirera toujours -// dans 1 heure. -$smarty->cache_lifetime = 30; // 30 secondes -$smarty->display('home.tpl'); -?> -]]> - - - - Si - $compile_check - est actif, chaque fichier de template et de configuration qui a un rapport - avec le fichier de cache sera vrifi pour dtecter une ventuelle - modification. Si l'un de ces fichiers a t modifi depuis que le fichier de cache a t - gnr, le cache est immdiatement regnr. Ce processus est couteux, donc, - pour des raisons de performances, mettez ce paramtre &false; pour une application - en production. - - - Activation de $compile_check - -caching = 1; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Si $force_compile est actif, - les fichiers de cache sont toujours regnrs. Ceci revient finalement - dsactiver le cache. $force_compile - est utilis des fins de dbogage, - un moyen plus efficace de dsactiver le cache est de rgler - $caching = 0. - - - La fonction is_cached() permet - de tester si un template a ou non un fichier de cache valide. - Si vous disposez d'un template en cache qui requiert une requte - une base de donnes, vous pouvez utiliser cette mthode plutt - que $compile_check. - - - Exemple avec is_cached() - -caching = 1; - -if(!$smarty->is_cached('index.tpl')) { - // pas de cache disponible, on assigne - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - Vous pouvez rendre dynamiques seulement certaines parties d'une - page avec la fonction de template {insert}. - Imaginons que toute une page doit tre mise en cache part - une bannire en bas droite. En utilisant une fonction - {insert} pour la - bannire, vous pouvez garder cet lment dynamique dans le contenu qui - est en cache. Reportez-vous la documentation - {insert} pour plus de dtails - ainsi que des exemples. - - - Vous pouvez effacer tous les fichiers du cache avec la fonction clear_all_cache(), ou de faon - individuelle (ou par groupe) - avec la fonction clear_cache(). - - - Nettoyage du cache - -caching = 1; - -// efface le fichier de cache du template 'index.tpl' -$smarty->clear_cache('index.tpl'); - -// efface tous les fichiers du cache -$smarty->clear_all_cache(); - -$smarty->display('index.tpl'); -?> -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/plugins.xml b/docs/fr/programmers/plugins.xml deleted file mode 100644 index 5602bed5..00000000 --- a/docs/fr/programmers/plugins.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - Etendre Smarty avec des plugins - - La version 2.0 a introduit l'architecture de plugin qui est - utilise pour pratiquement toutes les fonctionnalits - personnalisables de Smarty. Ceci comprend : - - les fonctions - les modificateurs - les fonctions de blocs - les fonctions de compilation - les filtres de pr-compilation - les filtres de post-compilation - les filtres de sorties - les ressources - les insertions - - A part pour les ressources, la compatibilit avec les anciennes - faons d'enregistrer les fonctions de gestion avec l'API register_ - est conserve. Si vous n'avez pas utilis cette API et que vous avez - la place directement modifi les variables de classes - $custom_funcs, $custom_mods et - d'autres, vous devez alors modifier vos scripts pour utiliser - l'API ou convertir vos fonctionnalits personnalises en plugins. - - - &programmers.plugins.plugins-howto; - - &programmers.plugins.plugins-naming-conventions; - - &programmers.plugins.plugins-writing; - - &programmers.plugins.plugins-functions; - - &programmers.plugins.plugins-modifiers; - - &programmers.plugins.plugins-block-functions; - - &programmers.plugins.plugins-compiler-functions; - - &programmers.plugins.plugins-prefilters-postfilters; - - &programmers.plugins.plugins-outputfilters; - - &programmers.plugins.plugins-resources; - - &programmers.plugins.plugins-inserts; - - diff --git a/docs/fr/programmers/plugins/plugins-block-functions.xml b/docs/fr/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index c9a26c4a..00000000 --- a/docs/fr/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Fonctions de blocs - - - void smarty_block_name - array $params - mixed $content - object &$smarty - - - - Les fonctions de blocs sont des fonctions de la forme {func} .. {/func}. - En d'autres mots, elles englobent des blocs de template et oprent sur les - contenus de ces blocs. Les fonctions de blocs ont la priorit sur les - fonctions utilisateurs - de mme nom, ce qui signifie que vous ne - pouvez avoir une fonction utilisateur {func} et une fonction de bloc - {func}..{/func}. - - - - - Par dfaut, l'implmentation de votre fonction est appele deux fois par Smarty : - une fois pour la balise ouvrante et une autre fois pour la balise - fermante (voir $repeat ci-dessous - sur la faon de modifier ce comportement). - - - Seule la balise ouvrante d'une fonction de bloc peut avoir des - attributs. - Tous les attributs passs par le template aux fonctions de templates sont - contenus dans le tableau associatif $params. - Votre fonction a aussi accs aux attributs de la balise - ouvrante quand c'est la balise fermante qui est excute. - - - La valeur de la variable $content est diffrente - selon si votre fonction est appele pour la balise ouvrante ou la - balise fermante. Si c'est pour la balise ouvrante, elle sera &null; et si c'est la balise fermante, - elle sera gale au contenu du bloc de template. Notez que le bloc de template - aura dj t excut par Smarty, vous recevrez donc la sortie du - template et non sa source. - - - - Le paramtre $repeat est pass - par rfrence la fonction d'implmentation et fournit la possibilit - de contrler le nombre d'affichage du bloc. Par dfaut, - $repeat vaut - &true; lors du premier appel la fonction de bloc (le bloc d'ouverture du tag) et - &false; lors de tous les autres appels la fonction - de bloc (le bloc de fermeture du tag). Chaque fois que la fonction - d'implmentation retourne avec le paramtre - $repeat vallant &true;, le contenu situ - {func}...{/func} est valu et la fonction d'implmentation est appel - une nouvelle fois avec le nouveau bloc de contenu en tant que paramtre - $content. - - - - - Si vous imbriqu des fonctions de bloc, il est possible de connatre - la fonction de bloc parente grce la variable $smarty->_tag_stack. - Fates un var_dump() - dessus et la structure devrait apparatre. - - - Fonction de bloc - - -]]> - - - - Voir aussi : - register_block() et - unregister_block(). - - - diff --git a/docs/fr/programmers/plugins/plugins-compiler-functions.xml b/docs/fr/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index d10ab590..00000000 --- a/docs/fr/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Fonctions de compilation - - Les fonctions de compilation sont appeles durant la compilation du template. - Elles sont utiles pour injecter du code PHP ou du contenu "statique variant - avec le temps" (bandeau de pub par ex.). Si une fonction de compilation et - une fonction personnalise - ont le mme nom, la fonction de compilation a priorit. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Les fonctions de compilation ont deux paramtres : une chane contenant - la balise - en gros, tout, depuis le nom de la fonction jusqu'au dlimiteur de fin - et - l'objet Smarty. Elles sont censes retourner le code PHP qui doit tre - inject dans le template compil. - - - Fonction de compilation simple - - -]]> - - - Cette fonction peut-tre appele depuis le template comme suivant : - - - - - - Le code PHP rsultant dans les templates compils ressemblerait a : - - - -]]> - - - - Voir aussi : - register_compiler_function() et - unregister_compiler_function(). - - - diff --git a/docs/fr/programmers/plugins/plugins-functions.xml b/docs/fr/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 0925162c..00000000 --- a/docs/fr/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - Les fonctions de templates - - - void smarty_function_name - array $params - object &$smarty - - - - Tous les attributs - passs aux fonctions de template partir du template - sont contenus dans le tableau associatif $params. - - - Le retour de la fonction sera substitue la balise de fonction - du template (fonction - {fetch} - par exemple). Sinon, la fonction peut simplement accomplir une autre tche sans sortie - (la fonction - {assign} par exemple). - - - Si la fonction a besoin d'assigner des variables aux templates ou d'utiliser - d'autres fonctionnalits fournies par Smarty, elle peut recevoir un - objet $smarty pour cel. - - - - Fonction de plugin avec sortie - - -]]> - - - - - peut tre utilise dans le template de la faon suivante : - - -Question: Will we ever have time travel? -Answer: {eightball}. - - - - Fonction de plugin sans sortie - -trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?> -]]> - - - - - Voir aussi : - register_function() et - unregister_function(). - - - diff --git a/docs/fr/programmers/plugins/plugins-howto.xml b/docs/fr/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 1ba50ead..00000000 --- a/docs/fr/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Comment fonctionnent les plugins - - Les plugins sont toujours chargs la demande. Seuls les modificateurs - de variables, les ressources, etc invoqus dans les scripts de templates - seront chargs. De plus, chaque plugin n'est charg qu'une fois, et ce - mme si vous avez plusieurs instances de Smarty qui tournent dans - la mme requte. - - - Les filtres de post/pr-compilation et les filtres de sortie sont des cas - un peu spciaux. - Comme ils ne sont pas mentionns dans les templates, ils doivent tre dclars - ou chargs explicitement via les fonctions de l'API avant que le template - ne soit excut. L'ordre dans lequel les filtres multiples d'un mme type - sont excuts dpend de l'ordre dans lequel ils sont enregistrs ou chargs. - - - Le rpertoire de plugin peut - tre une chane de caractres contenant un chemin ou un tableau contenant - de multiples chemins. Pour installer un plugin, placez-le simplement - dans un de ces dossiers et Smarty l'utilisera automatiquement. - - - diff --git a/docs/fr/programmers/plugins/plugins-inserts.xml b/docs/fr/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 90c0606d..00000000 --- a/docs/fr/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Insertions - - Les plugins d'insertion sont utiliss pour implmenter les fonctions - qui sont appeles par les balises - {insert} - dans les templates. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Le premier paramtre pass la fonction est une tableau associatif - d'attributs. - - - La fonction d'insertion est suppose retourner le rsultat qui sera - substitu la balise {insert} dans le template. - - - Plugin d'insertion - -trigger_error("insert time: missing 'format' parameter"); - return; - } - - return strftime($params['format']); -} -?> -]]> - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/plugins/plugins-modifiers.xml b/docs/fr/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 74538d49..00000000 --- a/docs/fr/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - Modificateurs - - Les modificateurs - sont de petites fonctions appliques une variable - de template avant qu'elle ne soit affiche ou utilise dans un autre contexte. - Les modificateurs peuvent tre chans entre eux. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Le premier paramtre pass au modificateur est la valeur - sur laquelle le modificateur est suppos oprer. Les autres paramtres - peuvent tre optionnels, dpendant de quel genre d'opration doit tre - effectu. - - - Le modificateur doit retourner - le rsultat de son excution. - - - Plugin modificateur simple - - Ce plugin est un alias d'une fonction PHP. Il n'a aucun paramtre - supplmentaires. - - - -]]> - - - - - Un plugin modificateur un peu plus complexe - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - Voir aussi : - register_modifier() et - unregister_modifier(). - - - diff --git a/docs/fr/programmers/plugins/plugins-naming-conventions.xml b/docs/fr/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index 04017564..00000000 --- a/docs/fr/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - Conventions de nommage - - Les fichiers et les fonctions de plugins doivent suivre une convention - de nommage trs spcifique pour tre localiss par Smarty. - - - Les fichiers de plugins doivent tre nomms de la faon suivante : -
      - - - type.nom.php - - -
      -
      - - - - O type est l'une des valeurs suivantes : - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - - - Et nom doit tre un identifiant valide : lettres, nombres - et underscore seulement, voir les - variables php. - - - - Quelques exemples : function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - - - Les fonctions de plugins dans les fichiers de plugins doivent tre - nommes de la faon suivante : -
      - - smarty_type_nom - -
      -
      - - - - Les significations de type et de nom sont les mmes - que prcdemment. - - - Un exemple de nom de modificateur foo serait - function smarty_modifier_foo(). - - - - Smarty donnera des messages d'erreurs appropris si le fichier de plugin - n'est pas trouv ou si le fichier ou la fonction de plugin ne sont - pas nomms correctement. - -
      - - \ No newline at end of file diff --git a/docs/fr/programmers/plugins/plugins-outputfilters.xml b/docs/fr/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 152b1afd..00000000 --- a/docs/fr/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - Filtres de sortie - - Les plugins de filtres de sortie oprent sur la sortie du template, - aprs que le template a t charg et excut, mais avant que - la sortie ne soit affiche. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Le premier paramtre pass la fonction du filtre de sortie est la - sortie du template qui doit tre modifie et le second paramtre - est l'instance de Smarty appelant le plugin. Le plugin est suppos - faire un traitement et en retourner le rsultat. - - - Plugin de filtre de sortie - - -]]> - - - - Voir aussi - - register_outputfilter() et - - unregister_outputfilter(). - - - - diff --git a/docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 93ebe0c9..00000000 --- a/docs/fr/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - filtres de pr-compilation/filtres de post-compilation - - Les filtres de pr-compilation et les filtres de post-compilation ont des concepts trs - proches. Ils diffrent dans leur excution, plus prcisment dans le - moment o ils sont excuts. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Les filtres de pr-compilation sont utiliss pour transformer la source d'un template - juste avant la compilation. Le premier paramtre pass la fonction - de filtre de pr-compilation est la source du template, ventuellement modifie par - d'autres filtres de pr-compilations. Le plugin est suppos retourner la source modifie. - Notez que cette source n'est sauvegarde nulle part, elle est seulement - utilis pour la compilation. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Les filtres de post-compilation sont utiliss pour modifier la sortie du template - (le code PHP) juste aprs que la compilation a t fate mais juste - avant que le template ne soit sauvegard sur le systme de fichiers. - Le premier paramtre pass la fonction de filtre de post-compilation est le code - du template compil, ventuellement dja modifi par d'autres filtres de post-compilations. - Le plugin est cens retourner la version modifie du code. - - - Plugin de filtre de post-compilation - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - Plugin de filtre de post-compilation - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - Voir aussi - - register_prefilter(), - - unregister_prefilter() - - register_postfilter() et - - unregister_postfilter(). - - - diff --git a/docs/fr/programmers/plugins/plugins-resources.xml b/docs/fr/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 9045d2a5..00000000 --- a/docs/fr/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - -Ressources - - Les plugins ressources sont un moyen gnrique de fournir des sources - de templates ou des composants de scripts PHP Smarty. Quelques exemples - de ressources : bases de donnes, LDAP, mmoire partage, sockets, etc. - - - Il y au total quatre fonctions qui ont besoin d'tre enregistres pour - chaque type de ressource. Chaque fonction reoit le nom de la ressource demande - comme premier paramtre et l'objet Smarty comme dernier paramtre. - Les autres paramtres dpendent de la fonction. - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - - - La premire fonction est suppose rcuprer la ressource. Son second - paramtre est une variable passe par rfrence o le rsultat doit tre - stock. La fonction est suppose retourner &true; si - elle russit rcuprer la ressource et &false; sinon. - - - - La seconde fonction est suppose rcuprer la date de dernire modification - de la ressource demande (comme un timestamp UNIX). Le second paramtre - est une variable passe par rfrence dans laquelle la date doit - tre stocke. La fonction est suppose renvoyer &true; si elle - russit rcuprer la date et &false; sinon. - - - - La troisime fonction est suppose retourner &true; - ou &false; selon si la ressource demande est sre - ou non. La fonction est utilise seulement pour les ressources templates - mais doit tout de mme tre dfinie. - - - - La quatrime fonction est suppose retourner &true; - ou &false; selon si l'on peut faire confiance ou - non la ressource demande. Cette fonction est utilise seulement - pour les composants de scripts PHP demands par les balises - - {include_php} ou - {insert} - ayant un attribut src. Quoiqu'il en soit, - elle doit tre dfinie pour les ressources templates. - - - - - resource plugin - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // fait des requtes BD pour remplir $tpl_timestamp - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // suppose que tous les templates sont svrs - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // inutilise pour les templates -} -?> -]]> - - - - Voir aussi : - register_resource() et - unregister_resource(). - - - - \ No newline at end of file diff --git a/docs/fr/programmers/plugins/plugins-writing.xml b/docs/fr/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 2b0cb386..00000000 --- a/docs/fr/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Ecrire des plugins - - Les plugins peuvent tre soit chargs automatiquement par Smarty - depuis le systme de fichier, soit tre dclars - pendant l'excution via une fonction register_* de l'API. Ils peuvent - aussi tre dsallous en utilisant une fonction unregister_* de - l'API. - - - Pour les plugins qui ne sont pas enregistrs pendant l'excution, le nom - des fonctions n'ont pas suivre la convention de nommage. - - - Si certaines fonctionnalits d'un plugin dpendent d'un autre plugin - (comme c'est le cas de certains plugins accompagnant Smarty), alors - la manire approprie de charger le plugin est la suivante : - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Une rgle gnrale est que chaque objet Smarty est toujours pass au plugin - en tant que dernier paramtre, sauf pour deux exceptions : - - - - les modificateurs ne sont pas passs du tout l'objet Smarty - - - les blocs rcuprent le paramtre - $repeat pass aprs l'objet Smarty afin de - conserver une compatibilit avec les anciennes versions de Smarty. - - - - - \ No newline at end of file diff --git a/docs/fr/programmers/smarty-constants.xml b/docs/fr/programmers/smarty-constants.xml deleted file mode 100644 index 863a22ab..00000000 --- a/docs/fr/programmers/smarty-constants.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Constantes - - - SMARTY_DIR - - Il doit s'agir du chemin complet - du rpertoire o se trouvent les fichiers classes de Smarty. - S'il n'est pas dfini dans votre script, Smarty essaiera alors d'en - dterminer automatiquement la valeur. - S'il est dfini, le chemin doit se terminer par un slash. - - - SMARTY_DIR - - -]]> - - - - Voir aussi - $smarty.const et - $php_handling constants. - - - - SMARTY_CORE_DIR - - Il doit s'agir du chemin complet du rpertoire o - se trouvent les fichiers internes de Smarty. S'il n'est - pas dfini, Smarty placera comme valeur par dfaut la - valeur de la constante prcdente - SMARTY_DIR. S'il est - dfini, le chemin doit se terminer par un slash. Utilisez cette - constante lorsque vous incluez manuellement n'importe - quel fichier core.*. - - - SMARTY_CORE_DIR - - -]]> - - - - - Voir aussi - $smarty.const. - - - - - \ No newline at end of file diff --git a/docs/fr/translation.xml b/docs/fr/translation.xml deleted file mode 100644 index 1c22bfb0..00000000 --- a/docs/fr/translation.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Ceci est le fichier gnr par smarty/docs/scripts/revcheck.php. - Il vous permet de voir rapidement quels sont les fichiers qui - doivent tre mis jour ainsi que la personne qui s'en occupe. - - - - - - - - - - - - - - diff --git a/docs/id/bookinfo.xml b/docs/id/bookinfo.xml deleted file mode 100644 index cfa56c13..00000000 --- a/docs/id/bookinfo.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - Smarty - mesin template yang mengompilasi PHP - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/docs/id/designers/language-basic-syntax/language-escaping.xml b/docs/id/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 40a3ba4b..00000000 --- a/docs/id/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - Escaping Penguraian Smarty - - Ada kalanya diinginkan atau bahkan perlu agar Smarty mengabaikan seksi - atau sebaliknya akan diuraikan. Contoh klasi adalah melengketkan kode - Javascript atau CSS dalam sebuah template. Masalah muncul karena bahasa - tersebut menggunakan karakter { dan } yang juga merupakan - pembatas standar untuk - Smarty. - - - - Hal paling sederhana untuk menghindari situasi sekaligus adalah dengan - memisahkan kode Javascript dan CSS anda ke dalam filenya sendiri dan - kemudian menggunakan metode standar HTML untuk mengaksesnya. - - - - Menyertakan konten literal dimungkinkan dengan menggunakan blok - {literal}..{/literal}. - Mirip dengan penggunaan entitas HTML, anda bisa memakai {ldelim},{rdelim} atau - - {$smarty.ldelim} untuk menampilkan pembatas saat - ini. - - - - Seringkali lebih nyaman dengan cukup mengubah - $left_delimiter dan - - $right_delimiter Smarty. - - - contoh mengubah pembatas - -left_delimiter = ''; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - Di mana template adalah: - - - to Smarty - -]]> - - - - diff --git a/docs/id/designers/language-basic-syntax/language-math.xml b/docs/id/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 0ae1df1e..00000000 --- a/docs/id/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - Matematika - - Matematika dapat diterapkan secara langsung ke nilai variabel. - - - contoh matematika - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - - Lihat juga fungsi - {math} untuk persamaan yang kompleks dan - {eval}. - - - diff --git a/docs/id/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/id/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index a131e28e..00000000 --- a/docs/id/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Atribut - - Kebanyakan fungsi - memerlukan atribut yang menetapkan atau mengubah perilakunya. Atribut - bagi fungsi Smarty lebih mirip atribut HTML. Nilai statis tidak perlu - ditutup dengan tanda kutip, tapi direkomendasikan untuk string literal. - Variabel bisa juga dipakai, dan tidak boleh dalam tanda kutip. - - - Beberapa atribut memerlukan nilai boolean (&true; atau &false;). Ini dapat - ditetapkan sebagai tanpa tanda kutip true, - on, dan yes, atau - false, off, dan - no. - - - sintaks atribut fungsi - - - {html_options options=$companies selected=$company_id} - -]]> - - - - diff --git a/docs/id/designers/language-basic-syntax/language-syntax-comments.xml b/docs/id/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index ac52d25e..00000000 --- a/docs/id/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - Komentar - - Komentar template dikelilingi oleh bintang, dan ditutup oleh tag - pembatas - seperti: - - - - - - - - Komentar Smarty TIDAK ditampilkan dalam output template final, tidak seperti - <!-- HTML comments -->. - Ini berguna untuk membuat catatan internal dalam template yang tak seorangpun - akan melihatnya ;-) - - - Komentar di dalam template - - - -{$title} - - - -{* komentar smarti satu baris lainnya *} - - -{* ini komentar smarty - multi baris - tidak dikirimkan ke browser -*} - -{********************************************************* -Blok komentar multi baris dengan blok penghargaan - @ pembuat: bg@example.com - @ pemeliharan support@example.com - @ para: var yang menetapkan gaya blok - @ css: gaya output -**********************************************************} - -{* File header dengan logo utama dan lainnya *} -{include file='header.tpl'} - - -{* Catatan Dev: var $includeFile ditempatkan dalam naskah foo.php *} - -{include file=$includeFile} - -{* blok - {html_options options=$vals selected=$selected_id} - -*} - - -{* $affiliate|upper *} - -{* you cannot nest comments *} -{* - -*} - - -{* tag cvs untuk template, di bawah 36 HARUS kurs amerika -. akan tetapi ia diubah dalam cvs.. *} -{* $Id: Exp $ *} -{* $Id: *} - - -]]> - - - - diff --git a/docs/id/designers/language-basic-syntax/language-syntax-functions.xml b/docs/id/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 12c051a4..00000000 --- a/docs/id/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - Fungsi - - Setiap tag Smarty bisa mencetak - variabel ataupun memanggil beberapa - fungsi. Ini diproses dan ditampilkan dengan menutupi fungsi dan - atributnya - di dalam pembatas seperti: - {funcname attr1='val1' attr2='val2'}. - - - sintaks fungsi - -{$name}! -{else} - hi, {$name} -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - - - - - - Kedua fungsi built-in - dan fungsi kustom - mempunyai sintaks yang sama di dalam template. - - - Fungsi built-in adalah - inner pekerjaan Smarty, seperti - {if}, - {section} dan - {strip}. - Tidak diperlukan untuk mengubah atau memodifikasinya. - - - Fungsi kustom adalah fungsi - tambahan - yang diimplementasikan via plugins. - Ini dapat diubah sesuai dengan yang anda sukai, atau anda bisa membuat yang - baru, - - {html_options} dan - {popup} - adalah contoh dari fungsi kustom. - - - - - Lihat juga register_function() - - - - diff --git a/docs/id/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/id/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index fc49b8e5..00000000 --- a/docs/id/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - Menyertakan Vars dalam Tanda Kutip Ganda - - - - - Smarty akan mengenali variabel - yang ditempati yang disertakan dalam - "tanda kutip ganda" selama nama variabel hanya berisi angka, huruf, garis bawah, - dan kurung[]. - Lihat penamaan - untuk lebih jelasnya. - - - - Dengan karakter lainnya, contohnya .titik atau - $object>referensi, maka variabel harus dikelilingi oleh - `tanda kutip mundur`. - - - Anda tidak bisa menyertakan - pengubah, ia harus selalu diterapkan - di luar tanda kutip. - - - - - Contoh sintaks - - - - - - - Contoh praktis - - - - - - - Lihat juga escape. - - - - diff --git a/docs/id/designers/language-basic-syntax/language-syntax-variables.xml b/docs/id/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index 94c08e55..00000000 --- a/docs/id/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - Variabel - - Variabel template dimulai dengan tanda $dolar. Ia dapat berisi angka, - huruf dan garis bawah, lebih mirip - variabel PHP. - Anda bisa mereferensi array dengan indeks secara numerik atau non-numerik. - Juga referensi properi dan metode obyek. - - Variabel file config - adalah kekecualian untuk sintaks $dolar dan sebaliknya direferensi dengan - sekeliling #tanda kris#, atau via variabel - - $smarty.config. - - - Variabel - -bar} <-- menampilkan properti obyek "bar" -{$foo->bar()} <-- menampilkan pengembalian nilai metode obyek "bar" -{#foo#} <-- menampilkan variabel file config "foo" -{$smarty.config.foo} <-- persamaan untuk {#foo#} -{$foo[bar]} <-- sintaks hanya benar dalam pengulangan, lihat {section} -{assign var=foo value='baa'}{$foo} <-- menampilkan "baa", lihat {assign} - -Banyak kombinasi lain yang dibolehkan - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- mengirimkan parameter -{"foo"} <-- nilai statis dibolehkan - -{* menampilkan variabel server "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - Request variables such as $_GET, - $_SESSION, etc are available via the - reserved - $smarty variable. - - - - Lihat juga - $smarty, - variabel config - {assign} - dan - assign(). - - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-capture.xml b/docs/id/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 691c880c..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - {capture} - - - {capture} dipakai untuk mengumpulkan output template antara - tag ke dalam variable daripada menampilkannya. Setiap konten antara - {capture name='foo'} dan {/capture} - yang dikumpulkan ke dalam variabel ditetapkan dalam atribut - name. - - Konten yang ditangkap dapat digunakan dalam template dari variabel $smarty.capture.foo - di mana foo adalah nilai yang dikirimkan dalam atribut name. - Jika anda tidak menyertakan atribut name, maka - default akan dipakai sebagai nama misalnya - $smarty.capture.default. - - {capture}'s dapat diulang-ulang. - - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - name - string - no - default - The name of the captured block - - - assign - string - No - n/a - The variable name where to assign the captured output to - - - - - - - - Perhatian - - Harap berhati-hati ketika menangkap output {insert}. Jika - anda menghidupkan - $caching - dan anda mempunyai perintah - {insert} - yang anda harapkan untuk dijalankan di dalam konten yang di-cache, jangan - menangkap konten ini. - - - - - - {capture} dengan atribut nama - -{$smarty.capture.banner} -{/if} -]]> - - - - - {capture} ke dalam variabel template - Contoh ini juga memperlihatkan fungsi - {popup} - - - -IP anda adalah {$smarty.server.REMOTE_ADDR}. -{/capture} -bantuan -]]> - - - - - - - Lihat juga - $smarty.capture, - {eval}, - {fetch}, - fetch() - dan {assign}. - - - - \ No newline at end of file diff --git a/docs/id/designers/language-builtin-functions/language-function-config-load.xml b/docs/id/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 19a33ff3..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - - {config_load} - - {config_load} dipakai untuk mengambil - #variables# - konfig dari file konfigurasi ke dalam - template. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - file - string - Yes - n/a - Nama file config untuk disertakan - - - section - string - No - n/a - Nama seksi untuk diambil - - - scope - string - no - lokal - - Bagaimana lingkup variabel yang diambil diperlakukan, yang harus berupa - lokal, parent atau global. Lokal berarti variabel diambil ke dalam konteks - template lokal. parent berarti variabel diambil ke dalam konteks lokal - dan template leluhur yang memanggilnya. - global berarti variabel tersedia bagi seluruh template. - - - - global - boolean - No - No - - Apakah variabel terlihat ke template leluhurnya atau tidak, - sama seperti scope=parent. CATATAN: Atribut ini tidak dipakai lagi - oleh atribut scope, tapi masih didukugn. Jika scope disertakan, - nilai ini diabaikan. - - - - - - - - {config_load} - - File example.conf. - - - - - dan template - - -{#pageTitle#|default:"No title"} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - File Config - dapat juga berisi seksi. Anda bisa mengambil variabel dari dalam seksi - dengan menambahkan atribut section. Catatan bahwa - variabel config global selalu diambil bersamaan dengan variabel seksi, - dan variabel seksi bernama-sama menimpa global. - - - - Seksi file config dan fungsi template built-in - memanggil {section} - tidak ada kaitannya dengan yang lain, itu terjadi untuk berbagi konvensi - penamaan umum. - - - - function {config_load} dengan seksi - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - -Lihat $config_overwrite -untuk membuat arrays dari variabel file config. - - - - Lihat juga halaman config files, halaman - config variables, - $config_dir, - get_config_vars() - dan - config_load(). - -
      - - diff --git a/docs/id/designers/language-builtin-functions/language-function-foreach.xml b/docs/id/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index dee97e11..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,459 +0,0 @@ - - - - {foreach},{foreachelse} - - {foreach} dipakai untuk mengulang terus-menerus melalui - array asosiatif juga array-diindeks secara - numerik, tidak seperti {section} - yang untuk mengulang melalui hanya array-diindeks secara numerik. - Sintaks untuk - {foreach} jauh lebih mudah daripada - {section}, - tapi sebagai imbalannya hanya bisa dipakai untuk array - tunggal. Setiap tag {foreach} harus - dipasangkan dengan tag {/foreach} penutup. - - - - - - - - - - - - Attribute Name - Type - Required - Default - Description - - - - - from - array - Yes - n/a - Array yang anda ulang terus - - - item - string - Yes - n/a - Nama variabel yang jadi elemen saat ini - - - key - string - No - n/a - Nama variabel yang saat ini jadi kunci - - - name - string - No - n/a - Nama perulangan foreach untuk mengakses properti - - - - - - - - - Atribut yang diperlukan adalah from dan item. - - - - Name dari pengulangan {foreach} - bisa apa saja yang anda sukai, terdiri dari huruf, angka dan garis bawah, - seperti - variabel PHP. - - - - Pengulangan {foreach} bisa diulang terus, dan nama - {foreach} yang diulang harus unik dari yang lain. - - - - Atribut from, biasanya sebuah array nilai, - menetapkan jumlah berapa kali {foreach} akan diulang. - - - - {foreachelse} dijalankan ketika tidak ada nilai dalam - variabel from. - - - - Pengulangan {foreach} juga memiliki variabelnya - sendiri yang menangani properti. Ini diakses dengan: - - {$smarty.foreach.name.property} dengan - name menjadi atribut - name. - - - Catatan - Atribut name hanya diperlukan saat anda ingin - mengakses properti {foreach}, tidak seperti - {section}. - Mengakses properti {foreach} dengan name - tidak terdefinisi tidak menimbulkan kesalahan, tapi sebaliknya - mengakibatkan hasil yang tidak diinginkan. - - - - - - Properti {foreach} adalah - index, - iteration, - first, - last, - show, - total. - - - - - - Atribut <parameter>item</parameter> - -assign('myArray', $arr); -?> -]]> - - Template untuk ditampilkan $myArray dalam daftar tidak-berurut - - -{foreach from=$myArray item=foo} -
    • {$foo}
    • -{/foreach} -
    -]]> - - - Contoh di atas akan menampilkan: - - - -
  • 1000
  • -
  • 1001
  • -
  • 1002
  • - -]]> -
    - - - - Mendemonstrasikan atribut <parameter>item</parameter> dan <parameter>key</parameter> - - 'Tennis', 3 => 'Swimming', 8 => 'Coding'); -$smarty->assign('myArray', $arr); -?> -]]> - - Template untuk ditampilkan $myArray sebagai - pasangan kunci/nilai, seperti - foreach - PHP. - - -{foreach from=$myArray key=k item=v} -
  • {$k}: {$v}
  • -{/foreach} - -]]> -
    - - Contoh di atas akan menampilkan: - - - -
  • 9: Tennis
  • -
  • 3: Swimming
  • -
  • 8: Coding
  • - -]]> -
    -
    - - - - {foreach} dengan asosiatif atribut <parameter>item</parameter> - - array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') - ); -$smarty->assign('items', $items_list); -?> -]]> - - Template untuk ditampilkan $items dengan - $myId dalam url - - -{foreach from=$items key=myId item=i} -
  • {$i.no}: {$i.label}
  • -{/foreach} - -]]> -
    - - Contoh di atas akan menampilkan: - - - -
  • 2456: Salad
  • -
  • 4889: Cream
  • - -]]> - -
    - - - {foreach} dengan pengulangan <parameter>item</parameter> dan <parameter>key</parameter> - Menempatkan array ke Smarty, kunci berisi kunci untuk setiap nilai - yang diulang. - -assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - - Template yang menampilkan $contact. - - - {foreach key=key item=item from=$contact} - {$key}: {$item}
    - {/foreach} -{/foreach} -]]> -
    - - Contoh diatas akan menampilkan: - - - - phone: 1
    - fax: 2
    - cell: 3
    -
    - phone: 555-4444
    - fax: 555-3333
    - cell: 760-1234
    -]]> -
    -
    - - - Contoh database dengan {foreachelse} - Contoh database (seperti PEAR atau ADODB) dari naskah pencarian, hasil query - ditempatkan ke Smarty - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - Template yang menampilkan None found - jika tidak ada hasil dengan {foreachelse}. - -{$con.name} - {$con.nick}

    -{foreachelse} - No items were found in the search -{/foreach} -]]> - - - - - - .index - - index berisi indeks array saat ini, dimulai dengan nol. - - - contoh <parameter>index</parameter> - - - -{foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - Title - {/if} - {$i.label} -{/foreach} - -]]> - - - - - - .iteration - - iteration berisi iterasi perulangan saat ini dan - selalu dimulai dari satu, tidak seperti - indeks. - Ia bertambah satu setiap kali iterasi. - - - contoh <parameter>iteration</parameter> dan <parameter>indeks</parameter> - - - - - - - - - .first - - first adalah &true; jika iterasi {foreach} - saat ini adalah yang awal. - - - contoh properti <parameter>first</parameter> - - -{foreach from=$items key=myId item=i name=foo} - - {if $smarty.foreach.foo.first}LATEST{else}{$myId}{/if} - {$i.label} - -{/foreach} - -]]> - - - - - - .last - - last disetel &true; jika iterasi - {foreach} saat ini adalah yang terakhir. - - - contoh properti <parameter>last</parameter> - -{$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} - ... konten ... -{/foreach} -]]> -
    -
    -
    - - - .show - - show dipakai sebagai parameter untuk {foreach}. - show adalah nilai boolean. Jika &false;, - {foreach} tidak akan ditampilkan. Jika terdapat - {foreachelse}, akan ditampilkan secara selang-seling. - - - - - .total - - total berisi jumlah iterasi yang akan diulang - {foreach}. - Ini dapat digunakan di dalam atau setelah {foreach}. - - - contoh properti <parameter>total</parameter> - -
    -{if $smarty.foreach.foo.last} -
    {$smarty.foreach.foo.total} items
    -{/if} -{foreachelse} - ... something else ... -{/foreach} -]]> -
    -
    - - - Lihat juga {section} - dan $smarty.foreach. - -
    - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-if.xml b/docs/id/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 3bc21763..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,263 +0,0 @@ - - - - {if},{elseif},{else} - - Pernyataan {if} dalam Smarty memiliki kesamaan - fleksibilitas seperti pernyataan PHP if, - dengan beberapa fitur yang ditambahkan untuk mesin template. - Setiap {if} harus dipasangkan dengan - {/if} yang sama. {else} dan - {elseif} juga dibolehkan. Semua kondisional dan fungsi PHP - dikenal, seperti ||, or, - &&, and, - is_array(), dll. - - - Jika $security - dihidupkan, hanya fungsi PHP dari array IF_FUNCS dari $security_settings - yang dibolehkan. - - - Berikut adalah daftar kualifikator yang dikenal yang harus dipisahkan dari - elemen yang dikelilingi oleh spasi. Catatan bahwa item terdaftar dalam - [kurung] adalah opsional. Persamaan PHP ditampilkan bila memungkinkan. - - - - - - - - - - - - Kualifikator - Pembeda - Contoh Sintaks - Arti - Persamaan PHP - - - - - == - eq - $a eq $b - sama - == - - - != - ne, neq - $a neq $b - tidak sama - != - - - > - gt - $a gt $b - lebih besar dari - > - - - < - lt - $a lt $b - kurang dari - < - - - >= - gte, ge - $a ge $b - lebih besar atau sama - >= - - - <= - lte, le - $a le $b - kurang dari atau sama - <= - - - === - - $a === 0 - periksa identitas - === - - - ! - not - not $a - negasi (unari) - ! - - - % - mod - $a mod $b - modulus - % - - - is [not] div by - - $a is not div by 4 - bisa dibagi dengan - $a % $b == 0 - - - is [not] even - - $a is not even - [bukan] angka genap (unari) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - tingkat pengelompokan [bukan] genap - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [bukan] angka ganjil (unari) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [bukan] pengelompokan ganjil - ($a / $b) % 2 != 0 - - - - - - pernyataan {if} - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - - -{* anda juga bisa menyertakan fungsi panggil php *} -{if count($var) gt 0} - ... -{/if} - -{* periksa array. *} -{if is_array($foo) } - ..... -{/if} - -{* periksa untuk yang bukan null. *} -{if isset($foo) } - ..... -{/if} - - -{* uji apakah nilai genap atau ganjil *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* uji apakah var bisa dibagi dengan 4 *} -{if $var is div by 4} - ... -{/if} - - -{* - uji apakah var genap, dikelompokan oleh dua. misalnya, - 0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, dst. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - - - - - - contoh {if} berikutnya - - 0) - {* lakukan untuk setiap pengulangan *} -{/if} - ]]> - - - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-include-php.xml b/docs/id/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index a7ad8300..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - {include_php} - - Catatan Teknis - - {include_php} tidak lagi dipakai oleh Smarty, anda bisa - melakukan fungsionalitas yang sama melalui fungsi template kustom. - Satu-satunya alasan untuk menggunakan {include_php} - adalah jika anda benar-benar perlu untuk mengkarantina fungsi php jauh - dari direktori - plugins/ - atau kode aplikasi anda. Lihat contoh mengkomponenkan template - agar lebih jelas. - - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - file - string - Ya - n/a - Nama file php untuk disertakan - - - once - boolean - Tidak - &true; - Apakah file php perlu disertakan lebih dari sekali atau tidak - jika disertakan berkali-kali - - - assign - string - Tidak - n/a - Nama variabel yang outputnya akan ditempati oleh include_php - - - - - - - Tag {include_php} dipakai untuk menyertakan naskah php - dalam template anda. - Jika $security dihidupkan, - maka naskah php harus ditempatkan dalam path $trusted_dir. - Tag {include_php} harus mempunyai atribut - file, yang berisi path ke file php yang disertakan, baik - relatif ke $trusted_dir, - ataupun path absolut. - - - Standarnya, file php hanya disertakan sekali meskipun dipanggil - berkali-kali dalam template. Anda dapat menetapkan bahwa ia harus - disertakan setiap kali dengan atribut once. - Setelan once ke &false; akan menyertakan naskah php setiap kali ia - disertakan dalam template. - - - Secara opsional anda bisa mengirimkan atribut assign, - yang akan menetapkan nama variabel yang outputnya akan - {include_php} tempati daripada ditampilkan. - - - Obyek smarty tersedia sebagai $this di dalam - naskah PHP yang anda sertakan. - - - fungsi {include_php} - File load_nav.php: - -query('select url, name from navigation order by name'); -$this->assign('navigation', $db->getRows()); - -?> -]]> - - - di mana template adalah: - - -{$nav.name}
    -{/foreach} -]]> -
    -
    - - Lihat juga {include}, - $security, -$trusted_dir, - {php}, {capture}, sumber daya dan mengkomponenkan template -
    - diff --git a/docs/id/designers/language-builtin-functions/language-function-include.xml b/docs/id/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 18eb7348..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,216 +0,0 @@ - - - - {include} - - Tag {include} dipakai untuk menyertakan template lain - dalam template saat ini. Setiap variabel yang tersedia dalam template - saat ini juga tersedia di dalam template yang disertakan. - - - - - Tag {include} harus mempunyai atribut - file yang berisi path sumber daya template. - - - - Menyetel atribut opsional assign menetapkan variabel - template yang menempatkan {include} ke output, daripada - ditampilkan. Mirip dengan - {assign}. - - - - Variabel bisa dikirimkan ke template yang disertakan sebagai - atribut. - Setiap variabel yang dikirimkan secara eksplisit ke template - yang disertakan hanya tersedia di dalam lingkup file yang - disertakan. Variabel atribut menimpa variabel template saat - ini, dalam hal ketika bernama sama. - - - - Semua nilai variabel yang ditempatkan dikembalikan setelah lingkup - template yang disertakan tidak ada. Ini berarti anda dapat menggunakan - semua variabel termasuk template di dalam template yang disertakan. - Tapi perubahan variabel di dalam template yang disertakan tidak terlihat - di dalam template yang menyertakan setelah pernyataan - {include}. - - - - Gunakan sintaks sumber daya template - untuk {include} file di luar direktori - $template_dir. - - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - file - string - Ya - n/a - Nama file template yang disertakan - - - assign - string - Tidak - n/a - Nama variabel yang outputnya akan ditempati - - - [var ...] - [var type] - Tidak - n/a - variabel untuk mengirimkan lokal ke template - - - - - - - Contoh {include} sederhana - - - - {$title} - - -{include file='page_header.tpl'} - -{* badan template di sini, variabel $tpl_name diganti dengan - nilai misalnya 'contact.tpl' -*} -{include file="$tpl_name.tpl"} - -{include file='page_footer.tpl'} - - -]]> - - - - - variabel pengiriman {include} - - - - Template di atas menyertakan contoh links.tpl - di bawah ini. - - -

    {$title}{/h3> -
      -{foreach from=$links item=l} -.. do stuff ... - - -]]> - - - - - - {include} and assign to variable - This example assigns the contents of nav.tpl - to the $navbar variable, - which is then output at both the top and bottom of the page. - - - - {include file='nav.tpl' assign=navbar} - {include file='header.tpl' title='Smarty is cool'} - {$navbar} - {* badan template di sini *} - {$navbar} - {include file='footer.tpl'} - -]]> - - - - - Contoh berbagai sumber daya {include} - - - - - - Lihat juga - {include_php}, - {insert}, - {php}, - sumber daya template dan - mengkomponenkan template. - - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-insert.xml b/docs/id/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 8a13e8e6..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - {insert} - - Tag {insert} bekerja sangat mirip dengan tag {include}, - kecuali bahwa tag {insert} TIDAK di-cache ketika - caching template dihidupkan. Ia akan - dijalankan pada setiap permintaan template. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Ya - n/a - Nama fungsi insert (insert_name) - - - assign - string - Tidak - n/a - Nama variabel template yang outputnya akan ditempati - - - script - string - Tidak - n/a - Nama naskah php yang disertakan sebelum fungsi insert dipanggil - - - [var ...] - [var type] - Tidak - n/a - variabel untuk mengirimkan fungsi insert - - - - - - - - Katakanlah anda mempunyai template dengan slot spanduk di atas halaman. - Spanduk bisa berisi campuran HTML, gambar, flash, dll. maka kita tidak bisas - cukup menggunakan link statis di sini, dan kita tidak ingin konten ini - di-cache dengan halaman. Sampailah tag {insert}: template mengetahui - #banner_location_id# dan nilai #site_id# (dikumpulkan dari - file config), dan perlu untuk - memanggil fungsi guna memperoleh konten spanduk. - - - fungsi {insert} - -{* contoh mengambil spanduk *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - Pada contoh ini, kita menggunakan nama getBanner dan - mengirimkan parameter #banner_location_id# dan #site_id#. Smarty akan - mencari fungsi bernama insert_getBanner() dalam aplikasi PHP anda, - mengirimkan nilai #banner_location_id# dan #site_id# sebagai argumen - pertama dalam array asosiatif. Semua nama fungsi {insert} dalam aplikasi - anda harus didahului dengan "insert_" guna menghindari kemungkinan - konflik ruang-nama fungsi. Fungsi insert_getBanner() anda harus melakukan - sesuatu dengan nilai yang dikirimkan dan mengembalikan hasil. Hasil ini - kemudian ditampilkan dalam template di tempat tag {insert}. Dalam contoh - ini, Smarty akan memanggil fungsi ini: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - dan menampilkan hasil yang dikembalikan di tempat tag {insert}. - - - - Jika anda menyertakan atribut assign, output - dari tag {insert} akan ditampati variabel template - ini daripa menjadi output bagi template. - - - Menempatkan output ke variabel template tidak terlalu berguna jika - caching dihidupkan. - - - - - - Jika anda menyertakan atribut script, naskah php ini - akan disertakan (hanya sekali) sebelum funsi {insert} - dijalankan. Ini kasus di mana fungsi insert mungkin belum ada, dan naskah php - harus disertakan lebih dulu agar ia bekerja. - - - Path dapat berupa absolut, atau relatif ke - $trusted_dir. - Ketika $security - dihidupkan, naskah harus berada dalam - $trusted_dir. - - - - Obyek Smarty dikriimkan sebagai argumen kedua. Dengan cara ini anda dapat - mereferensi dan mengubah informasi dalam obyek Smarty dari dalam fungsi - {insert}. - - - Catatan Teknis - - Dimungkinkan bagian template tidal di-cache. Jika anda menghidupkan - caching, tag {insert} - tidak akan di-cache. Ia akan dijalankan secara dinamis setiap kali - halaman dibuat, bahkan di dalam halaman yang di-cache. Ini bekerja baik - untuk hal-hal seperti spanduk, polling, laporan cuaca, hasil pencarian, - area umpan balik pengguna, dll. - - - - Lihat juga - {include} - - - \ No newline at end of file diff --git a/docs/id/designers/language-builtin-functions/language-function-ldelim.xml b/docs/id/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0c58f6f5..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - {ldelim},{rdelim} - - {ldelim} dan {rdelim} dipakai untuk - melepaskan pembatas template, - standarnya { dan }. - Anda juga bisa memakai - {literal}{/literal} - untuk membatasi blok teks misalnya Javascript atau CSS. - Lihat juga {$smarty.ldelim} - tambahan. - - - {ldelim}, {rdelim} - - - - - Contoh di atas akan menghasilkan: - - - - - Contoh lain dengan beberapa Javascript - - -function foo() {ldelim} - ... kode ... -{rdelim} - -]]> - - - akan menghasilkan - - - -function foo() { - .... kode ... -} - -]]> - - - - - - Contoh Javascript lain - - - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} - -Click here for Server Info -]]> - - - - Lihat juga - {literal} - dan escaping penguraian Smarty. - - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-literal.xml b/docs/id/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index e71533e1..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - {literal} - - Tag {literal} membolehkan blok data diambil secara literal. - Ini biasanya dipakai sekitar blok Javascript atau stylesheet di mana - {kurung kurawal} akan berpengaruh dengan sintaks - pembatas template. Apapun di - dalam tag {literal}{/literal} tidak diinterpretasikan, but displayed as-is. - If you need template tags embedded in a {literal} block, consider using - {ldelim}{rdelim} to escape the - individual delimiters instead. - - - - {literal} tags - - - - -{/literal} -]]> - - - - - Javascript function example - - -{literal} -function myJsFunction(name, ip){ - alert("The server name\n" + name + "\n" + ip); -} -{/literal} - -Click here for the Server Info - ]]> - - - - - Some css style in a template - - -{literal} -/* this is an intersting idea for this section */ -.madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; -} -{/literal} - -
      With smarty you can embed CSS in the template
      -]]> -
      -
      - - - See also - {ldelim} {rdelim} - and the - escaping Smarty parsing page. - -
      - - diff --git a/docs/id/designers/language-builtin-functions/language-function-php.xml b/docs/id/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 6a0bf73d..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - {php} - - Tag {php} membolehkan kode PHP untuk disertakan secara - langsung ke dalam template. Ia tidak akan diberi escape, mengabaikan setelan $php_handling. - Ini hanya untuk pengguna tingkat lanjut, normalnya tidak perlukan dan - tidak direkomendasikan. - - -Catatan Teknis - - Untuk mengakses variabel PHP dalam blok {php} anda perlu - menggunakan kata kunci - global. - - - - - kode php dalam tag {php} - - - - - - - - tag {php} dengan variabel global dan penempatan - -assign('varX','Toffee'); -{/php} -{* keluarkan variabel *} -{$varX} is my fav ice cream :-) -]]> - - - - - Lihat juga - $php_handling, - {include_php}, - {include}, - {insert} - dan - template yang dikomponenkan. - - - diff --git a/docs/id/designers/language-builtin-functions/language-function-section.xml b/docs/id/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 262323aa..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,826 +0,0 @@ - - - - {section},{sectionelse} - - {section} - adalah untuk mengulang melalui array data, - tidak seperti {foreach} - yang dipakai untuk mengulang melalui - satu array asosiatif. - Setiap {section} tag harus dipasangkan dengan - penutup{/section} tag. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Ya - n/a - Nama seksi - - - loop - mixed - Ya - n/a - Nilai untuk menentukan sumber iterasi pengulangan - - - start - integer - Tidak - 0 Posisi indeks - di mana seksi akan diulang. Jika nilai negatif, awal - posisi dihitung dari akhir array. Sebagai contoh, - jika ada tujuh nilai dalam pengulangan array dan awalnya - adalah -2, indeks awal adalah 5. Nilai yang tidak benar - (nilai di luar panjang pengulangan array) otomatis - dipotong ke nilai terdekat yang benar. - - - step - integer - Tidak - 1 - Nilai step akan dipakai untuk melewati pengulangan array. - Sebagai contoh, step=2 akan berulang pada indeks 0,2,4, dst. - Jika step negatif, ia akan mundur kembali melewati array. - - - max - integer - Tidak - n/a - Menyetel angka maksimum berapa kali seksi akan mengulang. - - - show - boolean - Tidak - &true; - Menentukan apakan menampilkan seksi ini atau tidak - - - - - - - - Atribut yang diperlukan adalah name dan loop. - - - - name dari {section} bisa berupa - apapun yang anda suka, terdiri dari huruf, angka dan garis bawah, seperti - variabel PHP. - - - - {section} dapat diulang, dan nama {section} yang diulang - harus unik dari yang lainnya. - - - - Atribut loop, biasanya sebuah array nilai, menentukan - jumlah berapa kali {section} akan mengulang. Anda juga - dapat mengirimkan integer sebagai nilai pengulangan. - - - Ketika mencetak variabel di dalam {section}, - {section} name harus diberikan di - sebelah nama variabel dalam [kurung kotak]. - - - - {sectionelse} dijalankan saat tidak ada lagi nilai - dalam variabel loop. - - - - {section} juga memiliki variabelnya sendiri yang - menangani properti {section}. - Properti ini dapat diakses sebagai: - {$smarty.section.name.property} - di mana name adalah atribut name. - - - - properti {section} adalah - index, - index_prev, - index_next, - iteration, - first, - last, - rownum, - loop, - show, - total. - - - - - Mengulang array sederhana dengan {section} - -assign() array ke Smarty - - -assign('custid',$data); -?> -]]> - -Template yang menampilkan array - - -{/section} -
      -{* mengeluarkan semua nilai array $custid secara terbalik *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
      -{/section} -]]> -
      - - Contoh di atas akan menampilkan: - - - -id: 1001
      -id: 1002
      -
      -id: 1002
      -id: 1001
      -id: 1000
      -]]> -
      -
      - - - - {section} tanpa array yang ditempati - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - Contoh di atas akan menampilkan: - - - -20 18 16 14 12 10 -]]> - - - - - - Penamaan {section} - name dari {section} bisa apa - saja sesuai yang anda inginkan, lihat - variabel PHP. - Ini dipakai untuk mereferensi data di dalam {section}. - - - - - - - - Pengulangan array asosiatif dengan {section} - Ini adalah contoh pencetakan array data asosiatif dengan - {section}. Berikut adalah naskah php untuk menempatkan - array $contacts ke Smarty. - - 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - - -Template untuk menampilkan $contacts - - - name: {$contacts[customer].name}
      - home: {$contacts[customer].home}
      - cell: {$contacts[customer].cell}
      - e-mail: {$contacts[customer].email} -

      -{/section} -]]> -
      - - Contoh di atas akan menampilkan: - - - - name: John Smith
      - home: 555-555-5555
      - cell: 666-555-5555
      - e-mail: john@myexample.com -

      -

      - name: Jack Jones
      - home phone: 777-555-5555
      - cell phone: 888-555-5555
      - e-mail: jack@myexample.com -

      -

      - name: Jane Munson
      - home phone: 000-555-5555
      - cell phone: 123456
      - e-mail: jane@myexample.com -

      -]]> -
      -
      - - - {section} mendemonstrasikan variabel <varname>loop</varname> - Contoh ini mengasumsikan bahwa $custid, $name - dan $address adalah semua array yang berisi jumlah - nilai yang sama. Pertama naskah php menempatkan array ke Smarty. - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> - -Variabel loop hanya menentukan jumlah berapa kali - untuk mengulang. Anda dapat mengakses variabel MANAPUN dari template di dalam - {section} - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]} -

      -{/section} -]]> -
      - - Contoh di atas akan menampilkan: - - - - id: 1000
      - name: John Smith
      - address: 253 Abbey road -

      -

      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln -

      -

      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st -

      -]]> -
      -
      - - - - - {section} yang berulang - - {section} dapat diulang sedalam yang anda suka. Dengan {section} yang - diulang, anda bisa mengakses struktur data yang kompleks, seperti array - multi dimensi. Ini adalah contoh naskah .php yang - menempatkan array. - - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> - -Dalam contoh ini, $contact_type[customer] adalah - sebuah array tipe kontak untuk kustomer saat ini. - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]}
      - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
      - {/section} -{/section} -]]> -
      - - Contoh di atas akan menampilkan: - - - - id: 1000
      - name: John Smith
      - address: 253 N 45th
      - home phone: 555-555-5555
      - cell phone: 666-555-5555
      - e-mail: john@myexample.com
      -
      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln
      - home phone: 123-456-4
      - web: www.example.com
      -
      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st
      - cell phone: 0457878
      -]]> -
      -
      - - - -Contoh database dengan {sectionelse} - Hasil pencarian database (misal ADODB atau PEAR) ditempatkan ke Smarty - - assign('contacts', $db->getAll($sql)); -?> -]]> - -Template yang menampilkan hasil database dalam tabel HTML - - - Name>HomeCellEmail -{section name=co loop=$contacts} - - view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{sectionelse} - Tidak ada item yang ditemukan -{/section} - -]]> - - - - - - .index - - index berisi indeks array saat ini, dimulai dengan nol - atau atribut start bila diberikan. Ia bertambah satu - atau dengan atribut step bila diberikan. - - - Catatan Teknis - - Jika properti step dan start - tidak diubah, maka pekerjaan ini sama seperti properti iteration, - kecuali ia dimulai dengan nol daripada satu. - - - -{section} <varname>index</varname> property - -FYI -$custid[customer.index] dan -$custid[customer] adalah sama. - - - - -{/section} -]]> - - - Contoh di atas akan menampilkan: - - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - - - .index_prev - - index_prev adalah indeks pengulangan sebelumnya. - Pada pengulangan pertama, ini disetel -1. - - - - - .index_next - - index_next adalah indeks pengulangan berikutnya. - Pada pengulangan terakhir, ini masih satu lagi daripada indeks saat ini, - memperhatikan setelan atribut step, jika diberikan. - - - -properti <varname>index</varname>, <varname>index_next</varname> - dan <varname>index_prev</varname> - -assign('rows',$data); -?> -]]> - -Template untuk menampilkan array di atas dalam sebuah tabel - - - - indexid - index_prevprev_id - index_nextnext_id - -{section name=row loop=$rows} - - {$smarty.section.row.index}{$rows[row]} - {$smarty.section.row.index_prev}{$rows[row.index_prev]} - {$smarty.section.row.index_next}{$rows[row.index_next]} - -{/section} - -]]> - - - Contoh di atas akan menampilkan tabel yang berisi sebagai berikut: - - - - - - - - - - .iteration - - iteration berisi iterasi pengulangan saat ini dan - dimulai dari satu. - - - - Ini tidak dipengaruhi oleh properti {section} - start, step dan max, - tidak seperti properti - index. - iteration juga dimulai dengan satu daripada nol - tidak seperti index. rownum - adalah alias untuk iteration, keduanya sama. - - - -Properti <varname>iteration</varname> dari seksi - -assign('arr',$id); -?> -]]> - -Template untuk menampilkan setiap elemen lain array $arr -dengan step=2 - - -{/section} -]]> - - - Contoh di atas akan menampilkan: - - - -iteration=2 index=7 id=3007
      -iteration=3 index=9 id=3009
      -iteration=4 index=11 id=3011
      -iteration=5 index=13 id=3013
      -iteration=6 index=15 id=3015
      -]]> -
      - - Contoh lain yang menggunakan properti iteration untuk - mengeluarkan blok header tabel setiap lima baris. - Menggunakan fungsi {if} - dengan operator mod. - - - -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} -  Name>HomeCellEmail - {/if} - -
      view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{/section} - -]]> - - - - - - - .first - - first disetel &true; jika iterasi - {section} saat ini adalah yang pertama. - - - - - - .last - - last disetel &true; jika iterasi seksi saat ini - adalah yang terakhir. - - - properti {section} <varname>first</varname> dan <varname>last</varname> - - Contoh ini mengulang array $customers, mengeluarkan - blok header pada iterasi pertama dan terakhir mengeluarkan blok footer. - Juga menggunakan properti - total. - - - - idkustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} kustomer - - {/if} -{/section} -]]> - - - - - - - .rownum - - rownum berisi iterasi pengulangan saat ini, - dimulai dengan satu. Ini adalah nama lain dari iterasi, - cara kerjanya sama persis. - - - - - .loop - - loop berisi angka indeks terakhir yang mengulang - {section}. Ini bisa dipakai di dalam atau setelah {section}. - - - properti {section} <varname>loop</varname> - - -{/section} -Ada {$smarty.section.customer.loop} kustomer yang ditampilkan di atas. -]]> - - - Contoh di atas akan menampilkan: - - - -1 id: 1001
      -2 id: 1002
      -Ada 3 kustomer yang ditampilkan di atas. -]]> -
      -
      -
      - - - .show - - show dipakai sebagai parameter ke seksi dan berupa - nilai boolean. Jika &false;, seksi tidak akan ditampilkan. Jika terdapat - {sectionelse}, akan ditampilkan sebagai alternatif. - - - <varname>show</varname> properti - Boolean $show_customer_info sudah dikirimkan dari - aplikasi PHP, untuk mengatur apakah seksi ditampilkan atau tidak. - - -{/section} - -{if $smarty.section.customer.show} - seksi ditampilkan. -{else} - seksi tidak ditampilkan. -{/if} -]]> - - - Contoh di atas akan menampilkan: - - - -2 id: 1001
      -3 id: 1002
      - -the section was shown. -]]> -
      -
      -
      - - - .total - - total berisi jumlah iterasi yang akan - {section} mengulangnya. Ini bisa dipakai di dalam atau setelah - {section}. - - - <varname>total</varname> contoh properti - - -{/section} - Ada {$smarty.section.customer.total} kustomer yang ditampilkan di atas. -]]> - - - - Lihat juga {foreach} - dan - $smarty.section. - - -
      - - diff --git a/docs/id/designers/language-builtin-functions/language-function-strip.xml b/docs/id/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 2a3a8718..00000000 --- a/docs/id/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - {strip} - - Berulang kali desainer designers mengalami hal di mana spasi dan - tombol enter mempengarhui output dari HTML yang dibuatnya ("fitur" - browser), kemudian anda harus menjalankan semua tag anda bersamaan - dalam template guna memperoleh hasil yang diinginkan. Ini biasanya - berakhir dengan template yang tidak terbaca atau tidak teratur. - - - Apapun spasi ekstra atau tanda tombol enter di dalam tag - {strip}{/strip} dibuang di awal dan akhir baris - sebelum ditampilkan. Dengan cara ini anda bisa memelihara template - mudah dibaca, dan tidak mencemaskan tentang spasi ekstra yang - menyebabkan masalah. - - - - {strip}{/strip} tidak mempengaruhi isi dari - variabel template, sebaliknya lihat - pengubah strip. - - - - tag {strip} - - - - - - This is a test - - - - -{/strip} -]]> - - - Contoh di atas akan menampilkan: - - -strip. - - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-assign.xml b/docs/id/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 64b5fdf0..00000000 --- a/docs/id/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - {assign} - - {assign} dipakai untuk menempatkan variabel template - selama eksekusi sebuah template. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - var - string - Ya - n/a - Nama variabel yang ditempati - - - value - string - Ya - n/a - Nilai yang ditempatkan - - - - - - - {assign} - - - - - Contoh di atas akan menampilkan: - - - - - - - - {assign} with some maths -Contoh kompleks harus memiliki variabel dalam `tanda kutip terbalik` - - - - - - - - Mengakses variabel {assign} dari naskah PHP - - Untuk mengakses variabel {assign} dari naskah php - menggunakan - get_template_vars(). - Ini adalah template yang membuat variabel $foo. - - - - -Variabel template hanya tersedia setelah/selama eksekusi template seperti - dalam naskah berikut. - - -get_template_vars('foo'); - -// ambil template ke variabel -$whole_page = $smarty->fetch('index.tpl'); - -// ini akan menampilkan 'smarty' karena template sudah dieksekusi -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// ini akan menampilkan 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - - Fungsi berikut dapat juga secara opsional menempatkan - variabel template. - - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math}, - {textformat} - - - - Lihat juga assign() - dan - get_template_vars(). - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-counter.xml b/docs/id/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 73d24a8f..00000000 --- a/docs/id/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - {counter} - - {counter} dipakai untuk mengeluarkan jumlah. - {counter} akan mengingat jumlah pada setiap - pengulangan. Anda dapat menyesuaikan jumlah, interval dan arah - penghitungan, juga menentukan apakah menampilkan nilai atau tidak. - Anda dapat menjalankan multipel penghitung secara konkuren dengan - menyertakan masing-masing dengan nama yang unik. Jika anda tidak - menyertakan sebuah nama, nama default akan dipakai. - - - Jika anda menyertakan atribut assign, keluaran - dari fungsi {counter} akan ditempatkan ke variabel - template ini daripada dikeluarkan ke template. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Tidak - default - Nama penghitung - - - start - number - Tidak - 1 - Angka awal untuk memulai perhitungan - - - skip - number - Tidak - 1 - Interval untuk setiap perhitungan - - - direction - string - Tidak - up - Arah perhitungan (naik/turun) - - - print - boolean - Tidak - &true; - Apakan memperlihatkan nilai atau tidak - - - assign - string - Tidak - n/a - variabel template di mana output akan ditempatinya - - - - - - - {counter} - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - Ini akan menampilkan: - - - -2
      -4
      -6
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-cycle.xml b/docs/id/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 5a1988d7..00000000 --- a/docs/id/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - {cycle} - - {cycle} dpakai untuk mengganti satu set nilai. - Ini memudahkan misalnya, mengganti antara dua atau lebih warna dalam - sebuah tabel, atau berputar melalui array nilai. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Tidak - default - Nama cycle - - - values - mixed - Ya - N/A - Nilai untuk berputar, bisa daftar dipisahkan koma - (lihat atribut pembatas), atau array nilai - - - print - boolean - Tidak - &true; - Apakah mencetak nilai atau tidak - - - advance - boolean - Tidak - &true; - Apakah maju ke nilai berikutnya - - - delimiter - string - Tidak - , - Pembatas yng dipakai dalam atribut nilai - - - assign - string - Tidak - n/a - Variabel template yang akan ditempati output - - - reset - boolean - Tidak - &false; - Perputaran akan disetel ke nilai pertama dan tidak dimajukan - - - - - - - - Anda bisa {cycle} melalui lebih dari satu set nilai - dalam sebuah template dengan menyertakan atribut name. - Beri setiap {cycle} name yang - unik. - - - Anda dapat memaksa nilai saat ini untuk mencetak dengan atribut - print disetel ke &false;. Ini berguna untuk - melewati sebuah nilai secara diam-diam. - - - Atribut advance dipakai untuk mengulang nilai, - Ketika disetel ke &false;, panggilan berikutnya ke {cycle} - akan mencetak nilai yang sama. - - - Jika anda menyertakan atribut assign, output dari - fungsi {cycle} akan ditempatkan ke variabel template - daripada ke template. - - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - Template di atas akan memperlihatkan: - - - 1 - - - 2 - - - 3 - -]]> - - - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-debug.xml b/docs/id/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 5cb752bc..00000000 --- a/docs/id/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - {debug} - - {debug} mengeluarkan konsol debug ke halaman. Ini bekerja - mengabaikan setelan debug - dalam naskah php. Karena ini dieksekusi saat runtime, ini hanya dapat - menampilkan variabel yang ditempatkan; - bukan templates yang sedang digunakan. Akan tetapi, anda bisa melihat - semua variabel yang tersedia saat ini dalam lingkup template. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - output - string - Tidak - javascript - tipe output, html atau javascript - - - - - - - Lihat juga - halaman konsol debugging. - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-eval.xml b/docs/id/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index ce1efa37..00000000 --- a/docs/id/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - {eval} - - {eval} dipakai untuk mengevaluasi sebuah variabel - sebagai template. - Ini bisa dgunakan untuk hal seperti menyertakan tag/variabel template - ke dalam variabel atau tag/variabel template ke dalam file config. - - - Jika anda menyertakan atribut assign, output dari - fungsi {eval} akan ditempatkan ke variabel template - ini daripada ke template. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - var - mixed - Ya - n/a - Variabel (atau string) untuk mengevaluasi - - - assign - string - Tidak - n/a - Variabel template yang akan ditempati output - to - - - - - - - Catatan Teknis - - - - Variabel yang dievaluasi diperlakukan sama seperti template. Mengikuti - fitur pengeluaran dan keamanan yang sama seolah-olah sebuah template. - - - - Variabel yang dievaluasi dikompilasi setiap kali permintaan, versi - terkompilasi tidak disimpan! Akan tetapi jika anda menghidupkan - caching, output akan di-cache - dengan sisa template. - - - - - - - {eval} -Isi dari file config, setup.conf. - - -emphend = -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - - - Di mana template adalah: - - - - - - Template di atas akan menampilkan: - - -city. -You must supply a state. -]]> - - - - - Contoh {eval} lainnya - Ini menampilkan nama server (in uppercase) dan IP. Variabel yang - ditempati $str berasal dari query database. - - assign('foo',$str); -?> - ]]> - - - Di mana template adalah: - - - - - - - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-fetch.xml b/docs/id/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 77ae98af..00000000 --- a/docs/id/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - {fetch} - - {fetch} dipakai untuk mengambil file dari sistem file - lokal, http, atau ftp dan menampilkan konten. - - - - - Jika nama file diawali dengan - http://, halaman situs web akan diambil dan - ditempilkan. - - - Ini tidak akan mendukung pengalihan http, pastikan untuk menyertakan - garis miring terakhir pada halaman web yang anda ambil bila - diperlukan. - - - - - - Jika nama file diawali dengan ftp://, file akan - di-download dari server ftp dan ditampilkan. - - - - Untuk file lokal, harus memberikan baik path file sistem lengkap ataupun - path relatif ke naskah php yang dijalankan. - - - Jika template - $security - dihidupkan dan anda sedang mengambil file dari sistem file lokal, - {fetch} hanya akan membolehkan file dari dalam - salah satu yang didefinisikan dalam - will only allow files from within one of the defined - direktori aman. - - - - - - Jika atribut assign disetel, output fungsi - {fetch} akan ditempatkan ke variabel template - ini daripada ke template. - - - - - - - - - - - - - Nama Atribut - Type - Diperlukan - Default - Deskripsi - - - - - file - string - Ya - n/a - File, http atau situs ftp untuk diambil - - - assign - string - Tidak - n/a - Variabel template yang akan ditempati - - - - - - - - contoh {fetch} - -{$weather} -{/if} -]]> - - - - Lihat juga - {capture}, - {eval}, - {assign} - dan - fetch(). - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 4e9ed005..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,236 +0,0 @@ - - - - {html_checkboxes} - - {html_checkboxes} adalah - fungsi kustom - yang membuat grup kotak centang html dengan data yang disediakan. - Ia menangani item-item yang dipilihnya juga. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Tidak - checkbox - Name daftar kotak centang - - - values - array - Ya, kecuali memakai atribut options - n/a - Sebuah array nilai untuk tombol kotak centang - - - output - array - Ya, kecuali memakai atribut options - n/a - Output array untuk tombol kotak centang - - - selected - string/array - Tidak - empty - Elemen kotak centang yang dipilih - - - options - associative array - Ya, kecuali memakai nilai dan output - n/a - Array nilai asosiatif dan output - - - separator - string - Tidak - empty - String teks untuk memisahkan setiap item kotak centang - - - assign - string - Tidak - empty - Menempatkan tag kotak centang ke array daripada output - - - labels - boolean - Tidak - &true; - Menambahkan tag <label> ke output - - - assign - string - Tidak - empty - Menempatkan output ke array dengan setiap output kotak centang - sebagai satu elemen. - - - - - - - - Atribut yang dibutuhkan adalah values dan - output, kecuali sebaliknya anda menggunakan - options. - - - - Seluruh output adalah sesuai XHTML. - - - - Semua parameter yang tidak dalam daftar di atas dicetak sebagai pasangan - nama/nilai di dalam setiap tag <input> yang dibuat. - - - - - {html_checkboxes} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - -di mana template adalah - - -'} -]]> - - - atau di mana kode PHP adalah: - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - dan template adalah - - -'} -]]> - - - kedua contoh akan menampilkan: - - -Joe Schmoe
      - -
      -
      -
      -]]> -
      -
      - - - Contoh database (misal PEAR atau ADODB): - - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type_id, contact ' - .'from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - Hasil query database di atas akan ditampilkan. - -'} -]]> - - - - Lihat juga - {html_radios} - dan - {html_options} - -
      - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-image.xml b/docs/id/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 192f3624..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - {html_image} - - {html_image} adalah sebuah - fungsi kustom - yang membuat sebuah tag HTML <img>. - height dan width - secara otomatis dihitung dari gile gambar jika tidak disediakan. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - file - string - Ya - n/a - nama/path ke gambar - - - height - string - Tidak - tinggi asli gambar - Tinggi untuk menampilkan gambar - - - width - string - Tidak - panjang asli gambar - Panjang untuk menampilkan gambar - - - basedir - string - Tidak - akar doc server web - Direktori yang jadi basis path relatifnya - - - alt - string - Tidak - - Deskripsi alternatif dari gambar - - - href - string - Tidak - n/a - nilai href untuk menghubungkan gambar - - - path_prefix - string - Tidak - n/a - Prefiks untuk path output - - - - - - - - basedir adalah basis direktori yang menjadi dasar - path relatif ke gambar. Jika tidak disediakan, akar dokumen server web, - $_ENV['DOCUMENT_ROOT'] dipakai sebagai basis. - Jika $security - dihidupkan, path ke gambar harus di dalam - direktori aman. - - - - href adalah nilai href untuk menghubungkan gambar. - Jika link tidak disediakan, tag <a href="LINKVALUE"><a> - ditempatkan sekitar tag gambar. - - - - path_prefix adalah string prefiks opsional yang - dapat anda berikan path output. - Ini berguna jika anda ingin menyediakan nama server yang berbeda untuk gambar. - - - - Semua parameters yang tidak dalam daftar di atas dicetak sebagai pasangan - nama/nilai di dalam tag <img> yang dibuat. - - - - - Catatan Teknis - - {html_image} membutuhkan mencari ke disk untuk membaca - gambar dan menghitung tingi serta panjangnya. Jika anda tidak memakai - caching template, - umumnya lebih baik untuk menghindari {html_image} dan - membiarkan tag gambar statis untuk performansi optimal. - - - - - contoh {html_image} - - - - - Contoh tampilan dari template di atas akan seperti: - - - - - -]]> - - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-options.xml b/docs/id/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 814b7e2b..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,279 +0,0 @@ - - - - {html_options} - - {html_options} adalah - fungsi kustom - yang membuat grup html <select><option> - dengan data yang ditempatkan. Ia menangani item-item yang dipilihnya juga. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - values - array - Ya, kecuali memakai atribut options - n/a - Array nilai untuk dropdown - - - output - array - Ya, kecuali memakai atribut options - n/a - Array output untuk dropdown - - - selected - string/array - Tidak - empty - Elemen opsi yang dipilih - - - options - associative array - Ya, kecuali memakai nilai dan output - n/a - Array nilai asosiatif dan output - - - name - string - Tidak - empty - Nama pilihan grup - - - - - - - - Atribut yang dibutuhkan adalah - values dan output, - kecuali anda sebaliknya menggunakan options yang - dibagung. - - - - - Jika atribut opsional name disediakan, tag - <select></select> dibuat, sebaliknya - HANYA daftar <option> yang dibuat. - - - - Jika yang nilai diberikan adalah array, ia akan memperlakukannya sebagai - html <optgroup>, dan menampilkan grup. - Rekursi didukung dengan <optgroup>. - - - - Semua parameter yang tidak dalam daftar di atas dicetak sebagai pasangan - nama/nilai di dalam tag <select>. Diabaikan jika - name opsional tidak disediakan. - - - - Semua output sesuai dengan XHTML. - - - - - - Array asosiatif dengan atribut <varname>options</varname> - -assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') - ); -$smarty->assign('mySelect', 9904); -?> -]]> - - - Template berikut akan membuat daftar drop-down. - Perhatikan keberadaan atribut name yang membuat - tag <select>. - - - - - - - Output dari contoh di atas akan terlihat seperti: - - - - - - - -]]> - - - - -Dropdown dengan array terpisah untuk<varname>values</varname> dan -<varname>ouptut</varname> - -assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - - - Array di atas yang akan ditampilkan dengan template berikut (perhatikan - penggunaan fungsi php - count() sebagai pengubah untuk menyetel - ukuran pilihan). - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - Contoh di atas akan memperlihatkan: - - - - - - - - -]]> - - - - Contoh database (misal ADODB atau PEAR) - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - -Di mana sebuah template bisa seperti berikut. Perhatikan penggunaan pengubah -truncate. - - - - - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} - -]]> - - - - - Dropdown dengan <optgroup> - - 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - - Naskah di atas dan template berikut - - - - - - - akan memperlihatkan: - - - - - - - - - - - - - -]]> - - - - - Lihat juga - {html_checkboxes} - dan - {html_radios} - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-radios.xml b/docs/id/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 9ec390f4..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - {html_radios} - - {html_radios} adalah - fungsi kustom - yang membuat grup tombol radio HTML. Ia juga menangani item - yang dipilihnya juga. - - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - name - string - Tidak - radio - Nama daftar radio - - - values - array - Ya, kecuali memakai atribut options - n/a - Array nilai untuk tombol radio - - - output - array - Ya, kecuali atribut options - n/a - Array output untuk tombol radio - - - selected - string - Tidak - empty - Elemen radio yang dipilih - - - options - associative array - Ya, kecuali memakai nilai dan output - n/a - Array asosiatif nilai dan output - - - separator - string - Tidak - empty - String teks untuk memisahkan setiap item radio - - - assign - string - Tidak - empty - Menempatkan tag radio ke array daripada output - - - - - - - - Atribut yang diperlukan adalah values dan - output, kecuali sebaliknya anda memakai - options. - - - - Semua output sesuai dengan XHTML. - - - - Semua parameter yang tidak dalam daftar di atas adalah output sebagai - pasangan nama/nilai di dalam setiap tag <input> - yang dibuat. - - - - contoh pertama {html_radios} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Di mana template adalah: - - -'} - ]]> - - - - contoh kedua {html_radios} - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Di mana template adalah: - - -'} -]]> - - - Kedua contoh akan memperlihatkan: - - - -Joe Schmoe
      -
      -
      -
      -]]> -
      -
      - - {html_radios} - Contoh database (misal PEAR atau ADODB): - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Variabel yang ditetmpatkan dari database di atas akan menjadi - output dengan template: - - -'} -]]> - - - - LIhat juga {html_checkboxes} - dan {html_options} - -
      - - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-select-date.xml b/docs/id/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 214efd33..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,347 +0,0 @@ - - - - {html_select_date} - - {html_select_date} adalah - fungsi kustom - yang membuat dropdown tanggal. - Ia bisa menampilkan setiap atau seluruh tahun, bulan, dan hari. - Semua parameter yang tidak dalam dafrar di bawah ini dicetak sebagai - pasangan nama/nilai di dalam tag <select> hari, - bulan dan tahun. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - prefix - string - Tidak - Date_ - Apa yang menjadi prefiks nama var - - - time - timestamp/ YYYY-MM-DD - Tidak - waktu dalam cap waktu unix atau format YYYY-MM-DD - Tanggal/jam apa yang dipakai - - - start_year - string - Tidak - tahun sekarang - Tahun pertama dalam dropdown, baik angka tahun, - atau relatif ke tahun sekarang (+/- N) - - - end_year - string - Tidak - sama seperti start_year - Tahun terakhir dalam dropdown, baik angka tahun, - atau relatif ke tahun sekarang (+/- N) - - - display_days - boolean - Tidak - &true; - Apakan menampilkan hari atau tidak - - - display_months - boolean - Tidak - &true; - Apakah menampilkan bulan atau tidak - - - display_years - boolean - Tidak - &true; - Apakah menampilkan tahun atau tidak - - - month_format - string - Tidak - %B - Format apa seharusnya bulan ditampilkan dalam (strftime) - - - day_format - string - Tidak - %02d - Format apa hari seharusnya ditampilkan dalam (sprintf) - - - day_value_format - string - Tidak - %d - Format apa nilai hari seharusnya ditampilkan dalam (sprintf) - - - year_as_text - boolean - Tidak - &false; - Apakah menampilkan tahun sebagai teks - - - reverse_years - boolean - Tidak - &false; - Menampilkan tahun dalam urutan terbalik - - - field_array - string - Tidak - null - - Jika nama diberikan, kotak pilih akan ditampilkan agar hasil akan - dikembalikan ke PHP dalam bentuk name[Day], name[Year], name[Month]. - - - - day_size - string - Tidak - null - Menambahkan atribut size untuk memilih tag jika disediakan - - - month_size - string - Tidak - null - Menambahkan atribut size untuk memilih tag jika disediakan - - - year_size - string - Tidak - null - Menambahkan atribut size untuk memilih tag jika dsediakan - - - all_extra - string - Tidak - null - Menambahkan atribut ekstra ke semua tag select/input jika disediakan - - - day_extra - string - Tidak - null - Menambahkan atribut ekstra untuk tag select/input jika disediakan - - - month_extra - string - Tidak - null - Menambahkan atribut ekstra untuk tag select/input jika disediakan - - - year_extra - string - Tidak - null - Menambahkan atribut ekstra untuk tag select/input jika disediakan - - - field_order - string - Tidak - MDY - Urutan untuk menampilkan field - - - field_separator - string - Tidak - \n - String dicetak diantara field yang berbeda - - - month_value_format - string - Tidak - %m - format strftime() dari nilai bulan, standarnya adalah - %m untuk angka bulan. - - - year_empty - string - Tidak - null - Jika disediakan maka elemen pertama dari kotak-pilih tahun memiliki - nilai ini sebagai labelnya dan sebagai nilainya. Ini - berguna untuk menjadikan kotak-select membaca - Please select a year sebagai contoh. - Catatan bahwa anda bisa memakai nilai seperti -MM-DD - sebagai atribut-waktu untuk menunjukan tahuun yang tidak dipilih. - - - month_empty - string - Tidak - null - Jika disediakan maka elemen pertama dari kotak-pilih bulan memiliki - nilai ini sebagai labelnya dan sebagai nilainya. - Catatan bahwa anda dapat memakai nilai seperti YYYY--DD - sebagai atribut-waktu untuk menunjukan bulan yang tidak dipilih. - - - day_empty - string - Tidak - null - Jika disediakan maka elemen pertama dari kotak-pilih hari memiliki - nilai ini sebagai labelnya dan sebagai nilainya. - Catatan bahwa anda dapat memakai nilai seperti YYYY-MM- - sebagai atribut-waktu untuk menunjukan hari yang tidak dipilih. - - - - - - - - Ada fungsi php berguina pada - halaman tips tanggal untuk mengubah - nilai bentuk {html_select_date} ke cap wantu. - - - - - {html_select_date} - Kode template - - - - - Ini akan memperlihatkan: - - - - - - - ..... snipped ..... - - - - - - -]]> - - - - - contoh kedua {html_select_date} - - - - - Dengan 2000 sebagai tahun sekarang outputnya: - - - - - -.... snipped .... - - - - -]]> - - - - Lihat juga - {html_select_time}, - date_format, - $smarty.now - dan the halaman tips tanggal. - - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-html-select-time.xml b/docs/id/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index f3c0ba85..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - {html_select_time} - - {html_select_time} adalah - fungsi kustom - yang membuat dropdowns jam untuk anda. - Ia bisa menampilkan setiap atau seluruh jam, menit, detik dan meridian. - - - Atribut time dapat memiliki format berbeda. - Ia bisa berupa cap waktu uni, string dengan format - YYYYMMDDHHMMSS atau string yang dapat diurai oleh - strtotime() - PHP. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - prefix - string - Tidak - Time_ - Apa yang mengawali nama var - - - time - timestamp - Tidak - jam sekarang - Tanggal/jam apa yang dipakai - - - display_hours - boolean - Tidak - &true; - Apakah menampilkan jam atau tidak - - - display_minutes - boolean - Tidak - &true; - Apakah menampilkan menit atau tidak - - - display_seconds - boolean - Tidak - &true; - Apakah menampilkan detik atau tidak - - - display_meridian - boolean - Tidak - &true; - Apakah menampilkan meridian (am/pm) atau tidak - - - use_24_hours - boolean - Tidak - &true; - Apakah menggunakan waktu 24 jam atau tidak - - - minute_interval - integer - Tidak - 1 - Angka interval dalam dropdown menit - - - second_interval - integer - Tidak - 1 - Angka interval dalam dropdown detik - - - field_array - string - Tidak - n/a - Menyimpan nilai ke array dari nama ini - - - all_extra - string - Tidak - null - Menambahkan atribut ekstra untuk select/input jika disediakan - - - hour_extra - string - Tidak - null - Menambahkan atribut ekstra untuk select/input jika disediakan - - - minute_extra - string - Tidak - null - Menambahkan atribut ekstra untuk select/input jika disediakan - - - second_extra - string - Tidak - null - Menambahkan atribut ekstra untuk select/input jika disediakan - - - meridian_extra - string - Tidak - null - Menambahkan atribut ekstra untuk select/input jika disediakan - - - - - - - {html_select_time} - - - - - Pada 9:20 dan 23 detik di pagi hari template di atas akan menampilkan: - - - - - -... snipped .... - - - -... snipped .... - - - - - - -]]> - - - - Lihat juga - $smarty.now, - {html_select_date} - dan halaman tips tanggal. - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-html-table.xml b/docs/id/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 184c6595..00000000 --- a/docs/id/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,247 +0,0 @@ - - - - {html_table} - - {html_table} adalah - fungsi kustom - yang mengeluarkan array data ke dalam HTML <table>. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - loop - array - Ya - n/a - Array data untuk diulang - - - cols - mixed - Tidak - 3 - - Jumlah kolom dalam tabel atau daftar dipisahkan-koma daru nama heading - kolom. Jika atribut-cols kosong, tapi rows disediakan, maka jumlah cols - dihitung sejumlah rows dan jumlah elemen untuk ditampilkan cukup cols - untuk menampilkan semua elemen. Jika kedua rows dan cols, mengabaikan - standar cols ke 3. Jika disediakan sebagai daftar atau array, jumlah - kolom dihitung dari jumlah elemen dalam daftar atau array. - - - - rows - integer - Tidak - empty - - Jumlah baris dalam tabel. Jika atribut-rows kosong, tapi cols disediakan, - maka jumlah rows dihitung dengan jumlahcols dan jumlah elemen untuk - ditampilkan cukup rows untuk menampilkan semua elemen. - - - - inner - string - Tidak - cols - - Arah elemen konsekutif dalam pengulangan-array yang diberikan. - cols berarti elemen ditampilkan kolom-demi-kolom. - rows berarti elemen ditampilkan baris-demi-baris. - - - - caption - string - Tidak - empty - Teks yang dipakai untuk elemen <caption> - tabel - - - table_attr - string - Tidak - border="1" - Atribut untuk tag <table> - - - th_attr - string - Tidak - empty - Atribut untuk tag <th> - (array diputar) - - - tr_attr - string - Tidak - empty - atribut untuk tag <tr> - (arrays diputar) - - - td_attr - string - Tidak - empty - Atribut untuk tag <td> - (arrays diputar) - - - trailpad - string - Tidak - &nbsp; - Nilai untuk mengisi sel sisa pada baris terakhir (jika ada) - - - hdir - string - Tidak - right - - Arah setiap baris digambar. nilai yang mungkin: - right (kiri-ke-kanan), dan - left (kanan-ke-kiri) - - - - vdir - string - Tidak - down - - Arah setiap kolom digambar. Nilai yang mungkin: - down (atas-ke-bawah), up - (bawah-ke-atas) - - - - - - - - - Atribut cols menentukan berapa banyak kolom - berada dalam tabel. - - - - Nilai table_attr, tr_attr - dan td_attr menentukan atribut yang diberikan ke - tag <table>, <tr> - dan <td>. - - - - Jika tr_attr atau td_attr - adalah array, ia akan dilewati berputar. - - - - trailpad adalah nilai yang disimpan ke dalam sel - sisa pada baris tabel terakhir jika ada. - - - - - {html_table} - -assign( 'data', array(1,2,3,4,5,6,7,8,9) ); -$smarty->assign( 'tr', array('bgcolor="#eeeeee"','bgcolor="#dddddd"') ); -$smarty->display('index.tpl'); -?> -]]> - - Variabel yang ditempatkan dari php dapat ditampilkan seperti tiga - contoh demonstrasi. Setiap contoh menampilkan template diikuti oleh output. - - - - -123 -456 -789 - - - - -{**** Contoh Dua ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - - - - - - - -
      1234
      5678
      9   
      - - -{**** Contoh Tiga ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - - - - - - - - - - - - -
      pertamakeduaketigakeempat
      1234
      5678
      9   
      -]]> -
      - -
      -
      - - diff --git a/docs/id/designers/language-custom-functions/language-function-mailto.xml b/docs/id/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index cc24028a..00000000 --- a/docs/id/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,171 +0,0 @@ - - - - {mailto} - - {mailto} mengotomasi pembuatan link mailto: - dan secara opsional mengkodekannya. Mengkodekan email menjadikannya lebih - sulit untuk pengawas web untuk mengangkat alamat email dari sebuah situs0. - - Catatan Teknis - - Javascript mungkin bentuk pengkodean paling teliti, meskipun anda dapat - menggunakan pengkodean heksa juga. - - - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - address - string - Ya - n/a - Alamat e-mail - - - text - string - Tidak - n/a - Teks untuk ditampilkan, standarnya adalah alamat e-mail - - - encode - string - Tidak - none - Bagaimana untuk mengkodekan e-mail. Bisa berupa salah satu dari none, - hex, javascript - atau javascript_charcode. - - - cc - string - Tidak - n/a - Alamat Email untuk carbon copy, pisahkan entri dengan koma. - - - - bcc - string - Tidak - n/a - Alamat Email untuk blind carbon copy, pisahkan dengan koma - - - subject - string - Tidak - n/a - Subyek Email - - - newsgroups - string - Tidak - n/a - Menulis ke Newsgroups, pisahkan entri dengan koma. - - - followupto - string - Tidak - n/a - Alamat untuk diikuti, pisahkan entri dengan koma. - - - extra - string - Tidak - n/a - Setiap informasi ekstra yang ingin anda kirimkan ke link, seperti - kelas style sheet - - - - - - - - contoh baris {mailto} diikuti oleh hasil - -me@example.com
      - -{mailto address="me@example.com" text="send me some mail"} -send me some mail - -{mailto address="me@example.com" encode="javascript"} - - -{mailto address="me@example.com" encode="hex"} -m&..snipped...#x6f;m - -{mailto address="me@example.com" subject="Hello to you!"} -me@example.com - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -me@example.com - -{mailto address="me@example.com" extra='class="email"'} - - -{mailto address="me@example.com" encode="javascript_charcode"} - -]]> - - - - Lihat juga - escape, - {textformat} - dan - mengaburkan alamat email. - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-math.xml b/docs/id/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index ecde0592..00000000 --- a/docs/id/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,203 +0,0 @@ - - - - {math} - - {math} membolehkan desainer template untuk melakukan - persamaan matematika dalam template. - - - - Setiap variabel template numerik bisa dipakai dalam persamaa, dan hasil - dicetak di tempat tag. - - - - Variabel yang dipakai dalam persamaa dikirimkan sebagai parameter, yang - bisa berupa variabel template atau nilai statis. - - - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans dan tan adalah operator yang benar. - Lihat dokumentasi PHP untuk informasi lebih jauh pada fungsi - math ini. - - - - Jika anda menyediakan atribut assign, output fungsi - {math} akan ditempatkan ke variabel template ini daripada - ke template. - - - - - Catatan Teknis - - {math} adalah fungsi yang mahal dalam performansi - karena penggunaannya dalam fungsi php - eval(). Melakukan matematika dalam PHP jauh - lebih efisien, maka kapan saja memungkinkan lakukan perhitungan matamatika - dalam naskah dan assign() - hasil ke template. Hindari fungsi panggil berulang - {math}, misalnya dalam - pengulangan - {section}. - - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - equation - string - Ya - n/a - Persamaan yang dieksekusi - - - format - string - Tidak - n/a - Format hasil (sprintf) - - - var - numeric - Ya - n/a - Nilai variabel persamaan - - - assign - string - Tidak - n/a - Variabel template untuk ditempati - - - [var ...] - numeric - Ya - n/a - Nilai variabel persamaan - - - - - - - - {math} - - Contoh a: - - - - - - Contoh di atas akan menampilkan: - - - - - - Contoh b: - - - - - - Contoh di atas akan menampilkan: - - - - - - Example c: - - - - - - Contoh di atas akan menampilkan: - - - - - - Example d: - - - - - - Contoh di atas akan menampilkan: - - - - - - - \ No newline at end of file diff --git a/docs/id/designers/language-custom-functions/language-function-popup-init.xml b/docs/id/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index bafd23d0..00000000 --- a/docs/id/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - {popup_init} - - {popup} - adalah integrasi dari overLib, - sebuah librari yang dipakai untuk jendela popup. Ini dipakai untuk - informasi sensitif, seperti jendela bantuan atau tooltips. - - - - - {popup_init} harus dipanggil hanya sekali, - lebih disukai di dalam tag <head> di setiap halaman - yang anda rencanakan untuk menggunakan fungsi - {popup}. - - - - Path relatif ke naskah yang sedang dijalankan atau path domain lengkap, - bukan relatif ke template. - - - - overLib ditulis dan dipelihara oleh - Erik Bosrup, dan homepage/download di - &url.overLib;. - - - - - {popup_init} - - -{* popup_init harus dipanggil sekali di atas halam *} -{popup_init src='javascripts/overlib/overlib.js'} - -{* contoh url lengkap *} -{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'} - - -// contoh pertama akan menampilkan - - - - -]]> - - - - -Validasi XHTML -{popup_init} tidak memvalidasi dengan langsung dan -akan memperoleh kesalahan -document type does not allow element "div" here; -(misal tag <div> dalam <head>). - -Ini berarti anda perlu menyertakan tag <script> dan -<div> secara manual. - - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-popup.xml b/docs/id/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f6a1f9ce..00000000 --- a/docs/id/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,442 +0,0 @@ - - - - {popup} - - {popup} dipakai untuk membuat lapisan/jendela popup - Javascript. - - {popup_init} HARUS dipanggil pertama agar ini bekerja. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - text - string - Ya - n/a - text/html untuk ditampilkan dalam jendela popup - - - trigger - string - Tidak - onMouseOver - apa yang dipakai untuk memicu jendela popup. Ia bisa berupa - onMouseOver atau onClick - - - sticky - boolean - Tidak - &false; - membiarkan popup tetap tampil sampai ditutup - - - caption - string - Tidak - n/a - menyetal judul untuk dinamai - - - fgcolor - string - Tidak - n/a - warna di dalam kotak popup - - - bgcolor - string - Tidak - n/a - warna batas kotak popup - - - textcolor - string - Tidak - n/a - menyetel warna teks di dalam kotak - - - capcolor - string - Tidak - n/a - menyetel warna judul kotak - - - closecolor - string - Tidak - n/a - menyetel warna teks tutup - - - textfont - string - Tidak - n/a - menyetel font yang dipakai oleh teks utama - - - captionfont - string - Tidak - n/a - menyetel font judul - - - closefont - string - Tidak - n/a - menyetel font untuk teks Close - - - textsize - string - Tidak - n/a - menyetel besar font teks utama - - - captionsize - string - Tidak - n/a - menyetel besar font judul - - - closesize - string - Tidak - n/a - menyetel besar font teks Close - - - width - integer - Tidak - n/a - menyetel panjang kotak - - - height - integer - Tidak - n/a - menyetel tinggi kotak - - - left - boolean - Tidak - &false; - menjadikan popup pergi ke kiri mouse - - - right - boolean - Tidak - &false; - menjadikan popups pergi ke kanan mouse - - - center - boolean - Tidak - &false; - menjadikan popup pergi ke tengah mouse - - - above - boolean - Tidak - &false; - menjadikan popup di atas mouse. CATATAN: hanya mungkin - bila tinggi sudah disetel - - - below - boolean - Tidak - &false; - menjadikan popup di bawah mouse - - - border - integer - Tidak - n/a - menjadikan batas popup lebih tebal atau lebih kecil - - - offsetx - integer - Tidak - n/a - berapa jauh poopup dari penunjuk akan ditampilkan, secara - horisontal - - - offsety - integer - Tidak - n/a - berapa jauh poopup dari penunjuk akan ditampilkan, secara - vertikal - - - fgbackground - url to image - Tidak - n/a - menetapkan gambar yang dipakai daripada warna di dalam popup. - - - bgbackground - url to image - Tidak - n/a - menetapkan gambar yang ditetapkan daripada warna untuk batas popup. - CATATAN: Anda ingin menyetel bgcolor ke atau warna akan - tampil juga. CATATAN: Ketika ada link Close, Netscape akan menggambar - ulang sel tabel, menjadikan semuanya terlihat tidak benar - - - closetext - string - Tidak - n/a - menyetel teks Close ke sesuatu yang lain - - - noclose - boolean - Tidak - n/a - tidak menampilkan teks Close pada sticky dengan - sebuah judul - - - status - string - Tidak - n/a - menyetel teks dalam bar status browsers - - - autostatus - boolean - Tidak - n/a - menyetel teks bar status ke teks popup. - CATATAN: mengabaikan setelan status - - - autostatuscap - string - Tidak - n/a - menyeteal teks bar status ke teks judul. - CATATAN: mengabaikan setelan status dan autostatus - - - inarray - integer - Tidak - n/a - memberitahu overLib untuk membaca teks dari indeks ini dalam array - ol_text, ditempatkan dalam overlib.js. Parameter ini bisa dipakai - daripada teks - - - caparray - integer - Tidak - n/a - memberitahu overLib untuk membaca judul dari indeks ini dalam array - ol_caps - - - capicon - url - Tidak - n/a - menampilkan gambar yang diberikan sebelum judul popup - - - snapx - integer - Tidak - n/a - menempelkan popup ke posisi dalam jaring horizontal - - - snapy - integer - Tidak - n/a - menempelkan popup ke posisi dalam jaring vertikal - - - fixx - integer - Tidak - n/a - mengunci posisi horisontal popups Catatan: - mengabaikan semua penempatan horisontal lain - - - fixy - integer - Tidak - n/a - mengunci posisi vertikal popups Catatan: - mengabaikan semua penempatan vertikal lain - - - background - url - Tidak - n/a - menyetel gambar yang dipakai daripada latar belakang kotak tabel - - - padx - integer,integer - Tidak - n/a - mengisi gambar latar belakang denga spasi horisontal - untuk penempatan teks. Catatan: ini adalah dua perintah parameter - - - pady - integer,integer - Tidak - n/a - mengisi gambar latar belakang denga spasi vertikal - untuk penempatan teks. Catatan: ini adalah dua perintah parameter - - - fullhtml - boolean - Tidak - n/a - membolehkan anda untuk mengontrol html sepenuhnya pada gambar - latar belakang. Kode html diharapkan dalam atribut text - - - frame - string - Tidak - n/a - mengontrol popups dalam bingkai berbeda. Lihat halaman overlib - untuk info lebih jauh atas fungsi ini - - - function - string - Tidak - n/a - memanggil fungsi javascript yang ditetapkan dan mengambil - nilai balik sebagai teks yang harus ditampilkan dalam jendela popup - - - delay - integer - Tidak - n/a - menjadikan popup itu seperti tooltip. Ia hanya akan muncul setelah - tenggal dalam milidetik - - - hauto - boolean - Tidak - n/a - otomatis menentukan apakah popup harus di sebelah kiri atau - kanan mouse. - - - vauto - boolean - Tidak - n/a - otomatis menentukan apakah popup harus di sebelah atas atau - bawah mouse. - - - - - - - {popup} - -mypage - -{* anda bisa memakai html, link, dll dalam teks popup anda *} -mypage - -{* popup melewati sebuah sel tabel *} -{$part_number} -]]> - - - Ada contoh baik lainnya di halaman - {capture} - . - - Lihat juga - {popup_init} - dan - overLib homepage. - - - - diff --git a/docs/id/designers/language-custom-functions/language-function-textformat.xml b/docs/id/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 9d286565..00000000 --- a/docs/id/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,296 +0,0 @@ - - - - {textformat} - - {textformat} adalah - fungsi blok yang dipakai - untuk membentuk teks. Pada dasarnya ia membersihkan spasi dan karakter - khusus, dan membentuk paragraf dengan menggulung di batas dn baris - yang menggantung. - - - Anda bisa menyetel parameter secara eksplisit, atau memakai gaya preset. - Saat ini email adalah satu-satunya gaya yang tersedia. - - - - - - - - - - - - Nama Atribut - Tipe - Diperlukan - Default - Deskripsi - - - - - style - string - Tidak - n/a - Gaya preset - - - indent - number - Tidak - 0 - Jumlah karakter untuk melekuk setiap baris - - - indent_first - number - Tidak - 0 - Jumlah karakter untuk melekukan baris pertama - - - indent_char - string - Tidak - (single space) - Karakter (atau string karakter) untuk melekukan - - - wrap - number - Tidak - 80 - Berapa banyak karakter untuk menggulung setiap barisnya - - - wrap_char - string - Tidak - \n - Karakter (or string of chars) to break each line with - - - wrap_cut - boolean - Tidak - &false; - Jika &true;, gulungan akan memecah baris di karakter yang tepat - daripada di batas kata - - - assign - string - Tidak - n/a - Variabel template yang akan ditempati output - - - - - - - {textformat} - - - - - Contoh di atas akan menampilkan: - - - - - - - - - Contoh di atas akan menampilkan: - - - - - - - - - Contoh di atas akan menampilkan: - - - - - - - - - Contoh di atas akan menampilkan: - - - - - - - Lihat juga - {strip} - dan - wordwrap. - - - - \ No newline at end of file diff --git a/docs/id/designers/language-modifiers/language-modifier-capitalize.xml b/docs/id/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 0037324f..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - capitalize - - Ini dipakai untuk membesarkan huruf pertama dari seluruh kata dalam variable. - Mirip dengan fungsi PHP - ucfirst(). - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - boolean - Tidak - &false; - Ini menentukan apakah kata dengan digit akan dibesarkan atau - tidak - - - - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - Lihat juga - lower - dan - upper - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-cat.xml b/docs/id/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index a6fc60e1..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - cat - - Nilai ini digabungkan ke variabel yang disediakan. - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Tidak - empty - Nilai ini menggabung variabel yang disediakan. - - - - - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-count-characters.xml b/docs/id/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index de94cf4d..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - count_characters - - Ini akan dipakai untuk menghitung jumlah karakter dalam variabel. - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - boolean - Tidak - &false; - Ini menentukan apakah menyertakan karakter spasi dalam - hitungan atau tidak. - - - - - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - count_words, - count_sentences dan - count_paragraphs. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index f4efd4e3..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - count_paragraphs - - Ini dipakai untuk menghitung jumlah paragraf dalam variabel. - - - count_paragraphs - -assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - count_characters, - count_sentences - dan - count_words. - - - - \ No newline at end of file diff --git a/docs/id/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/id/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 44e4973b..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - count_sentences - - Ini dipakai untuk menghitung jumlah kalimat dalam variabel. - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - count_characters, - count_paragraphs - dan - count_words. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-count-words.xml b/docs/id/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index d1b6e5db..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - count_words - - Ini dipakai untuk menghitung jumlah kata dalam variabel. - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - count_characters, - count_paragraphs - dan - count_sentences. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-date-format.xml b/docs/id/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 928ae523..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,287 +0,0 @@ - - - - date_format - - Ini membentuk tanggal dan jam ke format - strftime() - yang disediakan. - Tanggal dapat dikirimkan ke Smarty sebagai - timestamps unix, mysql timestamps - atau string lain yang terdiri dari bulan hari tahun, dapat diuraikan oleh - strtotime() php. - Desainer dapat memakai date_format untuk mengontrol - sepenuhnya pembentukan tanggal. Jika tanggal yang dikiriimkan ke - date_format kosong dan parameter kedua dikirimkan, itu akan - dipakai sebagai format tanggal. - - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Tidak - %b %e, %Y - Ini adalah format untuk tanggal yang ditampilkan. - - - 2 - string - Tidak - n/a - Ini adalah tanggal standar jika input kosong. - - - - - - - - - Sejak Smarty-2.6.10 nilai numerik yang dikirimkan ke date_format - selalu (kecuali untuk cap waktu mysql, lihat di bawah) - diinterpretasikan sebagai cap waktu unix. - - - Sebelum Smarty-2.6.10 string numerik yang juga dapat diuraikan oleh - strtotime() dalam php (seperti YYYYMMDD) - di mana kadang-kadang (tergantung pada dasar implementasi - strtotime()) diinterpretasikan sebagai string tanggal - BUKAN sebagai cap waktu. - - - Satu-satunya kekecualian adalah cap waktu mysql: Ia juga hanya numerik dan - panjang karakternya 14 (YYYYMMDDHHMMSS), - cap waktu mysql memiliki awalan dibanding cap waktu unix. - - - - Catatan pemrogram - - date_format pelapis penting untuk fungsi PHP - strftime(). - Anda dapat mempunyai penentu konversi lebih atau sedikit disediakan - tergantung pada fungsi strftime() - sistem anda di mana PHP dikompilasi. Periksa halaman manual sistem untuk - daftar lengkap dari penentu yang benar. Akan tetapi, sedikit penentu - diemulasikan pada Windows. Ini adalah: %D, %e, %h, %l, %n, - %r, %R, %t, %T. - - - - - date_format - -assign('config', $config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - - - Template ini menggunakan - $smarty.now untuk mendapatkan jam saat ini: - - - - - - Contoh di atas akan memperlihatkan: - - - - - - - - Penentu konversi date_format: - - - %a - singkatan nama hari dalam minggu berdasarkan lokal saat ini - - - %A - nama hari lengkap berdasarkan lokal saat ini - - - %b - singkatan nama bulan berdasarkan lokal saat ini - - - %B - nama bulan lengkap berdasarkan lokal saat ini - - - %c - representasi tanggal dan jam yang lebih disukai berdasarkan lokal saat ini - - - %C - angka abad (tahun dibagi 100 dan dipotong ke integer, (mulai 00 sampai 99) - - - %d - hari pada bulan sebagai angka desimal (mulai 01 sampai 31) - - - %D - same as %m/%d/%y - - - %e - hari dalam bulan sebagai angka desimal, digit tunggal diawali dengan - spasi (mulai 1 sampai 31) - - - %g - tahun berbasis-Minggu di dalam abad [00,99] - - - %G - tahun berbasis-Minggu, termasuk abad [0000,9999] - - - %h - sama seperti %b - - - %H - jam sebagai angka desimal menggunakan waktu 24-jam (mulai 00 sampai 23) - - - %I - jam sebagai angka desimal menggunakan waktu 12-jam (mulai 01 sampai 12) - - - %j - hari dalam tahun sebagai angka desimal (mulai 001 sampai 366) - - - %k - Jam (waktu 24-jam) digit tunggal diawali dengan kosng. (mulai 0 sampai 23) - - - %l - jam sebagai angka desimal menggunakan waktu 12-jam, digit tunggal - diawali dengan spasi (mulai 1 sampai 12) - - - %m - bulan sebagai angka desimal (mulai 01 sampai 12) - - - %M - menit sebagai angka desimal - - - %n - karakter baris baru - - - %p - baik `am' ataupun `pm' berdasarkan nilai waktu yang disediakan, - atau string terkait untuk lokal saat ini - - - %r - jam dalam notasi a.m. dan p.m. - - - %R - jam dalam notasi 24 jam - - - %S - detik sebagai angka desimal - - - %t - karakter tab - - - %T - jam sekarang, sama dengan %H:%M:%S - - - %u - hari dalam minggu sebagai angka desimal [1,7], dengan1 mewakili Senin - - - %U - angka minggu dari tahun sekarang sebagai angka desimal, dimulai dengan - Minggu sebagai hari pertama dari minggu pertama - - - %V - Angka minggu ISO 8601:1988 dari tahun sekarang sebagai angka desimal, - mulai 01 sampai 53, di mana minggu 1 adalah minggu pertama yang mempunyai - setidaknya 4 hari dalam tahun sekarang, dan dengan Senin sebagai hari - pertama dalam seminggu. - - - %w - hari dari minggu sebagai desimal, Minggu adalah 0 - - - %W - angka minggu dari tahun sekarang sebagai angka desimal, dimulai - dengan Senin pertama sebagai hari pertama dari minggu pertama - - - %x - representasi tanggal yang lebih disukai untuk lokal saat ini tanpa jam - - - %X - representasi jam yang lebih disukai untuk lokal saat ini tanpa tanggal - - - %y - tahun sebagai angka desimal tanpa abad (mulai 00 sampai 99) - - - %Y - tahun sebagai angka desimal termasuk abad - - - %Z - zona waktu atau nama atau singkatan - - - %% - karakter literal `%' - - - - - - Lihat juga $smarty.now, - strftime(), - {html_select_date} - dan halaman tips tanggal page. - - - - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-default.xml b/docs/id/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index d7a84169..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - default - - Ini dipakai untuk menyetel nilai standar untuk sebuah variabel. Jika - variabel tidak disetel atau string kosong, nilai standar diberikan untuk - dicetak. Default memerlukan satu argumen. - - - - - Dengan - error_reporting(E_ALL), - variabel yang tidak dideklarasikan akan selalu menghasilkan kesalahan - di dalam template. Fungsi ini berguna untuk mengganti string dengan - panjang null atau nol. - - - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Tidak - empty - Ini adalah nilai standar untuk ditampilkan jika - variabel kosong. - - - - - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email', ''); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - penanganan variabel standar - dan halaman - penanganan variabel kosong. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-escape.xml b/docs/id/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 44920e44..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - escape - - escape dipakai untuk mengkodekan atau mengubah variabel ke contohnya html, - url, tanda kutip tunggal, - heksa, heksentitas, - javascript dan mail. - Standarnya html. - - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Nilai yang Mungkin - Default - Deskripsi - - - - - 1 - string - Tidak - html, htmlall, - url, - urlpathinfo, quotes, - hex, hexentity, - javascript, mail - - html - Ini adalah format escape yang digunakan. - - - 2 - string - Tidak - ISO-8859-1, UTF-8, - dan setiap karakter yang didukung oleh - - htmlentities() - - ISO-8859-1 - Set karakter yang semuanya dikirimkan ke htmlentities(). - - - - - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); - -?> -]]> - - - Ini adalah contoh baris template escape diikuti oleh output - - - *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* escapes SEMUA entri html *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -click here -click here - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -{$EmailAddress|escape:"hexentity"} -{$EmailAddress|escape:'mail'} {* this converts to email to text *} -bob..snip..et - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - - - - - Contoh lain - Fungsi PHP dapat dipakai sebagai pengubah, - - $security yang mengijinkan. - - -click here -]]> - - This snippet is useful for emails, but see also - - {mailto} - -{$EmailAddress|escape:'mail'} -]]> - - - - - Lihat juga - escaping penguraian smarty, - {mailto} - dan halaman - mengaburkan alamat email. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-indent.xml b/docs/id/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 7b4cbd17..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - indent - - Ini menggantungstring di setiap baris, standarnya 4. Sebagai parameter - opsional, anda dapat menetapkan jumlah karakter untuk digantung. Sebagai - parameter opsional kedua, anda dapat menetapkan karakter yang dipakai - untuk menggantung misalnya memakai "\t" untuk tab. - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - integer - Tidak - 4 - Ini menentukan berapa banyak karakter yang digantung - to. - - - 2 - string - Tidak - (satu spasi) - Ini adalah karakter yang digunakan untuk menggantung. - - - - - - - indent - -assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - strip, - wordwrap - dan - spacify. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-lower.xml b/docs/id/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 43b1ee1a..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - lower - - Ini dipakai untuk mengecilkan variabel. Ini sama dengan fungsi PHP - - strtolower(). - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - - - Di mana template adalah: - - - - - - Ini akan memperlihatkan: - - - - - - - Lihat juga - upper - dan - capitalize. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-nl2br.xml b/docs/id/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 4261e2c4..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - nl2br - - Semua pemisah baris "\n" akan diubah ke tag html - <br /> dalam variabel yang disediakan. - Ini sama dengan fungsi PHP - nl2br(). - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - -today, dark tonight -]]> - - - - Lihat juga - word_wrap, - count_paragraphs - dan - count_sentences. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/id/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 8d99819b..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - regex_replace - - Pencarian ekspresi reguler dan penggantian pada variabel. Gunakan sintaks - - preg_replace() dari manual PHP. - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Ya - n/a - Ini adalah ekspresi reguler untuk diganti. - - - 2 - string - Ya - n/a - Ini adalah string teks untuk mengganti. - - - - - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - replace - dan - escape. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-replace.xml b/docs/id/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 52fcade8..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - replace - - Pencarian sederhana dan penggantian pada variabel. Ini sama dengan fungsi - PHP - str_replace(). - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Ya - n/a - Ini adalah string teks untuk diganti. - - - 2 - string - Ya - n/a - Ini adalah string teks untuk mengganti. - - - - - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - regex_replace - dan - escape. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-spacify.xml b/docs/id/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 5f82e463..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - spacify - - spacify adalah cara untuk menyisipkan spasi diantara - setiap karakter dari variabel. - Anda bisa secara opsional mengirimkan karakter atau string berbeda - untuk disisipkan. - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Tidak - satu spasi - Ini akan disisipkan diantara setiap karakter dari variabel. - - - - - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - wordwrap - dan - nl2br. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-string-format.xml b/docs/id/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 0718b4c2..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - string_format - - Ini adalah cara untuk membentuk string, seperti angka desimal dan - semacamnya. Gunakan sintaks - sprintf() - untuk pembentukan. - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - string - Ya - n/a - Ini adalah format apa yang dipakai. (sprintf) - - - - - - - string_format - -assign('number', 23.5787446); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - - See also - date_format. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/id/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index f0d4d81f..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - strip_tags - - Ini memotong tag markup, pada dasarnya apapun diantara - < dan >. - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - bool - Tidak - &true; - Ini menentukan apakah tag diganti dengan ' ' atau '' - - - - - - - strip_tags - -assign('articleTitle', - "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years." - ); - -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - -New Kidney from Dad she Hasn't Seen in years. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - - - - Lihat juga - replace - dan - regex_replace. - - - \ No newline at end of file diff --git a/docs/id/designers/language-modifiers/language-modifier-strip.xml b/docs/id/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 204998a7..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - strip - - Ini mengganti semua spasi yang berulang, baris baru dan tab dengan spasi - tunggal, atau dengan string yang disertakan. - - - Catatan - - Jika anda ingin memotong blok teks template, gunakan fungsi built-in {strip}. - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - - Lihat juga - {strip} - dan - truncate. - - - \ No newline at end of file diff --git a/docs/id/designers/language-modifiers/language-modifier-truncate.xml b/docs/id/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e0c5bfc7..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - truncate - - Ini memotong variabel ke panjang karakter, standarnya 80. - Sebagai parameter opsional kedua, anda bisa menetapkan string teks yang - ditampilkan di akhir jika variabel dipotong. Karakter dalam string - disertakan dengan panjang pemotongan asli. - Standarnya, truncate akan mencoba untuk memotong di - batas kata. Jika anda ingin memotong di panjang karakter persis, - kirimkan parameter opsional ketiga dengan &true;. - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - integer - Tidak - 80 - Ini menentukan berapa banyak karakter untuk dipotong. - - - 2 - string - Tidak - ... - Ini adalah teks string yang mengganti teks yang dipotong. - Panjangya disertakan dalam setelan panjang pemotongan. - - - 3 - boolean - Tidak - &false; - Ini menentukan apakah memotong di batas kata dengan &false; - atau tidak, atau di persis karakter dengan &true;. - - - 4 - boolean - Tidak - &false; - Ini menentukan apakah pemotongan terjadi di akhir string dengan - &false;, atau ditengah string dengan &true;. - Catatan bahwa jika setelan adalah &true;, maka batas kata diabaikan. - - - - - - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -?> -]]> - - - di mana template adalah: - - - - - - Ini akan memperlihatkan: - - - - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-upper.xml b/docs/id/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index acb59845..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - upper - - Ini dipakai untuk membesarkan variabel. Ini sama dengan fungsi PHP - - strtoupper(). - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -?> -]]> - - - Di mana template adalah: - - - - - - Akan memperlihatkan: - - - - - - - Lihat juga - lower - dan - capitalize. - - - - diff --git a/docs/id/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/id/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index f09dbe24..00000000 --- a/docs/id/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - wordwrap - - Menggulung string ke panjang kolom, standarnya 80. Sebagai parameter - opsional kedua, anda dapat menetapkan string teks untuk menggulung - teks ke baris berikutnya, biasanya adalah carriage return - "\n". - Standarnya, wordwrap akan mencoba untuk menggulung - di batas kata. Jika anda ingin memotong persis di panjang karakter, - kirimkan parameter opsional ketiga sebagai &true;. Ini sama dengan - fungsi PHP - wordwrap(). - - - - - - - - - - - - Posisi Parameter - Tipe - Diperlukan - Default - Deskripsi - - - - - 1 - integer - Tidak - 80 - Ini menentukan berapa banyak kolom digulung. - - - 2 - string - Tidak - \n - Ini adalah string yang dipakai untuk menggulung kata. - - - 3 - boolean - Tidak - &false; - Ini menentukan apakah menggulung di batas kata (&false;) atau tidak, - atau persis di karakter (&true;). - - - - - - - wordwrap - -assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - - - Di mana template adalah - - -\n"} - -{$articleTitle|wordwrap:26:"\n":true} -]]> - - - Akan memperlihatkan: - - - -from dad she hasn't seen in
      -years. - -Blind woman gets new kidn -ey from dad she hasn't se -en in years. -]]> -
      -
      - - Lihat juga - nl2br - dan - {textformat}. - -
      - - - diff --git a/docs/id/designers/language-variables/language-assigned-variables.xml b/docs/id/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 293ea5cb..00000000 --- a/docs/id/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,203 +0,0 @@ - - - - Variabel ditempatkan dari PHP - - Variabel - assigned dari PHP direferensi oleh - pendahulunya dengan tanda dolar $ (seperti php). - Variabel yang ditempati dari dalam template dengan fungsi - {assign} - juga ditampilkan dengan cara ini. - - - - Variabel yang ditempati - naskah php - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - di mana konten index.tpl adalah: - - - -{* ini tidak akan bekerja karena $variables adalah sensitif huruf *} -This weeks meeting is in {$meetingplace}. -{* ini akan bekerja *} -This weeks meeting is in {$meetingPlace}. -]]> - - - - Output di atas: - - - -This weeks meeting is in . -This weeks meeting is in New York. -]]> - - - - - - Array asosiatif - - Anda juga bisa mereferensi variabel array asosiatif yang ditempatkan dari - PHP dengan menetapkan kunci setelah simbol '.' (titik). - - - Mengakses variabel array asosiatif - -assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - - - di mana konten index.tpl adalah: - - - -{$Contacts.email}
      -{* anda dapat menampilkan array dari array juga *} -{$Contacts.phone.home}
      -{$Contacts.phone.cell}
      -]]> -
      - - ini akan menampilkan: - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - Indeks array - - Anda bisa mereferensi array dengan indeksnya, lebih mirip dengan sintaks PHP. - - - Mengakses array dengan indeks - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - di mana index.tpl adalah: - - - -{$Contacts[1]}
      -{* anda dapat menampilkan arrays dari arrays juga *} -{$Contacts[2][0]}
      -{$Contacts[2][1]}
      -]]> -
      - - Ini akan menampilkan: - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - Obyek - - Properti obyek - yang ditempatkan dari PHP dapat direferensi dengan menetapkan nama properti - setelah simbol ->. - - - Mengakses properti obyek - -name}
      -email: {$person->email}
      -]]> -
      - - ini akan menampilkan: - - - -email: zaphod@slartibartfast.example.com
      -]]> -
      -
      -
      -
      - - diff --git a/docs/id/designers/language-variables/language-config-variables.xml b/docs/id/designers/language-variables/language-config-variables.xml deleted file mode 100644 index b19e97ef..00000000 --- a/docs/id/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,119 +0,0 @@ - - - - Variabel yang diambil dari file config - - Variabel yang diambil dari file config - direferensi dengan menutupinya dalam #tanda kris#, - atau dengan variabel smarty - $smarty.config. - Sintaks terakhir berguna untuk menyertakan ke dalam nilai atribut bertanda - kutip. - - - variabel config - - Contoh file config - foo.conf: - - - - - - Template yang memperlihatkan metode #hash#: - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - Template yang memperlihatkan metode - - $smarty.config: - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - Kedua contoh akan menampilkan: - - - -This is mine - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Variabel file config tidak bisa dipakai sampai setelah diambil dari file - config. Prosedur ini dijelaskan nanti dalam dokumen ini di bawah - - {config_load}. - - - Lihat juga variabel dan - variabel terpakai $smarty - -
      - diff --git a/docs/id/designers/language-variables/language-variables-smarty.xml b/docs/id/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 0520c946..00000000 --- a/docs/id/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - variabel terpakai {$smarty} - - variabel PHP terpakai {$smarty} bisa digunakan untuk - mengakses beberapa lingkungan dan variabel permintaan. Daftar lengkapnya - sebagai berikut. - - - - Variabel permintaan - - variabel permintaan - seperti $_GET, $_POST, - $_COOKIE, $_SERVER, - $_ENV dan $_SESSION - (lihat - $request_vars_order - dan - $request_use_auto_globals) - bisa diakses seperti diperlihatkan dalam contoh di bawah ini: - - - Menampilkan variabel permintaan - - - - - - - Untuk alasan historis {$SCRIPT_NAME} dapat diakses - secara langsung, meskipun {$smarty.server.SCRIPT_NAME} - adalah cara yang diusulkan untuk mengakses nilai ini. - - -click me -click me -]]> - - - - - - {$smarty.now} - - Cap waktu saat ini - bisa diakses dengan {$smarty.now}. - Nilai merefleksikan jumlah detik berlalu sejak apa yang disebut - Epoch pada 1 Januari 1970, dan dapat dikirimkan secara langsung ke - pengubah - date_format - untuk ditampilkan. Catatan bahwa - time() - dipanggil setiap kali ada permintaan; misalnya naskah yang mengambil - tiga detik untuk dijalankan dengan sebuah panggilan ke - $smarty.now di awal dan akhir akan menampilkan - perbedaan tiga detik. - - - - - - - - - - {$smarty.const} - - Anda dapat mengakses nilai konstan PHP secara langsung. Lihat juga konstan smarty. - - - - -]]> - - -Output konstan dalam template - - - - - - - - - {$smarty.capture} - - Output template ditangkap melalui fungsi built-in - - {capture}..{/capture} bisa diakses menggunakan - variabel {$smarty.capture}. - Lihat halaman - {capture} untuk informasi lebih jauh. - - - - - {$smarty.config} - - Variabel {$smarty.config} bisa digunakan untuk - merujuk ke variabel config - yang diambil. - {$smarty.config.foo} adalah sinonim untuk - {#foo#}. Lihat halaman - {config_load} untuk - informasi lebih jauh. - - - - - {$smarty.section}, {$smarty.foreach} - - Variabel {$smarty.section} dan - {$smarty.foreach} dapat digunakan untuk merujuk ke - masing-masing properti pengulangan - {section} - dan - {foreach}. - Ini memiliki beberapa nilai kegunaan seperti - .first, .index, dll. - - - - - {$smarty.template} - - Mengembalikan nama template yang sedang diproses saat ini. Contoh berikut - memperlihatkan container.tpl dan - banner.tpl yang disertakan dengan - {$smarty.template} di dalam keduanya. - - -Main container is {$smarty.template}
      -{include file='banner.tpl'} -]]> - - - akan menampilkan - - -Main page is container.tpl -banner.tpl -]]> - - - - - {$smarty.version} - - Mengembalikan versi Smarty di mana template sudah dikompilasi dengannya. - - -Powered by Smarty {$smarty.version} -]]> - - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Variabel ini dipakai untuk mencetak nilai pembatas-kiri dan pembatas-kanan - secara literal, sama seperti - {ldelim},{rdelim}. - - - Lihat juga - variabel yang ditempati dan - variabel config - - - - diff --git a/docs/id/getting-started.xml b/docs/id/getting-started.xml deleted file mode 100644 index 3cd572f5..00000000 --- a/docs/id/getting-started.xml +++ /dev/null @@ -1,689 +0,0 @@ - - - - Memulai - - - Apa itu Smarty? - - Smarty adalah mesin template untuk PHP. Lebih khusus, ia memfasilitasi - cara yang bisa diatur untuk memisahkan logika aplikasi dan konten dari - penampilannya. Ini jauh lebih baik dijelaskan dalam situasi di mana - pemrogram aplikasi dan desainer template memainkan aturan yang berbeda, - atau secara umum bukan orang yang sama. - - - - Sebagai contoh, katakanlah anda sedang membuat halaman web yang - menampilkan artikel koran. - - - - Artikel $headline, $tagline, - $author dan $body adalah elemen - konten, tidak berisi informasi mengenai bagaimana akan ditampilkan. - Ia akan dioper ke dalam Smarty - oleh aplikasi. - - - Kemudian desainer template mengedit template dan - menggunakan kombinasi tag HTML dan - tag template untuk - membentuk presentasi terhadap - variabel ini dengan - elemen seperti tabel, div, warna latar belakang, ukuran font, style - sheets, svg dll. - - - Suatu hari pemrogram perlu mengubah cara konten - artikel diambil (perubahan dalam logika aplikasi). Perubahan - ini tidak mempengaruhi desainer template, konten masih akan - muncul dalam template persis sama. - - - - Demikian juga jika desainer template ingin mendesain ulang template - seutuhnya, ini tidak memerlukan perubahan logika aplikasi. - - - Oleh karena itu, pemrogram dapat membuat perubahan - terhadap logika aplikasi tanpa perlu merestrukturisasi template, dan - desainer template bisa membuat perubahan terhadap template tanpa - membongkar logika aplikasi. - - - - - Satu tujuan desain Smarty adalah pemisahan logika bisnis dan logika - presentasi. - - - - - Ini berarti template tentu saja dapat berisi logika di bawah - kondisi yang hanya untuk presentasi saja. Hal seperti - menyertakan - template lain, - memilih warna baris tabel, - membesarkan huruf variabel, - mengulang terus - sebuah data array dan menampilkannya - adalah contoh dari logika presentasi. - - - Ini tidak - berarti bahwa Smarty memaksa pemisahan logika bisnis dan presentasi. Smarty - tidak mengetahui yang mana adalah yang mana, maka menempatkan logika bisnis - dalam template adalah anda sendiri yang melakukannya. - - Juga, jika anda - menginginkan tidak ada logika dalam template, anda - tentunya dapat melakukannya dengan menetapkan konten cukup ke teks dan - variabel saja. - - - - - Salah satu aspek unik mengenai Smarty adalah kompilasi template. Ini - berartu Smarty membaca file template dan membuat naskah PHP darinya. - Sekali dibuat, selanjutnya ia dieksekusi darinya. Oleh karenanya tidak - ada beban menguraikan file template untuk setiap permintaan, dan setiap - template dapat memanfaatkan solusi cache kompilator PHP seperti - eAccelerator, - ionCube - mmCache - atau Zend Accelerator - adalah beberapa diantaranya. - - - Beberapa fitur Smarty: - - - - - Sangat cepat. - - - - - Efisien karena pengurai PHP yang mengerjakan pekerjaan beratnya. - - - - - Tidak ada kelebihan penguraian template, hanya sekali mengompilasi. - - - - - Pintar mengenai rekompilasi - hanya file template yang telah diubah. - - - - - Anda dapat membuat dengan mudah fungsi kustom - dan pengubah variabel, agar - bahasa template bisa diperluas secara ekstrim. - - - - - Template bisa mengkonfigurasi sintaks tag - {pemisah}, agar - anda dapat menggunakan - {$foo}, {{$foo}}, - <!--{$foo}-->, dll. - - - - - Konstruksi - {if}..{elseif}..{else}..{/if} - dioper ke pengurai PHP, maka sintaks ekspresi {if...} - bisa berupa evaluasi sesederhana atau serumit yang anda - inginkan. - - - - - Membolehkan pengulangan tidak terbatas dari - - sections, if's dll. - - - - - Dimungkinkan untuk - menyertakan kode PHP - langsung dalam file template anda, meskipun ini mungkin tidak - diperlukan (ataupun direkomendasikan) karena mesin - dapat dikustomisasi. - - - - - Dukungan built-in caching - - - - - Bebas sumber template - - - - - Fungsi kustom - penanganan cache - - - - - Arsitektur Plugin - - - - - - - - - - - Instalasi - - - Persyaratan - - Smarty membutuhkan server web yang menjalankan PHP 4.0.6 atau lebih - tinggi. - - - - - Instalasi Dasar - - - Instalasi file librari Smarty yang ada dalam sub direktori - /libs/ dari - distributsi. Ini adalah file .php yang - TIDAK BOLEH diedit. Ia berbagi diantara seluruh aplikasi dan hanya - diubah ketika anda meingkatkannya ke versi Smarty baru. - - Dalam contoh di bawah ini Smarty tarball telah diuraikan ke: - - - /usr/local/lib/Smarty-v.e.r/ untuk - mesin *nix - dan - c:\webroot\libs\Smarty-v.e.r\ untuk - lingkungan windows. - - - - - File librari Smarty yang Diperlukan - - - - - - - Smarty menggunakan konstan - PHP bernama SMARTY_DIR - yang merupakan path file sistem lengkap - ke direktori libs/ Smarty. - Pada dasarnya, jika aplikasi anda dapat menemukan file - Smarty.class.php, anda tidak perlu menyetel - SMARTY_DIR - karena Smarty akan mengetahui dirinya sendiri. - Oleh karena itu, jika - Smarty.class.php tidak dalam - include_path - anda, atau anda tidak menyertakan path absolut kepadanya dalam aplikasi - anda, maka anda harus mendefinisikan SMARTY_DIR - secara manual. - SMARTY_DIR harus menyertakan - akhiran garis miring/. - - - - - - Ini adalah bagaimana anda membuat turunan Smarty dalam naskah PHP anda: - - - -]]> - - - - - Coba menjalankan naskah di atas. Jika anda mendapatkan kesalahan yang - mengatakan - Smarty.class.php file could not be found, anda perlu - melakukan salah satu dari yang berikut: - - - - Setel konstan SMARTY_DIR secara manual - - -]]> - - - - - Sertakan path absolut ke file librari - - -]]> - - - - - Tambah path librari ke file <filename>php.ini</filename> - - - - - - - Menambahkan path include dalam naskah PHP dengan - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - - -]]> - - - - - Sekarang file librari itu di tempatnya, waktunya menyiapkan - direktori Smarty untuk aplikasi anda: - - - - Smarty memerlukan empat direktori yang secara standar bernama - templates/, - templates_c/, configs/ dan cache/ - - - Setiap dari yang di atas tersebut bisa didefinisikan - dengan properti kelas Smarty masing-masing - - $template_dir, - - $compile_dir, - - $config_dir, dan - - $cache_dir - - - - It is highly recommended - that you setup a separate set of these directories for each application - that will use Smarty - - - - - For our installation example, we will be setting up the Smarty environment - for a guest book application. We picked an application only for the purpose - of a directory naming convention. You can use the same environment for any - application, just replace guestbook/ with - the name of your application. - - - - - What the file structure looks like - - - - - - - Be sure that you know the location of your web server's document root as a - file path. In the following examples, the document root is /web/www.example.com/guestbook/htdocs/. - The Smarty - directories are only accessed by the Smarty library and never accessed - directly by the web browser. Therefore to avoid any security concerns, it - is recommended (but not mandatory) to place these directories - outside of the web server's document root. - - - - You will need as least one file under your document root, and that is the - script accessed by the web browser. We will name our script - index.php, and place it in a subdirectory under the - document root /htdocs/. - - - - - Smarty will need write access - (windows users please ignore) to the - - $compile_dir and - - $cache_dir directories - (templates_c/ and - cache/), so be sure the web server - user account can write to them. - - This is usually user nobody and - group nobody. For OS X users, - the default is user www and group www. - If you are using Apache, you can look in your - httpd.conf file to see - what user and group are being used. - - - - Permissions and making directories writable - - - - - - - Note - - chmod 770 will be fairly tight security, it only allows - user nobody and group nobody read/write access - to the directories. If you would like to open up read access to anyone - (mostly for your own convenience of viewing - these files), you can use 775 instead. - - - - - We need to create the index.tpl file that Smarty will - display. This needs to be located in the - $template_dir. - - - - /web/www.example.com/guestbook/templates/index.tpl - - - - - - - Technical Note - - {* Smarty *} is a template - comment. - It is not required, but it is good - practice to start all your template files with this comment. It makes - the file easy to recognize regardless of the file extension. For - example, text editors could recognize the file and turn on special - syntax highlighting. - - - - - Now lets edit index.php. We'll create an instance of Smarty, - assign() a - template variable and display() - the index.tpl file. - - - - Editing /web/www.example.com/docs/guestbook/index.php - -template_dir = '/web/www.example.com/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -//** un-comment the following line to show the debug console -//$smarty->debugging = true; - -$smarty->display('index.tpl'); - -?> -]]> - - - - - Note - - In our example, we are setting absolute paths to all of the Smarty - directories. If /web/www.example.com/guestbook/ is - within your PHP include_path, then these settings are not necessary. - However, it is more efficient and (from experience) less error-prone to - set them to absolute paths. This ensures that Smarty is getting files - from the directories you intended. - - - - - Now naviagate to the index.php file with the web browser. - You should see "Hello Ned, welcome to Smarty!" - - - You have completed the basic setup for Smarty! - - - - - - - - - Extended Setup - - - This is a continuation of the basic installation, please read - that first! - - - A slightly more flexible way to setup Smarty is to - extend the class and - initialize your Smarty environment. So instead of repeatedly setting - directory paths, assigning the same vars, etc., we can do that in one place. - - - Lets create a new directory /php/includes/guestbook/ - and make a new file called setup.php. In our example - environment, /php/includes is in our - include_path. - Be sure you set this up too, or use absolute file paths. - - - - /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - Now lets alter the index.php file to use - setup.php: - - - - /web/www.example.com/guestbook/htdocs/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Now you see it is quite simple to bring up an instance of Smarty, just use - Smarty_GuestBook() which automatically initializes everything for our - application. - - - - - - - - diff --git a/docs/id/language-defs.ent b/docs/id/language-defs.ent deleted file mode 100644 index 0891dd26..00000000 --- a/docs/id/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/id/language-snippets.ent b/docs/id/language-snippets.ent deleted file mode 100644 index 525d7bd7..00000000 --- a/docs/id/language-snippets.ent +++ /dev/null @@ -1,66 +0,0 @@ - - - - Catatan Teknis - - Parameter merge merupakan kunci array, maka jika - anda menggabung dua array berindeks secara numerik, keduanya bisa saling - menimpa atau hasil dalam kunci non-sekuensial. Ini tidak seperti fungsi - PHP - array_merge() yang menghapus kunci numerik - dan menomorinya kembali. - -'> - - - Catatan Teknis - - Jika fungsi callback yang dipilih dalam bentuk - array(&$object, $method), hanya satu turunan dari - class yang sama dan dengan $method yang sama bisa - diregistrasi. Fungsi callback teregistrasi terbaru - akan digunakan dalam skenario seperti itu. - -'> - - - Sebagai parameter opsional ketiga, anda dapat mengoper - $compile_id. - Ini dalam keadaan di mana anda ingin mengompilasi versi berbeda terhadap - template yang sama, seperti memiliki template terpisa dikompilasi untuk - bahasa yang berbeda. Penggunaan lainnya untuk - $compile_id ialah saat anda menggunakan lebih dari - satu - $template_dir - tapi hanya satu - $compile_dir. - Set $compile_id secara terpisah untuk setiap - $template_dir, - atau sebaliknya template dengan nama sama akan saling menimpa. Anda juga - bisa menyetel variabel - $compile_id sekali daripada mengoperkan ini - ke setiap pemanggilan fungsi ini. -'> - - - Fungsi-php callback function dapat berupa: - - - String yang berisi nama fungsi - - - - Sebuah array dalam bentuk array(&$object, $method) dengan - &$object menjadi referensi ke sebuah - obyek dan $method menjadi string yang - berisi nama-metode - - - - Sebuah array dalam bentuk - array($class, $method) dengan - $class menjadi nama kelas dan - $method menjadi metode kelas. - - - '> \ No newline at end of file diff --git a/docs/id/livedocs.ent b/docs/id/livedocs.ent deleted file mode 100644 index 740b1885..00000000 --- a/docs/id/livedocs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - -'> -'> - - diff --git a/docs/id/preface.xml b/docs/id/preface.xml deleted file mode 100644 index 3cdad427..00000000 --- a/docs/id/preface.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - Kata Pengantar - - Tidak diragukan lagi salah satu pertanyaan yang paling sering diajukan - pada milis PHP: bagaimana saya membuat naskah PHP independen terhadap - tata letak? Sementara PHP dihitung sebagai "bahasa penaskahan melekat HTML", - setelah menulis beberapa proyek yang mencampur PHP dan HTML secara bebas, - datanglah satu ide yang memisahkan formulir dan isis adalah Good Thing [TM]. - Sebagai tambahan, dalam banyak perusahaan aturan pendesain tata letak dan - pemrogram adalah terpisah. Konsekuensinya, pencarian solusi templating - terjadi kemudian. - - - Dalam perusahaan kami contohnya, pengembangan aplikasi terjadi - sebagai berikut: Setelah peryaratan dokumen selesai, pendesain - interface membuat maket interface dan memberikannya ke pemrogram. - Pemrogram mengimplementasikan logika bisnis dalam PHP dan menggunakan - maket interface untuk membuat rangka template. Proyek kemudian diserahkan - ke pendesain HTML/ata letak halaman web, orang tang membawa template - sampai penuh dengan kemegahan. Proyek mungkin bolak-balik diantara - pemrogram/HTML beberapa kali. Selanjutnya, adalah penting untuk mempunyai - dukungan template karena pemrogram tidak ingin melakukan hal yang - berkaitan dengan HTML dan tidan ingin pendesain HTML memaketkannya dengan - kode PHP. Pendesain memerlukan dukungan untuk file konfigurasi, blok - dinamis dan hal lain yang berkenaan dengan interface, tapi mereka tidak - harus berhadapan dengan kerumitan bahasa pemrograman PHP. - - - Melihat di banyaknya solusi template untuk PHP hari ini, kebanyakan - darinya menyediakan cara yang belum sempurna atas penggantian variabel - ke dalam template dan melakukan bentuk terbatas dari fungsionalitas blok - dinamis. Tapi kebutuhan kita memerlukan sedikit lebih banyak dari itu. - Kami tidak menginginkan pemrogram untuk berurusan dengan tata letak HTML - SAMA SEKALI, tapi ini hampir tidak bisa dihindari. Sebagai contoh, jika - pendesain menginginkan warna latar belakang untuk berubah pada blok - dinamis, ini harus dikerjakan dengan pemrogram terlebih dulu. Kami juga - membutuhkan pendesain untuk bisa menggunakan file konfigurasinya sendiri, - dan menarik variabel darinya ke dalam template. Daftar terus bertambah. - - - Kami mulai menulis spesifikasi untuk mesin template di akhir 1999. - Setelah menyelesaikan spesifikasi, kami mulai bekerja pada mesin template - yang ditulis dalam C yang dengan harapan dapat diterima untuk disertakan - dengan PHP. Kami tidak hanya mengalami teknis yang kompleks, tapi juga - ada debat panas mengenai apa yang harus dilakukan dan tidak oleh mesin - template . Dari pengalaman ini, kami memutuskan bahwa mesin template - harus ditulis dalam PHP sebagai kelas, agar setiap orang menggunakannya - bila sesuai. Maka kami menulis mesin yang tidak hanya itu dan - SmartTemplate memperlihatkan keberadaannya - (catatan: kelas ini tidak pernah dikirimkan untuk umum). Ia adalah kelas - yang mengerjakan hampir apapun yang kami inginkan: substitusi variabel - reguler, didukung termasuk template lain, integrasi dengan file - konfigurasi, melekatkan kode PHP, fungsionalitas pernyataan 'if' terbatas - dan blok dinamis lebih stabil yang dapat diperbanyak secara berulang. Ia - melakukan ini semua dengan ekspresi reguler dan kode diubah menjadi, - harus kami katakan, bisa dipahami. Ia juga tercatat lambat dalam aplikasi - besar dari semua penguraian dan ekspresi reguler mengerjakannya harus - melakukannya untuk setiap permintaan. Masalah terbesar dari sudut pandang - pemrogram adalah semua pekerjaan yang perlu dalam naskah PHP untuk - menyiapkan dan memproses template dan blok dimasis. Bagaimana kami membuat - ini lebih mudah? - - - Lalu datanglah bayangan atas apa yang secara utama menjadi Smarty. Kami - mengtahui seberapa cepat kode PHP tanpa melebihkan penguraian template. - Kami juga mengetahui bagaimana teliti dan memaksanya bahasa PHP terlihat - bagi umumnya pendesain, dan ini bisa diatasi dengan sintaks template yang - lebih sederhana. Lalu bagaimana jika kami menggabungkan dua kekuatan? - Selanjutnya, Smarty dilahirkan... :-) - - - - diff --git a/docs/id/programmers/advanced-features/advanced-features-objects.xml b/docs/id/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index e2b47e56..00000000 --- a/docs/id/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - Obyek - - Smarty membolehkan akses ke - obyek PHP melalui template. - Ada dua cara untuk mengaksesnya. - - - - - Cara pertama adalah meregistrasi obyek ke - template, lalu menaksesnya via sintaks mirip dengan - fungsi kustom. - - - Cara kedua adalah fungsi assign() - obyek ke template dan mengaksesnya seperti halnya variabel lainnya yang - ditempati. - - - - - Metode pertama ini merupakan sintaks template lebih baik. Ia juga lebih aman, - karena obyek terdaftar dapat dibatasi ke metode atau properti tertentu. AKan tetapi, - obyek terdaftar tidak bisa diulang terus menerus atau ditempati - dalam obyek arrays, dll. Metode yang anda pilih akan ditentukan oleh - kebutuhan anda, tapi gunakan metode pertama bila memungkinkan untuk - memelihara sintaks template menjadi minimum. - - - Jika $security - dihidupkan, tidak ada metode privat atau fungsi yang dapat diakses - (diawali dengan '_'). Jika ada metode dan properti dari nama yang sama, - metode yang akan dipakai. - - - Anda dapat membatasi metode dan propertis yang bisa diakses dengan - mendaftarkannya dalam sebuah array sebagai parameter ketiga registrasi. - - - Secara standar, parameter dioperkan ke obyek melaluis template, dioperkan - dengan cara yang sama - fungsi kustom mendapatkannya. - Array asosiatif dioper sebagai parameter pertama, dan obyek smarty sebagai - yang kedua. Jika anda menginginkan parameter mengoper satu parameter - sekali waktu untuk setiap argumen seperti pengoperan parameter obyek - tradisional, set parameter registrasi ke empat dengan &false;. - - - Parameter opsional ke lima hanya berpengaruh dengan - format dijadikan &true; - dan berisi daftar metode yang seharusnya diperlakukan sebagai blok. Itu - berarti metode ini mempunyai tag penutup dalam template - ({foobar->meth2}...{/foobar->meth2}) dan - parameter pada metode mempunyai sinopsis yang sama seperti parameter - untuk - - block-function-plugins: - Ia medapatkan empat parameters - $params, - $content, - &$smarty dan - &$repeat dan juga bertindak seperti - block-function-plugins. - - - Menggunakan obyek teregistrasi atau ditempatkan - -register_object('foobar',$myobj); - -// Jika kita ingin membatasi akses ke metode atau properti tertentu, daftarkan -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); - -// Jika anda ingin menggunakan format parameter obyek tradisional, operkan nilai boolean false -$smarty->register_object('foobar',$myobj,null,false); - -// Kita juga menempatkan obyek. assign_by_ref bila memungkinkan. -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - - - Dan ini adalah bagaimana untuk mengakses obyek anda dalam index.tpl: - - -meth1 p1='foo' p2=$bar} - -{* anda juga dapat menempatkan output *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* akses obyek kita yang sudah ditempatkan *} -{$myobj->meth1('foo',$bar)} -]]> - - - - Lihat juga register_object() - dan - assign(). - - - diff --git a/docs/id/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/id/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index c2b67ae3..00000000 --- a/docs/id/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - Filter Output - - Ketika template dipanggil via - display() atau - fetch(), outputnya bisa - dikirimkan melalui satu atau lebih filter output. Ini berbeda dari - - postfilters - karena postfilters beroperasi pada template terkompilasi sebelum disimpan - ke disk, sedangkan filter output beroperasi pada output template ketika ia - dijalankan. - - - - Filter output bisa - teregistrasi atau diambil dari - direktori plugins dengan - menggunakan metode - load_filter() - atau dengan menyetel variabel - $autoload_filters. - Smarty akan mengoper output template sebagai argumen pertama, - dan mengharapkan fungsi untuk mengembalikan hasil proses. - - - Menggunakan template outputfilter - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// sekarang setiap ada alamat email dalam output template akan mempunyai -// perlindungan sederhana terhadap spambots -?> -]]> - - - - Lihat juga - register_outpurfilter(), - load_filter(), - $autoload_filters, - postfilters dan - $plugins_dir. - - - diff --git a/docs/id/programmers/advanced-features/advanced-features-postfilters.xml b/docs/id/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 47fb83df..00000000 --- a/docs/id/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - Postfilters - - Template postfilters adalah fungsi PHP di mana templates anda dijalankan - setelah dikompilasi. Postfilters bisa - teregistrasi atau diambil dari - direktori plugins - dengan menggunakan fungsi - load_filter() - atau dengan menyetel variabel - $autoload_filters. - Smarty akan mengoper kode template terkompilasi sebagai argumen, - dan mengharapkan fungsi untuk mengembalikan hasil pemrosesan. - - - Menggunakan template postfilter - -\n\"; ?>\n".$tpl_source; -} - -// daftarkan postfilter -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - Postfilter di atas akan membuat Smarty template - terkompilasi - index.tpl terlihat seperti: - - - -{* konten template seterusnya... *} -]]> - - - - Lihat juga - register_postfilter(), - prefilters - dan - load_filter(). - - - diff --git a/docs/id/programmers/advanced-features/advanced-features-prefilters.xml b/docs/id/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 9d384e4a..00000000 --- a/docs/id/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - Prefilters - - Template prefilters adalah fungsi PHP di mana template anda dijalankan - sebelum dikompilasi. Ini bagus untuk preproses - template anda untuk menghapus komentar yang tidak diinginkan, mengawasi - apa yang disimpan orang dalam templatenya, dll. - - - Prefilters bisa teregistrasi atau diambil dari - direktori plugins - dengan menggunakan fungsi load_filter() atau dengan - menyetel variabel - $autoload_filters. - - - Smarty akan mengoper kode sumber template sebagai argumen pertama, dan - mengharapkan fungsi untuk mengembalikan hasil kode sumbber template. - - - Menggunakan template prefilter - - Ini akan menghapus semua komentar html dalam sumber template. - - -/U",'',$tpl_source); -} - -// daftarkan prefilter -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - - - - Lihat juga - register_prefilter(), - postfilters - dan - load_filter(). - - - diff --git a/docs/id/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/id/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 67b4ccb9..00000000 --- a/docs/id/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - Fungsi Pengendali Cache - - Sebagai alternatif untuk menggunakan mekanisme cache berbasis-file - standar, anda bisa menetapkan fungsi penanganan cache kustom yang - akan digunakan untuk - membaca, menulis dan - membersihkan file yang di-cache. - - - Buat sebuah fungsi dalam aplikasi anda yang akan digunakan Smarty - sebagai pengendali cache. Set namanya dalam variabel kelas - - $cache_handler_func -. Smarty - sekarang akan menggunakan ini untuk menangani data yang di-cache. - - - - - Argumen pertama adalah aksi, yang akan berupa salah satu dari - read, write dan - clear. - - - - Parameter kedua adalah obyek Smarty. - - - Paremeter ketiga adalah konten yang di-cache. - Setelah menulis, Smarty mengoper konten yang - di-cache dalam parameter ini. Setelah membaca, - Smarty mengharapkan fungsi anda untuk menerima parameter ini - dengan referensi dan menempatkannya dengan data yang di-cache. - Setelah membersihkan, mengoper variabel dummy - di sini karena ia tidak digunakan. - - - - Parameter ke empat adalah nama file template -, - diperlukan untuk membaca/menulis. - - - - Parameter ke lima adalah opsional $cache_id. - - - - Parameter ke enam adalah opsional - $compile_id. - - - - Parameter ke tujuh dan parameter terakhir $exp_time - ditambahkan dalam Smarty-2.6.0. - - - - - - Contoh menggunakan MySQL sebagai sumber cache - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -database mysql diharapkan dalam format ini: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -**************************************************/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // set db host, user dan sandi di sini - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // buat id cache unik - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg('cache_handler: could not connect to database'); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // baca cache dari database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // simpan cache ke database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - case 'clear': - // clear cache info - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - default: - // salah, aksi tidak dikenal - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - - diff --git a/docs/id/programmers/advanced-features/template-resources.xml b/docs/id/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 406c800b..00000000 --- a/docs/id/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,261 +0,0 @@ - - - - Sumber daya - - Template mungkin berasal dari berbagai sumber. Ketika anda - display() atau - fetch() - sebuah template, atau saat anda menyertakan template dari dalam - template lain, - anda menyertakan sebuah tipe sumber daya, diikuti - oleh path dan nama template terkait. Jika sumber daya tidak secara - eksplisit diberi nilai, - $default_resource_type yang diasumsikan. - - - - Templates dari $template_dir - - Template dari - $template_dir tidak membutuhkan sumber - daya template -, meskipun anda dapat menggunakan sumber daya - file: untuk konsistensi. Cukup sertakan path ke template yang - ingin anda gunakan relatif ke direktori akar - $template_dir. - - - Menggunakan template dari $template_dir - -display('index.tpl'); -$smarty->display('admin/menu.tpl'); -$smarty->display('file:admin/menu.tpl'); // sama seperti yang di atas -?> -]]> - -Dari dalam template Smarty - - - - - - - Template dari direktori mana saja - - Template di luar - $template_dir - memerlukan tipe sumber daya template file:, diikuti - oleh path absolut ke template. - - - Menggunakan template daru direktori mana saja - -display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Dan dari dalam template Smarty: - - - - - - - - Path file Windows - - Jika anda menggunakan mesin Windows, path file biasanya menyertakan - sebuah huruf drive (C:) di awal nama path. Pastikan untuk menggunakan - file: dalam path guna menghindari konflik namespace dan - memperoleh hasil yang diinginkan. - - - Menggunakan template dari path file windows - -display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Dan dari dalam template Smarty: - - - - - - - - - - Template dari sumber daya lain - - Anda dapat mengambil template menggunakan sumber daya apapun - yang mungkin anda akses dengan PHP: database, soket, LDAP, dan - seterusnya. Anda melakukan ini dengan menulis fungsi plugins - sumber daya dan mendaftarkannya dengan Smarty. - - - - Lihat seksi plugins sumber daya - untuk informasi lebih jauh mengenai fungsi yang harus anda sediakan. - - - - - Catatan bahwa anda tidak bisa menimpa sumber daya built-in - file:, tapi anda dapat menyediakan sumber daya yang - mengambil template dari sistem file dalam beberapa cara lain dengan - mendaftarkan di bawah nama sumber daya lain. - - - - Menggunakan sumber daya kustom - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // tidak ada pemanggilan database di sini untuk mempopulasikan $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // menganggap seluruh template aman - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // tidak digunakan untu templates -} - -// mendaftarkan nama sumber daya "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// menggunakan sumber daya dari naskah php -$smarty->display("db:index.tpl"); -?> -]]> - - - Dan dari dalam template Smarty: - - - - - - - - - Fungsi pengendali template default - - Anda bisa menetapkan fungsi yang dipakai untuk mengambil - konten template - seandainya template tidak dapat diambil dari - sumber dayanya. Satu kegunaan dari ini adalah untuk membuat - template yang tidak ada secara-langsung. - - - Menggunakan fungsi pengendali template default - -$smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 'contents'=>$template_source ), $smarty_obj ); - return true; - } - } else { - // bukan sebuah file - return false; - } -} - -// set pengendali standar -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - - diff --git a/docs/id/programmers/api-functions/api-append-by-ref.xml b/docs/id/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 9d2f7400..00000000 --- a/docs/id/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - append_by_ref() - menambah nilai dengan referensi - - - Deskripsi - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - Ini digunakan untuk - append() nilai ke template - dengan referensi. - Jika anda menambah sebuah variabel dengan referensi lalu mengubah nilainya, - nilai yang ditambahkan melihat perubahannya juga. Untuk - objects, - append_by_ref() juga menghindari duplikat obyek yang ditambahkan - dalam-memori. - Lihat manual PHP pada mereferensi variabel untuk penjelasan lebih dalam. Jika - anda mengoper parameter opsional ketiga yakni &true;, nilai akan digabung - dengan array daripada ditambahkan. - - ¬e.parameter.merge; - - append_by_ref - -append_by_ref('Name', $myname); -$smarty->append_by_ref('Address', $address); -?> -]]> - - - - Lihat juga - append(), - assign() - dan - get_template_vars(). - - - - - diff --git a/docs/id/programmers/api-functions/api-append.xml b/docs/id/programmers/api-functions/api-append.xml deleted file mode 100644 index 2275fafd..00000000 --- a/docs/id/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - append() - menambahkan sebuah element ke array yang ditempatkan - - - Deskripsi - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - -Jika anda menambahkan ke nilai string, ia diubah ke nilai array dan kemudian ditambahkannya . - Anda bisa mengoper pasangan nama/nilai, atau array asosiatif yang berisi pasangan nama/nilai. - Jika anda mengoper parameter opsional ketiga &true;, nilai akan digabung dengan array saat ini - daripada ditambahkannya. - - ¬e.parameter.merge; - - append - -append('foo', 'Fred'); -// Setelah baris ini, foo sekarang terlihat sebagai array dalam template -$smarty->append('foo', 'Albert'); - -$array = array(1 => 'one', 2 => 'two'); -$smarty->append('X', $array); -$array2 = array(3 => 'three', 4 => 'four'); -// The following line will add a second element to the X array -$smarty->append('X', $array2); - -// mengoper sebuah array - asosiatif -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - Lihat juga - append_by_ref(), - assign() - dan - get_template_vars() - - - - diff --git a/docs/id/programmers/api-functions/api-assign-by-ref.xml b/docs/id/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 7ec5a6e3..00000000 --- a/docs/id/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - assign_by_ref() - menempatkan nilai dengan referensi - - - Deskripsi - - voidassign_by_ref - stringvarname - mixedvar - - - Ini digunakan untuk assign() - nilai ke template denganvreferensi daripada membuat duplikat. Lihat manual PHP - pada mereferensi variabel untuk penjelasan. - - - Catatan Teknis - - Ini digunakan untuk menempatkan nilai ke template dengan referensi. - Jika anda menempatkan sebuah variabel dengan referensi maka mengubah - nilainya, nilai yang ditempati akan berubah juga. Untuk - obyek, - assign_by_ref() juga menghindari duplikasi obyek yang - ditempatkan dalam-memori. - Lihat manual PHP pada mereferensi variabel untuk penjelasan lebih dalam. - - - - assign_by_ref() - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - See also - assign(), - clear_all_assign(), - append(), - {assign} - and - get_template_vars(). - - - - - - diff --git a/docs/id/programmers/api-functions/api-assign.xml b/docs/id/programmers/api-functions/api-assign.xml deleted file mode 100644 index d6a1d08d..00000000 --- a/docs/id/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - assign() - menempatkan nilai ke template - - - Deskripsi - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - Anda bisa mengoper pasangan nama/nilai secara eksplisit, atau array - asosiatif yang berisi pasangan nama/nilai. - - - assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// mengurai array asosiatif -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// mengurai sebuah array -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// mengurai baris dari database (contoh adodb) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - Ini diakses dalam template dengan - - - - - - - Untuk mengakses penempatan array lebih komples lihat - {foreach} - dan - {section} - - - - Lihat juga - assign_by_ref(), - get_template_vars(), - clear_assign(), - append() - dan - {assign} - - - - diff --git a/docs/id/programmers/api-functions/api-clear-all-assign.xml b/docs/id/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index cd878b58..00000000 --- a/docs/id/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - clear_all_assign() - membersihkan nilai dari seluruh variabel yang ditempati - - - Deskripsi - - voidclear_all_assign - - - - clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// akan menampilkan yang di atas -print_r( $smarty->get_template_vars() ); - -// bersihkan seluruh variabel yang ditempati -$smarty->clear_all_assign(); - -// tidak akan menampilkan apapun -print_r( $smarty->get_template_vars() ); - -?> -]]> - - - - Lihat juga - clear_assign(), - clear_config(), - get_template_vars(), - assign() - dan append() - - - - - diff --git a/docs/id/programmers/api-functions/api-clear-all-cache.xml b/docs/id/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 1ee92316..00000000 --- a/docs/id/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - clear_all_cache() - membersihkan seluruh cache template - - - Deskripsi - - voidclear_all_cache - intexpire_time - - - Sebagai parameter opsional, anda bisa menyertakan waktu minimum dalam detik file cache - seharusnya sebelum dibersihkan. - - - clear_all_cache - -clear_all_cache(); - -// membersihkan seluruh file yang lebih dari satu jam lamanya -$smarty->clear_all_cache(3600); -?> -]]> - - - - Lihat juga - clear_cache(), - is_cached() - dan halaman - caching. - - - - diff --git a/docs/id/programmers/api-functions/api-clear-assign.xml b/docs/id/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index e6bdcf18..00000000 --- a/docs/id/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - clear_assign() - membersihkan nilai dari variabel yang ditempati - - - Deskripsi - - voidclear_assign - mixedvar - - -Ini dapat berupa nilai tunggal, atau array nilai. - - - clear_assign() - -clear_assign('Name'); - -// membersihkan multipel variabel -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - - - - Lihat juga - clear_all_assign(), - clear_config(), - get_template_vars(), - assign() - dan append() - - - - diff --git a/docs/id/programmers/api-functions/api-clear-cache.xml b/docs/id/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 5ef7f074..00000000 --- a/docs/id/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - clear_cache() - membersihkan cache untuk template tertentu - - - Deskripsi - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - - intexpire_time - - - - - Jika anda mempunyai multipel cache - untuk sebuah template, anda bisa membersihkan cache tertentu dengan - menyertakan cache_id sebagai parameter kedua. - - - Anda juga bisa mengirimkan - $compile_id - sebagai parameter ketiga. - Anda dapat mengelompokan template bersama - agar bisas dihapus sebagai sebuah grup, lihat - seksi cache untuk informasi lebih jauh. - - - Sebagai parameter opsional keempat, anda dapat menyertakan waktu - minimum dalam detik cache file seharusnya sebelum dibersihkan. - - - - - clear_cache() - -clear_cache('index.tpl'); - -// bersihkan cache untuk id cache tertentu dalam multipel-cache template -$smarty->clear_cache('index.tpl', 'MY_CACHE_ID'); -?> -]]> - - - - Lihat juga - clear_all_cache() - dan seksi - caching. - - - - - diff --git a/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index daf386bf..00000000 --- a/docs/id/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - clear_compiled_tpl() - membersihkan versi terkompilasi dari sumber daya template yang ditetapkan - - - Deskripsi - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - Ini membersihkan versi terkompilasi dari sumber daya template yang ditetapkan, - atau semua file template yang dikompilasi bila ini tidak ditetapkan. - Jika anda mengirimkan - $compile_id - hanya template terkompilasi untuk - $compile_id - spesifik ini yang dibersihkan. Jika anda mengirimkan exp_time, maka hanya - template terkompilasi yang lebih lama dari exp_time detik - yang dibersihkan, standarnya template terkompilasi dibersihkan dengan - mengabaikan usianya. - Fungsi ini hanya untuk penggunaan tingkat lanjut, tidak untuk kebutuhan normal. - - - clear_compiled_tpl() - -clear_compiled_tpl('index.tpl'); - -// bersihkan seluruh direktori kompilasi -$smarty->clear_compiled_tpl(); -?> -]]> - - - Lihat juga - clear_cache(). - - - - - diff --git a/docs/id/programmers/api-functions/api-clear-config.xml b/docs/id/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 41908a7a..00000000 --- a/docs/id/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - clear_config() - membersihkan variabel config yang ditempati - - - Deskripsi - - voidclear_config - stringvar - - - Ini membersihkan semua - variabel config - yang ditempati. - Jika nama variabel disertakan, hanya variabel itu yang dibersihkan. - - - clear_config() - -clear_config(); - -// bersihkan satu variabel -$smarty->clear_config('foobar'); -?> -]]> - - - - Lihat juga - get_config_vars(), - config variables, - config files, - {config_load}, - config_load() - dan - clear_assign(). - - - - diff --git a/docs/id/programmers/api-functions/api-config-load.xml b/docs/id/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 91e36fcd..00000000 --- a/docs/id/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - config_load() - mengambil data file config yang menempatinya ke template - - - Deskripsi - - voidconfig_load - stringfile - stringsection - - - Ini mengambil data - file config - dan menempatkannya ke template. Pekerjaan ini persis sama dengan fungsi template - - {config_load}. - - - Catatan Teknis - - Sejak Smarty 2.4.0, variabel template yang ditempati dipelihara terhadap - permintaan - fetch() - dan display(). - Config vars yang diambil dari - config_load() selalu dalam lingkup global. - File config juga dikompilasi untuk eksekusi lebih cepat, dan - memperhatikan setelan - - $force_compile dan - - $compile_check. - - - - config_load() - -config_load('my.conf'); - -// ambil seksi -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - Lihat juga - {config_load}, - get_config_vars(), - clear_config(), - dan - variabel config - - - - diff --git a/docs/id/programmers/api-functions/api-display.xml b/docs/id/programmers/api-functions/api-display.xml deleted file mode 100644 index b2a2f0a2..00000000 --- a/docs/id/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - display() - menampilkan template - - - Deskripsi - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - Ini menampilkan template tidak seperti - fetch(). - Sertakan tipe dan path sumber daya template yang benar. - Sebagai parameter opsional kedua, anda bisa mengirimkan - $cache id, lihat - seksi caching untuk informasi lebih jauh. - - ¶meter.compileid; - - display() - -caching = true; - -// hanya melakukan panggilan db jika cache tidak ada -if(!$smarty->is_cached('index.tpl')) { - - // buat dummy untuk beberapa data - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name', 'Fred'); - $smarty->assign('Address', $address); - $smarty->assign('data', $db_data); - -} - -// tampilkan output -$smarty->display('index.tpl'); -?> -]]> - - - - - Contoh sumber data lain dari display() - - Gunakan sintaks sumber daya template untuk - menampilkan file di luar - - $template_dir direktori. - - -display('/usr/local/include/templates/header.tpl'); - -// path file absolut (hal yang sama) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// path file absolut windows (HARUS memakai prefiks "file:") -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// sertakan dari sumber daya template bernama "db" -$smarty->display('db:header.tpl'); -?> -]]> - - - - Lihat juga fetch() dan - template_exists(). - - - - - - diff --git a/docs/id/programmers/api-functions/api-fetch.xml b/docs/id/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 98e4fe6a..00000000 --- a/docs/id/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - - fetch() - mengembalikan output template - - - Deskripsi - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - Ini mengembalikan output template daripada - menampilkan ouput. - Sertakan tipe dan path sumber daya template - yang benar. Sebagai parameter opsional ketiga, anda dapat mengirimkan - $cache id, lihat seksi caching - untuk informasi lebih jauh. - - ¶meter.compileid; - - - - fetch() - -caching = true; - -// hanya melakukan panggilan db jika cache tidak ada -if(!$smarty->is_cached('index.tpl')) { - - // buat dummy untuk beberapa data - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name','Fred'); - $smarty->assign('Address',$address); - $smarty->assign($db_data); - -} - -// tangkap output -$output = $smarty->fetch('index.tpl'); - -// lakukan sesuatu dengan $output di sini -echo $output; -?> -]]> - - - - - - - Menggunakan fetch() untuk mengirim sebuah email - - Template email_body.tpl - - - - - - Template email_disclaimer.tpl yang menggunakan pengubah - - {textformat}. - - - - - - Naskah php menggunakan fungsi PHP - - mail() - - -getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - - - - - - Lihat juga - {fetch} - display(), - {eval}, - dan - template_exists(). - - - - - diff --git a/docs/id/programmers/api-functions/api-get-config-vars.xml b/docs/id/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 3cc7717f..00000000 --- a/docs/id/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - get_config_vars() - mengembalikan nilai variabel config yang diambil - - - Deskripsi - - arrayget_config_vars - stringvarname - - - Jika tidak ada parameter yang diberikan, array dari semua - variabel config - array dikembalikan. - - - get_config_vars() - -get_config_vars('foo'); - -// dapatkan semua var config template yang diambil -$all_config_vars = $smarty->get_config_vars(); - -// lihat isinya -print_r($all_config_vars); -?> -]]> - - - - Lihat juga - clear_config(), - {config_load}, - config_load() - dan - get_template_vars(). - - - - diff --git a/docs/id/programmers/api-functions/api-get-registered-object.xml b/docs/id/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 3ba847a2..00000000 --- a/docs/id/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - get_registered_object() - mengembalikan referensi ke obyek terdaftar - - - Deskripsi - - arrayget_registered_object - stringobject_name - - - Ini berguna dari dalam fungsi kustom saat anda memerlukan akses langsung ke - obyek terdaftar. Lihat halaman - obyek untuk info lebih jauh. - - - get_registered_object() - -get_registered_object($params['object']); - // pemakaian $obj_ref sekarang mereferensi ke obyek - } -} -?> -]]> - - - - Lihat juga - register_object(), - unregister_object() - dan - halaman obyek - - - - diff --git a/docs/id/programmers/api-functions/api-get-template-vars.xml b/docs/id/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index d33a0c0b..00000000 --- a/docs/id/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - get_template_vars() - mengembalikan nilai variabel yang ditempatkan - - - Deskripsi - - arrayget_template_vars - stringvarname - - - Jika tidak diberikan parameter, array semua variabel yang - is given, an array of all ditempati - dikembalikan. - - - get_template_vars - -get_template_vars('foo'); - -// dapatkan semua var template yang ditempati -$all_tpl_vars = $smarty->get_template_vars(); - -// lihat isinya -print_r($all_tpl_vars); -?> -]]> - - - - Lihat juga assign(), - {assign}, - append(), - clear_assign(), - clear_all_assign() - dan - get_config_vars() - - - - - diff --git a/docs/id/programmers/api-functions/api-is-cached.xml b/docs/id/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 41237115..00000000 --- a/docs/id/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - is_cached() - mengembalikan true jika ada cache yang benar untuk template ini - - - Deskripsi - - boolis_cached - stringtemplate - stringcache_id - stringcompile_id - - - - - - Ini hanya bekerja jika - $caching disetel ke &true;, lihat - seksi caching untuk info lebih jauh. - - - - Anda juga dapat mengirimkan $cache_id sebagai parameter - opsional kedua seandainya anda menginginkan - multipel cache - untuk template yang diberikan. - - - - Anda dapat menyertakan - $compile id - sebagai parameter opsional ketiga. Jika anda mengabaikan parameter itu - persisten - $compile_id dipakai bila disetel. - - - - Jika anda tidak ingin mengirimkan $cache_id tapi ingin - mengirimkan - $compile_id anda harus mengirimkan - &null; sebagai $cache_id. - - - - - Catatan Teknis - - Jika is_cached() menghasilkan &true; ia sebenarnya - mengambil output yang di-cache dan menyimpannya secara internal. - Setiap panggilan berikutnya ke - display() atau - fetch() - akan mengembalikan ouput ini yang secara internal disimpan dan tidak - mencoba mengambil ulang file cache. Ini menghindari kondisi lomba yang - mungkin terjadi saat proses kedua membersihkan cache diantara panggilan - ke is_cached() dan ke - display() - dalam contoh di atas. Ini juga berarti panggilan ke - clear_cache() - dan perubahan lain dari setelan-cache mungkin tidak berpengaruh setelah - is_cached() mengembalikan &true;. - - - - - is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { -// lakukan panggilan database, tempatkan vars di sini -} - -$smarty->display('index.tpl'); -?> -]]> - - - - - is_cached() with multiple-cache template - -caching = true; - -if(!$smarty->is_cached('index.tpl', 'FrontPage')) { - // lakukan panggilan database, tempatkan vars di sini -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - - - - - - Lihat juga - clear_cache(), - clear_all_cache(), - and - seksi caching. - - - - - - diff --git a/docs/id/programmers/api-functions/api-load-filter.xml b/docs/id/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 5945a78d..00000000 --- a/docs/id/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - load_filter() - mengambil plugin filter - - - Deskripsi - - voidload_filter - stringtype - stringname - - - Argumen pertama menetapkan tipe filter yang diambil dan bisa salah satu dari - yang berikut ini: pre, post atau - output. - Argumen kedua menetapkan nama plugin filter. - - - Mengambil plugin filter - -load_filter('pre', 'trim'); - -// ambil prefilter lain bernama 'datefooter' -$smarty->load_filter('pre', 'datefooter'); - -// ambil filter output bernama 'compress' -$smarty->load_filter('output', 'compress'); - -?> -]]> - - - - Lihat juga - register_prefilter(), - register_postfilter(), - register_outputfilter(), - $autoload_filters - dan - advanced features. - - - - diff --git a/docs/id/programmers/api-functions/api-register-block.xml b/docs/id/programmers/api-functions/api-register-block.xml deleted file mode 100644 index ea734e58..00000000 --- a/docs/id/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - register_block() - secara dinamis meregistrasi plugins fungsi blok - - - Deskripsi - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - Gunakan ini untuk meregistrasi - plugin fungsi blok secara - dinamis. - Mengirimkan name fungsi blok, diikuti oleh nama fungsi - PHP yang mengimplementasikannya. - - &api.register.snippet; - - - cacheable dan cache_attrs - dapat diabaikan. Lihat seksi mengontrol output plugin yang dapat di-cache - atas bagaimana untuk mengimplementasikannya dengan benar. - - - register_block() - -register_block('translate', 'do_translation'); -?> -]]> - - - Di mana template adalah: - - - - - - - - Lihat juga - unregister_block() - dan halaman - fungsi blok plugin. - - - - - diff --git a/docs/id/programmers/api-functions/api-register-compiler-function.xml b/docs/id/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 6c3c28e7..00000000 --- a/docs/id/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - register_compiler_function() - secara dinamis meregistrasi plugins fungsi kompilator - - - Deskripsi - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - Mengirimkan nama - fungsi kompilator, - diikuti oleh fungsi PHP yang mengimplementasikannya. - - &api.register.snippet; - - - cacheable dapat diabaikan. Lihat - mengontrol output plugin - yang dapat di-cache atas bagaimana untuk menggunakannya dengan benar. - - - -Lihat juga - -unregister_compiler_function() -dan seksi -fungsi kompilator plugin. - - - - - diff --git a/docs/id/programmers/api-functions/api-register-function.xml b/docs/id/programmers/api-functions/api-register-function.xml deleted file mode 100644 index 7abcaa08..00000000 --- a/docs/id/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - register_function() - secara dinamis meregistrasi plugin fungsi template - - - Deskripsi - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - Mengirimkan nama fungsi template, - diikuti oleh nama fungsi PHP yang mengimplementasikannya. - - &api.register.snippet; - - - - cacheable dan cache_attrs dapat - diabaikan. Lihat mengontrol output plugin yang dapat di-cache - atas bagaimana menggunakannya dengan benar. - - - register_function() - -register_function('date_now', 'print_current_date'); - -function print_current_date($params, &$smarty) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - } - return strftime($format,time()); -} -?> -]]> - - - Dan dalam template - - - - - - - -Lihat juga -unregister_function() -dan seksi -fungsi plugin. - - - - - - diff --git a/docs/id/programmers/api-functions/api-register-modifier.xml b/docs/id/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index f2e25b9c..00000000 --- a/docs/id/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - register_modifier() - secara dinamis meregistrasi plugin pengubah - - - Deskripsi - - voidregister_modifier - stringname - mixedimpl - - - Mengirimkan nama pengubah template, diikuti oleh fungsi PHP yang - mengimplementasikannya. - - &api.register.snippet; - - - - register_modifier() - -register_modifier('ss', 'stripslashes'); - -?> -]]> - -Dalam template, pakai ss untuk membuang garis miring. - - -]]> - - - - - Lihat juga - unregister_modifier(), - register_function(), - seksi pengubah, - memperluas Smarty dengan plugins - dan - membuat pengubah plugin, - - - - diff --git a/docs/id/programmers/api-functions/api-register-object.xml b/docs/id/programmers/api-functions/api-register-object.xml deleted file mode 100644 index fc159b3b..00000000 --- a/docs/id/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - register_object() - meregistrasi obyek untuk digunakan dalam template - - - Deskripsi - - voidregister_object - stringobject_name - objectobject - arrayallowed_methods_properties - - booleanformat - arrayblock_methods - - - Lihat - seksi obyek - untuk informasi lebih jauh. - - - Lihat juga - get_registered_object(), - dan - unregister_object(). - - - - - - diff --git a/docs/id/programmers/api-functions/api-register-outputfilter.xml b/docs/id/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 870a8b0a..00000000 --- a/docs/id/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - register_outputfilter() - secara dinamis meregistrasi outputfilters - - - Deskripsin - - voidregister_outputfilter - mixedfunction - - - Gunakan ini untuk meregistrasi - outputfilters secara dinamis - guna beroperasi pada output template sebelum ia - ditampilkan. Lihat - filter output - template - untuk informasi lebih jauh atas bagaimana menyiapkan fungsi filter output. - - &api.register.snippet; - ¬e.parameter.function; - -Lihat juga -unregister_outputfilter(), - -load_filter(), -$autoload_filters -dan seksi -filter output template. - - - - diff --git a/docs/id/programmers/api-functions/api-register-postfilter.xml b/docs/id/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 3c1a7fea..00000000 --- a/docs/id/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - register_postfilter() - secara dinamis meregistrasi postfilters - - - Deskripsi - - voidregister_postfilter - mixedfunction - - - Gunakan ini untuk meregistrasi - postfilters secara - dinamis guna menjalankan template setelah ia dikompilasi. Lihat template postfilters untuk - informasi lebih jauh atas bagaimana menyiapkan postfilter fungsi. - - &api.register.snippet; - ¬e.parameter.function; - - Lihat juga - - unregister_postfilter(), - - register_prefilter(), - load_filter(), - - $autoload_filters - dan seksi - template output filters. - - - - - diff --git a/docs/id/programmers/api-functions/api-register-prefilter.xml b/docs/id/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 15c88f39..00000000 --- a/docs/id/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - register_prefilter() - secara dinamis meregistrasi prefilters - - - Deskripsi - - voidregister_prefilter - mixedfunction - - - Gunakan ini untuk meregistrasi - prefilters secara - dinamis guna menjalankan template sebelum ia dikompilas. Lihat template prefilters - untuk informasi lebih jauh atas bagaimana menyiapkan prefilter fungsi. - - &api.register.snippet; - ¬e.parameter.function; - - - - Lihat juga - unregister_prefilter(), - register_postfilter(), - register_ouputfilter(), - load_filter(), - $autoload_filters - dan seksi - template output filters. - - - - - diff --git a/docs/id/programmers/api-functions/api-register-resource.xml b/docs/id/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 363497e8..00000000 --- a/docs/id/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - register_resource() - secara dinamis meregistrasi sumberdaya - - - Deskripsi - - voidregister_resource - stringname - arrayresource_funcs - - - Gunakan ini untuk meregistrasi - plugin sumber daya secara - dinamis dengan Smarty. - Mengirimkan name sumber daya dab fungsi array PHP - yang mengimplementasikannya. Lihat - sumber daya template - untuk informasi lebih jauh atas bagaimana menyiapkan fungsi untuk mengambil - templates. - - Catatan Teknis - - Panjang nama sumber daya harus berisi setidaknya 2 karakter. Satu karakter - nama sumber daya akan diabaikan dan dipakai sebagai bagian dari path file, - misalnya $smarty->display('c:/path/to/index.tpl'); - - - - - - - - array-fungsi-php resource_funcs - harus mempunyai 4 atau 5 elemen. - - - Dengan 4 elemen, elemen adalah callback-fungsi untuk fungsi source - masing-masing, - timestamp, secure dan - trusted dari sumber daya. - - - Dengan 5 elemen, elemen pertama harus berupa referensi obyek atau nama kelas - obyek atau kelas yang mengimplementasikan sumber daya dan 4 elemen berikut - harus berupa nama metode yang mengimplementasikan source, - timestamp, secure - dan trusted. - - - - register_resource() - -register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - - - - - Lihat juga - unregister_resource() - dan seksi - sumber daya template. - - - - - diff --git a/docs/id/programmers/api-functions/api-template-exists.xml b/docs/id/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index ed999d0d..00000000 --- a/docs/id/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - template_exists() - memeiksa apakah template yang ditetapkan sudah ada - - - Deskripsi - - booltemplate_exists - stringtemplate - - - Ini dapat menerima baik path ke template pada sistem file ataupun string - sumber daya yang menetapkan template. - - - - template_exists() - - Contoh ini menggunakan $_GET['page'] untuk - {include} - konten template. Jika template tidak ada maka halaman kesalahan yang - ditampilkan. Pertama page_container.tpl - - - -{$title} - -{include file='page_top.tpl'} - -{* sertakan halaman konten tengah *} -{include file=$content_template} - -{include file='page_footer.tpl'} - -]]> - - - Dan naskah php - - -template_exists($mid_template) ){ - $mid_template = 'page_not_found.tpl'; -} -$smarty->assign('content_template', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - - - - - Lihat juga - display(), - fetch(), - {include} - and - {insert} - - - - diff --git a/docs/id/programmers/api-functions/api-trigger-error.xml b/docs/id/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 8ecc1da4..00000000 --- a/docs/id/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - trigger_error() - menampilkan pesan kesalahan - - - Deskripsi - - voidtrigger_error - stringerror_msg - intlevel - - - Fungsi ini dapat dipakai untuk menampilkan pesan kesalahan menggunakan Smarty. - Parameter level bisa salah satu dari nilai yang dipakai - fungsi PHP - trigger_error(), contoh: - E_USER_NOTICE, E_USER_WARNING, dll. - Standarnya adalah E_USER_WARNING. - - - Lihat juga - - $error_reporting, - debugging - dan - pemecahan masalah. - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-block.xml b/docs/id/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index d8bc028d..00000000 --- a/docs/id/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - unregister_block() - secara dinamis membatalkan registrasi plugin fungsi blok - - - Deskripsi - - voidunregister_block - stringname - - - Gunakan ini untuk membatalkan registrasi - plugin fungsi blok secara - dinamis. - Mengirimkan fungsi blok name. - - - - Lihat juga - register_block() - dan - plugins fungsi blok. - - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-compiler-function.xml b/docs/id/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index d5033921..00000000 --- a/docs/id/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - unregister_compiler_function() - secara dinamis membatalkan registrasi fungsi kompilator - - - Deskripsi - - voidunregister_compiler_function - stringname - - - Mengirimkan name fungsi kompilator. - - - - Lihat juga - - register_compiler_function() - dan - fungsi kompilator plugin. - - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-function.xml b/docs/id/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 2acea1fc..00000000 --- a/docs/id/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - unregister_function - secara dinamis membatalkan registrasi plugin fungsi template - - - Deskripsi - - voidunregister_function - stringname - - - Mengirimkan fungsi template name. - - - unregister_function - -unregister_function('fetch'); - -?> -]]> - - - - - Lihat juga - register_function(). - - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-modifier.xml b/docs/id/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index aead7d7b..00000000 --- a/docs/id/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - unregister_modifier() - secara dinamis membatalkan registrasi plugin pengubah - - - Deskripsi - - voidunregister_modifier - stringname - - - Mengirimkan pengubah template name. - - - unregister_modifier() - -unregister_modifier('strip_tags'); - -?> -]]> - - - - Lihat juga - register_modifier() - dan - pengubah plugin, - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-object.xml b/docs/id/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 58a50088..00000000 --- a/docs/id/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - unregister_object() - secara dinamis membatalkan registrasi obyek - - - Deskripsi - - voidunregister_object - stringobject_name - - - - Lihat juga - register_object() - dan - objects section - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-outputfilter.xml b/docs/id/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 2daf6181..00000000 --- a/docs/id/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - unregister_outputfilter() - secara dinamis membatalkan registrasi filter output - - - Deskripsi - - voidunregister_outputfilter - stringfunction_name - - - Gunakan ini untuk membatalkan registrasi filter output secara dinamis. - - - - Lihat juga - - register_outputfilter() - dan - template output filters. - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-postfilter.xml b/docs/id/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 5250f272..00000000 --- a/docs/id/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - unregister_postfilter() - secara dinamis membatalkan registrasi postfilter - - - Deskripsi - - voidunregister_postfilter - stringfunction_name - - - - Lihat juga - - register_postfilter() - dan - template post filters. - - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-prefilter.xml b/docs/id/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 79f45c20..00000000 --- a/docs/id/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - unregister_prefilter() - secara dinamis membatalkan registrasi prefilter - - - Deskripsi - - voidunregister_prefilter - stringfunction_name - - - - Lihat juga - - register_prefilter() - dan - pre filters. - - - - - diff --git a/docs/id/programmers/api-functions/api-unregister-resource.xml b/docs/id/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 6add4729..00000000 --- a/docs/id/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - unregister_resource() - secara dinamis membatalkan registrasi sebuah plugin sumber daya - - - Deskripsi - - voidunregister_resource - stringname - - - mengirimkan name sumber daya. - - - unregister_resource() - -unregister_resource('db'); - -?> -]]> - - - - - Lihat juga - - register_resource() - dan - template resources - - - - - diff --git a/docs/id/programmers/api-variables/variable-autoload-filters.xml b/docs/id/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 9f4948ad..00000000 --- a/docs/id/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - $autoload_filters - - Jika ada beberapa filter yang ingin diambil pada setiap permintaan - template, anda bisa menetapkannya menggunakan variabel ini dan Smarty - akan secara otomatis mengambilnya bagi anda. Variabel adalah array - asosiatif di mana kunci adalah tipe filter dan nilai adalah array - nama filter. Sebagai contoh: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - Lihat juga - register_outputfilter(), - register_prefilter(), - register_postfilter() - dan - load_filter() - - - - diff --git a/docs/id/programmers/api-variables/variable-cache-dir.xml b/docs/id/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 90fc1b5a..00000000 --- a/docs/id/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - $cache_dir - - Ini adalah nama direktori di mana cache template disimpan. Standarnya - adalah ./cache, berarti bahwa - Smarty akan mencari direktori cache/ - di direktori yang sama seperti naskah php yang dijalankan - direktori ini harus bisa ditulisi oleh server web - , - lihat instalasi untuk info - lebih lengkap. - - - Anda juga dapat menggunakan fungsi - pengendali cache kustom sendiri guna mengontrol file cache, yang akan - mengabaikan setelan ini. - Lihat juga - $use_sub_dirs. - - - Catatan Teknis - - Setelan ini harus path relatif atau absolut. include_path tidak dipakai - untuk menulis file. - - - - Catatan Teknis - - Tidak direkomendasikan untuk menyimpan direktori ini di bawah akar - dokumen server web. - - - - - Lihat juga - $caching, - $use_sub_dirs, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check - dan - seksi caching. - - - - - diff --git a/docs/id/programmers/api-variables/variable-cache-handler-func.xml b/docs/id/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 788999c1..00000000 --- a/docs/id/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $cache_handler_func - - Anda dapat menyertakan fungsi kustom untuk menangani file cache daripada - menggunakan metode built-in menggunakan - $cache_dir. - Lihat seksi fungsi - pengendali cache untuk lebih jelasnya. - - - - diff --git a/docs/id/programmers/api-variables/variable-cache-lifetime.xml b/docs/id/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index 2d4eb91b..00000000 --- a/docs/id/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - $cache_lifetime - - Ini adalah lama waktu dalam detik berlakunya cache template. - Sekali ini berakhir, cache akan dibuat ulang. - - - - - $caching harus dihidupkan (baik 1 atau 2) agar - $cache_lifetime berfungsi dengan benar. - - - - Nilai -1 akan memaksa cache agar tidak pernah berakhir. - - - Nilai 0 akan menyebabkan cache selalu dibuat ulang (hanya - baik untuk pengujian saja, untuk mematikan cache lebih efisien ialah - menyetel set $caching = 0). - - - - Jika anda ingin memberikan template tertentu memiliki usia cache sendiri, - anda dapat melakukan ini dengan menyetel - $caching = 2, - kemudian setel $cache_lifetime ke nilai unik - sebelum memanggil display() - atau fetch(). - - - - - Jika - $force_compile dihidupkan, file cache akan - dibuat ulang setiap waktu, secara efektif mematikan cache. Anda bisa - membersihkan seluruh file cache dengan fungsi clear_all_cache(), - atau file cache individual (atau grup) dengan fungsi clear_cache(). - - - - - diff --git a/docs/id/programmers/api-variables/variable-cache-modified-check.xml b/docs/id/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 83b276ea..00000000 --- a/docs/id/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - -$cache_modified_check - - Jika disetel &true;, Smarty akan memperhatikan Jika-Diubah-Sejak - header dikirimkan dari klien. Jika cap waktu file yang di-cache tidak diubah - sejak kuncjungan terakhir, maka header '304: Not Modified' - akan dikirimkan daripada kontennya. Pekerjaan ini hanya pada kodten yang - di-cache tanpa tag - {insert}. - - - - Lihat juga - $caching, - $cache_lifetime, - $cache_handler_func, - dan - seksi caching. - - - - - diff --git a/docs/id/programmers/api-variables/variable-caching.xml b/docs/id/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 4c6f46c5..00000000 --- a/docs/id/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - $caching - - Ini memberitahu Smarty apakah melakukan cache output template atau tidak ke - $cache_dir. - Standarnya ini disetel 0 yakni dimatikan. Jika template anda membuat konten - berlebihan, disarankan untuk menghidupkan - $caching, karena ini akan menghasilkan keuntungan - performansi signifikan. - - - - Anda juga memiliki - multipel - cache untuk template yang sama. - - - - - Nilai 1 atau 2 menghidupkan cache. - - - - Nilai 1 memberitahu Smarty untuk menggunakan variabel - $cache_lifetime - saat ini guna menetapkan apakah cache sudah berakhir. - - Nilai 2 memberitahu Smarty untuk menggunakan nilai - $cache_lifetime - saat waktu cache dibuat. Dengan cara ini anda bisa menyetel - $cache_lifetime - cukup sebelum fetching - template untuk memiliki kontrol granular melewati berakhirnya cache tertentu. - Lihat juga is_cached(). - - - - Jika $compile_check - dihidupkan, konten yang di-cache akan dibuat ulang bila setiap template - atau file config yang adalah bagian dari cache ini diubah. - - - Jika - $force_compile dihidupkan, konten yang - di-cache akan selalu dibuat ulang. - - - - Lihat juga - $cache_dir, - $cache_lifetime, - $cache_handler_func, - $cache_modified_check, - is_cached() -dan -seksi caching. - - - - diff --git a/docs/id/programmers/api-variables/variable-compile-check.xml b/docs/id/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index c70e1fd4..00000000 --- a/docs/id/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - $compile_check - - Setelah setiap permintaan dari aplikasi PHP, Smarty menguji untuk melihat - apakah template saat ini sudah diubah (cap waktu berbeda) sejak terakhir - dikompilasi, ia merekompilasi ulang template itu. Jika template tidak - diubah ia akan mengompilasi dengan mengabaikan setelan ini. - Standarnya variabel ini disetel ke &true;. - - Sekali aplikasi disimpan ke dalam produksi (misalnya template - tidak akan berubah), langkah pemeriksaan kompilasi tidak lagi - diperlukan. Pastikan untuk menyetel - $compile_check ke &false; untuk - performansi maksimal. Catatan bahwa jika anda mengubah ini ke &false; - dan file template berubah, anda *tidak* akan melihat perubahan karena - template tidak akan direkompilasi. Jika - $caching - dihidupkan dan $compile_check dihidupkan, maka - file yang di-cache akan dibuat ulang bila file template terkait atau file - konfig dimutakhirkan. Lihat - $force_compile dan clear_compiled_tpl() - . - - - diff --git a/docs/id/programmers/api-variables/variable-compile-dir.xml b/docs/id/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 41b5bdc0..00000000 --- a/docs/id/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - $compile_dir - - Ini adalah nama direktori di mana template terkompilasi ditempatkan. - Standarnya ialah - ./templates_c, berarti bahwa Smarty - akan mencari direktori templates_c/ - di direktori yang sama seperti naskah php yang sedang dijalankan. - Direktori ini harus bisa ditulisi oleh server - web, - lihat instalasi - untuk informasi lebih jauh. - - - - Catatan Teknis - - Setelan ini harus path relatif atau absolut, absolute path. - include_path tidak dipakai untuk menulis file. - - - - Catatan Teknis - - Tidak direkomendasikan untuk menyimpan direktori di bawah akar dokumen - server web. - - - - Lihat juga $compile_id - dan - $use_sub_dirs. - - - diff --git a/docs/id/programmers/api-variables/variable-compile-id.xml b/docs/id/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index ca298a4b..00000000 --- a/docs/id/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - $compile_id - - Pengenal kompilasi persisten. Sebagai alternatif untuk mengirimkan - $compile_id yang sama ke setiap fungsi panggil, anda - bisa menyetel - $compile_id ini dan ia akan dipakai secara implisit - setelahnya. - - - Dengan $compile_id anda bisa mengatasi batasan di mana - anda tidak bisa memakai - $compile_dir - yang sama untuk - $template_dirs yang berbeda. Jika anda menyetel - $compile_id untuk setiap - $template_dir - maka Smarty bisa memberitahu bagian template terkompilasi dengan - $compile_id-nya. - - - Jika anda mempunyai misalnya - prefilter - yang melokalisir template anda (yaitu: menterjemahkan bahasa bagian - tersendiri) saat waktu kompilasi, selanjutnya anda dapat memakai - bahasa saat ini sebagai $compile_id dan - anda akan mendapatkan satu set template terkompilasi untuk setiap - bahasa yang anda gunakan. - - - Apliukasi lain akan menggunakan direktori kompilasi yang sama melalui - multipel domain / multipel host virtual. - - - $compile_id dalam lingkungan host virtual - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - - - - diff --git a/docs/id/programmers/api-variables/variable-compiler-class.xml b/docs/id/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 8a124cbb..00000000 --- a/docs/id/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $compiler_class - - Menetapkan nama kelas kompilator yang akan digunakan Smarty untuk - mengkompilasi template. Standarnya adalah 'Smarty_Compiler'. Hanya - untuk pengguna tingkat lanjut. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-config-booleanize.xml b/docs/id/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 7e9c533e..00000000 --- a/docs/id/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $config_booleanize - - Jika disetel &true;, nilai file konfig - dari on/true/yes - dan off/false/no diubah ke nilai boolean secara - otomatis. Dengan cara ini anda bisa menggunakan nilai dalam template - seperti: - {if #foobar#}...{/if}. Jika foobar - on, true atau yes, - pernyataan {if} akan dijalankan. - Standarnya adalah &true;. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-config-dir.xml b/docs/id/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index e07b1f13..00000000 --- a/docs/id/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - $config_dir - - Ini adalah direktori yang digunakan untuk menyimpan - file config yang - dipakai pada templates. Standarnya adalah - ./configs, berarti bahwa - Smarty akan mencari direktori configs/ - di direktori yang sama seperti naskah php sedang dijalankan. - - - Catatan Teknis - - Tidak direkomendasikan untuk menyimpan direktori ini di bawah akar - dokumen server web. - - - - diff --git a/docs/id/programmers/api-variables/variable-config-fix-newlines.xml b/docs/id/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index ef02ad4a..00000000 --- a/docs/id/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $config_fix_newlines - - Jika disetel ke &true;, baris baru mac dan dos misalnya '\r' dan - '\r\n' dalam file konfig diubah ke - '\n' ketika ia diuraikan. Standarnya adalah &true;. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-config-overwrite.xml b/docs/id/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 508d87b2..00000000 --- a/docs/id/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - $config_overwrite - - Jika disetel &true;, standarnya maka variabel yang dibaca dari - file config akan saling menimpa. - Sebaliknya, variabel akan dimasukan ke dalam array. Ini membantu jika - anda ingin menyimpan array data dalam file config, cukup daftarkan setiap - elemen berkali-kali. - - - - Array config #variables# - - Contoh ini menggunakan - {cycle} - untuk menampilkan tabel dengan warna baris berbeda merah/hijau/biru dengan - $config_overwrite = &false;. - - File config. - - - - - Template dengan pengulangan - {section}. - - - - {section name=r loop=$rows} - - ....dll.... - - {/section} - -]]> - - - - Lihat juga - {config_load}, - get_config_vars(), - clear_config(), - config_load() - dan seksi file config. - - - - diff --git a/docs/id/programmers/api-variables/variable-config-read-hidden.xml b/docs/id/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index f6a6467d..00000000 --- a/docs/id/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $config_read_hidden - - Jika disetel &true;, seksi tersembunyi misalnya nama seksi yang diawali - dengan .period dalam file config - bisa dibaca dari template. Biasanya anda akan membiarkan ini ke &false;, - dengan cara itu anda dapat menyimpan data sensitif dalam file config - seperti parameter database dan tidak mencemaskan mengenai template - mengembilnya. &false; standarnya. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-debug-tpl.xml b/docs/id/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 5c298fa2..00000000 --- a/docs/id/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $debug_tpl - - Ini adalah nama dari file template yang digunakan untuk konsol debug. - Standarnya, ia dinamai debug.tpl dan ditempatkan - di SMARTY_DIR. - - - Lihat juga - $debugging - dan seksi - konsol debug. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-debugging-ctrl.xml b/docs/id/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 4b352177..00000000 --- a/docs/id/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - $debugging_ctrl - - Ini membolehkan cara alternatif untuk menghidupkan debugging. NONE - berarti tidak ada metode alternatif yang dibolehkan. URL - berarti ketika kata kunci SMARTY_DEBUG ditemukan dalam - QUERY_STRING, debugging dihidupkan untuk naskah - permintaan itu. Jika - $debugging adalah &true;, nilai ini - diabaikan. - - - $debugging_ctrl pada localhost - - -debugging = false; // standar -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> - - - - - Lihat juga seksi konsol debugging - dan - $debugging. - - - diff --git a/docs/id/programmers/api-variables/variable-debugging.xml b/docs/id/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 2eb8e9c8..00000000 --- a/docs/id/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - $debugging - - Ini menghidupkan debugging console. - Konsol adalah jendela popup javascript yang memberitahu anda - terhadap template yang - disertakan, - variabel yang ditempati dari - php dan - variabel file config - untuk naskah saat ini. Ia tidak menampilkan variabel yang ditempatkan - dalam template dengan fungsi - {assign} - . - - Konsol bisa juga dihidupkan dari url dengan - - $debugging_ctrl. - - - Lihat juga - {debug}, - $debug_tpl, - dan $debugging_ctrl. - - - diff --git a/docs/id/programmers/api-variables/variable-default-modifiers.xml b/docs/id/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f79bc14a..00000000 --- a/docs/id/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - $default_modifiers - - Ini adalah sebuah array pengubah untuk menerapkan secara implisit ke setiap - variabel dalam sebuah template. Sebagai contoh, untuk setiap variabel - HTML-escape standarnya, menggunakan array('escape:"htmlall"'). - Untuk mengecualikan variabel dari pengubah standar, kirimkan pengubah - khusus smarty dengan nilai parameter pengubah - nodefaults ke dalamnya, misalnya - {$var|smarty:nodefaults}. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-default-resource-type.xml b/docs/id/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 211ce338..00000000 --- a/docs/id/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $default_resource_type - - Ini memberitahu smarty tipe sumber daya apa yang digunakan secara - implisit. Nilai standarnya adalah file, berarti bahwa - $smarty->display('index.tpl') dan - $smarty->display('file:index.tpl') adalah sama dalam - arti. Lihat bab sumber daya - untuk lebih jelasnya. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-default-template-handler-func.xml b/docs/id/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 44f74321..00000000 --- a/docs/id/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $default_template_handler_func - - Fungsi ini dipanggil saat template tidak bisa didapatkan dari sumber - dayanya. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-error-reporting.xml b/docs/id/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 358136ca..00000000 --- a/docs/id/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $error_reporting - - Ketika nilai ini disetel ke nilai-non-null, nilainya dipakai sebagai tingkat - error_reporting - di dalam display() - dan fetch(). Ketika debugging - menghidupkan nilai ini, ia diabaikan dan tingkat kesalahan dibiarkan apa adanya. - - - Lihat juga - trigger_error(), - debugging - dan - pemecahan masalah. - - - - diff --git a/docs/id/programmers/api-variables/variable-force-compile.xml b/docs/id/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 18787936..00000000 --- a/docs/id/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $force_compile - - Ini memaksa Smarty untuk mengkompilasi ulang template pada setiap - permintaan. Setelan ini mengabaikan - - $compile_check. - Standarnya adalah &false;. Ini membantu saat pengembangan dan - debugging. - Ini tidak boleh dipakai dalam lingkungan produksi. Jika - $caching - dihidupkan, file cache selalu akan dibuat ulang. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-left-delimiter.xml b/docs/id/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index d366c62c..00000000 --- a/docs/id/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $left_delimiter - - Ini adalah pemisah kiri yang dipakai oleh bahasa template. - Standarnya ialah {. - - - Lihat juga $right_delimiter - dan - escaping penguraian smarty - . - - - - diff --git a/docs/id/programmers/api-variables/variable-php-handling.xml b/docs/id/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 3f514473..00000000 --- a/docs/id/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - $php_handling - - Ini memberitahu Smarty bagaimana untuk menangani kode PHP yang - disertakan dalam template. Ada empat kemungkinan setelan, standarnya - adalah SMARTY_PHP_PASSTHRU. Catatan bahwa ini - tidak mempengaruhi kode php di dalam tag - {php}{/php} pada template. - - - - - - SMARTY_PHP_PASSTHRU - Smarty menampilkan tag apa adanya. - - - - SMARTY_PHP_QUOTE - Smarty memberi tanda kutip tag - sebagai entitas html. - - - - SMARTY_PHP_REMOVE - Smarty menghapus tag dari - template. - - - SMARTY_PHP_ALLOW - Smarty akan menjalankan tag - sebagai kode PHP. - - - - - Menyertakan kode PHP ke dalam template sangat tidak disarankan. - Lebih baik gunakan fungsi kustom - atau - pengubah. - - - - diff --git a/docs/id/programmers/api-variables/variable-plugins-dir.xml b/docs/id/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index e6f1ae2d..00000000 --- a/docs/id/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - $plugins_dir - - Ini adalah directori ke mana Smarty akan mencari plugins yang - dibutuhkannya. Standarnya ialah - plugins/ di bawah - SMARTY_DIR. - Jika anda menyertakan path relatif, pertama Smarty akan mencari di bawah - SMARTY_DIR, - kemudian relatif ke direktori kerja saat ini, lalu relatif terhadap - include_path PHP. Jika $plugins_dir adalah sebuah - array direktori, Smarty akan mencari plugin anda di setiap direktori - plugin dalam urutan sesuai yang diberikan. - - - Catatan Teknis - - Untuk performansi terbaik, jangan siapkan $plugins_dir - anda harus memakai path include PHP. Gunakan nama path absolut, atau - path relatif ke SMARTY_DIR atau direktori kerja - saat ini. - - - - - Menambahkan direktori plugin lokal - -plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - - - - Multiple $plugins_dir - -plugins_dir = array( - 'plugins', // standar di bawah SMARTY_DIR - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - diff --git a/docs/id/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/id/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 978d8f26..00000000 --- a/docs/id/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - $request_use_auto_globals - - Menetapkan apakah Smarty harus menggunakan $HTTP_*_VARS[] PHP - saat &false; atau $_*[] saat &true; yang merupakan nilai - standarnya. Ini mempengaruhi templates yang menggunakan - - {$smarty.request.*}, {$smarty.get.*} dll. - - - Perhatian - - Jika anda menyetel $request_use_auto_globals ke true, - - $request_vars_order tidak berpengaruh tapi - nilai konfigurasi PHP gpc_order yang digunakan. - - - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-request-vars-order.xml b/docs/id/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index f1267306..00000000 --- a/docs/id/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $request_vars_order - - Urutan di mana variabel yang diminta sudah terdaftar, mirip dengan - variables_order dalam php.ini - - - Lihat juga - $smarty.request - dan - $request_use_auto_globals. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-right-delimiter.xml b/docs/id/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 79880d24..00000000 --- a/docs/id/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $right_delimiter - - Ini adalah pemisah kanan yang digunakan oleh bahasa template. - Standarnya adalah }. - - - Lihat juga $left_delimiter - dan - escaping penguraian smarty. - - - - diff --git a/docs/id/programmers/api-variables/variable-secure-dir.xml b/docs/id/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index cb58d49d..00000000 --- a/docs/id/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - $secure_dir - - Ini adalah array dari semua file lokal dan direktori yang dianggap aman. - {include} - dan {fetch} - gunakan ini ketika - $security - dihidupkan. - - - - -$secure_dir example - -secure_dir = $secure_dirs; -?> -]]> - - - - - Lihat juga - $security_settings - dan $trusted_dir. - - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-security-settings.xml b/docs/id/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index 7c75c2d5..00000000 --- a/docs/id/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - $security_settings - - Ini dipakai untuk menimpa atau menetapkan setelan keamanan saat -$security dihidupkan. -Ini adalah kemungkinan setelan: - - - - - PHP_HANDLING - boolean. Jika disetel &true;, setelan - $php_handling - tidak diperiksa untuk keamanan. - - - - - IF_FUNCS - array. Nama-nama fungsi PHP yang diijinkan dalam - pernyataan - {if}. - - - - - INCLUDE_ANY - boolean. Jika disetel &true;, setiap - template dapat disertakan - dari sistem file, mengabaikan daftar - $secure_dir. - - - - - PHP_TAGS - boolean. Jika disetel &true;, tag - {php}{/php} - diijinkan dalam template. - - - - - MODIFIER_FUNCS - array. Nama-nama fungsi PHP yang - diijinkan yang dapat dipakai sebagai pengubah variabel. - - - - - ALLOW_CONSTANTS - boolean. Jika disetel &true;, konstan - melalui - {$smarty.const.FOO} - dibolehkan dalam template. - - - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-security.xml b/docs/id/programmers/api-variables/variable-security.xml deleted file mode 100644 index 80937d99..00000000 --- a/docs/id/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - $security - - $security bisa &true; atau &false;, - standarnya &false;. Keamana baik untuk situasi saat anda mempunyai rekan - yang tidak dipercaya mengedit template misalnya melalui ftp, dan anda - ingin mengurangi resiko yang berkaitan dengan keamanan sistem dalam - bahasa template. Menghidupkan keamanan, memaksa aturan berikut terhadap - bahasa template, kecuali secara khusus ditimpa dengan - - $security_settings: - - - -Jika $php_handling -disetel ke SMARTY_PHP_ALLOW, ini secara implisit mengubah -SMARTY_PHP_PASSTHRU - - - -Fungsi PHP tidak dibolehkan dalam pernyataan {if}, -kecuali yang ditetapkan dalam -$security_settings - - -Template hanya bisa disertakan dari direktori yang didaftarkan dalam array -$secure_dir - - -File lokal hanya dapat diambil dari direktori yang didaftarkan dalam -$secure_dir -array menggunakan {fetch} - - -Tag {php}{/php} -tidak dibolehkan - - -Fungsi PHP tidak dibolehkan sebagai pengubah, kecuali itu ditetapkan dalam -$security_settings - - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-template-dir.xml b/docs/id/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 40a442c5..00000000 --- a/docs/id/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - $template_dir - - Ini adalah nama standar direktori template. Jika anda tidak menyertakan - tipe sumber daya ketika menyertakan file, akan ditemukan di sini. - Standarnya ini adalah - ./templates, - yang berarti bahwa Smarty akan mencari direktori - templates/ dalam direktori yang - sama dengan naskah php yang dieksekusi. - - - Catatan Teknis - - Tidak direkomendasikan untuk menyimpan direktori ini di bawah akar - dokumen server web. - - - - diff --git a/docs/id/programmers/api-variables/variable-trusted-dir.xml b/docs/id/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 97ac7ac2..00000000 --- a/docs/id/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $trusted_dir - - $trusted_dir hanya dipakai ketika - $security dihidupkan. - Ini adalah array dari seluruh direktori yang dianggap dipercaya. Direktori yang - dipercaya adalah di mana anda memelihara naskah php yang dijalankan secara - langsung dari template - with {include_php}. - - - \ No newline at end of file diff --git a/docs/id/programmers/api-variables/variable-use-sub-dirs.xml b/docs/id/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 4b1ebbfe..00000000 --- a/docs/id/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - $use_sub_dirs - -Smarty akan membuat subdirektori di bawah -template terkompilasi dan direktori -cache -jika $use_sub_dirs disetel ke &true;, - standarnya &false;. -Dalam sebuah lingkungan di mana ada potensi sepulu dari ribuan file dibuat, -ini dapat membantu kecepatan sistem file. Dengan kata lain, beberapa -lingkungan tidak membolehkan proses PHP membuat direktori, maka ini harus -dimatikan yang sudah jadi standarnya. - - -Sub direktori lebih efisien, maka gunakan jika anda bisa. Secara teori -anda memperoleh performansi lebih baik pada sistem file dengan 10 -direktori masing-masing memiliki 100 file, daripada dengan 1 direktori yang -memiliki 1000 file. Ini tentunya kasus dengan Solaris 7 (UFS)... dengan sistem -file lebih baru seperti ext3 dan terutama reiserfs, perbedaannya hampir -tidak ada. - - - -Catatan Teknis - - - $use_sub_dirs=true tidak bekerja dengan - safe_mode=On, - itulah mengapa dapat diputar dan mengapa standarnya dimatikan. - - - - $use_sub_dirs=true pada Windows bisa menimbulkan masalah. - - - Safe_mode akan menjadi usang dalam PHP6. - - - - - - Lihat juga - $compile_id, - $cache_dir, - dan - $compile_dir. - - - - diff --git a/docs/id/programmers/caching/caching-cacheable.xml b/docs/id/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 898d9951..00000000 --- a/docs/id/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - Mengontrol Plugins ynd Bisa Di-cache' Output - - Sejak plugin Smarty-2.6.0, plugins yang bisa di-cache dapat dideklarasikan - saat meregistrasinya. Parameter ketiga pada - register_block(), - - register_compiler_function() dan register_function() - disebut $cacheable dan standarnya &true; yang juga - merupakan tabiat plugins dalam Smarty versi sebelum 2.6.0 - - - Ketika meregistrasi sebuah plugin dengan $cacheable=false, plugin - dipanggil setiap kali halaman ditampilkan, meskipun halaman berasal dari cache. - Fungsi plugin berlaku sedikit mirip fungsi - {insert}. - - - Sebaliknya dari {insert} - - atribut plugins standarnya tidak di-cache. Bisa dideklarasikan untuk di-cache - dengan parameter keempat - $cache_attrs. $cache_attrs - adalah array nama-atribut yang harus di-cache, agar fungsi-plugin memperoleh - nilai seperti pertama kali halaman dituliskan ke cache, setiap kali ia diambil - dari cache. - - - - Menghindari output plugin di-cache - -caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if($remain >= 0){ - return $remain . ' second(s)'; - }else{ - return 'done'; - } -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // ambil $obj dari db dan tempatkan... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - di mana index.tpl adalah: - - -endtime} -]]> - - - Jumlah detik sampai endtime $obj dicapai, perubahan - pada setiap tampilan halaman, meskipun bila halaman di-cache. Karena - atribut endtime di-cache. obyek harus ditarik dari database ketika - halaman dituliskan ke cache tapi tidak pada permintaan halaman berikutnya. - - - - - Menghindari seluruh bagian template di-cache - -caching = 1; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - where index.tpl is: - - - - - - - - Ketika mengambil ulang halaman, anda akan mencatat bahwa kedua tanggal - berbeda. Satu dynamis dan satu statis. - Anda dapat melakukan apapun antara {dynamic}...{/dynamic} - dan pastikan ia tidak akan di-cache seperti bagian halaman lainnya. - - - - - diff --git a/docs/id/programmers/caching/caching-groups.xml b/docs/id/programmers/caching/caching-groups.xml deleted file mode 100644 index 8a6ee6e8..00000000 --- a/docs/id/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - Grup Cache - - Anda dapat melakukan pengelompokan elaborasi dengan menyiapkan grup - $cache_id. Ini dilakukan dengan memisahkan - setiap sub-grup dengan bar vertikal - | dalam nilai $cache_id. - Anda bisas memiliki sebanyak-banyaknya sub-grup yang anda inginkan. - - - - - Anda bisa membayangkan grup cache seperti hirarki direktori. Sebagai - contoh, grup cache 'a|b|c' bisa dibayangkan sebagai - struktur direktori '/a/b/c/'. - - - - clear_cache(null,'a|b|c') - akan seperti menghapus file - '/a/b/c/*'. clear_cache(null,'a|b') - akan seperti menghapus file '/a/b/*'. - - - - Jika anda menetapkan - $compile_id - seperti clear_cache(null,'a|b','foo') ini diperlakukan - sebagai grup cache yang ditambahkan '/a/b/c/foo/'. - - - - Jika anda menetapkan nama template seperti - clear_cache('foo.tpl','a|b|c') maka Smarty akan - mencoba untuk menghapus '/a/b/c/foo.tpl'. - - - - Anda TIDAK BISA menghapus nama template yang ditetapkan di bawah - multipel grup cache seperti '/a/b/*/foo.tpl', - pengelompokan cache HANYA bekerja dari kiri-ke-kanan. Anda perlu - mengelompokan template anda di bawah satu hirarki grup cache - agar bisa membersihkannya sebagai sebuah grup. - - - - - Pengelompokan cache seharusnya tidak dibingungkan dengan hirarki - direktori template anda, pengelompokan cache tidak mengetahui bagaiman - template anda dibentuk. Maka sebagai contoh, jika anda mempunyai struktur - template seperti themes/blue/index.tpl dan anda - ingin bisa membersihkan seluruh file cache untuk tema blue, - anda perlu membuat struktur grup cache yang meniru struktur file - template, seperti - display('themes/blue/index.tpl','themes|blue'), lalu - membersihkannya dengan - clear_cache(null,'themes|blue'). - - - $cache_id groups - -caching = true; - -// membersihkan semua cache dengan 'sports|basketball' sebagai dua grup cache_id pertama -$smarty->clear_cache(null,'sports|basketball'); - -// bersihkan semua cache dengan "sports" sebagai grup cache_id pertama. Ini akan -// menyertakan "sports|basketball", atau "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,'sports'); - -// bersihkan file cache foo.tpl dengan "sports|basketball" sebagai cache_id -$smarty->clear_cache('foo.tpl','sports|basketball'); - - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - - - - - - diff --git a/docs/id/programmers/caching/caching-multiple-caches.xml b/docs/id/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index 78a13b99..00000000 --- a/docs/id/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - Multipel Caches Per Halaman - - Anda dapat memiliki multipel file cache untuk satu panggilan ke - display() - atau fetch(). - Katakanlah sebuah panggilan ke display('index.tpl') - memiliki beberapa konten output berbeda tergantung dari beberapa - kondisi, dan anda ingin memisahkan cache masing-masing. Anda bisa - melakukan ini dengan mengirimkan $cache_id - sebagai parameter kedua ke fungsi panggil. - - - Mengirimkan $cache_id untuk display() - -caching = 1; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl', $my_cache_id); -?> -]]> - - - - Di atas, kita mengirimkan variabel $my_cache_id ke - display() - sebagai $cache_id. Untuk setiap nilai unik dari - $my_cache_id, cache terpisah akan dibuat untuk - index.tpl. Dalam contoh ini, - article_id dikirimpan dalam URL dan digunakan - sebagai $cache_id. - - - Catatan Teknis - - Harap berhati-hati saat mengirimkan nilai dari klien (web browser) ke - dalam Smarty atau setiap aplikasi PHP. Meskipun contoh di atas menggunakan - article_id dari URL terlihat mudah, ia dapat menimbulkan konsekuensi yang - buruk. $cache_id dipakai untuk membuat direktori - pada sistem file, maka jika pengguna memutuskan untuk mengirimkan nilai - yang sangat besar untuk article_id, atau menulis naskah yang mengirimkan - article_id acak dengan kecepatan tinggi, ini mungkin dapat menimbulkan - masalah di tingkat server. Pastikan mengamankan setiap data yang - dikirimkan sebelum menggunakannya. Dalam contoh ini, mungkin anda - mengetahui article_id memiliki panjang sepuluh karakter dan hanya terdiri - dari alfa-numerik, dan harus article_id yang benar dalam database. - Periksa hal ini! - - - - Pastikan untuk mengirimkan $cache_id yang sama - sebagai parameter kedua ke - is_cached() dan - clear_cache(). - - - Mengirimkan cache_id ke is_cached() - -caching = 1; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // Cache tidak tersedia, lakukan penempatan variabel di sini. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Anda bisa membersihkan semua cache untul $cache_id - tertentu dengan mengirimkan &null; sebagai parameter kedua ke - clear_cache(). - - - Membersihkan semua cache untuk $cache_id tertentu - -caching = 1; - -// bersihkan semua cache dengan "sports" sebagai $cache_id -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - - - - Dengan cara ini, anda bisa mengelompokan cache anda bersama - dengan memberikannya $cache_id yang sama. - - - - - diff --git a/docs/id/programmers/caching/caching-setting-up.xml b/docs/id/programmers/caching/caching-setting-up.xml deleted file mode 100644 index fd63c030..00000000 --- a/docs/id/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,208 +0,0 @@ - - - - Menyiapkan Cache - - Hal pertama yang dilakukan adalah menghidupkan cache dengan menyetel - $caching = 1 (atau 2). - - - Menghidupkan cache - -caching = 1; - -$smarty->display('index.tpl'); -?> -]]> - - - - Dengan menghidupkan cache, fungsi panggil ke - display('index.tpl') akan membuat template seperti - biasa, tapi juga menyimpan duplikat dari outputnya ke sebuah file - (duplikat cache) dalam - $cache_dir. - Panggilan berikutnya ke display('index.tpl'), duplikat cache - akan dipakai daripada membuat template kembali. - - - Catatan Teknis - - File dalam - $cache_dir - diberi nama mirip dengan nama template. - Meskipun berakhir dalam ekstensi .php, ini tidak - dimaksudkan dijalankan secara langsung. Jangan edit file ini! - - - - Setiap halaman yang di-cache memiliki batasan usia yang ditentukan oleh - $cache_lifetime. - Nilai standarnya adalah 3600 detik atau satu jam. Setelah itu waktu berakhir, - cache dibuat ulang. Dimungkinkan untuk memberikan cache individual memiliki - waktu berakhirnya dengan menyetel - $caching=2. - Lihat $cache_lifetime - untuk lebih jelasnya. - - - Menyetel $cache_lifetime per cache - -caching = 2; // usia per cache - -// set cache_lifetime untuk index.tpl ke 5 menit -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// set cache_lifetime untuk home.tpl ke 1 jam -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// CATATAN: setelan $cache_lifetime berikut tidak akan bekerja saat $caching = 2. -// Usia cache untuk home.tpl sudah disetel ke 1 jam, dan tidak akan memperhatikan -// nilai lagi $cache_lifetime. -// Cache home.tpl masih akan berakhir setelah 1 jam. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - - - - Jika - $compile_check dihidupkan, - setiap file template dan file config yang terkait dengan file cache diperiksa - modifikasinya. Jika setiap file sudah dimodifikasi sejak cache dibuat, cache - segera dibuat ulang. Ini adalah beban kecil untuk performansi optimal, set - $compile_check - ke &false;. - - - Menghidupkan $compile_check - -caching = 1; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Jika - $force_compile dihidupkan, - file cache akan selalu dibuat. Ini efektif mematikan cache. - $force_compile - biasanya hanya untuk keperluan - debugging, - cara yang lebih efisien mematikan cache adalah menyetel $caching - = 0. - - - Fungsi is_cached() - dapat digunakan untuk menguji jika template memiliki cache yang benar atau - tidak. Jika anda memiliki template yang di-cache yang memerlukan hal - seperti pengambilan database, anda bisa menggunakan ini untuk melewati - proses itu. - - - Menggunakan is_cached() - -caching = 1; - -if(!$smarty->is_cached('index.tpl')) { - // Cache tidak tersedia, lakukan penempatan variabel di sini. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - Anda dapat memelihara bagian halaman dinamis dengan fungsi template {insert}. - Katakanlah seluruh halaman dapat di-cache kecuali untuk iklan yang - ditampilkan di bawah halaman. Dengan menggunakan fungsi - {insert} - untuk iklan, anda bisa memelihara elemen ini dinamis dalam konten yang - di-cache. Lihat dokumentasi pada - {insert} - untuk lebih jelas dan contohnya. - - - Anda bisa membersihkan semua file cache dengan fungsiclear_all_cache(), - atau file cache individual - dan grup dengan fungsi clear_cache(). - - - Membersihkan cache - -caching = 1; - -// bersihkan hanya cache untuk index.tpl -$smarty->clear_cache('index.tpl'); - -// bersihkan semua file cache -$smarty->clear_all_cache(); - -$smarty->display('index.tpl'); -?> -]]> - - - - - - diff --git a/docs/id/programmers/plugins/plugins-block-functions.xml b/docs/id/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index ea4424bd..00000000 --- a/docs/id/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - Fungsi Blok - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Fungsi blok adalah fungsi dari bentuk: - {func} .. {/func}. Dengan kata lain, ia ditutupi - blok template dan beroperasi pada isi dari blok ini. Fungsi blok - mendahului - fungsi kustom pada - nama yang sama, yaitu anda tidak bisa mempunyai kedua fungsi kustom - {func} dan fungsi blok - {func}..{/func}. - - - - - Standarnya implementasi fungsi anda dipanggil dua kali oleh - Smarty: sekali untuk membuka tag, dan sekali untuk meneutup tag. - (Lihat $repeat di bawah untuk bagaimana mengubah ini.) - - - Hanya tag terbuka terhadap fungsi blok boleh memiliki - atribut. Semua - atribut dikirimkan ke fungsi template dari template diisikan dalam - variabel $params sebagai array asosiatif. - Atribut tag terbuka juga dapat diakses oleh fungsi anda saat memproses - tag penutup. - - - Nilai variabel $content tergantung pada apakah - fungsi anda dipanggil untuk membuka atau menutup tag. Dalam hal - membuka tag, ia akan menjadi &null;, dan dalam hal menutup tag - ia akan menjadi isi dari blok template. - Catatan bahwa blok template sudah diproses oleh Smarty, semua yang - akan anda terima adalah output template, bukan sumber template. - - - - Parameter $repeat dikirimkan dengan - referensi ke implementasi fungsi dan menyediakan sebuah kemungkinan - untuk mengontrol berapa kali blok ditampilkan. Standarnya - $repeat adalah &true; pada panggilan pertama - fungsi-blok(tag pembuka) dan and &false; pada panggilan berikutnya - ke fungsi blok (tag penutup blok). - Setiap kali implementasi fungsi kembali dengan - $repeat menjadi &true;, isi antara - {func}...{/func} dievaluasi dan implementasi fungsi - dipanggil lagi dengan isi blok baru dalam parameter - $content. - - - - - Jika anda mempunyai fungsi blok berulang, dimungkinkan untuk mencari fungsi - blok leluhur apa dengan mengakses variabel - $smarty->_tag_stack. Cukup lakukan - var_dump() - padanya dan struktur menjadi terlihat. - - - - fungsi blok - - -]]> - - - - - Lihat juga: - register_block(), - unregister_block(). - - - - - diff --git a/docs/id/programmers/plugins/plugins-compiler-functions.xml b/docs/id/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index de4f5ccf..00000000 --- a/docs/id/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - Fungsi Kompilator - - Fungsi kompilator dipanggil hanya selama kompilasi template. - Ini berguna untuk menginjeksi kode PHP atau isi statis sensitif-waktu - ke dalam template. Jika ada kedua fungsi kompilator dan - fungsi kustom terdaftar - dengan nama sama, fungsi kompilator yang lebih tinggi. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Fungsi kompilator diberi dua parameter: argumen string tag - pada - dasarnya, apapun dari nama fungsi sampai akhir pemisah, dan obyek - Smarty. Ia seharusnya mengembalikan kode PHP yang disisipkan ke dalam - template terkompilasi. - - - - Fungsi kompilator sederhana - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - Fungsi ini dipanggil dari template sebagai: - - - - - - Kode PHP yang dihasilkan dalam template terkompilasi akan menjadi seperti ini: - - - -]]> - - - - - Lihat juga - - register_compiler_function(), - - unregister_compiler_function(). - - - - - diff --git a/docs/id/programmers/plugins/plugins-functions.xml b/docs/id/programmers/plugins/plugins-functions.xml deleted file mode 100644 index d6676052..00000000 --- a/docs/id/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - Fungsi Template - - - void smarty_function_name - array $params - object &$smarty - - - - Semua atribut yang - dikirimkan ke fungsi template dari template yang berisi - $params sebagai array asosiatif. - - - Output (nilai hasil) atas fungsi akan diganti di tempat tag fungsi dalam - template, misalnya fungsi - {fetch}. - Alternatif lain, fungsi bisa hanya melakukan beberapa tugas tanpa output - apapun, misalnya fugnsi - {assign}. - - - Jika fungsi perlu menempatkan beberapa variabel ke template atau gunakan - beberapa fungsionalitas lain yang disediakan-Smarty, ini dapat menggunakan - obyek $smarty yang disertakan untuk melakukannya - misaslnya $smarty->foo(). - - - - - plugin fungsi dengan output - - -]]> - - - - - yang dapat digunakan dalam template sebagai: - - -Question: Will we ever have time travel? -Answer: {eightball}. - - - - plugin fungsi tanpa output - -trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - - - - - Lihat juga: - register_function(), - unregister_function(). - - - - diff --git a/docs/id/programmers/plugins/plugins-howto.xml b/docs/id/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 3a685efc..00000000 --- a/docs/id/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - Bagaimana Plugin Bekerja - - Plugin selalu diambil saat dibutuhkan. Hanya pengubah tertentu, - fungsi, sumber daya, dll yang diminta dalam naskah template akan diambil. - Selanjutnya, setiap plugin diambil hanya sekali, meskipun anda mempunyai - beberapa turunan Smarty yang berjalan dalam permintaan yang sama. - - - Pre/postfilters dan filter output sedikit dari hal khusus. Karena tidak - disetbutkan dalam template, ini harus didaftarkan atau diambil secara - eksplisit melalui fungis API sebelum template diproses. - Urutan di mana multipel filter dengan tipe sama dijalankan tergantung - pada urutan di mana ia didaftarkan atau diambil. - - - Direktori plugin - dapat berupa string yang berisi path atau array yang berisi multipel - path. Untuk menginstalasi sebuah plugin, cukup tempatkan dalam salah satu - direktori dan Smarty akan menggunakannya secara otomatis. - - - - diff --git a/docs/id/programmers/plugins/plugins-inserts.xml b/docs/id/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 9ca86a3d..00000000 --- a/docs/id/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - Inserts - - Plugin insert dipakai untuk mengimplementasikan fungsi yang diminta oleh - tag {insert} - dalam template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Parameter pertama ke fungsi adalah array asosiatif dari atribut yang - dikirimkan ke insert. - - - Fungsi insert seharusnya mengembalikan hasil yang akan di tempatkan pada - tag {insert} dalam template. - - - plugin insert - -trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - - - - - diff --git a/docs/id/programmers/plugins/plugins-modifiers.xml b/docs/id/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index f3db0fcb..00000000 --- a/docs/id/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - Pengubah - - Pengubah adalah fungsi kecil - yang diterapkan ke variabel dalam template sebelum ia ditampilkan atau - digunakan dalam beberapa konteks lain. Pengubah dapat dirangkai bersama. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Parameter pertama pada plugin pengubah adalah nilai di mana pengubah - beroperasi. Parameter sisanya adalah opsional, tergantung pada - jenis operasi apa yang dilakukan. - - - Pengubah harus mengembalikan - hasil dari prosesnya. - - - - Plugin pengubah sederhana - - Plugin ini pada dasarnya alias dari salah satu fungsi built-in PHP. - Ini tidak mempunyai parameter tambahan. - - - -]]> - - - - - Plugin pengubah lebih kompleks - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - Lihat juga - register_modifier(), - unregister_modifier(). - - - - diff --git a/docs/id/programmers/plugins/plugins-naming-conventions.xml b/docs/id/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index e0f7b7b9..00000000 --- a/docs/id/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - Konvensi Penamaan - - File plugin dan fungsi harus mengikuti konvensi penamaan khusus agar - dapat ditempatkan oleh Smarty. - - - file plugin harus dinamai sebagai berikut: -
      - - - type.name.php - - -
      -
      - - - - Di mana type salah satu tipe plugin ini: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - - - Dan name harus pengenal yang benar; huruf, - angka, dan hanya garis bawah, lihat - variabel php. - - - - Beberapa contoh: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - - - - - fungsi plugin di dalam file PHP harus dinamai sebagai berikut: -
      - - smarty_type_name - -
      -
      - - - - Arti dari type dan name sama seperti di atas. - - - Contoh nama pengubah foo akan menjadi function smarty_modifier_foo(). - - - - Smarty akan menampilkan pesan kesalahan terkait jika file plugin yang - dibutuhkan tidak ditemukan, atau jika file atau fungsi plugin dinamai - secara tidak benar. - -
      - - diff --git a/docs/id/programmers/plugins/plugins-outputfilters.xml b/docs/id/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 31d0754d..00000000 --- a/docs/id/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - Filter Output - - Plugin filter output beroperasi pada output template, setelah template - diambil dan dijalankan, tapi sebelum output ditampilkan. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Parameter pertama pada fungsi filter output adalah output template - yang perlu diproses, dan parameter kedua adalah turunan dari Smarty - yang meminta plugin. Plugin seharusnya melakukan proses dan - mengembalikan hasilnya. - - - Plugin filter output - - -]]> - - - - Lihat juga - - register_outputfilter(), - - unregister_outputfilter(). - - - - diff --git a/docs/id/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/id/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 56dda3dd..00000000 --- a/docs/id/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - Prefilters/Postfilters - - Plugin prefilter dan postfilter sangat mirip dalam konsep; di mana - keduanya berbeda dalam eksekusi -- lebih tepatnya waktu eksekusinya. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Prefilters dipakai untuk memproses sumber template segera sebelum - kompilasi. Parameter pertama ke fungsi prefilter adalah sumber - template, kemungkinan diubah oleh beberapa prefilters lain. Plugin - seharusnya mengembalikan sumber yang diubah. Catatan bahwa sumber - ini tidak disimpan di mana pun, hanya dipakai untuk kompilasi. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Postfilters dipakai untuk memproses output terkompilasi dari template - (kode PHP) segera setelah kompilasi dikerjakan sebelum template - terkompilasi disimpan ke sistem file. Parameter pertama ke fungsi - postfilter adalah kode template terkompilasi, kemungkinan diubah oleh - postfilters lainnya. Plugin seharusnya mengembalikan versi yang diubah - atas kode ini. - - - plugin prefilter - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - plugin postfilter - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - Lihat juga - - register_prefilter(), - - unregister_prefilter() - - register_postfilter(), - - unregister_postfilter(). - - - - diff --git a/docs/id/programmers/plugins/plugins-resources.xml b/docs/id/programmers/plugins/plugins-resources.xml deleted file mode 100644 index e94bce23..00000000 --- a/docs/id/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,168 +0,0 @@ - - - Sumber daya - - Plugin sumber daya diartikan sebagai cara umum atas penyediaan sumber - template atau komponen naskah PHP untuk Smarty. Beberapa contoh - sumber daya: - database, LDAP, memori berbagi, soket, dan seterusnya. - - - - Ada empat fungsi yang perlu didaftarkan untuk setiap tipe sumber daya. - Setiap fungsi akan menerima sumber daya yang diminta sebagai paramneter - pertama dan obyek Smarty sebagai parameter terkahir. Parameter sisanya - tergantung pada fungsi. - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - - Fungsi pertama, source() is supposed to retrieve - the resource. Its second parameter $source is a - variable passed by reference where the result should be - stored. The function is supposed to return &true; if - it was able to successfully retrieve the resource and &false; otherwise. - - - - Fungsi kedua, timestamp() is supposed to - retrieve the last modification time of the requested resource, as a UNIX - timestamp. The second parameter $timestamp - is a variable passed by reference where the timestamp should be stored. - The function is supposed to return &true; if the timestamp could be - succesfully determined, or &false; otherwise. - - - - Fungsi ketiga, secure()is supposed to return - &true; or &false;, depending on whether the requested resource is secure - or not. This function is used only for template resources but - should still be defined. - - - - Fungsi keempat, trusted() seharusnya mengembalikan - &true; atau &false;, tergantung pada apakah sumber daya yang diminta - dipercaya atau tidak. Fungsi ini dipakai hanya untuk komponen naskah PHP - yang diminta oleh tag - {include_php} atau tag - {insert} - dengan atribut src. Akan tetapi, ini masih harus - didefinisikan meskipun untuk sumber daya template. - - - - - - plugin sumber daya - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // lakukan pemanggilan database di sini untuk mempopulasikan $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // menganggap semua template aman - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // tidak dipakai untuk template -} -?> -]]> - - - - - LIhat juga - register_resource(), - unregister_resource(). - - - - - diff --git a/docs/id/programmers/plugins/plugins-writing.xml b/docs/id/programmers/plugins/plugins-writing.xml deleted file mode 100644 index d20a0c11..00000000 --- a/docs/id/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - Menulis Plugin - - Plugin dapat diambil baik oleh Smarty secara otomatis dari sistem - file ataupun didaftarkan saat runtime via salah satu fungsi API - register_*. Juga dapat dibatalkan registrasinya dengan menggunakan - fungsi API unregister_*. - - - Untuk plugin yang terdaftar saat runtime, nama fungsi plugin tidak - harus mengikuti konvensi penamaan. - - - Jika sebuah plugin tergantung pada beberapa fungsionalitas yang - disediakan oleh plugin lainnya (seperti dengan beberapa plugin - yang dibundel dengan Smarty), maka cara yang benar untuk mengambil - plugin yang dibutuhkan ialah: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Sebagai aturan umum, obyek Smarty selalu dikirimkan ke plugin sebagai - parameter terakhir dengan dua kekecualian: - - - - pengubah tidak mendapatkan obyek Smarty sama sekali - - - blok mendapatkan kirim - $repeat setelah obyek Smarty untuk memelihara - kompatibilitas mundur dengan versi Smarty sebelumnya. - - - - - - diff --git a/docs/it/appendixes/bugs.xml b/docs/it/appendixes/bugs.xml deleted file mode 100644 index 42444201..00000000 --- a/docs/it/appendixes/bugs.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - BUGS - - Verificate il file BUGS compreso nella - distribuzione pi recente di Smarty, oppure controllate - direttamente sul sito web. - - - diff --git a/docs/it/appendixes/resources.xml b/docs/it/appendixes/resources.xml deleted file mode 100644 index f02599f4..00000000 --- a/docs/it/appendixes/resources.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - Risorse - - La homepage di Smarty &url.smarty;. - Potete sottoscrivere la mailing list inviando una e-mail - a &ml.general.sub;. L'archivio della mailing list - disponibile a &url.ml.archive;. - - - diff --git a/docs/it/appendixes/tips.xml b/docs/it/appendixes/tips.xml deleted file mode 100644 index 043aaade..00000000 --- a/docs/it/appendixes/tips.xml +++ /dev/null @@ -1,378 +0,0 @@ - - - - Tips & Tricks (trucchi e consigli) - - - - Gestione delle variabili vuote - - Certe volte potreste voler stampare un valore di default per una - variabile vuota invece di stampare niente, ad esempio "&nbsp;" - in modo che gli sfondi delle tabelle funzionino regolarmente. Molti - userebbero una {if} per gestire questo caso, ma c' un modo pi veloce - con Smarty, che l'uso del modificatore default. - - - Stampare &nbsp; quando una variabile vuota - - - - - - - - Gestione dei default delle variabili - - Se una variabile viene usata pi volte nel template, applicarle ogni - volta il modificatore default pu diventare pesante. E' possibile - rimediare a ci assegnando alla variabile il suo valore di default - con la funzione assign. - - - Assegnazione del valore di default a una variabile del template - - - - - - - Passare una variabile titolo ad un template di intestazione - - Quando la maggior parte dei template usa gli stessi intestazione e pi di - pagina, abbastanza comune creare dei template a parte per questi ultimi - e poi includerli negli altri. Ma cosa succede se l'intestazione ha bisogno - di avere un titolo diverso a seconda della pagina in cui ci troviamo? - Potete passare il titolo all'intestazione nel momento dell'inclusione. - - - Passare la variabile titolo al template dell'intestazione - - - -{$title|default:"BC News"} - - - - -footer.tpl ----------- - - -]]> - - - - Quando viene disegnata la pagina principale, il titolo "Main Page" viene - passato a header.tpl, e quindi sar usato come titolo. Quando viene - disegnata la pagina degli archivi, il titolo sar "Archives". Notate - che nell'esempio degli archivi abbiamo usato una variabile del file - archives_page.conf invece che una definita nel codice. Notate anche che - se la variabile $title non impostata viene stampato "BC News", attraverso - il modificatore di variabile default. - - - - Date - - Come regola generale, passate sempre le date a Smarty in forma di - timestamp. Questo consente ai progettisti di usare date_format per un - pieno controllo sulla formattazione delle date, e rende semplice - anche il confronto fra date quando necessario. - - - - A partire da Smarty 1.4.0, potete passare date a Smarty come - timestamp unix, timestamp mysql, o qualsiasi altro formato - leggibile da strtotime(). - - - - uso di date_format - - - - - Questo stamper: - - - - - - - - - Questo stamper: - - - - - - - - - - Quando usate {html_select_date} in un template, il programmatore - probabilmente vorr convertire l'output del modulo in un formato - timestamp. Ecco una funzione che pu aiutarvi in questo. - - - convertire le date provenienti da un modulo in timestamp - - -]]> - - - - - WAP/WML - - I template WAP/WML richiedono header php di tipo Content-Type che deve - essere passato insieme al template. Il modo pi semplice per farlo sarebbe - scrivere una funzione utente che stampi l'header. Tuttavia, se usate - il caching, questo sistema non funziona, per cui lo faremo con il tag - insert (ricordate che i tag insert non vanno in cache!). Assicuratevi - che nulla sia inviato in output al browser prima del template, altrimenti - l'header non potr essere spedito. - - - usare insert per scrivere un header Content-Type WML - - -]]> - - - il template deve iniziare con il tag insert: - - - - - - - - - - - - -

      - Welcome to WAP with Smarty! - Press OK to continue... -

      -
      - - -

      - Pretty easy isn't it? -

      -
      -
      -]]> -
      -
      -
      - - Template a componenti - - Tradizionalmente, programmare le applicazioni a template funziona - cos: per prima cosa si accumulano le variabili nell'applicazione - PHP (magari con query al database). Poi, si istanzia l'oggetto - Smarty, si assegnano le variabili e si visualizza il template. - Allora supponiamo di avere, ad esempio, un riquadro che visualizza - le quotazioni di Borsa (stock ticker) nel nostro template. In - questo caso raccoglieremmo i dati sulle azioni nell'applicazione, - poi assegneremmo le variabili al template e le visualizzeremmo. Ma - non sarebbe bello poter aggiungere questo stock ticker a qualsiasi - applicazione semplicemente includendo il template, senza preoccuparci - della parte relativa al caricamento dei dati? - - - E' possibile fare questo scrivendo un plugin personalizzato che - recuperi il contenuto e lo assegni ad una variabile del template. - - - template a componenti - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - - - - - - Offuscare gli indirizzi E-mail - - Vi siete mai chiesti come fanno i vostri indirizzi E-mail a finire su - cos tante mailing list di spam? Uno dei modi che hanno gli spammer - per raccogliere indirizzi E-mail dalle pagine web. Per combattere - questo problema, potete fare in modo che gli indirizzi E-mail appaiano - in maniera criptata da javascript nel sorgente HTML, anche se continueranno - ad essere visti e a funzionare correttamente nel browser. E' possibile - farlo con il plugin mailto. - - - Esempio di offuscamento di indirizzo E-mail - - - - - - Nota tecnica - - Questo metodo non sicuro al 100%. Uno spammer, concettualmente, potrebbe - programmare il suo raccoglitore di e-mail per decodificare questi valori, - ma non una cosa semplice. - - - -
      - diff --git a/docs/it/appendixes/troubleshooting.xml b/docs/it/appendixes/troubleshooting.xml deleted file mode 100644 index ecc50cb9..00000000 --- a/docs/it/appendixes/troubleshooting.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - Troubleshooting - - - Errori Smarty/PHP - - Smarty in grado di trovare molti errori, ad esempio attributi - mancanti nei tag, o nomi di variabile non corretti. Quando questo - succede, vedrete un errore simile al seguente: - - - Errori Smarty - - - - - - Smarty vi mostra il nome del template, il numero di riga e l'errore. - Dopodich, vi viene mostrato anche il numero reale di riga nella classe - Smarty alla quale si verificato l'errore. - - - - Ci sono alcuni errori che Smarty non riesce a trovare, ad esempio tag - di chiusura mancanti. Questi tipi di errore di solito portano ad errori - di parsing PHP al momento della compilazione. - - - - Errori di parsing PHP - - - - - - - Quando vi trovate davanti un errore di parsing PHP, il numero di riga - indicato corrisponder allo script PHP compilato, non al template sorgente. - Normalmente dando un'occhiata al template si riesce a capire dov' - l'errore di sintassi. Ecco alcuni errori comuni da controllare: mancanza - del tag di chiusura per blocchi {if}{/if} o {section}{/section}, oppure - problemi di sintassi all'interno di un tag {if}. Se non riuscite a trovare - l'errore, andata nel file compilato PHP e trovate il numero di riga indicato - per capire dove si trova l'errore corrispondente nel template. - - - - diff --git a/docs/it/bookinfo.xml b/docs/it/bookinfo.xml deleted file mode 100644 index 32e82744..00000000 --- a/docs/it/bookinfo.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - Smarty - il motore di template PHP con compilatore - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - &build-date; - - 2001-2004 - New Digital Group, Inc. - - - - diff --git a/docs/it/designers/chapter-debugging-console.xml b/docs/it/designers/chapter-debugging-console.xml deleted file mode 100644 index eba9858e..00000000 --- a/docs/it/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - Console di Debugging - - C' una console di debugging inclusa in Smarty. La console vi informa di - tutti i template che sono stati inclusi, le variabili assegnate e quelle - dei file di configurazione per la chiamata attuale del template. Nella - distribuzione di Smarty incluso un template chiamato "debug.tpl" che - controlla la formattazione della console. Impostate $debugging a true in - Smarty, e se necessario impostate $debug_tpl con il percorso del file - debug.tpl (di default si trova nella SMARTY_DIR). Quando caricate la pagina, - dovrebbe apparire in pop up una console creata con javascript che vi informa di - tutti i nomi dei template inclusi e delle variabili assegnate nella pagina - attuale. Per vedere le variabili disponibili per un particolare template, - consultate la funzione {debug}. - Per disabilitare la console di debugging impostate $debugging a false. - Potete anche attivare temporaneamente la console mettendo SMARTY_DEBUG - nell'URL, se abilitate questa opzione con $debugging_ctrl. - - - Nota tecnica - - La console di debugging non funziona quando usate la API fetch(), funziona - solo con display(). E' un insieme di istruzioni javascript aggiunte in - fondo al template generato. Se non vi piace l'uso di javascript, potete - modificare il template debug.tpl per formattare l'output come preferite. - I dati di debug non vengono messi in cache e i dati relativi a debug.tpl non - sono inclusi nell'output della console di debug. - - - - - I tempi di caricamento di ogni template e file di configurazione sono in - secondi o frazioni di secondo. - - - - - diff --git a/docs/it/designers/config-files.xml b/docs/it/designers/config-files.xml deleted file mode 100644 index 4832d3f1..00000000 --- a/docs/it/designers/config-files.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - File di configurazione - - I file di configurazione sono utili ai progettisti per gestire le - variabili globali del template in un unico file. Un esempio quello - dei colori. Normalmente, se volete cambiare lo schema dei colori di - un'applicazione, dovreste andare in ogni template a cambiare i colori. - Con un file di configurazione, i colori possono essere tenuti in un - unico punto, e solo un file deve essere modificato. - - - Esempio di sintassi di file di configurazione - - - - - - I valori delle variabili dei file di configurazione possono essere - fra virgolette, ma non necessario. Potete usare sia gli apici singoli - ('), sia le virgolette doppie ("). Se avete un valore che occupa pi - di una riga, racchiudete l'intero valore fra triple virgolette ("""). - Potete mettere commenti usando qualsiasi sintassi che non sia valida - per il file di configurazione. Noi consigliamo l'uso di un cancelletto - (#) all'inizio della riga. - - - Questo esempio di file di configurazione ha due sezioni. I nomi di sezione - sono racchiusi fra parentesi quadre []. I nomi di sezioni possono essere - stringhe dal contenuto arbitrario, purch non comprenda [ - o ]. Le quattro variabili in alto sono variabili globali, - non contenute in alcuna sezione. Queste variabili vengono sempre caricate - dal file di configurazione. Se viene caricata una particolare sezione, - allora saranno caricate le variabili globali e quelle di quella sezione. - Se una variabile esiste sia come globale che in una sezione, verr usata - la variabile di sezione. Se date lo stesso nome a due variabili nella stessa - sezione verr usato l'ultimo valore. - - - I file di configurazione vengono caricati nel template con la funzione - config_load. - - - Potete nascondere variabili o intere sezioni anteponendo un punto al nome - della variabile o della sezione. Questo utile se la vostra applicazione - legge dai file di configurazione dati sensibili di cui il motore di - template non ha bisogno. Se affidate a terzi la modifica del template, - potete stare sicuri che non potranno leggere dati sensibili dal file di - configurazione caricandolo nel template. - - - - diff --git a/docs/it/designers/language-basic-syntax.xml b/docs/it/designers/language-basic-syntax.xml deleted file mode 100644 index aa28037a..00000000 --- a/docs/it/designers/language-basic-syntax.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - Sintassi di base - - Tutti i tag dei template di Smarty sono racchiusi fra delimitatori. - Per default i delimitatori sono { e - }, ma possono essere cambiati. - - - Per questi esempi supporremo di usare i delimitatori di default. - In Smarty, tutto il contenuto al di fuori dei delimitatori viene - mostrato come contenuto statico, senza modifiche. Quando Smarty - incontra i tag dei template, cerca di interpretarli, e visualizza - al loro posto l'output relativo. - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - - diff --git a/docs/it/designers/language-basic-syntax/language-escaping.xml b/docs/it/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 6df4c6d6..00000000 --- a/docs/it/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - Evitare il parsing di Smarty - - A volte desiderabile o necessario che Smarty ignori sezioni che altrimenti - verrebbero analizzate. Un esempio tipico l'incorporazione di codice Javascript - o CSS in un template. Il problema nasce dal fatto che questi linguaggi utilizzano - i caratteri { e } che per Smarty sono i delimitatori di default. - - - - La cosa pi semplice sarebbe evitare queste situazioni tenendo il codice Javascript - e CSS separato in appositi file e usando i collegamenti standard dell'HTML per - recuperarli. - - - - E' possibile includere contenuto letterale usando blocchi di questo tipo: - {literal} .. {/literal}. - Potete anche usare, in modo simile alle entit HTML, {ldelim},{rdelim} oppure {$smarty.ldelim},{$smarty.rdelim} - per visualizzare i delimitatori senza che Smarty ne analizzi il contenuto. - - - - Spesso risulta semplicemente conveniente cambiare il $left_delimiter ed il - $right_delimiter di Smarty. - - - esempio di cambio dei delimitatori - -left_delimiter = ''; -$smarty->assign('foo', 'bar'); -$smarty->display('example.tpl'); - -?> -]]> - - - Dove example.tpl : - - - -var foo = ; -function dosomething() { - alert("foo is " + foo); -} -dosomething(); - -]]> - - - - diff --git a/docs/it/designers/language-basic-syntax/language-math.xml b/docs/it/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index b95cb70b..00000000 --- a/docs/it/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - Funzioni aritmetiche - - Le funzioni aritmetiche possono essere applicate direttamente ai valori delle variabili. - - - esempi di funzioni aritmetiche - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - diff --git a/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 3dafd0bd..00000000 --- a/docs/it/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - Attributi - - La maggior parte delle funzioni accetta attributi che specificano - o modificano il loro comportamento. Gli attributi delle funzioni - Smarty assomigliano agli attributi HTML. I valori statici non hanno - bisogno di essere racchiusi fra virgolette, ma raccomandato farlo - per le stringhe. Possono essere usate anche variabili, che non devno - essere fra virgolette. - - - Alcuni attributi richiedono valori booleani (vero o falso). Per - specificarli si possono usare i seguenti valori, senza virgolette: - true, on, e yes, - oppure false, off, e - no. - - - sintassi per gli attributi delle funzioni - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - diff --git a/docs/it/designers/language-basic-syntax/language-syntax-comments.xml b/docs/it/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 315e53e3..00000000 --- a/docs/it/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Commenti - - I commenti nei template sono preceduti e seguiti da asterischi, i quali - sono a loro volta compresi dai tag delimitatori: {* questo un commento *} - I commenti di Smarty non vengono visualizzati nell'output del template. - Sono usati per note interne al template. - - - Commenti - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - diff --git a/docs/it/designers/language-basic-syntax/language-syntax-functions.xml b/docs/it/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 65f6e7a2..00000000 --- a/docs/it/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - Funzioni - - Ogni tag di Smarty pu stampare una variable - o chiamare una qualche funzione. Le funzioni vengono richiamate richiudendo - la funzione e i suoi attributi fra i delimitatori, cos: {nomefunzione - attr1="val" attr2="val"}. - - - sintassi delle funzioni - -{$name}! -{else} - Welcome, {$name}! -{/if} - -{include file="footer.tpl"} -]]> - - - - Sia le funzioni incorporate che le funzioni utente hanno la stessa - sintassi nel template. Le funzioni incorporate sono il cuore pulsante - di Smarty, ad esempio if, section e - strip. Non possono essere modificate. Le funzioni - utente sono funzioni addizionali sviluppate attraverso i plugin. Potete - modificarle a piacere, e potete crearne di nuove. html_options - e html_select_date sono esempi di funzioni utente. - - - diff --git a/docs/it/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/it/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 0c5a8dc5..00000000 --- a/docs/it/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - Incorporare variabili fra virgolette - - Smarty riconosce le variabili incorporate nelle stringhe fra virgolette (") - se contengono solo numeri, lettere, underscore (_) e parentesi quadre ([]). - Se sono presenti altri caratteri (punti, riferimento a oggetti, ecc.) la - variabile deve essere posta tra backticks (`). I backticks si possono ottenere - digitando ALT+96 (sul tastierino numerico). - - - embedded quotes syntax - - - - - - diff --git a/docs/it/designers/language-builtin-functions.xml b/docs/it/designers/language-builtin-functions.xml deleted file mode 100644 index 057e785b..00000000 --- a/docs/it/designers/language-builtin-functions.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - Funzioni incorporate - - Smarty dotato di numerose funzioni incorporate. Queste funzioni - sono integrate nel linguaggio del template: non possibile creare funzioni - utente con gli stessi nomi, e nemmeno modificare le funzioni - incorporate. - - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-capture.xml b/docs/it/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index ce3fb3b7..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - capture - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - no - default - Nome del blocco catturato - - - assign - stringa - no - nessuno - Nome della variabile cui assegnare l'output catturato - - - - - - capture si usa per intercettare l'output del template assegnandolo - ad una variabile invece di visualizzarlo. Qualsiasi contenuto compreso - fra {capture name="foo"} e {/capture} viene aggiunto alla variabile - specificata nell'attributo name. Il contenuto catturato pu essere - usato nel template utilizzando la variabile speciale $smarty.capture.foo - dove foo il nome passato nell'attributo name. Se non fornite un - attributo name, verr usato "default". Tutti i comandi {capture} - devono essere chiusi con {/capture}. E' possibile nidificarli. - - - Nota tecnica - - Le versioni da 1.4.0 a 1.4.4 di Smarty mettevano il contenuto catturato - nella variabile $return. A partire dalla 1.4.5 si utilizza l'attributo - name, quindi modificate i vostri template di conseguenza. - - - - - Fate attenzione se catturate l'output di insert. - Se avete il caching attivato e usate comandi insert - che vi aspettate vengano eseguiti nel contenuto in cache, non - catturate questo contenuto. - - - - - catturare il contenuto del template - - - - {$smarty.capture.banner} - - -{/if} -]]> - - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-config-load.xml b/docs/it/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 2f8a21e1..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - config_load - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - file - stringa - s - nessuno - Nome del file di configurazione da importare - - - section - stringa - no - nessuno - Nome della sezione da caricare - - - scope - stringa - no - local - - Campo di applicazione delle variabili caricate, - che pu essere local, parent o global. local significa - che le variabili vengono caricate nel contesto del - template locale. parent significa che le variabili - vengono caricate sia nel contesto locale che nel template - genitore che lo ha chiamato. global significa che le - variabili sono disponibili a tutti i template. - - - - global - booleano - no - false - - Se le variabili sono visibili o meno al template - genitore: equivale a scope=parent. NOTA: Questo attributo - deprecato per via dell'esistenza dell'attributo scope, - ma ancora supportato. Se presente scope, questo valore - ignorato. - - - - - - - Questa funzione usata per caricare variabili nel template da - un file di configurazione. - Vedere Config Files per - maggiori informazioni. - - - funzione config_load - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - I file di configurazione possono contenere sezioni. Potete caricare - variabili da una sezione con l'attributo aggiuntivo - section. - - - - Le sezioni dei file di configurazione e la funzione - incorporata dei template chiamata section non hanno - nulla a che fare fra di loro, hanno soltanto lo stesso nome. - - - - funzione config_load con section - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      -
      - - diff --git a/docs/it/designers/language-builtin-functions/language-function-foreach.xml b/docs/it/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index ea92a3c2..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - foreach,foreachelse - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - from - array - s - nessuno - Array sul quale viene eseguito il ciclo - - - item - stringa - s - nessuno - Nome della variabile che rappresenta - l'elemento attuale - - - key - stringa - no - nessuno - Nome della variabile che rappresenta la chiave attuale - - - name - stringa - no - nessuno - Nome del ciclo foreach per l'accesso alle sue propriet - - - - - - I cicli foreach sono un'alternativa ai cicli - section. foreach si usa - per ciclare su un singolo array associativo. La sintassi di - foreach molto pi semplice di - session, ma in compenso pu essere usata solo - per un array singolo. I tag foreach devono - essere chiusi con /foreach. I parametri - obbligatori sono from e item. - Il nome del ciclo foreach pu essere quello che preferite, composto - di lettere, numeri e underscore. I cicli foreach - possono essere nidificati, ma i nomi dei cicli nidificati devono - essere diversi tra di loro. La variabile from - (di solito un array di valori) determina quante volte verr eseguito - il ciclo foreach. - foreachelse viene eseguito quando non ci sono - valori nella variabile from. - - -foreach - - -{* questo esempio stamper tutti i valori dell'array $custid *} -{foreach from=$custid item=curr_id} - id: {$curr_id}<br> -{/foreach} - -OUTPUT: - -id: 1000<br> -id: 1001<br> -id: 1002<br> - - - -foreach con key - -{* key contiene la chiave per ogni valore del ciclo - -l'assegnazione pu essere qualcosa del genere: - -$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -*} - -{foreach name=outer item=contact from=$contacts} - {foreach key=key item=item from=$contact} - {$key}: {$item}<br> - {/foreach} -{/foreach} - -OUTPUT: - -phone: 1<br> -fax: 2<br> -cell: 3<br> -phone: 555-4444<br> -fax: 555-3333<br> -cell: 760-1234<br> - - - - I cicli foreach hanno anche le proprie variabili che gestiscono le propriet - del foreach. Queste vengono indicate cos: {$smarty.foreach.foreachname.varname}, - dove foreachname il nome indicato come attributo name - del foreach - - - - - iteration - - iteration si usa per mostrare l'iterazione corrente del ciclo. - - - iteration comincia sempre per 1 ed incrementata di uno - ad ogni iterazione. - - - - - first - - first vale true quando l'iterazione attuale la prima del ciclo. - - - - - last - - last vale true quando l'iterazione attuale l'ultima del ciclo. - - - - - show - - show si usa come parametro per il foreach. - show un valore booleano, true o false. Quando - false, il foreach non verr visualizzato. Se presente un - foreachelse, verr visualizzato al suo posto. - - - - - total - - total si usa per visualizzare il numero di iterazioni che il - ciclo foreach effettuer. Pu essere usato all'interno o dopo il foreach. - - - - - - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-if.xml b/docs/it/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index fd56a796..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - if,elseif,else - - Le istruzioni {if} in Smarty hanno praticamente la - stessa flessibilit delle istruzioni if PHP, con qualche caratteristica - aggiuntiva per il motore di template. - Ogni {if} deve essere chiuso con un - {/if}. Sono previsti anche {else} - e {elseif}. Sono riconosciuti tutti gli operatori condizionali - di PHP, come ||, or, - &&, and, ecc. - - - - Quella che segue una lista degli operatori riconosciuti, che devono - essere separati con degli spazi dagli elementi circostanti. Notate che - gli elementi mostrati fra [parentesi quadre] sono opzionali. Quando esistono - sono mostrati gli equivalenti in PHP. - - - - - - - - - - - - Operatore - Alternative - Esempio di sintassi - Significato - Equivalente PHP - - - - - == - eq - $a eq $b - uguale - == - - - != - ne, neq - $a neq $b - diverso - != - - - > - gt - $a gt $b - maggiore di - > - - - < - lt - $a lt $b - minore di - < - - - >= - gte, ge - $a ge $b - maggiore o uguale - >= - - - <= - lte, le - $a le $b - minore o uguale - <= - - - ! - not - not $a - negazione (unario) - ! - - - % - mod - $a mod $b - modulo (resto della divisione) - % - - - is [not] div by - - $a is not div by 4 - divisibile per - $a % $b == 0 - - - is [not] even - - $a is not even - [non] un numero pari (unario) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - livello di raggruppamento [non] pari - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [non] un numero dispari (unario) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - livello di raggruppamento [non] dispari - ($a / $b) % 2 != 0 - - - - - -Istruzioni if - -{if $name eq "Fred"} - Welcome Sir. -{elseif $name eq "Wilma"} - Welcome Ma'am. -{else} - Welcome, whatever you are. -{/if} - -{* un esempio con "or" logico *} -{if $name eq "Fred" or $name eq "Wilma"} - ... -{/if} - -{* come sopra *} -{if $name == "Fred" || $name == "Wilma"} - ... -{/if} - -{* questa sintassi NON funziona, gli operatori condizionali - devono essere separati con spazi dagli elementi circostanti *} -{if $name=="Fred" || $name=="Wilma"} - ... -{/if} - - -{* si possono usare le parentesi *} -{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* potete anche incorporare chiamate a funzioni php *} -{if count($var) gt 0} - ... -{/if} - -{* test su valori pari o dispari *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* test se var divisibile per 4 *} -{if $var is div by 4} - ... -{/if} - -{* test se var pari, raggruppato per due. Ad es.: -0=pari, 1=pari, 2=dispari, 3=dispari, 4=pari, 5=pari, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=pari, 1=pari, 2=pari, 3=dispari, 4=dispari, 5=dispari, etc. *} -{if $var is even by 3} - ... -{/if} - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-include-php.xml b/docs/it/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 6b8cba88..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - include_php - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - file - stringa - s - nessuno - Nome del file php da includere - - - once - booleano - no - true - Se includere o no il file php pi di una volta nel - caso venga richiesto pi volte - - - assign - stringa - no - nessuno - Nome della variabile cui sar assegnato l'output - di include_php - - - - - - Nota Tecnica - - include_php deprecato da Smarty, in quanto potete ottenere la - stessa funzionalit attraverso una funzione utente. - L'unica ragione per usare include_php se avete una reale - necessit di tenere fuori la funzione php dalla directory dei plugin - o dal vostro codice applicativo. Vedere l'esempio di template a - componenti per i dettagli. - - - - i tag include_php sono usati per includere uno script php nel - template. Se la security abilitata, lo script php si deve - trovare nel percorso di $trusted_dir. Il tag include_php deve - avere l'attributo "file", che contiene il percorso al file da - includere, che pu essere assoluto relativo alla directory $trusted_dir. - - - include_php un ottimo modo per gestire template a componenti, e - tiene il codice PHP separato dai file dei template. Diciamo che abbiamo - un template che mostra la navigazione del nostro sito, che viene - prelevata dinamicamente da un database. Possiamo tenere la logica PHP - che ottiene il contenuto del database in una directory separata, ed - includerla in cima al template. Ora possiamo includere questo - template ovunque senza preoccuparci che l'applicazione abbia - preventivamente caricato i dati del database. - - - Per default, i file php sono inclusi una sola volta, anche se richiesti - pi volte nel template. Potete specificare che devono essere inclusi - ogni volta con l'attributo once. Se impostate - once a false, lo script verr incluso tutte le volte che viene - richiesto nel template. - - - Opzionalmente potete passare l'attributo assign, - che specifica un nome di variabile cui sar assegnato l'output di - include_php, invece di essere visualizzato. - - - L'oggetto smarty disponibile come $this all'interno dello script - PHP che viene incluso. - - -funzione include_php - -load_nav.php -------------- - -<?php - - // carichiamo le variabili da un db mysql e le assegnamo al template - require_once("MySQL.class.php"); - $sql = new MySQL; - $sql->query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign('sections',$sql->record); - -?> - - -index.tpl ---------- - -{* percorso assoluto, o relativo a $trusted_dir *} -{include_php file="/path/to/load_nav.php"} - -{foreach item="curr_section" from=$sections} - <a href="{$curr_section.url}">{$curr_section.name}</a><br> -{/foreach} - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-include.xml b/docs/it/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index f5d0754a..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - include - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - file - stringa - s - nessuno - Nome del file di template da includere - - - assign - stringa - no - nessuno - Nome della variabile cui sar assegnato - l'output dell'include - - - [variabile ...] - [tipo variabile] - no - nessuno - Variabile da passare localmente al template - - - - - - I tag include sono usati per includere altri template in quello attuale. - Tutte le variabili del template corrente sono disponibili anche nel - template incluso. Il tag include deve comprendere l'attributo "file", - che contiene il percorso del template da includere. - - - Opzionalmente si pu passare l'attributo assign, - che specifica un nome di variabile del template alla quale - sar assegnato l'output dell'include, invece - di essere visualizzato. - - -funzione include - -{include file="header.tpl"} - -{* qui va il corpo del template *} - -{include file="footer.tpl"} - - - Potete anche passare variabili ai template inclusi sotto forma di - attributi. Queste variabili saranno disponibili soltanto nello - scope del file incluso. Le variabili attributo prevalgono su quelle - del template attuale in caso di omonimia. - - -funzione include con passaggio di variabili - -{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"} - -{* qui va il corpo del template *} - -{include file="footer.tpl" logo="http://my.example.com/logo.gif"} - - - Usate la sintassi delle risorse dei template per - includere file esterni alla directory $template_dir. - - -esempi di funzione include con le risorse dei template - -{* percorso assoluto *} -{include file="/usr/local/include/templates/header.tpl"} - -{* percorso assoluto (come sopra) *} -{include file="file:/usr/local/include/templates/header.tpl"} - -{* percorso assoluto su windows (NECESSARIO usare il prefisso "file:") *} -{include file="file:C:/www/pub/templates/header.tpl"} - -{* include da una risorsa chiamata "db" *} -{include file="db:header.tpl"} - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-insert.xml b/docs/it/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 5e730a88..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - insert - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - s - nessuno - Nome della funzione di insert (insert_name) - - - assign - stringa - no - nessuno - Nome della variabile del template cui verr - assegnato l'output - - - script - stringa - no - nessuno - Nome dello script php che viene incluso prima - della chiamata alla funzione di insert - - - [variabile ...] - [tipo variabile] - no - nessuno - Variabile da passare alla funzione di insert - - - - - - I tag insert funzionano praticamente come i tag include, ad - eccezione del fatto che i tag insert non vengono messi in - cache quando avete il caching - del template abilitato. Verranno quindi eseguiti ad ogni - chiamata del template. - - - Diciamo che abbiamo un template con uno spazio banner in cima - alla pagina. Il banner pu contenere qualsiasi mescolanza di HTML, - immagini, flash, ecc., quindi non possiamo usare un link statico, - e non vogliamo che questo contenuto sia messo in cache con la - pagina. Ecco quindi l'utilit del tag insert: il template conosce i - valori di #banner_location_id# e #site_id# (presi da un file di - configurazione), e ha bisogno di chiamare una funzione per ottenere - il contenuto del banner. - - -funzione insert - -{* esempio di caricamento di un banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - In questo esempio stiamo usando il nome "getBanner" e passiamo i - parametri #banner_location_id# e #site_id#. Smarty cercher una - funzione chiamata insert_getBanner() nell'applicazione PHP, passandole - i valori di #banner_location_id# e #site_id# come primo argomento - in un array associativo. Tutti i nomi di funzioni di insert - nell'applicazione devono essere prefissati con "insert_", per evitare - possibili conflitti nei nomi di funzione. La nostra funzione - insert_getBanner() far qualcosa con i valori passati e restituir - il risultato, che verr visualizzato nel templat al posto del tag - insert. - In questo esempio, Smarty chiamerebbe questa funzione: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - e visualizzerebbe il risultato restituito al posto del tag insert. - - - Se fornite l'attributo "assign", l'output del tag insert verr - assegnato a questa variabile invece di essere mostrato nel template. - NOTA: assegnare l'output ad una variabile non molto utile se il - caching abilitato. - - - Se fornite l'attributo "script", questo script verr incluso (una - volta sola) prima dell'esecuzione della funzione di insert. Questo - caso pu presentarsi quando la funzione di insert pu non esistere - ancora, e uno script php deve essere quindi incluso per farla - funzionare. Il percorso pu essere assoluto o relativo a $trusted_dir. - Se la security abilitata, lo script deve trovarsi in $trusted_dir. - - - Come secondo argomento viene passato l'oggetto Smarty. In questo - modo potete ottenere e modificare informazioni nell'oggetto Smarty - dall'interno della funzione di insert. - - - Nota tecnica - - E' possibile avere porzioni di template non in cache. Se - avete il caching abilitato, - i tag insert non verranno messi in cache. Verranno quindi - eseguiti dinamicamente ogni volta che la pagina viene creata, - anche se questa si trova in cache. Questo viene utile per cose - come banner, sondaggi, situazione del tempo, risultati di ricerche, - aree di feedback utenti, ecc. - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-ldelim.xml b/docs/it/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index e4b85cc2..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - ldelim,rdelim - - ldelim e rdelim si usano per fare l'escape dei delimitatori del template, nel nostro caso - "{" o "}". Potete usare anche {literal}{/literal} per fare l'escape su - blocchi di testo. - Vedere anche {$smarty.ldelim} - e {$smarty.rdelim} - - - ldelim, rdelim - - - - - L'esempio sopra produrr: - - - - - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-literal.xml b/docs/it/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 09db737d..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - literal - - I tag literal vi consentono di far s che un blocco di dati venga letto - "letteralmente". Ci utile tipicamente quando avete un blocco javascript - o CSS nel quale le parentesi graffe si confonderebbero con i delimitatori - del template. Tutto ci che si trova fra {literal} e {/literal} non viene - interpretato, ma visualizzato cos com'. Se avete bisogno di usare tag - del template all'interno del blocco literal, considerate la possibilit di - usare invece {ldelim}{rdelim} - per fare l'escape dei singoli delimitatori. - - - tag literal - - - - - - -{/literal} -]]> - - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-php.xml b/docs/it/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index f4f670fb..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - php - - I tag php vi consentono di incorporare codice php direttamente - nel template. Non sar fatto l'escape, indipendentemente - dall'impostazione di $php_handling. - Questa funzione solo per utenti avanzati, normalmente non - dovreste averne bisogno. - - -tag php - -{php} - // inclusione di uno script php - // direttamente dal template. - include("/path/to/display_weather.php"); -{/php} - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-section.xml b/docs/it/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 919ef443..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,569 +0,0 @@ - - - - section,sectionelse - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - s - nessuno - Nome della sezione - - - loop - [$variable_name] - s - nessuno - Nome della variabile che determina il numero - di iterazioni del ciclo - - - start - intero - no - 0 L'indice - dal quale inizier il ciclo. Se il valore negativo, - la posizione di partenza calcolata dalla fine dell'array. - Ad esempio, se ci sono sette valori nell'array da ciclare - e start -2, l'indice di partenza sar 5. Valori non - validi (cio al di fuori della lunghezza dell'array da - ciclare) saranno automaticamente convertiti al valore - valido pi vicino. - - - step - intero - no - 1 - Il valore di passo da usare per attraversare - l'array da ciclare. Ad esempio, step=2 cicler sugli - indici 0,2,4, ecc. Se step negativo il ciclo proceder - sull'array all'indietro. - - - max - intero - no - nessuno - Massimo numero di cicli per la sezione. - - - show - booleano - no - true - Stabilisce se mostrare o no la sezione - - - - - - Le sezioni sono usate per ciclare su array di dati. Tutti i tag - section devono essere chiusi con - /section. I parametri obbligatori sono - name e loop. Il nome - della sezione pu essere quello che preferite, formato da lettere, - numeri e underscore. Le sezioni possono essere nidificate, ed i nomi - delle sezioni nidificate devono essere diversi fra loro. La variabile - loop (di solito un array di valori) determina quante volte sar - eseguito il ciclo. Quando stampate una variabile all'interno di una - sezione, il nome della sezione deve essere indicato a fianco del - nome della variabile fra parentesi quadre []. - sectionelse viene eseguito quando non ci sono - valori nella variabile loop. - - -section - - -{* questo esempio stamper tutti i valori dell'array $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> -{/section} - -OUTPUT: - -id: 1000<br> -id: 1001<br> -id: 1002<br> - - - -variabile loop - -{* la variabile loop determina soltanto il numero di cicli da ripetere. - Potete accedere a qualsiasi variabile dal template della sezione. - In questo esempio presumiamo che $custid, $name e $address siano - tutti array contenenti lo stesso numero di valori *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - <p> -{/section} - - -OUTPUT: - -id: 1000<br> -name: John Smith<br> -address: 253 N 45th<br> -<p> -id: 1001<br> -name: Jack Jones<br> -address: 417 Mulberry ln<br> -<p> -id: 1002<br> -name: Jane Munson<br> -address: 5605 apple st<br> -<p> - - - -nomi delle sezioni - -{* come nome della sezione potete usare quello che preferite, - e viene usato per riferirsi ai dati all'interno della sezione *} -{section name=mydata loop=$custid} - id: {$custid[mydata]}<br> - name: {$name[mydata]}<br> - address: {$address[mydata]}<br> - <p> -{/section} - - - -sezioni nidificate - -{* le sezioni possono essere nidificate a qualsiasi profondit. Con - le sezioni nidificate potete accedere a strutture di dati complesse, - ad esempio array multidimensionali. In questo esempio, $contact_type[customer] - un array di tipi di contatto per il cliente corrente. *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> - name: {$name[customer]}<br> - address: {$address[customer]}<br> - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}<br> - {/section} - <p> -{/section} - - -OUTPUT: - -id: 1000<br> -name: John Smith<br> -address: 253 N 45th<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: john@myexample.com<br> -<p> -id: 1001<br> -name: Jack Jones<br> -address: 417 Mulberry ln<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@myexample.com<br> -<p> -id: 1002<br> -name: Jane Munson<br> -address: 5605 apple st<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@myexample.com<br> -<p> - - - -sezioni e array associativi - -{* questo un esempio di stampa di un array associativo - di dati in una sezione *} -{section name=customer loop=$contacts} - name: {$contacts[customer].name}<br> - home: {$contacts[customer].home}<br> - cell: {$contacts[customer].cell}<br> - e-mail: {$contacts[customer].email}<p> -{/section} - - -OUTPUT: - -name: John Smith<br> -home: 555-555-5555<br> -cell: 555-555-5555<br> -e-mail: john@myexample.com<p> -name: Jack Jones<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jack@myexample.com<p> -name: Jane Munson<br> -home phone: 555-555-5555<br> -cell phone: 555-555-5555<br> -e-mail: jane@myexample.com<p> - - - - - -sectionelse - -{* sectionelse viene eseguito se non ci sono valori in $custid *} -{section name=customer loop=$custid} - id: {$custid[customer]}<br> -{sectionelse} - there are no values in $custid. -{/section} - - - Le sezioni hanno anche le proprie variabili di gestione delle propriet. - Vengono indicate cos: {$smarty.section.nomesezione.nomevariabile} - - - - A partire da Smarty 1.5.0, la sintassi per le variabili delle propriet - di sessione cambiata da {%nomesezione.nomevariabile%} a - {$smarty.section.sectionname.varname}. La vecchia sintassi ancora - supportata, ma negli esempi del manuale troverete solo riferimenti - alla nuova. - - - - index - - index si usa per visualizzare l'attuale indice del ciclo, partendo - da zero (o dall'attributo start se presente), e con incrementi di uno - (o dell'attributo step se presente). - - - Nota tecnica - - Se le propriet step e start non vengono modificate, index - funziona allo stesso modo della propriet iteration, ad - eccezione del fatto che parte da 0 invece che da 1. - - - - propriet index - - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - - OUTPUT: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> - - - - - index_prev - - index_prev visualizza l'indice del ciclo precedente. - Sul primo ciclo impostata a -1. - - - propriet index_prev - - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_prev] ne $custid[customer.index]} - The customer id changed<br> - {/if} - {/section} - - - OUTPUT: - - 0 id: 1000<br> - The customer id changed<br> - 1 id: 1001<br> - The customer id changed<br> - 2 id: 1002<br> - The customer id changed<br> - - - - - index_next - - index_next visualizza l'indice del prossimo ciclo. Sull'ultimo - ciclo ha sempre il valore maggiore dell'attuale (rispettando - l'attributo step, quando presente). - - - propriet index_next - - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_next] ne $custid[customer.index]} - The customer id will change<br> - {/if} - {/section} - - - OUTPUT: - - 0 id: 1000<br> - The customer id will change<br> - 1 id: 1001<br> - The customer id will change<br> - 2 id: 1002<br> - The customer id will change<br> - - - - - iteration - - iteration visualizza l'iterazione attuale del ciclo. - - - - Al contrario di index, questa propriet non influenzata dalle - propriet start, step e max. Inoltre iteration comincia da 1 - invece che da 0 come index. rownum un alias di iteration, e - funziona in modo identico. - - - - propriet iteration - - {section name=customer loop=$custid start=5 step=2} - current loop iteration: {$smarty.section.customer.iteration}<br> - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {* nota: $custid[customer.index] e $custid[customer] hanno identico significato *} - {if $custid[customer.index_next] ne $custid[customer.index]} - The customer id will change<br> - {/if} - {/section} - - - OUTPUT: - - current loop iteration: 1 - 5 id: 1000<br> - The customer id will change<br> - current loop iteration: 2 - 7 id: 1001<br> - The customer id will change<br> - current loop iteration: 3 - 9 id: 1002<br> - The customer id will change<br> - - - - - first - - first vale true se l'iterazione attuale la prima. - - - propriet first - - {section name=customer loop=$custid} - {if $smarty.section.customer.first} - <table> - {/if} - - <tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - - {if $smarty.section.customer.last} - </table> - {/if} - {/section} - - - OUTPUT: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> - - - - - last - - last vale true se l'attuale iterazione l'ultima. - - - propriet last - - {section name=customer loop=$custid} - {if $smarty.section.customer.first} - <table> - {/if} - - <tr><td>{$smarty.section.customer.index} id: - {$custid[customer]}</td></tr> - - {if $smarty.section.customer.last} - </table> - {/if} - {/section} - - - OUTPUT: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> - - - - - rownum - - rownum visualizza l'iterazione attuale del ciclo, partendo - da uno. E' un alias di iteration, e funziona in modo identico. - - - propriet rownum - - {section name=customer loop=$custid} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br> - {/section} - - - OUTPUT: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> - - - - - loop - - loop visualizza l'index dell'ultimo ciclo visualizzato dalla - sezione. Pu essere usato all'interno o dopo la sezione. - - - propriet index - - {section name=customer loop=$custid} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - There were {$smarty.section.customer.loop} customers shown above. - - OUTPUT: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> - - There were 3 customers shown above. - - - - - show - - show usato come parametro per la sezione. - show un valore booleano, true o false. Se - false, la sezione non verr visualizzata. Se presente un sectionelse, - verr visualizzato questo. - - - attributo show - - {* $show_customer_info potrebbe essere stato passato dall'applicazione - PHP, per stabilire se questa sezione deve essere visualizzata o no *} - {section name=customer loop=$custid show=$show_customer_info} - {$smarty.section.customer.rownum} id: {$custid[customer]}<br> - {/section} - - {if $smarty.section.customer.show} - the section was shown. - {else} - the section was not shown. - {/if} - - - OUTPUT: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> - - the section was shown. - - - - - total - - total visualizza il numero totale di iterazioni che la sezione - eseguir. Pu essere usato all'interno o dopo la sezione. - - - propriet total - - {section name=customer loop=$custid step=2} - {$smarty.section.customer.index} id: {$custid[customer]}<br> - {/section} - - There were {$smarty.section.customer.total} customers shown above. - - OUTPUT: - - 0 id: 1000<br> - 2 id: 1001<br> - 4 id: 1002<br> - - There were 3 customers shown above. - - - - - diff --git a/docs/it/designers/language-builtin-functions/language-function-strip.xml b/docs/it/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 60544751..00000000 --- a/docs/it/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - strip - - Molte volte i progettisti di pagine web si trovano davanti al - problema causato da spazi e "a capo" che influiscono sull'output - HTML generato (a causa delle "caratteristiche" del browser), per - cui si trovano costretti a mettere tutti insieme i tag del template - per ottenere il risultato voluto. Questo di solito significa - ritrovarsi con un template illeggibile o ingestibile. - - - Tutto ci che compreso fra i tag {strip}{/strip} in Smarty viene - ripulito dagli spazi extra o dai caratteri di ritorno a capo all'inizio - e alla fine delle righe, prima di essere visualizzato. In - questo modo potete mantenere la leggibilit dei vostri template senza - preoccuparvi dei problemi causati dagli spazi. - - - Nota tecnica - - {strip}{/strip} non modificano il contenuto delle variabili del template. - Vedere la funzione strip modifier. - - - -tag strip - - - - - - This is a test - - - - -{/strip} - - -OUTPUT: - -
      This is a test
      -]]> -
      -
      - - Notate che nell'esempio qui sopra tutte le righe iniziano e - finiscono con tag HTML. Tenete presente che tutte le linee - vengono "attaccate", per cui se avete del testo all'inizio - o alla fine di qualche riga, questo verr attaccato, e probabilmente - non ci che volete. - -
      - - diff --git a/docs/it/designers/language-combining-modifiers.xml b/docs/it/designers/language-combining-modifiers.xml deleted file mode 100644 index 4a2bdf37..00000000 --- a/docs/it/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - Combinare i modificatori - - Potete applicare qualsiasi numero di modificatori ad una variabile. - Verranno eseguiti nell'ordine in cui li avete indicati, da sinistra - a destra. Devono essere separati con un carattere | (pipe). - - - combinare i modificatori - -assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); -$smarty->display('index.tpl'); -?> - -index.tpl: - -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - - - L'esempio sopra stamper: - - - - - - - - diff --git a/docs/it/designers/language-custom-functions.xml b/docs/it/designers/language-custom-functions.xml deleted file mode 100644 index f7bfc4d0..00000000 --- a/docs/it/designers/language-custom-functions.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - Custom Functions - - Smarty fornito di numerose funzioni utente che potete - utilizzare nei template. - - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-textformat; - - - diff --git a/docs/it/designers/language-custom-functions/language-function-assign.xml b/docs/it/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index fb00052f..00000000 --- a/docs/it/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - assign - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - var - stringa - s - nessuno - Nome della variabile valorizzata - - - value - stringa - s - nessuno - Valore assegnato alla variabile - - - - - - assign usato per assegnare valori alle variabili del template - durante l'esecuzione dello stesso. - - -assign - -{assign var="name" value="Bob"} - -The value of $name is {$name}. - -OUTPUT: - -The value of $name is Bob. - - - diff --git a/docs/it/designers/language-custom-functions/language-function-counter.xml b/docs/it/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 0df3dadb..00000000 --- a/docs/it/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - counter - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - no - default - Nome del contatore - - - start - numerico - no - 1 - Valore di partenza del contatore - - - skip - numerico - no - 1 - Passo del contatore - - - direction - stringa - no - up - Direzione del conteggio (up/down) - - - print - booleano - no - true - Se stampare il valore oppure no - - - assign - stringa - no - nessuno - la variabile del template a cui assegnare il valore - - - - - - counter si usa per stampare un conteggio. counter terr il conto - del valore ad ogni iterazione. Potete impostare il valore di partenza, - l'intervallo e la direzione del conteggio, cos come decidere se - stampare il valore oppure no. Potete utilizzare pi contatori - contemporaneamente indicando un nome diverso per ciascuno. Se non indicate - un nome, verr usato il nome 'default'. - - - Se fornite lo speciale attributo "assign", l'output della funzione contatore - verr assegnato a questa variabile invece di essere stampata in output. - - - counter - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - questo stamper: - - - -2
      -4
      -6
      -]]> -
      -
      -
      - diff --git a/docs/it/designers/language-custom-functions/language-function-cycle.xml b/docs/it/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 601d17e1..00000000 --- a/docs/it/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - cycle - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - no - default - Nome del ciclo - - - values - misto - s - nessuno - Valori da usare nel ciclo: pu essere - una lista delimitata da un separatore (vedere attributo - delimiter), oppure un array di valori. - - - print - booleano - no - true - Se stampare il valore oppure no. - - - advance - booleano - no - true - Se avanzare o no al prossimo valore. - - - delimiter - stringa - no - , - Delimitatore per l'attributo values. - - - assign - stringa - no - nessuno - Variabile del template cui assegnare l'output. - - - - - - Cycle si usa per effettuare un ciclo alternato fra un insieme di valori. - Ci d la possibilit di alternare facilmente due o pi colori in una - tabella, o di effettuare un ciclo su un array di valori. - - - Potete effettuare il ciclo su pi di un insieme di valori nel template - fornendo l'attributo name, se date ad ogni insieme un nome diverso. - - - Potete evitare che il valore corrente venga stampato impostando - l'attributo set a false. Pu essere utile per saltare un valore. - - - L'attributo advance serve per ripetere un valore. Se lo impostate a - false, l'iterazione successiva del ciclo stamper lo stesso valore. - - - Se fornite lo speciale attributo "assign", l'output della funzione cycle - verr assegnato a questa variabile invece di essere stampato in output. - - - cycle - - - {$data[rows]} - -{/section} -]]> - - - - 1 - - - 2 - - - 3 - -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-debug.xml b/docs/it/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 194ffc2f..00000000 --- a/docs/it/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - debug - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - output - stringa - no - html - tipo di output: html o javascript - - - - - - {debug} produce un dump sulla pagina della console di debug. Funziona - indipendentemente dall'impostazione debug - di Smarty. Siccome viene eseguita a runtime, in grado di - mostrare soltanto le variabili, non i template che state utilizzando. - Comunque vedrete tutte le variabili attualmente disponibili nello - scope di questo template. - - - diff --git a/docs/it/designers/language-custom-functions/language-function-eval.xml b/docs/it/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index d9de5118..00000000 --- a/docs/it/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - eval - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - var - misto - s - nessuno - variabile (o stringa) da valorizzare - - - assign - stringa - no - nessuno - la variabile cui verr assegnato l'output - - - - - - eval si usa per valorizzare una variabile come se fosse un - template. Si pu usare per incorporare tag o variabili di template - dentro altre variabili, oppure tag o variabili nelle variabili dei - file di configurazione. - - - Se fornite lo speciale attributo "assign" l'output della funzione - eval sar assegnato a questa variabile invece di essere stampato - in output. - - - Nota tecnica - - La variabili valorizzate con eval sono trattate allo stesso modo - dei template. Seguono le stesse regole di escape e di sicurezza, - come se fossero template - - - - Nota tecnica - - Le variabili valorizzate con eval vengono compilate ad ogni chiamata: - la versione compilata non viene salvata! Comunque, se avete il - caching abilitato, l'output verr messo in cache con il resto del - template. - - - -eval - -setup.conf ----------- - -emphstart = <b> -emphend = </b> -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. - - -index.tpl ---------- - -{config_load file="setup.conf"} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign="state_error"} -{$state_error} - -OUTPUT: - -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a <b>city</b>. -You must supply a <b>state</b>. - - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-fetch.xml b/docs/it/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 7d1e1973..00000000 --- a/docs/it/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - fetch - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - file - stringa - s - nessuno - il file o l'indirizzo http o ftp da caricare - - - assign - stringa - no - nessuno - la variabile del template cui assegnare l'output - - - - - - fetch si usa per recuperare file dal filesystem locale, oppure da - un indirizzo http o ftp, e visualizzarne il contenuto. Se il nome - del file inizia per "http://", la pagina web verr letta e - visualizzata. Se il nome del file inizia per "ftp://", il file - verr recuperato dal server ftp e visualizzato. Per i file locali - deve essere indicato l'intero percorso sul filesystem oppure un - percorso relativo all'indirizzo dello script php in esecuzione. - - - Se fornite lo speciale attributo "assign", l'output della funzione - fetch verr assegnato a questa variabile invece di essere stampato - in output. (novit di Smarty 1.5.0) - - - Nota tecnica - - I redirect http non sono supportati, quindi assicuratevi di - mettere lo slash finale sull'indirizzo della pagina web quando - necessario. - - - - Nota tecnica - - Se attivata la security del template e state cercando di - caricare un file dal filesystem locale, saranno consentiti - soltanto file compresi in una delle directory definite sicure - ($secure_dir). - - - - fetch - -{$weather} -{/if} -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index f2567267..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,165 +0,0 @@ - - - - html_checkboxes - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - no - checkbox - nome della lista di checkbox - - - values - array - s, a meno che si usi l'attributo options - nessuno - array di valori per le checkbox - - - output - array - s, a meno che si usi l'attributo options - nessuno - array di output per le checkbox - - - selected - stringa/array - no - vuoto - la/le checkbox preselezionata/e - - - options - array associativo - s, a meno che si usino values e output - nessuno - array associativo di valori e output - - - separator - stringa - no - vuoto - stringa di testo da usare come separatore fra le checkbox - - - labels - booleano - no - true - aggiunge i tag <label> all'output - - - - - - html_checkboxes una funzione utente che usa i dati forniti per - creare un gruppo di checkbox html. Si occupa anche di impostare - la casella selezionata per default. Gli attributi obbligatori sono - values e output, a meno che non usiate invece options. Tutto - l'output generato compatibile XHTML. - - - Tutti i parametri non compresi nella lista qui sopra vengono - stampati come coppie nome/valore all'interno di ogni tag <input>. - - - html_checkboxes - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -?> -]]> - - - dove index.tpl : - - -"} -]]> - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); -?> -]]> - - - dove index.tpl : - - -"} -]]> - - - entrambi gli esempi produrranno in output: - - -Joe Schmoe
      -
      -
      -
      -]]> -
      -
      -
      - diff --git a/docs/it/designers/language-custom-functions/language-function-html-image.xml b/docs/it/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 532858f3..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - html_image - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - file - stringa - s - nessuno - nome/percorso dell'immagine - - - border - stringa - no - 0 - dimensione del bordo dell'immagine - - - height - stringa - no - altezza effettiva dell'immagine - altezza con cui visualizzare l'immagine - - - width - stringa - no - larghezza effettiva dell'immagine - larghezza con cui visualizzare l'immagine - - - basedir - stringa - no - doc root del web server - directory di base per percorsi relativi - - - alt - stringa - no - "" - descrizione alternativa dell'immagine - - - href - stringa - no - nessuno - valore di href per il link dell'immagine - - - - - - html_image una funzione utente che genera un tag HTML per una - immagine. L'altezza e la larghezza, quando non indicate, vengono - calcolate automaticamente dal file dell'immagine. - - - basedir la directory di riferimento per percorsi relativi. Se non - viene indicata, viene usata come base la document root del web - server (variabile di ambiente DOCUMENT_ROOT). Se la security - abilitata, il percorso dell'immagine deve trovarsi in una directory - considerata sicura. - - - href l'indirizzo del link a cui collegare - l'immagine. Se viene fornito, verr creato un tag - <a href="LINKVALUE"><a> attorno al tag image. - - - Tutti i parametri non compresi nella lista qui sopra vengono - stampati come coppie nome/valore all'interno del tag <img> - generato. - - - Nota tecnica - - html_image richiede un accesso al disco per leggere il - file dell'immagine e calcolarne altezza e larghezza. Se non - usate il caching dei template, generalmente consigliabile - evitare html_image e lasciare i tag image statici per - ottenere prestazioni ottimali. - - - - esempio di html_image - -display('index.tpl'); - -?> -]]> - - - dove index.tpl : - - - - - - un possibile output potrebbe essere: - - - - - -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-options.xml b/docs/it/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 0815cd2c..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - html_options - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - values - array - s, a meno che si usi l'attributo options - nessuno - array di valori per il men a discesa - - - output - array - s, a meno che si usi l'attributo options - nessuno - array di output per il men a discesa - - - selected - stringa/array - no - vuoto - l'elemento/gli elementi selezionato/i - - - options - array associativo - s, a meno che si usino values e output - nessuno - array associativo di valori e output - - - name - stringa - no - vuoto - nome del gruppo select - - - - - - html_options una funzione utente che usa i dati forniti per creare - un gruppo di opzioni, cio di valori option per un men a discesa - (casella select). Si occupa anche di quale o quali valori devono - essere preselezionati. Gli attributi obbligatori sono values e output, - a meno che non usiate invece options. - - - Se uno dei valori forniti un array, verr trattato come un gruppo - di opzioni (OPTGROUP), e visualizzato di conseguenza. E' possibile - creare gruppi ricorsivi (a pi livelli). Tutto l'output generato - compatibile XHTML. - - - Se viene fornito l'attributo opzionale name, - la lista di opzioni verr racchiusa con il tag - <select name="groupname"></select>. In caso contrario - verr generata solo la lista di opzioni. - - - Tutti i parametri non compresi nella lista qui sopra verranno - stampati come coppie nome/valore nel tag <select>. - Saranno ignorati se l'attributo name non - presente. - - -html_options - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options values=$cust_ids selected=$customer_id output=$cust_names} -</select> - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_options', array( - 1001 => 'Joe Schmoe', - 1002 => 'Jack Smith', - 1003 => 'Jane Johnson', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -<select name=customer_id> - {html_options options=$cust_options selected=$customer_id} -</select> - - -OUTPUT: (per entrambi gli esempi) - -<select name=customer_id> - <option value="1000">Joe Schmoe</option> - <option value="1001" selected="selected">Jack Smith</option> - <option value="1002">Jane Johnson</option> - <option value="1003">Charlie Brown</option> -</select> - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-radios.xml b/docs/it/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index e28671b7..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - html_radios - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - name - stringa - no - radio - nome dell'insieme di pulsanti radio - - - values - array - s, a meno che si usi l'attributo options - nessuno - array di valori per i pulsanti radio - - - output - array - s, a meno che si usi l'attributo options - nessuno - array di output per i pulsanti radio - - - selected - stringa - no - vuoto - l'elemento preselezionato - - - options - array associativo - s, a meno che si usino values e output - n/a - array associativo di valori e output - - - separator - stringa - no - vuoto - stringa di testo da usare come separatore fra le diverse voci - - - - - - html_radios una funzione utente che usa i dati forniti per creare - un gruppo di pulsanti radio html. Si occupa anche di quale deve - essere selezionato per default. Gli attributi obbligatori sono values - e output, a meno che non usiate invece options. Tutto l'output - generato compatibile XHTML. - - - Tutti i parametri non compresi nella lista qui sopra verranno - stampati come coppie nome/valore in ciascuno dei tag <input> - creati. - - - -html_radios - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" options=$cust_radios selected=$customer_id separator="<br />"} - - -OUTPUT: (per entrambi gli esempi) - -<input type="radio" name="id" value="1000">Joe Schmoe<br /> -<input type="radio" name="id" value="1001" checked="checked">Jack Smith<br /> -<input type="radio" name="id" value="1002">Jane Johnson<br /> -<input type="radio" name="id" value="1003">Charlie Brown<br /> - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-select-date.xml b/docs/it/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 8eeed819..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,361 +0,0 @@ - - - - html_select_date - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - prefix - stringa - no - Date_ - prefisso per i nomi delle variabili - - - time - timestamp/YYYY-MM-DD - no - data attuale in formato unix timestamp o YYYY-MM-DD - data preselezionata - - - start_year - stringa - no - anno corrente - primo anno visualizzato: pu essere in valore assoluto - o relativo all'anno corrente(+/- N) - - - end_year - stringa - no - uguale a start_year - ultimo anno visualizzato: pu essere in valore assoluto - o relativo all'anno corrente(+/- N) - - - display_days - booleano - no - true - se visualizzare i giorni oppure no - - - display_months - booleano - no - true - se visualizzare i mesi oppure no - - - display_years - booleano - no - true - se visualizzare gli anni oppure no - - - month_format - stringa - no - %B - formato per i mesi in output (strftime) - - - day_format - stringa - no - %02d - formato per i giorni in output (sprintf) - - - day_value_format - string - no - %d - formato per il valore dei giorni (sprintf) - - - year_as_text - booleano - no - false - se visualizzare gli anni in forma testuale oppure no - - - reverse_years - booleano - no - false - se visualizzare gli anni in ordine inverso - - - field_array - stringa - no - null - se viene fornito un nome, le caselle select - verranno create in modo che il risultato - venga fornito a PHP nella forma nome[Day], - nome[Year], nome[Month]. - - - - day_size - stringa - no - null - se presente aggiunge l'attributo size al tag select - - - month_size - stringa - no - null - se presente aggiunge l'attributo size al tag select - - - year_size - stringa - no - null - se presente aggiunge l'attributo size al tag select - - - all_extra - stringa - no - null - se presente aggiunge attributi extra a tutti i tag select - - - day_extra - stringa - no - null - se presente aggiunge attributi extra ai tag select/input - - - month_extra - stringa - no - null - se presente aggiunge attributi extra ai tag select/input - - - year_extra - stringa - no - null - se presente aggiunge attributi extra ai tag select/input - - - field_order - stringa - no - MDY - ordine di visualizzazione dei campi (mese, giorno, anno) - - - field_separator - stringa - no - \n - stringa di separazione fra i campi - - - month_value_format - stringa - no - %m - formato strftime per i valori dei mesi - - - year_empty - stringa - no - null - Se presente, il primo elemento della casella select per gli anni - conterr questo valore come output e "" come valore. E' utile per mostrare, - ad esempio, sul men a discesa la frase "Selezionare l'anno". - Notate che potete utilizzare valori del tipo "-MM-DD" nell'attributo time - per indicare che l'anno non deve essere preselezionato. - - - month_empty - stringa - no - null - Se presente, il primo elemento della casella select per i mesi - conterr questo valore come output e "" come valore. - Notate che potete utilizzare valori del tipo "YYYY---DD" nell'attributo time - per indicare che il mese non deve essere preselezionato. - - - day_empty - stringa - no - null - Se presente, il primo elemento della casella select per i giorni - conterr questo valore come output e "" come valore. - Notate che potete utilizzare valori del tipo "YYYY-MM-" nell'attributo time - per indicare che il giorno non deve essere preselezionato. - - - - - - html_select_date una funzione utente che crea per voi men a discesa - per le date. Pu mostrare anno, mese e giorno o solo qualcuno di questi - valori. - - - L'attributo time pu avere diversi formati: pu essere un timestamp UNIX - o una stringa di tipo Y-M-D (anno-mese-giorno). Il formato pi comune - sarebbe YYYY-MM-DD, ma vengono riconosciuti anche mesi e giorni con meno - di due cifre. Se uno dei tre valori (Y,M,D) una stringa vuota, il campo - select corrispondente non avr nessuna preselezione. Ci utile in - special modo con gli attributi year_empty, month_empty e day_empty. - - -html_select_date - - - - -Questo stamper: - - - - - - - - - - - - - - - - - - -]]> - - - - -html_select_date - - - - -Questo stamper: (l'anno corrente il 2000) - - - - - - - - - - - - - - - - - -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-select-time.xml b/docs/it/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 0a4296a3..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,331 +0,0 @@ - - - - html_select_time - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - prefix - stringa - no - Time_ - prefisso per i nomi delle variabili - - - time - timestamp - no - ora corrente - ora preselezionata - - - display_hours - booleano - no - true - se mostrare o no le ore - - - display_minutes - booleano - no - true - se mostrare o no i minuti - - - display_seconds - booleano - no - true - se mostrare o no i secondi - - - display_meridian - booleano - no - true - se mostrare o no il valore "am/pm" (antimeridiano / pomeridiano). - Questo valore non viene mai mostrato (e quindi il parametro - ignorato) se use_24_hours true. - - - use_24_hours - booleano - no - true - se usare o no l'orologio di 24 ore - - - minute_interval - intero - no - 1 - intervallo dei minuti nel men a discesa relativo - - - second_interval - intero - no - 1 - intervallo dei secondi nel men a discesa relativo - - - field_array - stringa - no - nessuno - imposta i valori in un array con questo nome - - - all_extra - stringa - no - null - se presente aggiunge attributi extra a tutti i tag select/input - - - hour_extra - stringa - no - null - se presente aggiunge attributi extra al tag select/input - - - minute_extra - stringa - no - null - se presente aggiunge attributi extra al tag select/input - - - second_extra - stringa - no - null - se presente aggiunge attributi extra al tag select/input - - - meridian_extra - stringa - no - null - se presente aggiunge attributi extra al tag select/input - - - - - - html_select_time una funzione utente che crea per voi men a discesa per - la selezione di un orario. Potete scegliere quali campi visualizzare fra - ore, minuti, secondi e antimeridiano/postmeridiano. - - - L'attributo time pu avere vari formati. Pu essere un timestamp o - una stringa nel formato YYYYMMDDHHMMSS o una stringa leggibile - dalla funzione php strtotime(). - - - html_select_time - - - - - This will output: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-html-table.xml b/docs/it/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 9067307b..00000000 --- a/docs/it/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - html_table - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - loop - array - s - nessuno - array di dati da visualizzare nella tabella - - - cols - intero - no - 3 - numero di colonne della tabella - - - table_attr - stringa - no - border="1" - attributi per il tag table - - - tr_attr - stringa - no - vuoto - attributi per i tag tr (gli array vengono alternati) - - - td_attr - stringa - no - vuoto - attributi per i tag td (gli array vengono alternati) - - - trailpad - stringa - no - &nbsp; - valore per le celle aggiuntive dell'ultima riga, - se presenti - - - - hdir - stringa - no - right - direzione di riempimento delle righe. Valori possibili: left/right - - - vdir - stringa - no - down - direzione di riempimento delle colonne. Valori possibili: up/down - - - - - - html_table una funzione utente che formatta - un array di dati in una tabella HTML. L'attributo cols - determina il numero di colonne che formeranno la tabella. I valori - di table_attr, tr_attr e - td_attr determinano gli attributi dei tag table, - tr e td. Se tr_attr o td_attr - sono array, la funzione user un ciclo per alternarne i valori. - trailpad il valore da usare nelle ultime celle - da aggiungere all'ultima riga, nel caso in cui il numero di valori - nell'array loop non sia divisibile per il numero di colonne. - - -html_table - -assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -OUTPUT: - - - - - -
      123
      456
      789
      - - - - -
      1234
      5678
      9   
      - - - - -
      1234
      5678
      9   
      -]]>
      -
      -
      - diff --git a/docs/it/designers/language-custom-functions/language-function-mailto.xml b/docs/it/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 5147206d..00000000 --- a/docs/it/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,150 +0,0 @@ - - - - mailto - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - address - stringa - s - nessuno - l'indirizzo e-mail - - - text - stringa - no - nessuno - il testo da visualizzare sul link; il default - l'indirizzo e-mail - - - encode - stringa - no - none - Come codificare l'indirizzo. Pu essere - none, hex o - javascript. - - - cc - stringa - no - nessuno - indirizzi e-mail da mettere 'per conoscenza'. - Separateli con una virgola. - - - bcc - stringa - no - nessuno - indirizzi e-mail da mettere 'in copia nascosta'. - Separateli con una virgola. - - - subject - stringa - no - nessuno - oggetto della e-mail. - - - newsgroups - stringa - no - nessuno - newsgroups a cui scrivere. Separateli con una virgola. - - - followupto - stringa - no - n/a - indirizzi per il follow up to. Separateli con una virgola. - - - extra - stringa - no - nessuno - qualsiasi informazione ulteriore che vogliate passare - al link, ad esempio classi per i fogli di stile - - - - - - La funzione mailto automatizza la creazione di link mailto e, - opzionalmente, li codifica. Codificare gli indirizzi e-mail - rende pi difficile per i web spider raccoglierli dal vostro sito. - - - Nota tecnica - - javascript probabilmente il metodo pi completo di - codifica, ma potete usare anche la codifica esadecimale. - - - - mailto - -{mailto address="me@example.com"} -{mailto address="me@example.com" text="send me some mail"} -{mailto address="me@example.com" encode="javascript"} -{mailto address="me@example.com" encode="hex"} -{mailto address="me@example.com" subject="Hello to you!"} -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -{mailto address="me@example.com" extra='class="email"'} - -OUTPUT: - -<a href="mailto:me@example.com" >me@domain.com</a> -<a href="mailto:me@example.com" >send me some mail</a> -<script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6 -9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d% -61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e -%27%29%3b'))</script> -<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >me@domain.com</a> -<a href="mailto:me@example.com?subject=Hello%20to%20you%21" >me@domain.com</a> -<a href="mailto:me@example.com?cc=you@domain.com%2Cthey@domain.com" >me@domain.com</a> -<a href="mailto:me@example.com" class="email">me@domain.com</a> - - - diff --git a/docs/it/designers/language-custom-functions/language-function-math.xml b/docs/it/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index ac350b94..00000000 --- a/docs/it/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - math - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - equation - stringa - s - nessuno - l'equazione da eseguire - - - format - stringa - no - nessuno - formato del risultato (sprintf) - - - var - numerico - s - nessuno - valore di una variabile dell'equazione - - - assign - stringa - no - nessuno - variabile del template cui verr assegnato il risultato - - - [var ...] - numerico - s - nessuno - valore di una variabile dell'equazione - - - - - - La funzione math permette al progettista di effettuare equazioni - matematiche nel template. Qualsiasi variabile numerica del template - pu essere utilizzata nell'equazione; il risultato verr stampato - al posto del tag. Le variabili usate nell'equazione vengono passate - come parametri, che possono essere variabili del template o valori - statici. +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, - min, pi, pow, rand, round, sin, sqrt, srans e tan sono tutti operatori - validi. Controllate la documentazione di PHP per ulteriori informazioni - su queste funzioni matematiche. - - - Se fornite lo speciale attributo "assign", l'output della - funzione verr assegnato a questa variabile del template, - invece di essere stampato in output. - - - Nota tecnica - - math una funzione costosa in termini di prestazioni, a - causa dell'uso che fa della funzione php eval(). Fare i - calcoli matematici in PHP molto pi efficiente, quindi, - quando possibile, fate i calcoli in PHP ed assegnate i - risultati al template. Evitate decisamente chiamate - ripetitive alla funzione math, ad esempio in cicli section. - - - -math - -{* $height=4, $width=5 *} - -{math equation="x + y" x=$height y=$width} - -OUTPUT: - -9 - - -{* $row_height = 10, $row_width = 20, #col_div# = 2, assigned in template *} - -{math equation="height * width / division" - height=$row_height - width=$row_width - division=#col_div#} - -OUTPUT: - -100 - - -{* potete usare le parentesi *} - -{math equation="(( x + y ) / z )" x=2 y=10 z=2} - -OUTPUT: - -6 - - -{* potete indicare un parametro format in formato sprintf *} - -{math equation="x + y" x=4.4444 y=5.0000 format="%.2f"} - -OUTPUT: - -9.44 - - - diff --git a/docs/it/designers/language-custom-functions/language-function-popup-init.xml b/docs/it/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index 367b5dac..00000000 --- a/docs/it/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - popup_init - - popup un'integrazione di overLib, una libreria usata per - le finestre popup. Tali finestre (si tratta di finestre interne - al documento, non finestre di programma come quelle che si aprono - con "javascript:window.open...") si usano per informazioni - relative al contesto, ad esempio aiuto o suggerimenti. - popup_init deve essere chiamata una volta all'inizio di ogni - pagina in cui pensate di utilizzare la funzione popup. overLib stata - scritta da Erik Bosrup, e la sua homepage si trova all'indirizzo - http://www.bosrup.com/web/overlib/. - - - A partire dalla versione di Smarty 2.1.2, overLib NON fa pi - parte della release. Quindi scaricate overLib, piazzate il file - overlib.js sotto la vostra document root e indicate il percorso - relativo a questo file come parametro "src" di popup_init. - - - popup_init - - - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-popup.xml b/docs/it/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 8c0dc4cb..00000000 --- a/docs/it/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,428 +0,0 @@ - - - - popup - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - text - stringa - s - nessuno - testo o codice html da visualizzare nel popup - - - trigger - stringa - mo - onMouseOver - evento usato per attivare il popup. Pu essere - onMouseOver oppure onClick - - - sticky - booleano - no - false - fa s che il popup rimanga visibile fino a quando non viene chiuso - - - caption - stringa - no - nessuno - imposta il titolo del popup - - - fgcolor - stringa - no - nessuno - colore dell'interno del popup - - - bgcolor - stringa - no - nessuno - colore del bordo del popup - - - textcolor - stringa - no - nessuno - colore del testo del popup - - - capcolor - stringa - no - nessuno - colore del titolo del popup - - - closecolor - stringa - mo - nessuno - colore del link di chiusura - - - textfont - stringa - no - nessuno - carattere del testo - - - captionfont - stringa - no - nessuno - carattere del titolo - - - closefont - stringa - mo - nessuno - carattere del link di chiusura - - - textsize - stringa - no - nessuno - dimensione del carattere del testo - - - captionsize - stringa - no - nessuno - dimensione del carattere del titolo - - - closesize - stringa - no - nessuno - dimensione del carattere del link di chiusura - - - width - intero - no - nessuno - larghezza del box - - - height - intero - no - nessuno - altezza del box - - - left - boolean - No - false - posiziona il popup a sinistra del mouse - - - right - booleanp - no - false - posiziona il popup a destra del mouse - - - center - booleano - no - false - posiziona il popup centrato rispetto al mouse - - - above - booleano - no - false - posiziona il popup al di sopra del mouse. NOTA: possibile - solo se stata impostata l'altezza - - - below - booleano - no - false - posiziona il popup al di sotto del mouse - - - border - intero - no - nessuno - rende il bordo del popup pi grosso o pi sottile - - - offsetx - intero - no - nessuno - distanza orizzontale del popup rispetto al mouse - - - offsety - intero - no - nessuno - distanza verticale del popup rispetto al mouse - - - fgbackground - url di un'immagine - no - nessuno - definisce un'immagine da usare invece del colore di - sfondo nel popup. - - - bgbackground - url di un'immagine - no - nessuno - definisce un'immagine da usare invece del colore per - il bordo del popup. NOTA: dovete impostare il bgcolor a "", - altrimenti il colore si vedr comunque. NOTA: quando - presente un link di chiusura, Netscape ridisegner le - celle della tabella, rendendo la visualizzazione - non corretta - - - closetext - stringa - no - nessuno - imposta un testo come link di chiusura invece di "Close" - - - noclose - booleano - no - nessuno - non mostra il link di chiusura sui popup "sticky" - con un titolo - - - status - stringa - no - nessuno - imposta il testo sulla barra di stato del browser - - - autostatus - booleano - no - nessuno - imposta il testo della barra di stato uguale a quello del popup. - NOTA: prevale sull'impostazione di status - - - autostatuscap - stringa - no - nessuno - imposta il testo della barra di stato uguale a quello del titolo. - NOTA: prevale sull'impostazione di status e autostatus - - - inarray - intero - no - nessuno - comunica ad overLib di leggere il testo da questo indice - dell'array ol_text, che si trova in overlib.js. Questo parametro - pu essere usato al posto di text - - - caparray - intero - no - nessuno - comunica ad overLib di leggere il titolo da - questo indice nell'array ol_caps - - - capicon - url - no - nessuno - mostra l'immagine indicata prima del titolo - - - snapx - intero - no - nessuno - aggancia il popup ad una posizione in una griglia - orizzontale - - - snapy - intero - no - nessuno - aggancia il popup ad una posizione in una griglia - verticale - - - fixx - intero - no - nessuno - blocca la posizione orizzontale del popup. Nota: - prevale su qualsiasi altro posizionamento orizzontale - - - fixy - intero - no - nessuno - blocca la posizione verticale del popup. Nota: - prevale su qualsiasi altro posizionamento verticale - - - background - url - no - nessuno - imposta un'immagine da utilizzare al posto dello - sfondo della tabella - - - padx - intero,intero - no - nessuno - imposta un padding orizzontale sull'immagine di sfondo - per il testo. Nota: l'attributo richiede due valori - - - pady - intero,intero - no - nessuno - imposta un padding verticale sull'immagine di sfondo - per il testo. Nota: l'attributo richiede due valori - - - fullhtml - booleano - no - nessuno - consente di utilizzare codice html per l'immagine di sfondo. - Il codice html dovr trovarsi nell'attributo text - - - frame - stringa - no - nessuno - controlla il popup in un altro frame. Vedere la documentazione - di overlib per maggiori informazioni su questa funzione - - - timeout - stringa - no - nessuno - chiama la funzione javascript specificata e prende il - valore restituito come testo da mostrare nel popup - - - delay - intero - no - nessuno - fa s che il popup si comporti come un tooltip. Verr - visualizzato solo dopo questo ritardo in millisecondi. - - - hauto - booleano - no - nessuno - determina automaticamente se il popup deve apparire a sinistra - o a destra del mouse. - - - vauto - booleano - no - nessuno - determina automaticamente se il popup deve - apparire sopra o sotto il mouse. - - - - - - popup si usa per creare finestre popup javascript. - - - popup - -mypage - -{* potete usare html, links, etc nel testo del popup *} -mypage -]]> - - - - diff --git a/docs/it/designers/language-custom-functions/language-function-textformat.xml b/docs/it/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 49e0ae78..00000000 --- a/docs/it/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,254 +0,0 @@ - - - - textformat - - - - - - - - - - Nome Attributo - Tipo - Obbligatorio - Default - Descrizione - - - - - style - stringa - no - nessuno - stile predefinito - - - indent - numero - no - 0 - numero di caratteri da rientrare ad ogni riga - - - indent_first - numero - no - 0 - numero di caratteri da rientrare alla prima riga - - - indent_char - stringa - no - (spazio singolo) - carattere (o stringa di caratteri) da usare come rientro - - - wrap - numero - no - 80 - a quanti caratteri spezzare ogni riga - - - wrap_char - stringa - no - \n - caratteri (o stringa di caratteri) da usare per - spezzare le righe - - - wrap_cut - booleano - no - false - se vero, le righe verranno spezzate al carattere esatto - invece che al termine di una parola - - - assign - stringa - no - nessuno - variabile del template cui assegnare l'output - - - - - - textformat una funzione di blocco usata per formattare il testo. - Fondamentalmente rimuove spazi e caratteri speciali, e formatta - i paragrafi spezzando le righe ad una certa lunghezza ed inserendo - dei rientri. - - - Potete impostare i parametri esplicitamente oppure usare uno - stile predefinito. Attualmente "email" l'unico stile disponibile. - - -textformat - -{textformat wrap=40} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - -This is foo. This is foo. This is foo. -This is foo. This is foo. This is foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo -foo. bar foo bar foo foo. bar foo bar -foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. - - -{textformat wrap=40 indent=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - - This is foo. This is foo. This is - foo. This is foo. This is foo. This - is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. bar foo bar foo foo. - bar foo bar foo foo. bar foo bar - foo foo. - -{textformat wrap=40 indent=4 indent_first=4} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - - This is foo. This is foo. This - is foo. This is foo. This is foo. - This is foo. - - This is bar. - - bar foo bar foo foo. bar foo bar - foo foo. bar foo bar foo foo. bar - foo bar foo foo. bar foo bar foo - foo. bar foo bar foo foo. bar foo - bar foo foo. - -{textformat style="email"} - -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. -This is foo. - -This is bar. - -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. -bar foo bar foo foo. - -{/textformat} - -OUTPUT: - -This is foo. This is foo. This is foo. This is foo. This is foo. This is -foo. - -This is bar. - -bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo -bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo -foo. - - - - - diff --git a/docs/it/designers/language-modifiers.xml b/docs/it/designers/language-modifiers.xml deleted file mode 100644 index 49415645..00000000 --- a/docs/it/designers/language-modifiers.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - Modificatori delle variabili - - I modificatori delle variabili si possono applicare alle variabili, alle - funzioni utente o a stringhe. Per applicare un modificatore bisogna indicare - il valore seguito da | (pipe) e dal nome del modificatore. - Un modificatore pu accettare parametri addizionali che modificano il suo - comportamento. Questi parametri seguono il nome del modificatore e sono - separati da : (due punti). - - - esempio di modificatore - -{$title|upper}

    - -{* Troncare il topic a 40 caratteri usando ... alla fine *} -Topic: {$topic|truncate:40:"..."} - -{* Formattare una stringa indicata direttamente *} -{"now"|date_format:"%Y/%m/%d"} - -{* Applicare un modificatore ad una funzione utente *} -{mailto|upper address="me@domain.dom"} -]]> - - - - Se applicate un modificatore ad un array invece che ad un singolo valore, - il modificatore verr applicato ad ogni valore dell'array. Se volete che - il modificatore lavori sull'intero array considerandolo un valore unico, - dovete premettere al nome del modificatore un simbolo @, - cos: {$articleTitle|@count} (questo stampa il numero - di elementi nell'array $articleTitle). - - - I modificatori possono essere autocaricati dalla $plugins_dir (vedere Convenzioni di nomenclatura) - oppure possono essere registrati esplicitamente (vedere register_modifier). Inoltre tutte - le funzioni php possono essere usate implicitamente come modificatori. - (L'esempio @count visto sopra usa in realt la funzione - php count e non un modificatore di Smarty). L'uso delle funzioni php - come modificatori porta con s due piccoli trabocchetti: Primo: A volte - l'ordine dei parametri delle funzioni non quello desiderato - ({"%2.f"|sprintf:$float} funziona, ma non molto - intuitivo. Pi facile {$float|string_format:"%2.f"}, - che fornito da Smarty). Secondo: con $security - attivato, tutte le funzioni php che si vogliono usare come modificatori - devono essere dichiarate affidabili nell'array - $security_settings['MODIFIER_FUNCS']. - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-capitalize.xml b/docs/it/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 72fe0a8c..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - capitalize - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - booleano - No - false - Stabilisce se le parole contenenti cifre verranno - trasformate in maiuscolo - - - - - - Si usa per mettere in maiuscolo la prima lettera di tutte le parole nella variabile. - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-cat.xml b/docs/it/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index d02fe4f7..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - cat - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - No - vuoto - Valore che viene concatenato alla variabile. - - - - - - Questo valore viene concatenato alla variabile data. - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); -$smarty->display('index.tpl'); -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-count-characters.xml b/docs/it/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 05ed9956..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - count_characters - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - booleano - No - false - Stabilisce se gli spazi devono essere inclusi nel conteggio. - - - - - - E' usato per contare il numero di caratteri contenuti in una variabile. - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index c216f39f..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - count_paragraphs - - Si usa per contare il numero di paragrafi contenuti in una variabile. - - - count_paragraphs - -assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins -Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."); -$smarty->display('index.tpl'); -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/it/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index c848badc..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - count_sentences - - E' usato per contare il numero di frasi contenute in una variabile. - - - count_sentences - -assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-count-words.xml b/docs/it/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index f4b4cc10..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - count_words - - E' usato per contare il numero di parole contenute in una variabile. - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-date-format.xml b/docs/it/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 6aa4074e..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,234 +0,0 @@ - - - - date_format - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - No - %b %e, %Y - E' il formato per la data in output. - - - 2 - stringa - No - nessuno - E' la data di default se la variabile in input vuota. - - - - - - Questo modificatore formatta una data e un'ora nel formato dato di - strftime(). Le date possono essere passate a Smarty come timestamp Unix, - timestamp MySql o una qualsiasi stringa contenente mese giorno anno - (riconoscibile da strtotime). I progettisti quindi possono usare - date_format per avere il pieno controllo della formattazione della data. - Se la data passata a date_format vuota ed presente un secondo parametro, - verr usato questo come data da formattare. - - - date_format - -assign('yesterday', strtotime('-1 day')); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - Parametri di conversione di date_format: - - - %a - nome abbreviato del giorno della settimana in base all'impostazione di "locale" - - - %A - nome intero del giorno della settimana in base all'impostazione di "locale" - - - %b - nome abbreviato del mese in base all'impostazione di "locale" - - - %B - nome intero del mese in base all'impostazione di "locale" - - - %c - rappresentazione preferita di ora e data in base all'impostazione di "locale" - - - %C - numero del secolo (l'anno diviso per 100 e troncato ad intero, range da 00 a 99) - - - %d - giorno del mese come numero decimale (range da 00 a 31) - - - %D - corrisponde a %m/%d/%y - - - %e - giorno del mese come numero decimale; la cifra singola preceduta da uno spazio (range da 1 a 31) - - - %g - anno in base alle settimane, su due cifre [00,99] - - - %G - anno in base alle settimane, su quattro cifre [0000,9999] - - - %h - corrisponde a %b - - - %H - ora come numero decimale, su 24 ore (range da 00 a 23) - - - %I - ora come numero decimale, su 12 ore (range da 01 a 12) - - - %j - giorno dell'anno come numero decimale (range da 001 a 366) - - - %k - ora (su 24 ore) con le cifre singole precedute da spazio (range da 0 a 23) - - - %l - ora (su 12 ore) con le cifre singole precedute da spazio (range da 1 a 12) - - - %m - mese come numero decimale (range da 01 a 12) - - - %M - minuto come numero decimale - - - %n - carattere di "a capo" - - - %p - `am' o `pm' (antimeridiane o postmeridiane) in base all'ora, o valore corrispondente in base all'impostazione di "locale" - - - %r - ora completa nella notazione con a.m. e p.m. - - - %R - ora completa nella notazione su 24 ore - - - %S - secondi come numero decimale - - - %t - carattere di tabulazione - - - %T - ora corrente, con formato equivalente a %H:%M:%S - - - %u - giorno della settimana come numero decimale [1,7], in cui 1 rappresenta Luned - - - %U - numero della settimana nell'anno come numero decimale, partendo dalla prima Domenica come primo giorno della prima settimana - - - %V - Il numero della settimana ISO 8601:1988 come numero decimale, range da 01 a 53, dove la settimana 1 la prima ad avere almeno 4 giorni nell'anno, e Luned il primo giorno della settimana. - - - %w - giorno della settimana come numero decimale, dove la Domenica 0 - - - %W - numero della settimana nell'anno come numero decimale, partendo dal primo luned come primo giorno della prima settimana - - - %x - rappresentazione preferita della data secondo l'impostazione di "locale", senza l'ora - - - %X - rappresentazione preferita dell'ora secondo l'impostazione di "locale", senza data - - - %y - anno come numero decimale su due cifre (range da 00 a 99) - - - %Y - anno come numero decimale su quattro cifre - - - %Z - time zone o nome o abbreviazione - - - %% - il carattere `%' - - - - Nota per i programmatori - - date_format fondamentalmente un involucro per la funzione PHP strftime(). - Potete avere disponibili pi o meno specificatori di conversione, in base - alla funzione strftime() del sistema su cui PHP stato compilato. Controllate - le pagine di manuale del vostro sistema per una lista completa degli - specificatori validi. - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-default.xml b/docs/it/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 51991322..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - default - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - No - vuoto - E' il valore di default da stampare se la variabile vuota. - - - - - - E' usato per impostare un valore di default per una variabile. Se la - variabile vuota o non impostata, il valore di default viene stampato - al suo posto. Prende un parametro. - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-escape.xml b/docs/it/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 9b5b6cda..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - escape - - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Valori possibili - Default - Descrizione - - - - - 1 - stringa - No - html,htmlall,url,quotes,hex,hexentity,javascript - html - E' il tipo di escape da utilizzare. - - - - - - E' usato per fare un escape di tipo html, url, su apici per una variabile - su cui non sia gi stato fatto l'escape, hex (esadecimale), hexentity o - javascript. - Per default viene applicato un escape di tipo html. - - - escape - -assign('articleTitle', "'Stiff Opposition Expected to Casketless Funeral Plan'"); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - *} -{$articleTitle|escape:"htmlall"} {* escapes ALL html entities *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -{$EmailAddress|escape:"hexentity"} -]]> - - Questo stamper: - - -bob@me.net -]]> - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-indent.xml b/docs/it/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 635d7d38..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - indent - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - intero - No - 4 - Stabilisce di quanti caratteri deve essere l'indentazione. - - - 2 - stringa - No - (uno spazio) - Questo il carattere usato per l'indentazione. - - - - - - Questo modificatore effettua un'indentazione della stringa ad ogni riga, per - default di 4 caratteri. Come parametro opzionale si pu specificare di quanti - caratteri deve essere l'indentazione. Si pu indicare anche, come secondo - parametro opzionale, quale carattere usare per l'indentazione (usare "\t" - per il tabulatore). - - - indent - -assign('articleTitle', 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-lower.xml b/docs/it/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index e7436dd3..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - lower - - Si usa per trasformare una variabile in lettere minuscole. - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-nl2br.xml b/docs/it/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index ebce31c9..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - nl2br - - Tutti i caratteri di interruzione di linea verranno convertiti in tag - <br /> nella variabile data. E' equivalente alla funzione PHP - nl2br(). - - - nl2br - -assign('articleTitle', "Sun or rain expected\ntoday, dark tonight"); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - -today, dark tonight -]]> - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/it/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index e995c8c1..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - regex_replace - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - S - nessuno - E' l'espressione regolare da sostituire. - - - 2 - stringa - S - nessuno - E' la stringa di testo da usare per la sostituzione. - - - - - - Un 'trova e sostituisci' di una espressione regolare su una variabile. - Usare la sintassi per preg_replace() dal manuale PHP. - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-replace.xml b/docs/it/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index bbee1126..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - replace - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - S - nessuno - E' la stringa di testo da sostituire. - - - 2 - stringa - S - nessuno - E' la stringa di testo da usare per la sostituzione. - - - - - - Una semplice ricerca e sostituzione su una variabile. - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-spacify.xml b/docs/it/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 5b209f70..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - spacify - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - No - uno spazio - E' ci che viene inserito fra i caratteri della variabile. - - - - - - spacify un modo per inserire uno spazio fra tutti i caratteri di una variabile. - E' possibile, opzionalmente, passare un diverso carattere (o stringa) da inserire. - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); -$smarty->display('index.tpl'); -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-string-format.xml b/docs/it/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index e9313a5f..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - string_format - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - stringa - S - nessuno - E' il formato da usare. (sprintf) - - - - - - Questo un modo di formattare stringhe, ad esempio per i numeri - decimali e altro. Utilizzare la sintassi della funzione PHP sprintf(). - - - string_format - -assign('number', 23.5787446); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/it/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 6c4c25ca..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - strip_tags - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - booleano - No - true - Stabilisce se i tag saranno sostituiti con ' ' (true) o con '' (false) - - - - - - Questo elimina i tag di markup, cio fondamentalmente qualsiasi cosa compresa - fra < and >. - - - strip_tags - -assign('articleTitle', "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - -New Kidney from Dad she Hasn't Seen in years. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-strip.xml b/docs/it/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 79dab2ce..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - strip - - Sostituisce tutte le sequenze di spazi, a capo e tabulatori con - un singolo spazio o con la stringa fornita. - - - Nota - - Se volete fare lo strip su blocchi di testo del template, usate - la funzione strip. - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-truncate.xml b/docs/it/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 13ba41b5..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - truncate - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - intero - No - 80 - Stabilisce a quanti caratteri effettuare il troncamento. - - - 2 - stringa - No - ... - Testo da aggiungere in fondo quando c' troncamento. - - - 3 - booleano - No - false - Stabilisce se troncare dopo una parola (false), o al carattere - esatto (true). - - - - - - Effettua il troncamento di una variabile ad un certo numero di caratteri, - per default 80. Come secondo parametro opzionale potete specificare una - stringa di testo da mostrare alla fine se la variabile stata troncata. - Questi caratteri non vengono conteggiati nella lunghezza della - stringa troncata. Per default, truncate cercher di tagliare la stringa al - termine di una parola. Se invece volete effettuare il troncamento alla - lunghezza esatta in caratteri, passate il terzo parametro opzionale come true. - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-upper.xml b/docs/it/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 14af2721..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - upper - - Si usa per trasformare una variabile in maiuscolo. - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - - - - - Questo stamper: - - - - - - - diff --git a/docs/it/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/it/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 63f59377..00000000 --- a/docs/it/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - wordwrap - - - - - - - - - - Posizione del Parametro - Tipo - Obbligatorio - Default - Descrizione - - - - - 1 - intero - No - 80 - Stabilisce la larghezza della colonna. - - - 2 - stringa - No - \n - Questa la stringa usata per andare a capo. - - - 3 - booleano - No - false - Stabilisce se andare a capo dopo una parola intera (false), - o al carattere esatto (true). - - - - - - Dispone una stringa su pi righe usando come riferimento una certa - larghezza di colonna, per default 80. Come secondo parametro opzionale - potete specificare una stringa da usare per separare le righe (il - default \n). Per default, wordwrap cercher di andare a capo dopo - una parola intera. Se volete che vada a capo all'esatta larghezza in - caratteri, passate il terzo parametro opzionale come true. - - - wordwrap - -assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); -$smarty->display('index.tpl'); - -?> -]]> - - - Dove index.tpl : - - -\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - - - Questo stamper: - - - -from dad she hasn't seen in
    -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> -
    -
    -
    - diff --git a/docs/it/designers/language-variables.xml b/docs/it/designers/language-variables.xml deleted file mode 100644 index 9521ce62..00000000 --- a/docs/it/designers/language-variables.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - Variabili - - Smarty usa parecchi tipi diversi di variabili. Il tipo di variabile - dipende da quale simbolo si usa come prefisso (o come delimitatore). - - - In Smarty le variabili possono essere visualizzate direttamente oppure - usate come argomenti per gli attributi e i modificatori delle funzioni, - oppure in espressioni condizionali, ecc. Per stampare una variabile, - sufficiente includerla fra i delimitatori in modo che sia l'unica - cosa contenuta fra essi. Esempi: - - -]]> - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - - diff --git a/docs/it/designers/language-variables/language-assigned-variables.xml b/docs/it/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index cd19a2c8..00000000 --- a/docs/it/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - Variabili valorizzate da PHP - - Le variabili valorizzate da PHP sono referenziate facendole precedere - da un segno di dollaro $. Anche le variabili - valorizzate internamente al template con la funzione assign vengono visualizzate - in questo modo. - - - - variabili valorizzate - - -Your last login was on {$lastLoginDate}. -]]> - - - Questo visualizzer: - - - -Your last login was on January 11th, 2001. -]]> - - - - - Array associativi - - Potete fare riferimento ad array associativi valorizzati da - PHP specificando l'indice dopo il punto '.' - - - accesso ad array associativi - -assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234'))); -$smarty->display('index.tpl'); -?> -]]> - - - dove il contenuto di index.tpl : - - - -{$Contacts.email}
    -{* ovviamente si possono usare anche array multidimensionali *} -{$Contacts.phone.home}
    -{$Contacts.phone.cell}
    -]]> -
    - - questo visualizzer: - - - -zaphod@slartibartfast.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - Array con indici numerici - - Potete referenziare gli array con il loro indice, come in PHP. - - - accesso agli array per indice numerico - -assign('Contacts', - array('555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234'))); -$smarty->display('index.tpl'); - -?> -]]> - - - dove index.tpl : - - - -{$Contacts[1]}
    -{* anche qui si possono usare array multidimensionali *} -{$Contacts[2][0]}
    -{$Contacts[2][1]}
    -]]> -
    - - Questo visualizzer: - - - -zaphod@slartibartfast.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - Oggetti - - Le propriet di oggetti valorizzate da PHP possono essere - referenziate indicando il nome della propriet dopo il - simbolo '->' - - - accesso alle propriet degli oggetti - -name}
    -email: {$person->email}
    -]]> -
    - - Questo visualizzer: - - - -email: zaphod@slartibartfast.com
    -]]> -
    -
    -
    -
    - diff --git a/docs/it/designers/language-variables/language-config-variables.xml b/docs/it/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 15a43f5f..00000000 --- a/docs/it/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Variabili caricate da file di configurazione - - Le variabili caricate dai file di configurazione sono referenziate - racchiudendole fra due simboli cancelletto (#), oppure attraverso - la variabile $smarty.config. - La seconda sintassi utile per includerle in valori di attributi - indicati fra virgolette. - - - variabili di configurazione - - foo.conf: - - - - - - index.tpl: - - - -{#pageTitle#} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    - - index.tpl: (sintassi alternativa) - - - -{$smarty.config.pageTitle} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    - - questo l'output prodotto da entrambi gli esempi: - - - -This is mine - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - Le variabili dei file di configurazione non possono essere usate - fino a dopo che sono state caricate dal file che le contiene. - Questa procedura viene spiegata pi avanti in questo documento, - in config_load. - -
    - diff --git a/docs/it/designers/language-variables/language-variables-smarty.xml b/docs/it/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 816da253..00000000 --- a/docs/it/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,167 +0,0 @@ - - - - La variabile riservata {$smarty} - - La variabile riservata {$smarty} pu essere usate per accedere - a parecchie variabili speciali del template. Quella che segue - la lista completa. - - - - Variabili della richiesta HTTP - - Alle variabili get, post, cookies, server, - environment e session si pu accedere come mostrato negli - esempi qui sotto: - - - visualizzazione delle variabili request - - - - - - - Per motivi storici si pu accedere direttamente a {$SCRIPT_NAME}, - sebbene {$smarty.server.SCRIPT_NAME} sia la maniera consigliata - per ottenere questo valore. - - - - - - {$smarty.now} - - Si pu accedere al timestamp corrente con {$smarty.now}. - Questo numero rappresenta il numero di secondi passati dalla - cosiddetta Epoch (1 gennaio 1970) e pu essere passato - direttamente al modificatore date_format per la visualizzazione. - - - uso di {$smarty.now} - - - - - - - {$smarty.const} - - Pu essere usato per accedere direttamente alle costanti PHP. - - - uso di {$smarty.const} - - - - - - - - {$smarty.capture} - - Si pu accedere all'output catturato attraverso il costrutto - {capture}..{/capture} con la variabile {$smarty}. Consultare - la sezione capture - per avere un esempio. - - - - - {$smarty.config} - - La variabile {$smarty} pu essere usata per referenziare le - variabili di configurazione caricate. {$smarty.config.foo} - sinonimo di {#foo#}. Consultare la sezione - config_load - per avere un esempio. - - - - - {$smarty.section}, {$smarty.foreach} - - La variabile {$smarty} pu essere usata per referenziare - le propriet dei loop 'section' e 'foreach'. Vedere la documentazione - di section e - foreach. - - - - - {$smarty.template} - - Questa variabile contiene il nome del template attualmente in fase di elaborazione. - - - - {$smarty.version} - - Questa variabile contiene la versione di Smarty con cui il template stato compilato. - - - - {$smarty.ldelim} - - Questa variabile usata per stampare il delimitatore sinistro di Smarty in modo - letterale, cio senza che venga interpretato come tale. Vedere anche - {ldelim},{rdelim}. - - - - {$smarty.rdelim} - - Questa variabile usata per stampare il delimitatore destro di Smarty in modo - letterale, cio senza che venga interpretato come tale. Vedere anche - {ldelim},{rdelim}. - - - - - diff --git a/docs/it/getting-started.xml b/docs/it/getting-started.xml deleted file mode 100644 index e413c543..00000000 --- a/docs/it/getting-started.xml +++ /dev/null @@ -1,532 +0,0 @@ - - - - Introduzione - - - Cos' Smarty? - - Smarty un motore di template per PHP. Pi specificatamente, fornisce un - modo semplice di separare la logica e il contenuto dell'applicazione dalla - sua presentazione. Questo concetto si pu comprendere meglio in una situazione - in cui il programmatore ed il progettista dei template hanno ruoli diversi, - o nella maggior parte dei casi non sono la stessa persona. - - - Per esempio, - diciamo che dovete creare una pagina web che mostra un articolo di giornale. - Il titolo, il sommario, l'autore e il corpo dell'articolo sono gli elementi - del contenuto: non contengono informazioni su come saranno presentati. Vengono - passati a Smarty dall'applicazione, dopodich il grafico modifica i template - e usa una combinazione di tag HTML e tag di template per formattare la - presentazione di questi elementi (tabelle HTML, colori di sfondo, dimensione - dei caratteri, fogli di stile ecc.). Un giorno il programmatore ha bisogno - di cambiare il sistema in cui viene ottenuto il contenuto dell'articolo (si - tratta di una modifica alla logica dell'applicazione). Questa modifica non - influisce sul lavoro del grafico, infatti il contenuto arriver al template - esattamente uguale a prima. Allo stesso modo, se il grafico vuole ridisegnare - completamente il template, questo non richieder modifica alla logica - applicativa. Quindi, il programmatore pu fare modifice alla logica senza - bisogno di ristrutturare i template, e il grafico pu modificare i template - senza rovinare la logica dell'applicazione. - - - Uno degli obiettivi progettuali di Smarty la separazione della logica di - business dalla logica di presentazione. Questo significa che i template possono - contenere logica, a condizione che tale logica sia esclusivamente relativa alla - presentazione. Cose come includere un altro template, alternare i colori delle - righe di tabella, mostrare un dato in maiuscolo, ciclare su un array di dati - per visualizzarli, ecc., sono tutti esempi di logica di presentazione. Questo non - significa che Smarty forza una separazione fra la logica di business e quella di - presentazione. Smarty non pu sapere che cosa una cosa e cosa l'altra, per - cui se mettete logica di business nel template sono affari vostri. Inoltre, - se non volete alcuna logica nei template, potete - sicuramente ottenere ci riducendo il contenuto a solo testo e variabili. - - - Uno degli aspetti caratteristici di Smarty la compilazione dei template. Questo - significa che Smarty legge i file dei template e crea script PHP a partire da - questi. Una volta creati, questi script vengono eseguiti da quel momento in poi: - di conseguenza si evita una costosa analisi dei template ad ogni richiesta, e - ogni template pu avvantaggiarsi pienamente di strumenti per velocizzare - l'esecuzione come Zend Accelerator (&url.zend;) - o PHP Accelerator (&url.ion-accel;). - - - Ecco alcune delle funzionalit di Smarty: - - - - - E' estremamente veloce. - - - - - E' efficiente, perch l'analizzatore di PHP a fare il "lavoro sporco". - - - - - Non c' sovraccarico per l'analisi del template, che viene compilato una sola volta. - - - - - E' abbastanza furbo da saper ricompilare solo i template che sono stati modificati. - - - - - Potete creare funzioni personalizzate - e modificatori di variabili personalizzati, - il che rende il linguaggio dei template estremamente estensibile. - - - - - La sintassi dei tag di delimitazione dei template configurabile: potete usare - {}, {{}}, <!--{}-->, ecc. - - - - - I costrutti if/elseif/else/endif vengono passati al PHP, quindi la sintassi delle - espressioni condizionali pu essere semplice o complicata a vostro piacimento. - - - - - E' consentito nidificare in maniera illimitata sezioni, test, ecc. - - - - - E' possibile incorporare direttamente codice PHP nei file di template, sebbene - non dovrebbe essercene bisogno (e nemmeno raccomandato), essendo il motore - cos personalizzabile. - - - - - Supporto nativo al caching - - - - - Scelta arbitraria dei sorgenti dei template - - - - - Funzioni personalizzate di gestione della cache - - - - - Architettura a plugin - - - - - - Installazione - - - Requisiti - - Smarty necessita di un web server su cui gira PHP 4.0.6 o successivo. - - - - - Installazione di base - - Installate i file delle librerie di Smarty che si trovano nella directory - /libs/ della distribuzione. Questi sono i file PHP che NON DOVETE modificare. - Sono condivisi da tutte le applicazioni e vengono modificati solo quando - passate ad una nuova versione di Smarty. - - - File delle librerie di Smarty - - - - - - Smarty usa una costante PHP chiamata SMARTY_DIR che contiene il path di sistema - della directory delle librerie di Smarty. Fondamentalmente, se la vostra applicazione - in grado di trovare il file Smarty.class.php, non avete bisogno - di impostare SMARTY_DIR, in quanto Smarty la trover da solo. Tuttavia, se - Smarty.class.php non si trova nel vostro include_path, o se non - fornite alla vostra applicazione un percorso assoluto per questo file, allora dovete - definire manualmente SMARTY_DIR. La costante SMARTY_DIR deve - contenere uno slash (/) finale. - - - Ecco come creerete un'istanza di Smarty nei vostri script PHP: - - - - Creazione di un'istanza di Smarty - - -]]> - - - - - Provate a lanciare lo script qui sopra. Se ricevete un errore che dice che - il file Smarty.class.php non si trova, dovete fare una - delle cose seguenti: - - - - Fornire un percorso assoluto al file delle librerie - - -]]> - - - - - Aggiungere la directory della libreria all'include_path di PHP - - -]]> - - - - - Impostare manualmente la costante SMARTY_DIR - - -]]> - - - - - Ora che i file delle librerie sono al loro posto, ora di impostare le - directory di Smarty per la vostra applicazione. Smarty necessita di quattro - directory chiamate (per default) templates, - templates_c, configs e cache. - Ciascuna di queste definibile dalle propriet - della classe Smarty $template_dir, - $compile_dir, $config_dir, e - $cache_dir rispettivamente. E' altamente raccomandato - impostare un insieme separato di queste directory per ogni applicazione che - user Smarty. - - - Assicuratevi di conoscere il percorso della document root del vostro web - server. Nel nostro esempio, la document root /web/www.mydomain.com/docs/. - Le directory di Smarty vengono accedute solo dalle librerie di Smarty e mai - direttamente dal browser. Tuttavia, per evitare problemi di sicurezza, si - raccomanda di mettere queste directory al di fuori della - document root. - - - Per la nostra installazione di esempio, imposteremo l'ambiente di Smarty per - una applicazione di guest book. Abbiamo scelto un'applicazione al solo scopo - di avere una convenzione per il nome delle directory. Potete usare lo stesso - ambiente per qualsiasi applicazione, soltanto sostituendo "guestbook" con il - nome della vostra applicazione. Metteremo le nostre directory di Smarty sotto - /web/www.mydomain.com/smarty/guestbook/. - - - Avrete bisogno di almeno un file sotto la document root, e quello sar lo script - a cui pu accedere ilbrowser. Lo chiameremo index.php, - e lo metteremo in una sottodirectory della document root chiamata /guestbook/. - - - - Nota tecnica - - Conviene impostare il web server in modo che "index.php" possa essere identificato - come indice di default della directory, cos se provate a richiedere - "http://www.example.com/guestbook/", lo script index.php verr eseguito senza - "index.php" nell'URL. In Apache questo pu essere impostato aggiungendo - "index.php" alla fine dell'impostazione DirectoryIndex (le voci vanno separate - con uno spazio l'una dall'altra). - - - - - Diamo un'occhiata alla struttura dei file fino ad ora: - - - - Esempio di struttura dei file - - - - - - - Smarty necessita del diritto di scrittura su $compile_dir e su - $cache_dir, quindi assicuratevi che l'utente del web - server possa scriverci sopra. Di solito si tratta dell'utente "nobody" e - gruppo "nobody". Per utenti di OS X, il default utente "www" e gruppo "www". - Se usate Apache, potete guardare nel file httpd.conf (di solito in - "/usr/local/apache/conf/") per vedere quale utente e gruppo vengono usati. - - - - Impostazione dei permessi sui file - - - - - - - Nota tecnica - - chmod 770 vi garantisce una notevole sicurezza, in quanto consente solo - all'utente e al gruppo "nobody" l'accesso in lettura/scrittura alle directory. - Se volete consentire la lettura a chiunque (soprattutto per vostra comodit, - se volete guardare questi file), potete impostare invece 775. - - - - - Ora dobbiamo creare il file index.tpl che Smarty caricher. Si trover nella - directory $template_dir. - - - - Edit di /web/www.example.com/smarty/guestbook/templates/index.tpl - - - - - - - Nota tecnica - - {* Smarty *} un commento del template. Non obbligatorio, ma buona pratica - iniziare tutti i file di template con questo commento. Rende semplice - riconoscere il file, indipendentemente dalla sua estensione. Ad esempio, - un editor di testo potrebbe riconoscere il file ed attivare una particolare - evidenziazione della sintassi. - - - - - Ora editiamo index.php. Creeremo un'istanza di Smarty, valorizzeremo una - variabile del template e faremo il display del file index.tpl. Nel nostro - ambiente di esempio, "/usr/local/lib/php/Smarty" si trova nell'include_path. - Assicuratevi che sia cos anche per voi, oppure usate percorsi assoluti. - - - - Edit di /web/www.example.com/docs/guestbook/index.php - -template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Nota tecnica - - Nell'esempio stiamo usando percorsi assoluti per tutte le directory - di Smarty. Se /web/www.example.com/smarty/guestbook/ fa - parte dell'include_path di PHP, questo non necessario. Comunque, pi - efficiente e (per esperienza) meno soggetto ad errori usare percorsi - assoluti. Questo vi garantisce che Smarty prenda i file dalle directory - giuste. - - - - - Ora richiamate il file index.php dal browser. - Dovreste vedere "Hello, Ned!" - - - Avete completato l'installazione base di Smarty! - - - - Installazione avanzata - - - Questo il seguito della installazione di base, siete pregati - di leggerla prima! - - - Un modo leggermente pi flessibile di installare Smarty di estendere la - classe e inizializzare il vostro ambiente di Smarty. Cos, invece di impostare - ripetutamente i percorsi delle directory, riassegnare le stesse variabili ecc., - possiamo farlo in un unico punto. - Creiamo una nuova directory "/php/includes/guestbook/" e un file chiamato - setup.php. Nel nostro ambiente di esempio, "/php/includes" fa parte - dell'include_path. Assicuratevi che sia cos anche per voi, oppure usate percorsi - assoluti. - - - - Edit di /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - Ora modifichiamo il file index.php per usare setup.php: - - - - Edit di /web/www.example.com/docs/guestbook/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Come potete vedere, molto semplice creare un'istanza di Smarty, basta usare - Smarty_GuestBook che inizializza automaticamente tutto ci che serve alla - nostra applicazione. - - - - - - - - diff --git a/docs/it/language-defs.ent b/docs/it/language-defs.ent deleted file mode 100644 index 669a1884..00000000 --- a/docs/it/language-defs.ent +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/it/language-snippets.ent b/docs/it/language-snippets.ent deleted file mode 100644 index ed2149c3..00000000 --- a/docs/it/language-snippets.ent +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Nota tecnica - - Il parametro merge rispetta le chiavi degli array, - quindi se fate un merge su due array a indici numerici rischiate che alcuni - valori vengano sovrascritti, o di avere indici in ordine non sequenziale. - Questo comportamento diverso da quello della funzione array_merge() di PHP - che elimina le chiavi numeriche ed effettua una rinumerazione. - -'> - - - Come terzo parametro opzionale, potete passare un compile_id. - Questo nel caso in cui vogliate compilare versioni diverse dello stesso template, - oppure avere template diversi per lingue diverse. Un altro uso di compile_id - quando usate pi di una $template_dir ma soltanto una $compile_dir. - Impostate un compile_id diverso per ogni $template_dir, - altrimenti i template con lo stesso nome si sovrascriveranno a vicenda. - Potete anche impostare la variabile $compile_id - una volta sola invece di passarla ogni volta che chiamate questa funzione. -'> diff --git a/docs/it/livedocs.ent b/docs/it/livedocs.ent deleted file mode 100644 index 7e1e4b7e..00000000 --- a/docs/it/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - -'> -'> - - - diff --git a/docs/it/preface.xml b/docs/it/preface.xml deleted file mode 100644 index c511935d..00000000 --- a/docs/it/preface.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - Prefazione - - Indubbiamente una delle domande pi frequenti sulle mailing list del - PHP: perch devo rendere i miei script PHP indipendenti dal layout? Se - vero che PHP conosciuto come "linguaggio di scripting incorporato in - HTML", dopo aver realizzato un paio di progetti che mescolano liberamente - PHP e HTML nasce l'idea che separare forma e contenuti sia una buona cosa. - Inoltre, in molte aziende i ruoli dei grafici (progettisti del layout) - e dei programmatori sono separati. La ricerca di una soluzione con i - template quindi una conseguenza naturale. - - - Ad esempio, nella nostra azienda lo sviluppo di un applicazione procede - cos: dopo che sono stati redatti i documenti con le specifiche richieste, - i progettisti delle interfacce creano dei modelli di interfaccia e li danno - ai programmatori. Questi implementano la logica di business in PHP e usano - i modelli di interfaccia per creare scheletri di template. A questo punto - il progetto passa al progettista HTML/creatore di layout per le pagine web, - che porta i template al loro massimo splendore. Il progetto potrebbe ancora - andare avanti e indietro un paio di volte fra programmazione e HTML. Quindi - importante avere un buon supporto per i template, perch i programmatori - non vogliono avere a che fare con l'HTML e non vogliono che i progettisti - HTML facciano danni col codice PHP. I grafici hanno bisogno di supporto per - i file di configurazione, i blocchi dinamici e altri elementi di interfaccia, - ma non vogliono dover avere a che fare con le complicazioni del linguaggio - di programmazione. - - - Dando un'occhiata alle diverse soluzioni di template attualmente disponibili - per PHP, vediamo che la maggior parte di esse fornisce solo un modo rudimentale - per sostituire variabili nei template e hanno delle forme limitate di - funzionalit relative ai blocchi dinamici. Ma le nostre necessit erano un - po' maggiori di queste. Noi volevamo che i programmatori evitassero DEL TUTTO - di avere a che fare con l'HTML, ma questo era quasi inevitabile. Ad esempio, - se un grafico voleva alternare i colori di sfondo su un blocco dinamico, questo - doveva essere ottenuto preventivamente dal programmatore. Volevamo anche - che i grafici potessero usare i propri file di configurazione, ed importare - da questi le variabili nei template. La lista potrebbe continuare ancora. - - - Iniziammo cos a scrivere una specifica per un motore di template verso la fine - del 1999. Dopo avere finito le specifiche, iniziammo a lavorare su un motore - scritto in C che, speravamo, avrebbe potuto essere incluso in PHP. Non solo - per ci scontrammo con molti complicati ostacoli tecnici, ma c'era anche un - dibattito molto acceso su cosa esattamente un motore di template avrebbe dovuto - fare e cosa no. Da questa esperienza decidemmo che il motore sarebbe stato scritto - in PHP come classe, in modo che ognuno potesse usarlo come gli pareva. Cos - scrivemmo un motore che faceva proprio quello e SmartTemplate - venne alla luce (nota: questa classe non mai stata pubblicata). Era una classe - che faceva quasi tutto quello che volevamo: sostituzione delle variabili, - supporto per l'inclusione di altri template, integrazione con i file di - configurazione, incorporazione del codice PHP, limitate funzionalit con - istruzioni 'if' e molti altri robusti blocchi dinamici che potevano essere - nidificati ripetutamente. Tutto questo veniva fatto con le espressioni regolari - e il codice che ne venne fuori era, per cos dire, impenetrabile. Era anche - notevolmente lento nelle grosse applicazioni, per via di tutta l'analisi (parsing) - ed il lavoro sulle espressioni regolari che doveva fare ad ogni invocazione. - Il problema pi grosso dal punto di vista di un programmatore era tutto il - lavoro necessario nello script PHP per creare ed elaborare i template ed i - blocchi dinamici. Come rendere tutto questo pi semplice? - - - Cos nacque la visione di quello che poi diventato Smarty. Sappiamo quanto - veloce PHP senza il sovraccarico dell'analisi dei template. Sappiamo anche - quanto il linguaggio possa apparire meticoloso ed estremamente noioso per il - grafico medio, e questo pu essere mascherato con una sintassi di template - molto pi semplice. Allora, perch non combinare i due punti di forza? Cos - nacque Smarty... - - - - diff --git a/docs/it/programmers/advanced-features.xml b/docs/it/programmers/advanced-features.xml deleted file mode 100644 index 26fbf8ce..00000000 --- a/docs/it/programmers/advanced-features.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - Funzioni avanzate -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; - - diff --git a/docs/it/programmers/advanced-features/advanced-features-objects.xml b/docs/it/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9118a0f7..00000000 --- a/docs/it/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - Oggetti - - Smarty consente di accedere agli oggetti PHP attraverso i template. Ci sono - due modi per farlo. Uno registrare gli oggetti al template, quindi accedere - ad essi attraverso una sintassi simile a quella delle funzioni utente. L'altro - modo di assegnare gli oggetti ai template ed accedere loro come ad una - qualsiasi variabile assegnata. Il primo metodo ha una sintassi del template - migliore. E' anche pi sicuro, perch su un oggetto registrato potete impedire - l'accesso a certi metodi o propriet. D'altra parte, su un oggetto registrato - non potete effettuare dei cicli o metterlo in un array di oggetti, ecc. - Il metodo che sceglierete dipender dalle vostre necessit, ma quando possibile - usate sempre il primo metodo, per mantenere la sintassi del template al massimo - della semplicit. - - - Se la security abilitata, non possibile accedere a metodi o funzioni private - (che cominciano con "_") dell'oggetto. Quando esistono un metodo e una propriet - con lo stesso nome, verr usato il metodo. - - - Potete impedire l'accesso a certi metodi e propriet elencandoli in un array - come terzo parametro di registrazione. - - - Per default, i parametri passati agli oggetti attraverso i template sono - passati nello stesso modo in cui li leggono le funzioni utente. Il primo - parametro un array associativo, e il secondo l'oggetto smarty. Se - volete i parameteri passati uno alla volta per ogni argomento come nel - tradizionale passaggio di parametri per gli oggetti, impostate il quarto - parametro di registrazione a false. - - - Il quinto parametro opzionale ha effetto soltanto quando - format true e - contiene una lista di metodi che devono essere trattati come - blocchi. Ci significa che questi metodi hanno un tag di - chiusura nel template - ({foobar->meth2}...{/foobar->meth2}) e i - parametri passati al metodo hanno la stessa struttura di - quelli per le funzioni plugin per i blocchi. Questi metodi - quindi ricevono 4 parametri $params, - $content, &$smarty - e &$repeat e si comportano come - funzioni plugin per i blocchi. - - - usare un oggetto registrato o assegnato - -register_object("foobar",$myobj); -// se vogliamo impedire l'accesso a metodi o propriet, elenchiamoli -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// se vogliamo usare il formato tradizionale per i parametri, passiamo un false -$smarty->register_object("foobar",$myobj,null,false); - -// Possiamo anche assegnare gli oggetti. Facciamolo per riferimento quando possibile. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> -+]]> - - - Ed ecco come accedere all'oggetto in index.tpl: - - -meth1 p1="foo" p2=$bar} - -{* possiamo anche assegnare l'output *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* accediamo all'oggetto assegnato *} -{$myobj->meth1("foo",$bar)} -]]> - - - - diff --git a/docs/it/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/it/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 6b7f54c1..00000000 --- a/docs/it/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - Filtri di output - - Quando il template viene richiamato via display() o fetch(), possibile - eseguire uno o pi filtri sul suo output. Ci diverso dai postfiltri, - perch questi ultimi lavorano sul template compilato prima che venga - salvato su disco, mentre i filtri dioutput lavorano sull'output del - template quando viene eseguito. - - - - I filtri di output possono essere - registrati o caricati - dalla directory plugins con la funzione - load_filter() oppure impostando la - variabile $autoload_filters. - Smarty passer l'output del template come primo argomento, e si aspetter - che la funzione restituisca il risultato dell'esecuzione. - - - uso di un filtro di output - -register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// ora ogni indirizzo email nell'output del template avr una semplice -// protezione contro gli spambot -?> -]]> - - - - diff --git a/docs/it/programmers/advanced-features/advanced-features-postfilters.xml b/docs/it/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 4ae0ad66..00000000 --- a/docs/it/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - Postfiltri - - I postfiltri sui template sono funzioni PHP che vengono eseguite sui template - dopo la compilazione. I postfiltri possono essere - registrati oppure caricati - dalla directory plugins con la funzione load_filter() o impostando la variabile - $autoload_filters. - Smarty passer il codice del template compilato come primo parametro, - e si aspetter che la funzione restituisca il template risultante. - - - uso di un postfiltro - -\n\"; ?>\n".$tpl_source; -} - -// registriamo il postfiltro -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> -]]> - - - Questo far s che il template compilato index.tpl appaia cos: - - - -{* resto del template... *} -]]> - - - - diff --git a/docs/it/programmers/advanced-features/advanced-features-prefilters.xml b/docs/it/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 40497b31..00000000 --- a/docs/it/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - Prefiltri - - I prefiltri sui template sono funzioni PHP che vengono eseguite sui template - prima della compilazione. Sono utili per pre-processare i template allo - scopo di rimuovere commenti non desiderati, tenere d'occhio ci che i - progettisti mettono nei template, ecc. I prefiltri possono essere - registrati oppure caricati - dalla directory plugins con la funzione load_filter() o impostando la variabile - $autoload_filters. - Smarty passer il codice sorgente del template come primo parametro, - e si aspetter che la funzione restituisca il codice sorgente risultante. - - - uso di un prefiltro - -/U","",$tpl_source); -} - -// registriamo il prefiltro -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> -]]> - - - Questo rimuover tutti i commenti dal sorgente del template. - - - - diff --git a/docs/it/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/it/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index 54d0b377..00000000 --- a/docs/it/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - Funzione di gestione della Cache - - Come alternativa all'uso del meccanismo di default per la cache basato - sui file, potete specificare una funzione personalizzata di gestione - che verr usata per leggere, scrivere ed eliminare i file in cache. - - - Create una funzione nella vostra applicazione che Smarty user come - gestore della cache. Impostate il nome di questa funzione nella variabile - di classe $cache_handler_func. - Smarty ora user questa funzione per gestire i dati della cache. Il primo - parametro l'azione, che pu essere 'read', 'write' o 'clear'. Il - secondo parametro l'oggetto Smarty. Il terzo parametro il contenuto in - cache. In una 'write', Smarty passa il contenuto da mettere in cache in - questo parametro. In una 'read', Smarty si aspetta che la funzione prenda questo - parametro per riferimento e che lo riempia con i dati della cache. - In una 'clear', il parametro non viene usato, quindi passate una variabile - dummy. Il quarto parametro il nome del file del template (necessario - per le read e le write), il quinto parametro il cache_id (opzionale), e - il sesto il compile_id (opzionale). - - - Nota: l'ultimo parametro ($exp_time) stato aggiunto in Smarty-2.6.0. - - - esempio con l'uso di MySQL per la cache - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -il database mysql avr questo formato: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // impostiamo i dati d'accesso al db - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // creiamo un cache id unico - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // leggiamo la cache dal database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_content = gzuncompress($row["CacheContents"]); - } else { - $cache_content = $row["CacheContents"]; - } - $return = $results; - break; - case 'write': - // salviamo la cache sul database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - // eliminiamo i dati in cache - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // eliminiamo tutto - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - // errore, azione non prevista - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - - diff --git a/docs/it/programmers/advanced-features/template-resources.xml b/docs/it/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 41c80559..00000000 --- a/docs/it/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,246 +0,0 @@ - - - - Risorse - - I template possono arrivare da varie risorse. Quando fate la display o la - fetch di un template, o quando fate la include da un altro template, - fornite un tipo di risorsa, seguito dal percorso appropriato e dal nome - del template. Se non viene esplicitamente indicato un tipo di risorsa, - viene utilizzato il valore di $default_resource_type. - - - Template della $template_dir - - I template provenienti dalla $template_dir non hanno bisogno che - indichiate un tipo di risorsa, sebbene possiate indicare file: per - coerenza. Basta che forniate il percorso per il template che volete - usare, relativo alla directory radice $template_dir. - - - uso dei template della $template_dir - -display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // equivale al precedente -?> -]]> - - - And from within Smarty template: - - - - - - - - Template da qualsiasi directory - - I template che si trovano al di fuori della $template_dir richiedono - obbligatoriamente che indichiate il tipo di risorsa file: seguito - dal percorso assoluto e dal nome del template. - - - uso dei template da qualsiasi directory - -display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); -?> -]]> - - - And from within Smarty template: - - - - - - - - Percorsi su Windows - - Se usate una macchina Windows, i percorsi di solito comprendono - una lettera di drive (C:) all'inizio del percorso. Accertatevi - di usare "file:" nel path, per evitare conflitti di namespace e - ottenere i risultati voluti. - - - uso di template da percorsi di Windows - -display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); -?> - -{* dall'interno di un template *} -{include file="file:D:/usr/local/share/templates/navigation.tpl"} -]]> - - - - - - - Template da altre risorse - - Potete ottenere template da qualsiasi risorsa alla quale sia - possibile accedere con PHP: database, socket, directory LDAP, e - cos via. Potete farlo scrivendo una funzione plugin per le - risorse e registrandola a Smarty. - - - - Consultate la sezione plugin - risorse per maggiori informazioni sulle funzioni che - dovrete creare. - - - - - Notate che non possibile modificare il comportamento della risorsa - file, ma potete fornire una risorsa che legge i - template dal filesystem in maniera diversa registrandola con un altro - nome di risorsa. - - - - uso di risorse personalizzate - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // qui facciamo una chiamata al db per riempire $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // ipotizziamo che tutti i template siano sicuri - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // non usata per i template -} - -// register the resource name "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// uso della risorsa dallo script php -$smarty->display("db:index.tpl"); -?> -]]> - - - And from within Smarty template: - - - - - - - - - Funzione di gestione dei template di default - - Potete specificare una funzione da usare per ottenere i contenuti - del template nel caso in cui non sia possibile leggerlo dalla - risorsa appropriata. Un uso possibile di questa funzione di - creare al volo template che non esistono. - - - uso della funzione di gestione dei template di default - -_write_file($resource_name,$template_source); - return true; - } - } else { - // non un file - return false; - } -} - -// impostate il gestore di default -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions.xml b/docs/it/programmers/api-functions.xml deleted file mode 100644 index e8fee188..00000000 --- a/docs/it/programmers/api-functions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - Methods -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - - - diff --git a/docs/it/programmers/api-functions/api-append-by-ref.xml b/docs/it/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index 273427a4..00000000 --- a/docs/it/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - append_by_ref - - - - - <methodsynopsis> - <type>void</type><methodname>append_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per aggiungere valori al template per riferimento. - Se aggiungete una variabile per riferimento e poi cambiate il - suo valore, il template vedr il valore modificato. Per gli - oggetti, append_by_ref() evita anche la copia in memoria - dell'oggetto aggiunto. Consultate il manuale di PHP sui riferimenti - alle variabili per una spiegazione approfondita. Se passate il - terzo parametro opzionale a true, il valore verr fuso nell'array - corrente invece che aggiunto. - </para> - ¬e.parameter.merge; - <example> - <title>append_by_ref - -append_by_ref("Name", $myname); -$smarty->append_by_ref("Address", $address); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-append.xml b/docs/it/programmers/api-functions/api-append.xml deleted file mode 100644 index 7957f3e3..00000000 --- a/docs/it/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - append - - - - - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>append</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>merge</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per aggiungere un elemento ad un array. Se aggiungete un valore - stringa, verr convertito in un elemento di array e aggiunto. Potete - passare esplicitamente coppie nome/valore, oppure array associativi - contenenti le coppie nome/valore. Se passate il terzo parametro opzionale - a true, il valore verr fuso nell'array corrente invece che aggiunto. - </para> - ¬e.parameter.merge; - <example> - <title>append - -append("Name", "Fred"); -$smarty->append("Address", $address); - -// passaggio di un array associativo -$smarty->append(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-assign-by-ref.xml b/docs/it/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 86c9c5ff..00000000 --- a/docs/it/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - assign_by_ref - - - - - <methodsynopsis> - <type>void</type><methodname>assign_by_ref</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per assegnare valori ai template per riferimento invece di farne una - copia. Consultate il manuale PHP sui riferimenti alle variabili per una - spiegazione. - </para> - <note> - <title>Nota tecnica - - Questo metodo si usa per assegnare valori ai template per riferimento. - Se assegnate una variabile per riferimento e poi cambiate il suo - valore, il template vedr il valore modificato. Per gli oggetti, - assign_by_ref() evita anche la copia in memoria dell'oggetto - assegnato. Consultate il manuale PHP sui riferimenti alle variabili - per una spiegazione approfondita. - - - - assign_by_ref - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-assign.xml b/docs/it/programmers/api-functions/api-assign.xml deleted file mode 100644 index f89787f4..00000000 --- a/docs/it/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - assign - - - - - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>void</type><methodname>assign</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Si usa per assegnare valori ai template. Potete passare - esplicitamente coppie nome/valore, o array associativi - contenenti le coppie nome/valore. - </para> - <example> - <title>assign - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// passaggio di un array associativo -$smarty->assign(array("city" => "Lincoln", "state" => "Nebraska")); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-all-assign.xml b/docs/it/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index bddaa932..00000000 --- a/docs/it/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - clear_all_assign - - - - - <methodsynopsis> - <type>void</type><methodname>clear_all_assign</methodname> - <void /> - </methodsynopsis> - <para> - Annulla i valori di tutte le variabili assegnate. - </para> - <example> - <title>clear_all_assign - -clear_all_assign(); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-all-cache.xml b/docs/it/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index b1df225b..00000000 --- a/docs/it/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - clear_all_cache - - - - - <methodsynopsis> - <type>void</type><methodname>clear_all_cache</methodname> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Annulla l'intera cache del template. Come parametro opzionale - potete fornire un'et minima in secondi che i file della - cache devono avere prima di essere eliminati. - </para> - <example> - <title>clear_all_cache - -clear_all_cache(); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-assign.xml b/docs/it/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index d63cc0ed..00000000 --- a/docs/it/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - clear_assign - - - - - <methodsynopsis> - <type>void</type><methodname>clear_assign</methodname> - <methodparam><type>mixed</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Annulla il valore di una variabile assegnata in precedenza. - Pu essere un valore singolo, o un array di valori. - </para> - <example> - <title>clear_assign - -clear_assign("Name"); - -// annullamento di pi variabili -$smarty->clear_assign(array("Name", "Address", "Zip")); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-cache.xml b/docs/it/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index f9bbda45..00000000 --- a/docs/it/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - clear_cache - - - - - <methodsynopsis> - <type>void</type><methodname>clear_cache</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>expire_time</parameter></methodparam> - </methodsynopsis> - <para> - Elimina la cache per un <parameter>template</parameter> specifico. Se - avete pi cache per questo template, potete eliminarne una specifica - fornendo il <parameter>cache_id</parameter> come secondo parametro. - Potete anche passare un <parameter>compile_id</parameter> come terzo - parametro. Potete "raggruppare" i template in modo da rimuoverli in - gruppo. Leggete la <link linkend="caching">sezione sul caching</link> - per maggiori informazioni. Come quarto parametro opzionale potete fornire - un'et minima in secondi che il file di cache deve avere prima di essere - eliminato. - </para> - <example> - <title>clear_cache - -clear_cache("index.tpl"); - -// eliminazione di una particolare cache in un template a pi cache -$smarty->clear_cache("index.tpl", "CACHEID"); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/it/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index ed2e20e1..00000000 --- a/docs/it/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - clear_compiled_tpl - - - - - <methodsynopsis> - <type>void</type><methodname>clear_compiled_tpl</methodname> - <methodparam choice="opt"><type>string</type><parameter>tpl_file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>exp_time</parameter></methodparam> - </methodsynopsis> - <para> - Elimina la versione compilata dello specifico template indicato, - o tutti file di template compilati se non ne viene specificato uno. - Se passate un compile_id solo il template compilato relativo a questo - compile_id viene eliminato. Se passate un exp_time, solo i template - compilati con un'et maggiore di exp_time (in secondi) vengono - eliminati; per default tutti i template compilati vengono eliminati, - indipendentemente dalla loro et. Questa funzione solo per uso - avanzato, normalmente non ne avrete bisogno. - </para> - <example> - <title>clear_compiled_tpl - -clear_compiled_tpl("index.tpl"); - -// eliminazione di tutti i template compilati -$smarty->clear_compiled_tpl(); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-clear-config.xml b/docs/it/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 2d494b61..00000000 --- a/docs/it/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - clear_config - - - - - <methodsynopsis> - <type>void</type><methodname>clear_config</methodname> - <methodparam choice="opt"><type>string</type><parameter>var</parameter></methodparam> - </methodsynopsis> - <para> - Elimina tutte le variabili di configurazione assegnate. Se viene - fornito un nome di variabile, soltanto quella variabile viene - eliminata. - </para> - <example> - <title>clear_config - -clear_config(); - -// eliminazione di una variabile -$smarty->clear_config('foobar'); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-config-load.xml b/docs/it/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 22349c58..00000000 --- a/docs/it/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - config_load - - - - - <methodsynopsis> - <type>void</type><methodname>config_load</methodname> - <methodparam><type>string</type><parameter>file</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>section</parameter></methodparam> - </methodsynopsis> - <para> - Carica i dati del file di configurazione <parameter>file</parameter> e - li assegna al template. Funziona esattamente come la funzione del - template <link linkend="language.function.config.load">config_load</link>. - </para> - <note> - <title>Nota tecnica - - A partire da Smarty 2.4.0, le variabili dei template vengono - mantenute fra le diverse chiamate di fetch() e display(). Le - variabili di configurazione caricate con config_load() hanno - sempre uno scope globale. Anche i file di configurazione vengono - compilati per una esecuzione pi veloce, e rispettano le - impostazioni di force_compile - e compile_check. - - - - config_load - -config_load('my.conf'); - -// caricamento di una sezione -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-display.xml b/docs/it/programmers/api-functions/api-display.xml deleted file mode 100644 index cba54f30..00000000 --- a/docs/it/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - display - - - - - <methodsynopsis> - <type>void</type><methodname>display</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Visualizza il template. Dovete fornire un tipo e percorso - corretti per la <link linkend="template.resources">risorsa del template</link>. - Come secondo parametro opzionale potete passare una cache id. - Consultate la <link linkend="caching">sezione sul caching</link> per - maggiori informazioni. - </para> - ¶meter.compileid; - <example> - <title>display - -caching = true; - -// faccio le chiamate al db solo se -// non esiste la cache -if(!$smarty->is_cached("index.tpl")) { - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// visualizzo l'output -$smarty->display("index.tpl"); -?> -]]> - - - - Usate la sintassi delle risorse dei template - per visualizzare file che si trovano al di fuori della - directory $template_dir. - - - esempi di visualizzazione di risorse di template - -display("/usr/local/include/templates/header.tpl"); - -// percorso assoluto (equivale al precedente) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// percorso assoluto windows (OBBLIGATORIO il prefisso "file:") -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// inclusione dalla risorsa di template di nome "db" -$smarty->display("db:header.tpl"); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-fetch.xml b/docs/it/programmers/api-functions/api-fetch.xml deleted file mode 100644 index a9276641..00000000 --- a/docs/it/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - fetch - - - - - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Questo metodo restituisce l'output del template invece di - visualizzarlo. Dovete fornire un tipo e percorso corretti per - la <link linkend="template.resources">risorsa del template</link>. - Come secondo parametro opzionale potete passare una cache id. - Consultate la <link linkend="caching">sezione sul caching</link> per - maggiori informazioni. - </para> - ¶meter.compileid; - <para> - <example> - <title>fetch - -caching = true; - -// faccio le chiamate al db solo se -// non esiste la cache -if(!$smarty->is_cached("index.tpl")) { - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// catturo l'output -$output = $smarty->fetch("index.tpl"); - -// qui faccio qualcosa con $output - -echo $output; -?> -]]> - - - - - - diff --git a/docs/it/programmers/api-functions/api-get-config-vars.xml b/docs/it/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 9d88cc4f..00000000 --- a/docs/it/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - get_config_vars - - - - - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce il valore della variabile di configurazione data, se stata - caricata. Se non viene passato un parametro viene restituito un array - di tutte le variabili di configurazione caricate. - </para> - <example> - <title>get_config_vars - -get_config_vars('foo'); - -// recupero tutte le variabili di configurazione caricate -$config_vars = $smarty->get_config_vars(); - -// diamo un'occhiata -print_r($config_vars); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-get-registered-object.xml b/docs/it/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index bbf91ea7..00000000 --- a/docs/it/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - get_registered_object - - - - - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce un riferimento a un oggetto registrato. E' utile quando, - dall'interno di una funzione utente, avete bisogno di accedere - direttamente a un oggetto registrato. - </para> - <example> - <title>get_registered_object - -get_registered_object($params['object']); - // $obj_ref ora un riferimento all'oggetto - } -} -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-get-template-vars.xml b/docs/it/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 646009d6..00000000 --- a/docs/it/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - get_template_vars - - - - - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce il valore della variabile data assegnata al template. - Se non viene fornito il parametro viene restituito un array di - tutte le variabili assegnate. - </para> - <example> - <title>get_template_vars - -get_template_vars('foo'); - -// recupero tutte le variabili assegnate al template -$tpl_vars = $smarty->get_template_vars(); - -// diamo un'occhiata -print_r($tpl_vars); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-is-cached.xml b/docs/it/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index ad464b79..00000000 --- a/docs/it/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - is_cached - - - - - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Restituisce &true; se presente una cache valida per questo template. - Funziona soltanto se <link linkend="variable.caching">caching</link> - impostato a true. - </para> - <example> - <title>is_cached - -caching = true; - -if(!$smarty->is_cached("index.tpl")) { -// faccio le chiamate al database, assegno le variabili -} - -$smarty->display("index.tpl"); -?> -]]> - - - - Potete passare anche una cache id come secondo parametro - opzionale, nel caso vogliate cache multiple per il template - dato. - - - Potete fornire un compile id come terzo parametro opzionale. - Se lo omettete, viene usato il valore della variabile persistente - $compile_id. - - - Se non volete passare una cache id ma volete passare un compile - id dovete passare null come cache id. - - - is_cached con template a cache multiple - -caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // faccio le chiamate al database, assegno le variabili -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - - - - - - Nota tecnica - - Se is_cached restituisce true, in realt carica - l'output in cache e lo memorizza internamente. Ogni chiamata - successiva a display() o a - fetch() restituir questo output - memorizzato internamente, e non cercher di ricaricare il file - della cache. Questo evita una situazione che potrebbe verificarsi - quando un secondo processo elimina la cache nell'intervallo fra - la chiamata a is_cached e quella a display, nell'esempio visto - prima. Questo significa anche che le chiamate a - clear_cache() ed altre - modifiche fatte sulle impostazioni della cache potrebbero non avere - effetto dopo che is_cached ha restituito true. - - - - - diff --git a/docs/it/programmers/api-functions/api-load-filter.xml b/docs/it/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 3d0200c0..00000000 --- a/docs/it/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - load_filter - - - - - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione pu essere usata per caricare un plugin filtro. - Il primo parametro specifica il tipo di filtro da caricare e pu - avere uno di questi valori: 'pre', 'post' o 'output'. Il secondo - parametro specifica il nome del plugin filtro, ad esempio 'trim'. - </para> - <example> - <title>caricamento di plugin filtro - -load_filter('pre', 'trim'); // carico un prefiltro di nome 'trim' -$smarty->load_filter('pre', 'datefooter'); // carico un altro prefiltro di nome 'datefooter' -$smarty->load_filter('output', 'compress'); // carico un filtro di output di nome 'compress' -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-register-block.xml b/docs/it/programmers/api-functions/api-register-block.xml deleted file mode 100644 index d00ba2bf..00000000 --- a/docs/it/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - register_block - - - - - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Si pu usare questa funzione per registrare dinamicamente - funzioni plugin per i blocchi. Dovete fornire il nome della - funzione di blocco, seguito dalla funzione PHP da richiamare - che implementa tale funzione. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> e <parameter>cache_attrs</parameter> - possono essere omessi nella maggioranza dei casi. Consultate - <link linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarli. - </para> - <example> - <title>register_block - -register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // faccio la traduzione di $content - return $translation; - } -} -?> -]]> - - - dove il template : - - - - - - - - diff --git a/docs/it/programmers/api-functions/api-register-compiler-function.xml b/docs/it/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 3847d096..00000000 --- a/docs/it/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - register_compiler_function - - - - - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Si pu usare questa funzione per registrare dinamicamente - una funzione plugin di compilazione. Dovete fornire il nome della - funzione di compilazione, seguito dalla funzione PHP da richiamare - che la implementa. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> pu essere omesso - nella maggioranza dei casi. Consultate <link - linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarlo. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-register-function.xml b/docs/it/programmers/api-functions/api-register-function.xml deleted file mode 100644 index 86c77c9e..00000000 --- a/docs/it/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,86 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Si pu usare questa funzione per registrare dinamicamente - funzioni plugin per i template. Dovete fornire il nome della - funzione di template, seguito dalla funzione PHP da richiamare - che implementa tale funzione. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - <para> - <parameter>cacheable</parameter> e <parameter>cache_attrs</parameter> - possono essere omessi nella maggioranza dei casi. Consultate - <link linkend="caching.cacheable">Controllo della Cache per l'output dei Plugins</link> - per capire come usarli. - </para> - <example> - <title>register_function - -register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// ora potete usare questa funzione in Smarty per stampare la data attuale: {date_now} -// oppure {date_now format="%Y/%m/%d"} per formattarla. -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-register-modifier.xml b/docs/it/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 06a3ab5b..00000000 --- a/docs/it/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - register_modifier - - - - - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Potete usarla per registrare dinamicamente plugin modificatori. - Passate il nome del modificatore del template, seguito dalla funzione - PHP che lo implementa. - </para> - <para> - Il parametro <parameter>impl</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - <example> - <title>register_modifier - -register_modifier("sslash", "stripslashes"); - -// ora potete usare {$var|sslash} per togliere gli slash dalle variabili -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-register-object.xml b/docs/it/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 5655d8c1..00000000 --- a/docs/it/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - register_object - - - - - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Serve a registrare un oggetto per poterlo usare nei template. - Consultate la <link linkend="advanced.features.objects">sezione oggetti</link> - del manuale per gli esempi. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-register-outputfilter.xml b/docs/it/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 894eb490..00000000 --- a/docs/it/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri di output che - devono operare sull'output di un template prima che venga - visualizzato. Consultate i <link linkend="advanced.features.outputfilters">filtri - di output sui template</link> per maggiori informazioni su come - impostare una funzione di filtro di output. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-register-postfilter.xml b/docs/it/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 6d8458d4..00000000 --- a/docs/it/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri da eseguire - sui template dopo la compilazione ("postfiltri"). Consultate - <link linkend="advanced.features.postfilters">postfiltri sui - template</link> per maggiori informazioni su come impostare - una funzione postfiltro. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-register-prefilter.xml b/docs/it/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 0bcac796..00000000 --- a/docs/it/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per registrare dinamicamente filtri da eseguire sui - template prima della compilazione ("prefiltri"). Consultate - <link linkend="advanced.features.prefilters">prefiltri sui - template</link> per maggiori informazioni su come impostare - funzioni prefiltro. - </para> - <para> - Il parametro <parameter>function</parameter>, contenente la funzione - callback, pu avere uno dei seguenti valori: (a) una stringa - contenente il nome della funzione (b) un array nella forma - <literal>array(&$oggetto, $metodo)</literal>, dove - <literal>&$oggetto</literal> il riferimento ad un - oggetto e <literal>$metodo</literal> una stringa contenente - il nome di un metodo (c) un array nella forma - <literal>array(&$classe, $metodo)</literal> dove - <literal>$classe</literal> un nome di classe e - <literal>$metodo</literal> un metodo statico della - classe. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-register-resource.xml b/docs/it/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 42f51dfb..00000000 --- a/docs/it/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,77 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Usatelo per registrare dinamicamente un plugin risorsa per Smarty. - Passate il nome della risorsa e l'array delle funzioni PHP che - la implementano. Consultate - <link linkend="template.resources">risorse per i template</link> - per maggiori informazioni su come impostare una funzione per - caricare i template. - </para> - <note> - <title>Nota tecnica - - Il nome di una risorsa deve avere un minimo di due caratteri di - lunghezza. Nomi di risorsa di un solo carattere verranno ignorati - ed usati come parte del percorso del file; ad es. - $smarty->display('c:/path/to/index.tpl'); - - - - L'array di funzioni php resource_funcs - deve avere 4 o 5 elementi. Con 4 elementi, questi saranno le - funzioni callback per le rispettive funzioni "source", "timestamp", - "secure" e "trusted" della risorsa. Con 5 elementi, il primo - deve essere il riferimento all'oggetto oppure il nome della - classe relativi all'oggetto o alla classe che implementano - la risorsa, mentre i 4 elementi successivi saranno i nomi - dei metodi che implementano "source", "timestamp", - "secure" e "trusted". - - - register_resource - -register_resource("db", array("db_get_template", -"db_get_timestamp", -"db_get_secure", -"db_get_trusted")); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-template-exists.xml b/docs/it/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 6d793caa..00000000 --- a/docs/it/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - template_exists - - - - - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione verifica se il template specificato esiste. Accetta - il percorso del template sul filesystem oppure una stringa che - identifica la risorsa del template. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-trigger-error.xml b/docs/it/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index fe48c4e3..00000000 --- a/docs/it/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Questa funzione pu essere usata per produrre in output un messaggio - di errore attraverso Smarty. Il parametro <parameter>level</parameter> - pu contenere uno dei valori usati per la funzione PHP trigger_error(), - cio E_USER_NOTICE, E_USER_WARNING, ecc. Per default il suo valore - E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-block.xml b/docs/it/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 91657d3e..00000000 --- a/docs/it/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione plugin - per i blocchi. Passate in <parameter>name</parameter> il - nome della funzione di blocco. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-compiler-function.xml b/docs/it/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index cd1b7266..00000000 --- a/docs/it/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione di compilazione. - Passate in <parameter>name</parameter> il nome della funzione. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-function.xml b/docs/it/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 60be5d3f..00000000 --- a/docs/it/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente una funzione plugin per - i template. Passate il nome della funzione. - </para> - <example> - <title>unregister_function - -unregister_function("fetch"); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-unregister-modifier.xml b/docs/it/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 2f1bdae2..00000000 --- a/docs/it/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - unregister_modifier - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente plugin modificatori. Passate - il nome del modificatore del template da eliminare. - </para> - <example> - <title>unregister_modifier - -unregister_modifier("strip_tags"); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-functions/api-unregister-object.xml b/docs/it/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 5e2b08bb..00000000 --- a/docs/it/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - unregister_object - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare un oggetto. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-outputfilter.xml b/docs/it/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 4e8b8283..00000000 --- a/docs/it/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un filtro di output. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-postfilter.xml b/docs/it/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 73bce5f5..00000000 --- a/docs/it/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un postfiltro. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-prefilter.xml b/docs/it/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index bd51805a..00000000 --- a/docs/it/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un prefiltro. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/it/programmers/api-functions/api-unregister-resource.xml b/docs/it/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 23a52da1..00000000 --- a/docs/it/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Usatela per eliminare dinamicamente un plugin risorsa. Passate - il nome della risorsa. - </para> - <example> - <title>unregister_resource - -unregister_resource("db"); -?> -]]> - - - - - diff --git a/docs/it/programmers/api-variables.xml b/docs/it/programmers/api-variables.xml deleted file mode 100644 index 8fe5d378..00000000 --- a/docs/it/programmers/api-variables.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - Variabili - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; - - diff --git a/docs/it/programmers/api-variables/variable-autoload-filters.xml b/docs/it/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index c67a170c..00000000 --- a/docs/it/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - $autoload_filters - - Se ci sono alcuni filtri che volete caricare ad ogni chiamata del - template, potete specificarli usando questa variabile e Smarty li - caricher automaticamente. La variabile un array associativo - dove le chiavi sono i tipi di filtro ed i valori sono array con i - nomi dei filtri. Ad esempio: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - diff --git a/docs/it/programmers/api-variables/variable-cache-dir.xml b/docs/it/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 33ac4fa3..00000000 --- a/docs/it/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - $cache_dir - - Questo il nome della directory dove vengono salvati i file - della cache. Per default "./cache", che significa che Smarty - cercher la directory della cache nella stessa directory dello - script php in esecuzione. Potete anche usare una funzione - personalizzata di gestione della cache, che ignorer questa - impostazione. - - - Nota tecnica - - Questa impostazione deve essere un percorso relativo o assoluto. - include_path non viene usato per i file in scrittura. - - - - Nota tecnica - - E' sconsigliato mettere questa directory sotto la - document root del web server. - - - - - diff --git a/docs/it/programmers/api-variables/variable-cache-handler-func.xml b/docs/it/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 219e1d8e..00000000 --- a/docs/it/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $cache_handler_func - - Potete fornire una funzione personalizzata di gestione dei file - della cache invece di usare il metodo incorporato che usa la - $cache_dir. Consultate la sezione funzione di - gestione della cache per i dettagli. - - - - diff --git a/docs/it/programmers/api-variables/variable-cache-lifetime.xml b/docs/it/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index ade675d4..00000000 --- a/docs/it/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - $cache_lifetime - - E' la durata in secondi della validit di un file di cache. Una volta che - questo tempo scaduto, la cache verr rigenerata. $caching deve essere - impostato a "true" perch $cache_lifetime abbia significato. Il valore - -1 forza la cache a non scadere mai. Il valore 0 far s che la cache - venga sempre rigenerata ( utile solo in fase di test, per disabilitare - il caching un metodo pi efficiente impostare $caching a false.) - - - Se $force_compile - abilitato, i file della cache verranno rigenerati ogni volta, disabilitando - in effetti il caching. Potete eliminare tutti i file della cache - con la funzione clear_all_cache(), oppure singoli - file (o gruppi di file) con la funzione clear_cache(). - - - Nota tecnica - - Se volete dare a certi template un particolare tempo di vita della cache, - potete farlo impostando $caching = 2, - quindi dando il valore che vi interessa a $cache_lifetime subito prima - di chiamare display() o fetch(). - - - - - diff --git a/docs/it/programmers/api-variables/variable-cache-modified-check.xml b/docs/it/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index a968e308..00000000 --- a/docs/it/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $cache_modified_check - - Se impostato a true, Smarty rispetter l'header If-Modified-Since - spedito dal client. Se il timestamp del file in cache non - cambiato dall'ultima visita, verr inviato un header - "304 Not Modified" invece del contenuto. Questo funziona solo sul - contenuto in cache senza tag insert. - - - - diff --git a/docs/it/programmers/api-variables/variable-caching.xml b/docs/it/programmers/api-variables/variable-caching.xml deleted file mode 100644 index a2667e65..00000000 --- a/docs/it/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - $caching - - Questa variabile dice a Smarty se mettere in cache oppure no l'output - dei template. Per default impostata a 0, o disabilitata. Se i vostri - template generano contenuto ridondante, consigliabile attivare il - caching. Ne deriveranno significativi guadagni di prestazioni. Potete - anche avere pi di una cache per lo stesso template. I valori 1 e 2 - abilitano il caching. 1 dice a Smarty di usare l'attuale variabile - $cache_lifetime per determinare se la cache scaduta. Il valore 2 dice - a Smarty di usare il valore di cache_lifetime del momento in cui la - cache stata generata. In questo modo potete impostare il cache_lifeteime - subito prima di caricare il template per avere un controllo granulare - su quando quella particolare cache scadr. Consultate anche is_cached. - - - Se $compile_check abilitato, il contenuto in cache verr rigenerato - quando i file del template o di configurazione che fanno parte di questa - cache vengono modificati. Se abilitato $force_compile, il contenuto - in cache verr rigenerato ogni volta. - - - diff --git a/docs/it/programmers/api-variables/variable-compile-check.xml b/docs/it/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index d63eb45d..00000000 --- a/docs/it/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - $compile_check - - Ad ogni chiamata dell'applicazione PHP, Smarty controlla se il template - corrente stato modificato (cio se il timestamp cambiato) dall'ultima - volta che stato compilato. Se cambiato, Smarty ricompila il template. - Se il template non stato mai compilato, sar compilato indipendentemente - da questa impostazione. Per default questa variabile impostata a true. - Una volta che l'applicazione viene messa in produzione (quind i template - non cambieranno pi), il passo di compile_check non pi necessario. - Assicuratevi di impostare $compile_check a "false" per massimizzare le - prestazioni. Notate che se impostate questo valore a "false" e un file - di template viene modificato, *non* vedrete la modifica fino a quando - il template non viene ricompilato. Se sono abilitati il caching e il - compile_check, i file della cache verranno rigenerati quando un file di - template o un file di configurazione fra quelli interessati vengono - modificati. Consultate $force_compile o clear_compiled_tpl. - - - diff --git a/docs/it/programmers/api-variables/variable-compile-dir.xml b/docs/it/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index e3a9da2b..00000000 --- a/docs/it/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - $compile_dir - - Questo il nome della directory dove vengono messi i template - compilati. Per default "./templates_c", che significa che - Smarty cercher la directory di compilazione sotto la stessa - directory dello script php in esecuzione. - - - Nota tecnica - - Questa impostazione deve essere un percorso relativo - o assoluto. include_path non viene usata per i file - in scrittura. - - - - Nota tecnica - - E' sconsigliato mettere questa directory sotto la - document root del web server. - - - - diff --git a/docs/it/programmers/api-variables/variable-compile-id.xml b/docs/it/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 59852b86..00000000 --- a/docs/it/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - $compile_id - - Identificatore persistente di compilazione. In alternativa a passare - lo stesso compile_id ad ogni chiamata di funzione, potete impostare - questa variabile ed il suo valore verr usato implicitamente da quel - momento in poi. - - - diff --git a/docs/it/programmers/api-variables/variable-compiler-class.xml b/docs/it/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 162df326..00000000 --- a/docs/it/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $compiler_class - - Specifica il nome della classe del compilatore che Smarty user - per compilare i template. Il default 'Smarty_Compiler'. Solo per - utenti avanzati. - - - diff --git a/docs/it/programmers/api-variables/variable-config-booleanize.xml b/docs/it/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index a98c0843..00000000 --- a/docs/it/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $config_booleanize - - Se impostato a true, le variabili dei file di configurazione con i valori - on/true/yes e off/false/no verranno convertite automaticamente in valori - booleani. In questo modo potete usare questi valori nei template in questo - modo: {if #foobar#} ... {/if}. Se foobar on, true o yes, l'istruzione {if} - verr eseguita. true per default. - - - diff --git a/docs/it/programmers/api-variables/variable-config-dir.xml b/docs/it/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 7a05a14f..00000000 --- a/docs/it/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - $config_dir - - Questa la directory usata per memorizzare i file di configurazione - usati nei template. Il default "./configs2, che significa - che Smarty cercher la directory dei file di configurazione - nella stessa directory dello script php in esecuzione. - - - Nota tecnica - - E' sconsigliato mettere questa directory sotto la - document root del web server. - - - - diff --git a/docs/it/programmers/api-variables/variable-config-fix-newlines.xml b/docs/it/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index 079f1a56..00000000 --- a/docs/it/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $config_fix_newlines - - Se impostato a true, i caratteri di 'a capo' mac e dos (\r e \r\n) nei - file di configurazione vengono convertiti a \n quando sono analizzati. - true per default. - - - diff --git a/docs/it/programmers/api-variables/variable-config-overwrite.xml b/docs/it/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 23187b43..00000000 --- a/docs/it/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - $config_overwrite - - Se impostato a true, le variabili lette dai file di configurazione si - sovrascriveranno l'una con l'altra. Diversamente, verranno messe in un - array. E' utile se volete memorizzare array di dati nei file di configurazione, - sufficiente elencare pi volte ogni elemento. true per default. - - - diff --git a/docs/it/programmers/api-variables/variable-config-read-hidden.xml b/docs/it/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 8093267f..00000000 --- a/docs/it/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $config_read_hidden - - Se impostato a true, le sezioni nascoste (col nome che inizia con un - punto) dei file di configurazione possono essere lette dai template. - Tipicamente lascerete questo valore a false, in modo da poter memorizzare - dati sensibili nei file di configurazione (ad esempio parametri per - l'accesso a un database) senza preoccuparvi che vengano caricati sul - template. false per default. - - - diff --git a/docs/it/programmers/api-variables/variable-debug-tpl.xml b/docs/it/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index c481be59..00000000 --- a/docs/it/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - $debug_tpl - - Questo il nome del file di template usato per la console di debugging. - Per default, il nome debug.tpl ed il file si trova nella SMARTY_DIR. - - - diff --git a/docs/it/programmers/api-variables/variable-debugging-ctrl.xml b/docs/it/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index f8fd7d81..00000000 --- a/docs/it/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $debugging_ctrl - - Questa variabile consente modi alternativi per abilitare il - debugging. NONE significa che non sono consentiti metodi - alternativi. URL significa che quando la parola chiave - SMARTY_DEBUG viene trovata nella QUERY_STRING, il debugging - viene abilitato per quella chiamata dello script. Se - $debugging true, questo valore viene ignorato. - - - diff --git a/docs/it/programmers/api-variables/variable-debugging.xml b/docs/it/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 1e2b8215..00000000 --- a/docs/it/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - $debugging - - Questa variabile abilita la console di debugging. - La console una finestra javascript che vi informa sui template - inclusi e sulle variabili valorizzate per la pagina attuale. - - - diff --git a/docs/it/programmers/api-variables/variable-default-modifiers.xml b/docs/it/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f7f16284..00000000 --- a/docs/it/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $default_modifiers - - E' un array di modificatori da applicare implicitamente ad ogni variabile - in un template. Ad esempio, per fare l'escape HTML ad ogni variabile per - default, usate array('escape:"htmlall"'); per rendere una variabile - esente dai modificatori di default, passatele lo speciale modificatore - "smarty" con il parametro "nodefaults", cos: {$var|smarty:nodefaults}. - - - diff --git a/docs/it/programmers/api-variables/variable-default-resource-type.xml b/docs/it/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 15fd227a..00000000 --- a/docs/it/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $default_resource_type - - Dice a Smarty che tipo di risorsa usare implicitamente. Il valore di - default 'file', il che significa che $smarty->display('index.tpl'); - e $smarty->display('file:index.tpl'); hanno identico significato. - Leggete il capitolo risorse - per i dettagli. - - - diff --git a/docs/it/programmers/api-variables/variable-default-template-handler-func.xml b/docs/it/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 87dce654..00000000 --- a/docs/it/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $default_template_handler_func - - Questa funzione viene chiamata quando Smarty non riesce a - caricare un template. - - - diff --git a/docs/it/programmers/api-variables/variable-error-reporting.xml b/docs/it/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index a15eff38..00000000 --- a/docs/it/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $error_reporting - - Quando a questa variabile viene dato un valore non-null, - il suo valore viene usato come livello di error_reporting - di php all'interno di display() e fetch(). Quando il debugging - abilitato questo valore ignorato e il livello degli - errori viene lasciato invariato. - - - diff --git a/docs/it/programmers/api-variables/variable-force-compile.xml b/docs/it/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 093409dc..00000000 --- a/docs/it/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - $force_compile - - Questo valore forza Smarty a (ri)compilare i template ad - ogni chiamata. Questa impostazione prevale su $compile_check. - Per default disabilitata. E' utile per lo sviluppo ed il - debug. Non dovrebbe essere mai usata in un ambiente di produzione. - Se il caching abilitato, i file della cache verranno rigenerati - ogni volta. - - - diff --git a/docs/it/programmers/api-variables/variable-left-delimiter.xml b/docs/it/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 25598f2b..00000000 --- a/docs/it/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $left_delimiter - - E' il delimitatore di sinistra usato dal linguaggio dei template. - Per default "{". - - - diff --git a/docs/it/programmers/api-variables/variable-php-handling.xml b/docs/it/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 847c1081..00000000 --- a/docs/it/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - $php_handling - - Questa variabile dice a Smarty come gestire il codice PHP - incorporato nei template. Ci sono quattro possibili impostazioni: - il default SMARTY_PHP_PASSTHRU. Notate che questa variabile - NON ha effetto sul codice php che si trova fra i tag {php}{/php}. - - - SMARTY_PHP_PASSTHRU - Smarty stampa il contenuto - dei tag cos com'. - SMARTY_PHP_QUOTE - Smarty trasforma i tag in entit - html. - SMARTY_PHP_REMOVE - Smarty rimuove i tag dal - template. - SMARTY_PHP_ALLOW - Smarty esegue il codice PHP. - - - - Incorporare codice PHP nei template altamente sconsigliato. Usate - invece le funzioni utente - o i modificatori. - - - - diff --git a/docs/it/programmers/api-variables/variable-plugins-dir.xml b/docs/it/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 4de05bb9..00000000 --- a/docs/it/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - $plugins_dir - - Queste sono le directory dove Smarty andr a cercare i plugin di cui - ha bisogno. Il default "plugins" sotto la SMARTY_DIR. Se fornite - un percorso relativo, Smarty cercher prima di tutto sotto la - SMARTY_DIR, poi sotto la directory corrente, infine sotto ogni directory - compresa nell'include_path di PHP. - - - Nota tecnica - - Per migliori prestazioni, non costringete Smarty a cercare le plugins_dir - usando l'include path di PHP. Usate un percorso assoluto, o relativo - alla SMARTY_DIR o alla directory corrente. - - - - diff --git a/docs/it/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/it/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 137e4f66..00000000 --- a/docs/it/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - $request_use_auto_globals - - Specifica se Smarty deve usare gli array di php $HTTP_*_VARS[] - ($request_use_auto_globals=false che il valore di default) o - $_*[] ($request_use_auto_globals=true). Ci ha effetto sui template - che usano {$smarty.request.*}, {$smarty.get.*} ecc. . - Attenzione: Se impostate $request_use_auto_globals a true, $request_vars_order - non ha effetto, e viene usato il valore di configurazione di - php gpc_order. - - - diff --git a/docs/it/programmers/api-variables/variable-request-vars-order.xml b/docs/it/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 52c9b10e..00000000 --- a/docs/it/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $request_vars_order - - L'ordine in cui sono registrate le variabili della richiesta http, - simile a variables_order in php.ini. - - - diff --git a/docs/it/programmers/api-variables/variable-right-delimiter.xml b/docs/it/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 018aeb11..00000000 --- a/docs/it/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $right_delimiter - - E' il delimitatore di destra usato dal linguaggio dei template. - Per default "}". - - - diff --git a/docs/it/programmers/api-variables/variable-secure-dir.xml b/docs/it/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 9e9c3cbb..00000000 --- a/docs/it/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - $secure_dir - - E' un array contenente tutte le directory locali che sono considerate - sicure. {include} e {fetch} lo usano quando $security abilitata. - - - diff --git a/docs/it/programmers/api-variables/variable-security-settings.xml b/docs/it/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index cd466665..00000000 --- a/docs/it/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - $security_settings - - Sono valori usati per modificare o specificare le impostazioni di - sicurezza quando $security abilitata. Queste sono le impostazioni - possibili: - - - PHP_HANDLING - true/false. Se impostato a true, - l'impostazione di $php_handling non viene verificata per la - sicurezza. - IF_FUNCS - E' un array con i nomi delle funzioni PHP - consentite nelle istruzioni IF. - INCLUDE_ANY - true/false. Se impostata a true, qualsiasi - template pu essere incluso dal filesystem, indipendentemente dalla - lista di $secure_dir. - PHP_TAGS - true/false. Se impostato a true, consentito - l'uso dei tag {php}{/php} nei template. - MODIFIER_FUNCS - E' un array coi nomi delle funzioni PHP - di cui consentito l'uso come modificatori delle variabili. - - - diff --git a/docs/it/programmers/api-variables/variable-security.xml b/docs/it/programmers/api-variables/variable-security.xml deleted file mode 100644 index 9bd2700b..00000000 --- a/docs/it/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - $security - - E' una variabile booleana, per default false. Security viene - utile per situazioni in cui avete affidato la modifica dei template - a terzi (ad esempio via ftp) di cui non vi fidate completamente, - e volete quindi ridurre il rischio di compromettere la sicurezza - del sistema attraverso il linguaggio del template. Attivare security - comporta l'applicazione delle seguenti regole al linguaggio del - template, a parte ci che pu essere modificato con $security_settings: - - - Se $php_handling impostato a SMARTY_PHP_ALLOW viene - implicitamente modificato a SMARTY_PHP_PASSTHRU - Non sono ammesse funzioni PHP nelle istruzioni IF, - ad esclusione di quelle specificate in $security_settings - I file dei template possono essere inclusi solo dalle - directory elencate nell'array $secure_dir - I file locali possono essere letti con {fetch} solo dalle - directory elencate nell'array $secure_dir - I tag {php}{/php} non sono consentiti - Non possibile usare funzioni PHP come modificatori, - ad esclusione di quelle specificate in $security_settings - - - diff --git a/docs/it/programmers/api-variables/variable-template-dir.xml b/docs/it/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 276b38e2..00000000 --- a/docs/it/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - $template_dir - - Questo il nome della directory di default dei template. Se - non ne indicate una quando includete i file, verranno cercati - qui. Per default "./templates", che significa che Smarty - cercher la directory dei template nella stessa directory dello - script php in esecuzione. - - - Nota tecnica - - E' sconsigliato mettere questa directory sotto la - document root del web server. - - - - diff --git a/docs/it/programmers/api-variables/variable-trusted-dir.xml b/docs/it/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 102c955a..00000000 --- a/docs/it/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - $trusted_dir - - $trusted_dir viene usata solo quando $security abilitata. E' un array - di tutte le directory che sono considerate affidabili. Le directory - affidabili sono quelle dalle quali possono essere eseguiti script php - direttamente dai template con {include_php}. - - - diff --git a/docs/it/programmers/api-variables/variable-use-sub-dirs.xml b/docs/it/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 91f20e17..00000000 --- a/docs/it/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - $use_sub_dirs - - Impostate questo valore a false se il vostro ambiente PHP non consente - la creazione di sottodirectory da parte di Smarty. Le sottodirectory sono - pi efficienti, quindi usatele se potete. - - - Nota tecnica - - A partire da Smarty-2.6.2 use_sub_dirs per default vale false. - - - - diff --git a/docs/it/programmers/caching.xml b/docs/it/programmers/caching.xml deleted file mode 100644 index df6a6189..00000000 --- a/docs/it/programmers/caching.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - Caching - - Il caching si usa per velocizzare una chiamata a display() o fetch() salvando il suo output - su un file. Se una versione della chiamata disponibile - in cache, viene visualizzata questa invece di rigenerare - l'output. Il caching pu velocizzare tremendamente le cose, - specialmente con i template che richiedono maggiori tempi - di elaborazione. Se l'output di display() o fetch() viene - salvato in cache, un file della cache pu concettualmente - essere composto di diversi file di template, di configurazione ecc. - - - Siccome i template sono dinamici, importante stare attenti - a ci che mettete in cache e per quanto tempo. Ad esempio, se - state visualizzando la home page del vostro sito, i cui contenuti - non cambiano troppo spesso, pu essere utile mettere in cache - questa pagina per un'ora o pi. D'altra parte, se state - visualizzando una pagina con una mappa del tempo atmosferico che - viene aggiornata di minuto in minuto, non avrebbe senso mettere - in cache questa pagina. - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - diff --git a/docs/it/programmers/caching/caching-cacheable.xml b/docs/it/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 08c955e0..00000000 --- a/docs/it/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - Mettere in Cache l'output dei Plugin - - A partire dai plugin di Smarty-2.6.0 la possibilit di mettere in - cache il loro output pu essere dichiarata nel momento in cui li si - registrano. Il terzo parametro da passare a register_block, - register_compiler_function e register_function si chiama - $cacheable e per default vale true, il che - equivale al comportamento dei plugin di Smarty nelle versioni - precedenti alla 2.6.0 - - - - Quando si registra un plugin con $cacheable=false il plugin viene - chiamato tutte le volte che la pagina viene visualizzata, anche se - la pagina stessa arriva dalla cache. La funzione del plugin funziona - cos un poco come una funzione insert. - - - - Al contrario di ci che avviene in {insert}, gli attributi passati - al plugin non vengono, per default, messi in cache. E' possibile per - dichiarare che devono essere messi in cache con il quarto parametro - $cache_attrs. $cache_attrs - un array di nomi di attributi che devono essere messi in cache, in - modo che la funzione del plugin ottenga il valore dell'attributo qual - era al momento in cui la pagina stata salvata sulla cache ogni volta - che la cache stessa viene riletta. - - - - Evitare che l'output di un plugin vada in cache - -caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // leggiamo $obj dal db e lo assegnamo al template... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - dove index.tpl : - - -endtime} -]]> - - - Il numero di secondi che mancano alla scadenza di $obj cambia ad - ogni visualizzazione della pagina, anche se questa in cache. - Siccome l'attributo endtime in cache, l'oggetto deve essere - letto dal database solo quando la pagina viene scritta sulla cache, - ma non nelle richieste successive. - - - - - Evitare che un intero blocco di template vada in cache - -caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - dove index.tpl : - - - - - - - - Quando ricaricate lapagina vedrete che le due date sono diverse. Una - "dinamica", l'altra "statica". Potete mettere qualsiasi cosa fra - {dynamic} e {/dynamic}, sicuri che non verr messa in cache col resto - della pagina. - - - - - diff --git a/docs/it/programmers/caching/caching-groups.xml b/docs/it/programmers/caching/caching-groups.xml deleted file mode 100644 index 05880c0f..00000000 --- a/docs/it/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - Gruppi di Cache - - Potete raggruppare le cache in modo pi elaborato impostando gruppi - di cache_id. Per fare questo separate ogni sottogruppo con una barra - verticale "|" nel valore di cache_id. Potete usare tutti i sottogruppi - che volete. - - - Potete pensare ai gruppi di cche come ad una gerarchia di directory. - Ad esempio, un gruppo di cache "a|b|c" pu essere concepito come la - struttura di directory "/a/b/c". clear_cache(null,"a|b|c") equivale a - cancellare i file "/a/b/c/*". clear_cache(null,"a|b") sarebbe come - cancellare i file "/a/b/*". Se specificate un compile_id, ad esempio - clear_cache(null,"a|b","foo"), sar considerato come un ulteriore - sottogruppo "a/b/c/foo/". Se specificate un nome di template, ad - esempio clear_cache("foo.tpl","a|b|c"), Smarty tenter di cancellare - "/a/b/c/foo.tpl". NON POTETE cancellare un template specifico sotto - pi gruppi di cache, ad es. "a/b/*/foo.tpl"; i gruppi di cache funzionano - SOLO da sinistra a destra. Dovrete raggruppare i vostri template sotto - un singolo sottogruppo di cache per poterli cancellare tutti insieme. - - - I gruppi di cache non vanno confusi con la gerarchia della vostra directory - dei template: i gruppi di cache infatti non sanno qual la struttura - dei template. Ad esempio, se avete una struttura di template tipo - "themes/blu/index.tpl" e volete avere la possibilit di cancellare - tutti i file di cache per il tema "blue", dovrete creare un gruppo di - cache che riproduce la struttura dei template, ad esempio - display("themes/blue/index.tpl","themes|blue"), e poi eliminarli - con clear_cache(null,"themes|blue"). - - - gruppi di cache_id - -caching = true; - -// eliminiamo tutti i file di cache che hanno "sports|basketball" come primi due gruppi -$smarty->clear_cache(null,"sports|basketball"); - -// eliminiamo tutti i file di cache che hanno "sports" come primo gruppo di cache -// questo include "sports|basketball", nonch "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -// eliminiamo il file di cache foo.tpl con "sports|basketball" come cache_id -$smarty->clear_cache("foo.tpl","sports|basketball"); - - -$smarty->display('index.tpl',"sports|basketball"); -?> -]]> - - - - - - diff --git a/docs/it/programmers/caching/caching-multiple-caches.xml b/docs/it/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index da26dcd5..00000000 --- a/docs/it/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - Cache multiple per una pagina - - Potete avere pi file di cache per una singola chiamata a display() - o fetch(). Diciamo che una chiamata a display('index.tpl') pu avere - diversi output in base a una certa condizione, e volete cache separate - per ciascun caso. Potete farlo passando alla funzione un cache_id come - secondo parametro. - - - passare un cache_id a display() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Qui sopra passiamo la variabile $my_cache_id a display() come - cache_id. Per ogni valore di $my_cache_id verr generato un file - di cache per index.tpl. In questo esempio, "article_id" proveniva - dall'URL e viene usato come cache_id. - - - Nota tecnica - - Siate molto prudenti quando passate valori ricevuti da un client (come - un browser) a Smarty (o qualsiasi applicazione PHP). Sebbene nell'esempio - qui sopra l'uso di article_id proveniente dall'URL sembri molto comodo, - potrebbe avere brutte conseguenze. Il valore di cache_id viene usato per - creare una directory sul filesystem, quindi se l'utente passa un valore - molto lungo come article_id, o se scrive uno script che spedisce velocemente - valori casuali, potremmo avere dei problemi sul server. Assicuratevi di - validare qualsiasi dato ricevuto in input prima di usarlo. In questo caso, - potreste sapere che article_id ha una lunghezza di 10 caratteri, composto - solo di caratteri alfanumerici, e deve essere un article_id valido sul - database. Verificatelo! - - - - Assicuratevi di passare lo stesso valore di cache_id come - secondo parametro a is_cached() e - clear_cache(). - - - passare un cache_id a is_cached() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // Non c' un file di cache disponibile, assegnamo le variabili qui. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - Potete eliminare tutti i file di cache per un determinato cache_id - passando null come primo parametro di clear_cache(). - - - eliminare tutte le cache per un determinato cache_id - -caching = true; - -// eliminiamo tutti i file di cache con "sports" come cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -?> -]]> - - - - In questo modo, potete "raggruppare" i vostri file di cache dando - loro lo stesso valore di cache_id. - - - - - diff --git a/docs/it/programmers/caching/caching-setting-up.xml b/docs/it/programmers/caching/caching-setting-up.xml deleted file mode 100644 index fcc03617..00000000 --- a/docs/it/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,192 +0,0 @@ - - - - Impostare il Caching - - La prima cosa da fare abilitare il caching. Per farlo bisogna - impostare $caching = true (o 1.) - - - abilitare il caching - -caching = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Col caching abilitato, la chiamata alla funzione display('index.tpl') - causa la normale generazione del template, ma oltre a questo salva - una copia dell'output in un file (la copia in cache) nella $cache_dir. Alla chiamata successiva - di display('index.tpl'), verr usata la copia in cache invece di - generare di nuovo il template. - - - Nota tecnica - - I file nella $cache_dir vengono chiamati con nomi simili al nome del - template. Sebbene abbiano l'estensione ".php", in realt non sono - script php eseguibili. Non editateli! - - - - Ogni pagina in cache ha un tempo di vita limitato, determinato da - $cache_lifetime. Il - valore di default 3600 secondi, cio 1 ora. Dopo questo tempo, la - cache viene rigenerata. E' possibile dare a file singoli il proprio - tempo di scadenza impostando $caching = 2. Consultate la documentazione - di $cache_lifetime per i dettagli. - - - impostare cache_lifetime per singolo file di cache - -caching = 2; // la durata per singolo file - -// impostiamo il cache_lifetime per index.tpl a 5 minuti -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// impostiamo il cache_lifetime per home.tpl a 1 ora -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTA: l'impostazione seguente di $cache_lifetime non funzioner -// con $caching = 2. La scadenza per home.tpl stata gi impostata -// a 1 ora, e non rispetter pi il valore di $cache_lifetime. -// La cache di home.tpl scadr sempre dopo 1 ora. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - - - - Se $compile_check abilitato, - tutti i file di template e di configurazione che sono coinvolti nel file - della cache vengono verificati per vedere se sono stati modificati. Se qualcuno - dei file ha subito una modifica dopo che la cache stata generata, il file - della cache viene rigenerato. Questo provoca un piccolo sovraccarico, quindi, - per avere prestazioni ottimali, lasciate $compile_check a false. - - - abilitare $compile_check - -caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - Se $force_compile abilitato, - i file della cache verranno sempre rigenerati. Di fatto questo disabilita - il caching. $force_compile normalmente serve solo per scopi di debug, un - modo pi efficiente di disabilitare il caching di impostare $caching = false (o 0.) - - - La funzione is_cached() pu essere - usata per verificare se un template ha una cache valida oppure no. Se avete - un template in cache che necessita di qualcosa come una lettura da un - database, potete usare questa funzione per saltare quella parte. - - - uso di is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // Non c' cache disponibile, assegnamo le variabili qui. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - Potete mantenere parti di una pagina dinamiche con la funzione del template - insert. Diciamo che l'intera - pagina pu essere messa in cache eccetto un banner che viene visualizzato - in fondo a destra nella page. Usando la funzione insert per il banner, potete - tenere questo elemento dinamico all'interno del contenuto in cache. Consultate - la documentazione su insert per - dettagli ed esempi. - - - Potete eliminare tutti i file della cache con la funzione clear_all_cache(), o singoli - file della cache (o gruppi di file) con la funzione clear_cache(). - - - eliminare la cache - -caching = true; - -// eliminiamo tutti i file della cache -$smarty->clear_all_cache(); - -// eliminiamo solo la cache di index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - - diff --git a/docs/it/programmers/plugins.xml b/docs/it/programmers/plugins.xml deleted file mode 100644 index e9df2574..00000000 --- a/docs/it/programmers/plugins.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - Estendere Smarty con i Plugin - - La versione 2.0 ha introdotto l'architettura dei plugin, che - viene usata per quasi tutte le funzionalit personalizzabili - di Smarty. Queste comprendono: - - funzioni - modificatori - funzioni di blocco - funzioni di compilazione - prefiltri - postfiltri - filtri di output - risorse - insert - - Con l'eccezione delle risorse, viene preservata la compatibilit - retroattiva con il vecchio modo di registrare le funzioni di gestione - attraverso l'API register_*. Se non usavate questa interfaccia, ma - modificavate direttamente le variabili di classe $custom_funcs, - $custom_mods e altre, ora dovrete modificare i - vostri script per usare l'API oppure convertire in plugin le vostre - funzionalit personalizzate. - - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; - - diff --git a/docs/it/programmers/plugins/plugins-block-functions.xml b/docs/it/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 408ca7f3..00000000 --- a/docs/it/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - Funzioni sui blocchi - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Le funzioni sui blocchi sono funzioni che appaiono nel template nella - forma: {func} .. {/func}. In altre parole, racchiudono un blocco del - template e lavorano sul contenuto di questo blocco. Le funzioni di blocco - hanno la precedenza sulle funzioni personalizzate con lo stesso nome, - il che significa che non potete avere una funzione personalizzata {func} - ed allo stesso tempo una funzione di blocco {func} .. {/func}. - - - Per default la funzione di implementazione viene chiamata due volte - da Smarty: una per il tag di apertura, e una per il tag di chiusura - (guardate sotto &$repeat per capire come - modificare questo comportamento). - - - Solo il tag di apertura della funzione di blocco pu avere attributi. - Tutti gli attributi passati dal template alle funzioni relative sono - contenuti in $params nella forma di array - associativo. Potete accedere a questi valori, ad esempio, con - $params['start']. Gli attributi del tag di apertura - sono accessibili alla funzione anche in fase di elaborazione del tag - di chiusura. - - - Il valore di $content dipende se la funzione - viene chiamata per il tag di apertura o per quello di chiusura. Nel - caso del tag di apertura, sar null, mentre nel - caso del tag di chiusura sar il contenuto del blocco di template. - Notate che il blocco sar gi stato elaborato da Smarty, quindi ci - che riceverete sar l'output del template, non il sorgente. - - - - Il parametro &$repeat passato alla - funzione per riferimento e le fornisce la possibilit di controllare - quante volte il blocco viene visualizzato. Per default - $repeat true alla prima - chiamata della funzione (al tag di apertura), e false - per tutte le chiamate successive (al tag di chiusura). - Ogni volta che la funzione termina con il valore di - &$repeat a true, il contenuto compreso - fra {func} e {/func} viene valorizzato e la funzione viene chiamata - di nuovo con il nuovo contenuto del blocco nel parametro - $content. - - - - - Se avete funzioni di blocco nidificate, potete scoprire qual il - blocco genitore attraverso la variabile - $smarty->_tag_stack. Fate un var_dump() su - questa variabile e la struttura dovrebbe apparirvi evidente. - - - Vedere anche: - register_block(), - unregister_block(). - - - funzione di blocco - - -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-compiler-functions.xml b/docs/it/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 4ccbcd20..00000000 --- a/docs/it/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - Funzioni di Compilazione - - Le funzioni di compilazione sono chiamate solo durante la compilazione - del template. Sono utili per inserire nel template codice PHP o - contenuto statico dipendente dal momento (ad es. l'ora). Se esistono una - funzione di compilazione e una funzione personalizzata registrate sotto - lo stesso nome, la funzione di compilazione ha la precedenza. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Alla funzione di compilazione vengono passati due parametri: la stringa - che rappresenta l'argomento tag - fondamentalmente, tutto dal nome della - funzione fino al delimitatore finale, e l'oggetto Smarty. Ci si aspetta - che la funzione restituisca il codice PHP da inserire nel template - compilato. - - - See also - register_compiler_function(), - unregister_compiler_function(). - - - semplice funzione di compilazione - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - Questa funzione pu essere chiamata dal template in questo modo: - - -{* questa funzione viene eseguita solo al momento della compilazione *} -{tplheader} - - - Il codice PHP risultante nel template compilato sar qualcosa di questo tipo: - - - -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-functions.xml b/docs/it/programmers/plugins/plugins-functions.xml deleted file mode 100644 index ceff1c77..00000000 --- a/docs/it/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - Funzioni per i template - - - void smarty_function_name - array $params - object &$smarty - - - - Tutti gli attributi passati dai template alle funzioni relative sono - contenuti in $params nella forma di un array - associativo. - - - L'output (valore di ritorno) della funzione sostituir il tag della - funzione nel template (ad esempio con la funzione fetch). - In alternativa, la funzione potrebbe semplicemente svolgere qualche - altro compito, senza produrre output (funzione assign). - - - Se la funzione deve assegnare variabili al template, o usare qualche - altra funzionalit di Smarty, pu usare per questo l'oggetto - $smarty che le viene passato. - - - Vedere anche: - register_function(), - unregister_function(). - - - - plugin funzione con output - - -]]> - - - - - che pu essere usata cos nel template: - - -Question: Will we ever have time travel? -Answer: {eightball}. - - - - funzione plugin senza output - -trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - - - - - - diff --git a/docs/it/programmers/plugins/plugins-howto.xml b/docs/it/programmers/plugins/plugins-howto.xml deleted file mode 100644 index d45c4cf4..00000000 --- a/docs/it/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - Come funzionano i Plugin - - I plugin vengono sempre caricati a richiesta. Solo gli specifici - modificatori, funzioni, risorse ecc. invocati negli script dei - template verranno caricati. Inoltre, ogni plugin viene caricato - una volta sola, anche se avete diverse istanze di Smarty in esecuzione - nella stessa richiesta. - - - I pre/postfiltri e i filtri di output sono casi un po' speciali. Siccome - non vengono menzionati nei template, devono essere registrati o caricati - esplicitamente attraverso le funzioni di interfaccia prima che il - template venga eseguito. L'ordine in cui vengono eseguiti pi filtri - dello stesso tipo dipende dall'ordine in cui sono stati registrati - o caricati. - - - La $plugins_dir pu - essere una stringa che contiene un percorso oppure un array - che ne contiene diversi. Per installare un plugin, sufficiente - installarlo in una delle directory e Smarty lo user automaticamente. - - - - diff --git a/docs/it/programmers/plugins/plugins-inserts.xml b/docs/it/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index aab313ae..00000000 --- a/docs/it/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - Insert - - I plugin Insert sono usati per implementare le funzioni invocate dai - tag insert - nel template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Il primo parametro un array associativo di attributi - passati all'insert. - - - Ci si aspetta che la funzione insert restituisca il risultato che - sar posizionato in luogo del tag insert nel - template. - - - plugin insert - -trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-modifiers.xml b/docs/it/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 44b0f895..00000000 --- a/docs/it/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - Modificatori - - I modificatori sono piccole funzioni che vengono applicate ad - una variabile del template prima che venga visualizzata o usata - in qualche altro contesto. I modificatori possono essere - concatenati. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Il primo parametro passato al plugin modificatore il valore sul - quale il modificatore stesso deve operare. Gli altri parametri - possono essere opzionali, a seconda del tipo di operazione che - deve essere eseguita. - - - Il modificatore deve restituire il risultato della sua esecuzione. - - - Vedere anche - register_modifier(), - unregister_modifier(). - - - un semplice plugin modificatore - - Questo plugin fondamentalmente crea un sinonimo per una delle - funzioni incorporate in PHP. Non prevede parametri aggiuntivi. - - - -]]> - - - - - un plugin modificatore pi complesso - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-naming-conventions.xml b/docs/it/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index cd3bd69c..00000000 --- a/docs/it/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - Convenzioni per i nomi - - I file e le funzioni dei plugin devono seguire delle convenzioni - molto specifiche per i loro nomi, per poter essere trovati da - Smarty. - - - I file dei plugin devono essere chiamati come segue: -
    - - - tipo.nome.php - - -
    -
    - - Dove tipo uno di questi tipi di plugin: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - E nome deve essere un identificatore valido - (solo lettere, numeri e underscore). - - - Alcuni esempi: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - Le funzioni plugin all'interno dei file dei plugin devono essere - chiamate come segue: -
    - - smarty_tipo_nome - -
    -
    - - Il significato di tipo e nome sono - gli stessi visti prima. - - - Smarty produrr i messaggi di errore appropriati se il file del plugin - di cui ha bisogno non viene trovato, o se il file o la funzione hanno - un nome non appropriato. - -
    - - diff --git a/docs/it/programmers/plugins/plugins-outputfilters.xml b/docs/it/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index dc659575..00000000 --- a/docs/it/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - Filtri di Output - - I plugin filtro di output lavorano sull'output di un template, dopo - che il template stato caricato ed eseguito, ma prima che l'output - che venga visualizzato. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Il primo parametro passato alla funzione filtro l'output del - template che deve essere elaborato, e il secondo parametro - l'istanza di Smarty che sta chiamando il plugin. Ci si aspetta che - questo effettui l'elaborazione e restituisca il risultato. - - - plugin filtro di output - - -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/it/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 37f86aca..00000000 --- a/docs/it/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - Prefiltri/Postfiltri - - I plugin prefiltro e postfiltro sono molto simili concettualmente; - la differenza sta nel momento della loro esecuzione. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - I prefiltri si usano per processare il codice sorgente del template immediatamente - prima della compilazione. Il primo parametro passato alla funzione - prefiltro il sorgente del template, eventualmente modificato da qualche - altro prefiltro. Ci si aspetta che il plugin restituisca il sorgente - modificato. Notate che questo sorgente non viene salvato da nessuna - parte, usato solo per la compilazione. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - I postfiltri si usanno per processare l'output compilato del template - (il codice PHP) immediatamente dopo la compilazione stessa, ma prima - che il template compilato venga salvato sul filesystem. Il primo - parametro passato alla funzione postfiltro il codice compilato, - eventualmente modificato da altri postfiltri. Ci si aspetta che il - plugin restituisca la versione modificata di questo codice. - - - plugin prefiltro - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - plugin postfilro - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-resources.xml b/docs/it/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 2ba51d98..00000000 --- a/docs/it/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - Risorse - - I plugin risorsa vanno considerati un modo generico di fornire sorgenti - di template o script PHP a Smarty. Alcuni esempi di risorse: - database, directory LDAP, memorie condivisse, socket, e cos via. - - - - Per ogni tipo di risorsa deve essere registrato un totale di 4 funzioni. - Ogni funzione ricever la risorsa richiesta come primo parametro e l'oggetto - Smarty come ultimo parametro. Il resto dei parametri dipende dalla - funzione. - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - Lo scopo della prima funzione di recuperare la risorsa. Il suo - secondo parametro una variabile passata per riferimento nella - quale memorizzare il risultato. Ci si aspetta che la funzione - restituisca true se riuscita a recuperare - la risorsa e false nel caso opposto. - - - - Lo scopo della seconda funzione di indicare il momento dell'ultima - modifica effettuata sulla risorsa richiesta (nel formato timestamp - UNIX). Il secondo parametro una variabile passata per riferimento - nella quale memorizzare il timestamp. Ci si aspetta che la funzione - restituisca true se riuscita a determinare il - timestamp, e false nel caso opposto. - - - - La terza funzione deve restituire true o - false, a seconda che la risorsa richiesta sia - sicura o no. Questa funzione usata solo per risorse di template ma - deve ancora essere definita. - - - - La quarta funzione deve restituire true o - false, a seconda che la risorsa richiesta sia - considerata affidabile o no. Questa funzione usata solo per script - PHP richiesti con i tag include_php o - insert con l'attributo src. - Comunque, deve ancora essere definita per le risorse di template. - - - Vedere anche - register_resource(), - unregister_resource(). - - - plugin risorsa - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // fate qui la chiamata al db per popolare $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // diciamo che tutti i template sono sicuri - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // non si usa per i template -} -?> -]]> - - - - - diff --git a/docs/it/programmers/plugins/plugins-writing.xml b/docs/it/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 12303f66..00000000 --- a/docs/it/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - Scrivere Plugin - - I plugin possono essere caricati automaticamente dal filesystem - da parte di Smarty, oppure possono essere registrati a runtime - attraverso le funzioni register_*. Possono anche essere - eliminati con le funzioni unregister_*. - - - Per i plugin che vengono registrati a runtime, i nomi delle - funzioni non devono necessariamente rispettare le convenzioni - di denominazione. - - - Se un plugin dipende da qualche funzionalit fornita da un altro - plugin (come nel caso di alcuni plugin incorporati in Smarty), il - modo corretto di caricare il plugin necessario questo: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Come regola generale, l'oggetto Smarty viene sempre passato ai - plugin come ultimo parametro (con due eccezioni: ai modificatori - non viene passato l'oggetto Smarty, mentre ai blocchi viene passato - &$repeat dopo l'oggetto Smarty, per - mantenere la compatibilit retroattiva con le vecchie versioni - di Smarty). - - - - diff --git a/docs/it/programmers/smarty-constants.xml b/docs/it/programmers/smarty-constants.xml deleted file mode 100644 index aca0ea66..00000000 --- a/docs/it/programmers/smarty-constants.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - Costanti - - - SMARTY_DIR - - Questo dovrebbe essere il percorso completo sul sistema dei file - di classe di Smarty. Se la costante non definita, Smarty cercher - di determinare automaticamente il valore appropriato. Se definita, - il percorso deve terminare con una barra. - - - SMARTY_DIR - - -]]> - - - - - diff --git a/docs/ja/appendixes/bugs.xml b/docs/ja/appendixes/bugs.xml deleted file mode 100644 index c7d06a79..00000000 --- a/docs/ja/appendixes/bugs.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - バグ - - Smarty の最新ディストリビューションに付属している - BUGS ファイルを読むか、web サイトをチェックしてください。 - - - diff --git a/docs/ja/appendixes/resources.xml b/docs/ja/appendixes/resources.xml deleted file mode 100644 index d97a5514..00000000 --- a/docs/ja/appendixes/resources.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - リソース - Smarty のホームページは - &url.smarty; - です。 - - - - - - メーリングリストに参加するには、メールを - &ml.general.sub; に送信してください。 - メーリングリストのアーカイブは ここ で閲覧できます。 - - - - 掲示板は &url.forums; です。 - - - - wiki の場所は &url.wiki; です。 - - - - チャットに参加したい場合は irc.freenode.net#smarty へ。 - - - - FAQ は こちらこちら - にあります。 - - - - - - diff --git a/docs/ja/appendixes/tips.xml b/docs/ja/appendixes/tips.xml deleted file mode 100644 index 7013ff95..00000000 --- a/docs/ja/appendixes/tips.xml +++ /dev/null @@ -1,453 +0,0 @@ - - - - - - ヒント & 裏ワザ - - - - 空白の変数の扱い - - テーブルの背景が適切に機能するように &nbsp; - を出力する場合のように、空白の変数が何も出力しない代わりに - デフォルトの値を出力したい場合があるかもしれません。 - そのために多くの人は - {if} - {if}ステートメントを使用すると思いますが、Smartyによる変数の修飾子 - default - を使った簡略な方法があります。 - - Undefined variable というエラーが表示されるのは、 - PHP の - error_reporting()E_ALL - になっており、変数が Smarty に代入されていない場合です。 - - - - - - 変数が空白の時、&nbsp; を出力する - - - - - - -default 修飾子および -変数のデフォルトの扱い -も参照してください。 - - - - - - 変数のデフォルトの扱い - - 変数がテンプレートの至る所に頻繁に使われる場合、それが記述されるたびに変更子 - default - を用いると少し見苦しくなりがちです。この場合、 - {assign} - 関数によって変数にデフォルト値を割り当てる事でこれを改善する事ができます。 - - - デフォルト値をテンプレート変数に割り当てる - - - - - - default - 修飾子および 空白の変数の扱い - も参照してください。 - - - - - ヘッダテンプレートにタイトルの変数を渡す - - テンプレートの大半が同じヘッダ及びフッタを使用する場合は、それらを単体のテンプレートに分割して - - {include} するのが普通です。 - しかしどのページから呼び出されたかによって、 - そのヘッダに異なるタイトルを持たせる必要があるとすればどうなるでしょうか? - インクルードされる際に、タイトルを - 属性 - としてヘッダに渡す事ができます。 - - - - ヘッダテンプレートにタイトルの変数を渡す - - - mainpage.tpl - メインページを描画する際に、 - Main Page というタイトルを - header.tpl に私、それをタイトルとして使用します。 - - - - - - - archives.tpl - アーカイブページを描画する際には、 - タイトルは Archives となります。 - この例では、ハードコーディングされた変数ではなく - archives_page.conf - から変数を取得していることに注意しましょう。 - - - - - - - header.tpl - $title 変数が設定されていない場合に、 - Smarty News と表示します。これは - default - 修飾子を使用して実現しています。 - - - - -{$title|default:'Smarty News'} - - -]]> - - - - footer.tpl - - - - -]]> - - - - - - 日付 - - 経験上、Smarty に渡す日付は常に - タイムスタンプ型 - にしておくことをお勧めします。これにより、テンプレートデザイナーは - date_format - 修飾子で日付の書式を自由にコントロールできるようになります。 - また、必要なら日付の比較も簡単に行えます。 - - - date_format の使用 - - - - - 出力はこのようになります。 - - - - - - - - - 出力はこのようになります。 - - - - - - テンプレートで日付を比較するには、タイムスタンプを使用します。 - - - - - - - テンプレートで - {html_select_date} を使用する場合、 - おそらくプログラマはフォームからの出力をタイムスタンプ型に変換したいでしょう。 - それを行うのに役立つ関数を次に示します。 - - - フォームの日付要素をUNIXタイムスタンプ型に変換する - - -]]> - - - - - - {html_select_date}、 - - {html_select_time}、 - - date_format - および - $smarty.now - も参照してください。 - - - - - WAP/WML - - WAP/WML テンプレートはテンプレートコンテンツに加え、php - によって Content-Type ヘッダ - が渡される必要があります。これを実行する容易な方法は、 - ヘッダを出力するカスタム関数を記述する事です。 - もし キャッシュ を有効にしている場合はキャッシュは機能しないので、 - {insert} - タグを用いて出力を行います ({insert} - タグはキャッシュされない事を覚えていて下さい)。 - もしテンプレートの前にブラウザに何か出力されていると、 - ヘッダの出力は失敗する可能性があります。 - - - WML Content-Type ヘッダを出力するために {insert} を使用する - - -]]> - - - Smarty テンプレートは、次のように insert タグから始まる必要があります。 - - - - - - - - - - - - -

    - Smarty 版の WAP へようこそ! - OK を押すと次に進みます…… -

    -
    - - -

    - どう?簡単でしょ? -

    -
    -
    -]]> -
    -
    -
    - - - コンポーネント化したテンプレート - - 習慣的に、アプリケーションにテンプレートをプログラミングする手順は次のように進みます。 - はじめに php アプリケーションにおいて変数を蓄積します - (おそらくデータベースのクエリーによって)。それから Smarty - オブジェクトのインスタンスを作成して変数を割り当て - (assign())、 - テンプレートを表示 (display()) - します。仮に株式相場表示を行うテンプレートがあったとしましょう。 - これは php アプリケーションにより株式情報のデータを収集し、 - テンプレートにこれらの変数を割り当てて表示します。 - もし、前もってデータを取得する事を気にせずに、 - テンプレートを単にインクルードする事で株式相場表示をアプリケーションに追加できれば良いと思いませんか? - - - これは、内容をフェッチし、テンプレート変数に割り当てるための - カスタムプラグインを書くことで実現できます - - - コンポーネント化したテンプレート - - function.load_ticker.php - - このファイルを - - プラグインのディレクトリ - においてください。 - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - {include_php}、 - {include} - および - {php} - も参照してください。 - - - - - E-mail アドレスを混乱させる - - これまでに、あなたの E-mail アドレスが多数のスパムメーリングリストにどのように載るのか - 不思議に思った事はありませんか?その一つの方法として、スパム発信者は web ページ上の - E-mail アドレスを収集しています。この問題に対抗するために、E-mail アドレスが HTML - ソース内では混乱した JavaScript に見えるがブラウザでは正しく表示されるという方法が使えます。 - これは {mailto} - プラグインによって行われます。 - - - E-mail アドレスを混乱させる例 - - -{mailto address=$EmailAddress encode='javascript' subject='Hello'} に問い合わせを送る - -]]> - - - - テクニカルノート - - この方法は 100% 確実という訳ではありません。 - もしかしたらスパム発信者はこれらの値を解読するためのコードを書くかもしれません。 - ですがそれはまず有り得ないでしょう…… - おそらく…… - 今のところは…… - 量子コンピュータってどうなったんでしょう :-? - - - - escape - 修飾子および - {mailto} - も参照してください。 - - -
    - - diff --git a/docs/ja/appendixes/troubleshooting.xml b/docs/ja/appendixes/troubleshooting.xml deleted file mode 100644 index e220a3a5..00000000 --- a/docs/ja/appendixes/troubleshooting.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - トラブルシューティング - - - Smarty/PHP エラー - - Smarty は、タグの属性が不足していたり、誤った変数名を指定していた時など、 - 多くのエラーをキャッチする事ができます。 - キャッチすると次の例のようなエラーが表示されます。 - - - Smarty エラー - - - - - - Smarty はテンプレート名・エラー行番号・エラー内容を示します。 - その次のエラーは、Smarty クラスにおいてエラーが発生した実際の行番号から成るメッセージです。 - - - - タグの閉じ忘れのような、Smarty がキャッチできないエラーがあります。 - 通常、このような場合のエラーは PHP コンパイル時にパースエラーで終了します。 - - - - PHP パースエラー - - - - - - - PHP パースエラーの場合のエラー行番号は、 - テンプレートそのものではなくコンパイルされた PHP スクリプトに一致します。 - 通常、テンプレートを見ることで構文エラーを見つけられます。 - 一般的な間違いとしては、 - {if}{/if} や - {section}{/section} - タグの閉じ忘れ、{if} - タグ内のロジックの構文の誤りなどがあります。もしエラーが見つけられない場合は、 - テンプレートのどこに該当するエラーがあるかを見い出すために、 - コンパイルされた PHP ファイルを開いて行番号のあたりを調べる必要があります。 - - - - - その他共通のエラー - - - - - - - - - - $template_dir - が存在しない不正なディレクトリか、もしくは存在しても - index.tpl が - templates/ - ディレクトリ内にありません。 - - - - - - {config_load} - 関数がテンプレート内にあり (もしくは - config_load() - で呼び出されており)、その際の - $config_dir - が存在しない不正なディレクトリか、もしくは存在しても - site.conf がそのディレクトリ内にありません。 - - - - - - - - - - - - - - $compile_dir - に不正な値が入っており、そのようなディレクトリが存在しないか、もしくは - templates_c の指定がディレクトリではなくファイルです。 - - - - - - - - - - - - - $compile_dir に Web サーバによる書き込み権限がありません。 - Smarty のインストール - のページ下部のパーミッションの項を参照してください。 - - - - - - - - - - - - $caching が有効であるにも関わらず、 - $cache_dir - が存在しない不正なディレクトリか、もしくは存在しても - cache/ がディレクトリではなくファイルである、という意味です。 - - - - - - - - - - - - $caching - が有効であるにも関わらず、 - $cache_dir - に Web サーバによる書き込み権限がない、という意味です。 - Smarty のインストール - のページ下部のパーミッションの項を参照してください。 - - - - - - - デバッグ、 - - $error_reporting - および - trigger_error() - の項も参照してください。 - - - - - diff --git a/docs/ja/bookinfo.xml b/docs/ja/bookinfo.xml deleted file mode 100644 index 46345845..00000000 --- a/docs/ja/bookinfo.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - Smarty - コンパイリング PHP テンプレートエンジン - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - - - ShinsukeMatsuda <mat-sh at fj9 dot so-net dot ne dot jp> - - - DaichiKamemoto <daichi at asial dot co dot jp> - - - JoeMorikawa <joe at asial dot co dot jp> - - - MasahiroTakagi <takagi@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/docs/ja/designers/chapter-debugging-console.xml b/docs/ja/designers/chapter-debugging-console.xml deleted file mode 100644 index 0b2d5c63..00000000 --- a/docs/ja/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - デバッギングコンソール - - Smarty にはデバッギングコンソールが用意されています。 - このコンソールは、 - インクルード - された全てのテンプレートについての情報と、現在実行中のテンプレートに - 割り当てられた 変数及び - 設定 - ファイルの変数の値を表示します。Smarty の配布ファイル群に含まれているテンプレート - debug.tpl が、コンソールを表示するためのものです。 - - - debug.tpl (デフォルトでは - SMARTY_DIR 内にあります) に - - $debug_tpl のテンプレートリソースのパスを示す必要がある場合は、 - Smarty で - $debugging - を &true; に設定します。 - ページを読み込む時に Javascript による新たなコンソールウィンドウが現れ、 - 現在のページにおける、インクルードされたすべてのテンプレートの名前と - 定義されている変数の値を表示します。 - 特定のテンプレートに有効な変数を調べる場合は、テンプレート関数 - - {debug} を参照してください。 - デバッギングコンソールを無効にするには - $debugging - を &false; に設定します。また、一時的にデバッギングコンソールを有効にするには、 - $debugging_ctrl - で URL の中に SMARTY_DEBUG を含めます。 - . - - - テクニカルノート - - fetch() - API を使用している場合はデバッギングコンソールは動作せず、 - - display() の場合のみ使用できます。 - このコンソールは、生成されたテンプレートの終端に追加される - Javascript の集合です。Javascript がお好みでないなら、 - 希望の出力になるように debug.tpl - を修正してください。デバッグ情報はキャッシュされず、 - デバッギングコンソールの出力には debug.tpl - 自体の情報は含まれません。 - - - - - 各テンプレートと設定ファイルの読み込みにかかる時間は、ほんの数秒です。 - - - - トラブルシューティング、 - - $error_reporting - および - trigger_error() - も参照してください。 - - - - - - diff --git a/docs/ja/designers/config-files.xml b/docs/ja/designers/config-files.xml deleted file mode 100644 index e3ca731e..00000000 --- a/docs/ja/designers/config-files.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - 設定ファイル - - 設定ファイルは、1つのファイルからグローバルなテンプレート変数を管理する方法として、 - デザイナーにとって有用です。1つの例としては、テンプレートの色の指定を行う場合です。 - 通常、アプリケーションの配色を変更するには全てのテンプレートファイルを調べ、 - 該当する箇所の色の指定を変更する必要があります。 - 設定ファイルを使うと色の指定を一箇所で管理できるので、 - 更新する必要があるファイルは1つだけになります。 - - - 設定ファイルの記述例 - - - - - - 設定ファイルの値 - はクォートで囲む事が出来ます(必須ではありません)。 - シングルクォートとダブルクォートのどちらでも使用できます。 - 複数行にまたがる値を持つ場合は、値全体をトリプルクォート(""") - で囲みます。設定ファイルの中にコメントを記述するには、 - 行の初めに # (ハッシュ) を使う事を推奨します。 - - - 上記の設定ファイルの例は2つのセクションを持っています。 - セクション名はブラケット[]に囲まれ、[ - もしくは ] を含まない任意の文字列を指定できます。 - 先頭の4つの変数は、グローバル変数 (あるいはセクションに含まれない変数) - です。これらの変数は常に設定ファイルから読み込まれます。 - 特定のセクションが読み込まれた場合は、 - グローバル変数に加えてそのセクションからの変数が読み込まれます。 - グローバル変数とセクション内に同じ変数が存在する場合はセクション内の変数が使用されます。 - 1つのセクション内に同名の2つの変数を指定した場合は、 - - $config_overwrite - が無効でない限りは後で指定されたものが使用されます。 - - - 設定ファイルの読み込みは、組み込みのテンプレート関数 - - {config_load} あるいは API 関数 config_load() - によって行います。 - - - [.hidden] のように変数名又はセクション名の先頭にピリオドをつける事によって、 - 変数又は全体のセクションを隠蔽する事ができます。 - アプリケーションからは使用されるがテンプレートエンジンからは使用されないような重要なデータ - (DB接続に関する情報など) を取得する際に有用です。 - テンプレートを編集をするサードパーティが存在する場合、 - 重要なデータを含んだ設定ファイルをテンプレート内に読み込む事によって盗み読まれる危険性を回避できます。 - - - {config_load}、 - $config_overwrite、 - get_config_vars()、 - clear_config() - および - config_load() - も参照してください。 - - - diff --git a/docs/ja/designers/language-basic-syntax.xml b/docs/ja/designers/language-basic-syntax.xml deleted file mode 100644 index 6ffb2be3..00000000 --- a/docs/ja/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - 基本構文 - - 全てのテンプレートタグはデリミタによって囲まれます。 - デフォルトではデリミタは {} - ですが、これは 変更可能 です。 - - - このマニュアルで挙げる例ではデフォルトのデリミタを利用しています。 - Smarty では、デリミタ外の内容は静的コンテンツとして表示されます。 - Smarty がテンプレ ートタグを見つけると、その解釈を試みて適切な出力に置換します。 - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - - diff --git a/docs/ja/designers/language-basic-syntax/language-escaping.xml b/docs/ja/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 327b4c47..00000000 --- a/docs/ja/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Smarty の構文解析を回避する - - 時々、Smarty の構文解析の対象にしたくないと望む、 - もしくはそうする必要がある部分があります。 典型的な例としては、 - テンプレートに Javascript や CSS コードが含まれるときです。 - それらの言語が Smarty のデフォルトの - デリミタ - である { と } を使用するときに問題が発生します。 - - - - もっとも単純な解決方法は、Javascript と CSS コードをそれぞれファイルに切り分け、 - それらにアクセスするために標準的な HTML の機能を使用する事で状況を回避する事です。 - - - - リテラルコンテンツを含めるには - {literal}..{/literal} ブロックを使用します。 - HTML エンティティの使用法と同様に、 {ldelim}{rdelim} あるいは - {$smarty.ldelim} を使用して現在のデリミタを表示することができます。 - - - - 単純に Smarty の - $left_delimiter および - - $right_delimiter - を変更するだけでも便利になることが多々あります。 - - - デリミタを変更する例 - -left_delimiter = ''; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - テンプレートはこのようになります。 - - - to Smarty - -]]> - - - - diff --git a/docs/ja/designers/language-basic-syntax/language-math.xml b/docs/ja/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 59f08f08..00000000 --- a/docs/ja/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - 演算子 - - 演算子は、変数の値に直接適用されます。 - - - 演算子の例 - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - - 複雑な数式については - {math} 関数、そして - {eval} - も参照してください。 - - - diff --git a/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 559a9a98..00000000 --- a/docs/ja/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - 属性 - - ほとんどの 関数 には、 - それらの動作を指定したり修正するための属性があります。Smarty 関数の属性は - HTML の属性にかなり近いものです。静的な値はクォートで囲む必要はありませんが、 - リテラル文字列であるべきです。変数を使う場合はクォートで囲んではいけません。 - - - いくつかの属性は、boolean 値 (&true; あるいは &false;) を必要とします。 - これらの値は、クォートなしの true、 - onyes あるいは - falseoff、 - no を指定する事が出来ます。 - - - 関数の属性の構文 - - - {html_options options=$companies selected=$company_id} - -]]> - - - - diff --git a/docs/ja/designers/language-basic-syntax/language-syntax-comments.xml b/docs/ja/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index e5851f00..00000000 --- a/docs/ja/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - コメント - - テンプレートのコメントはまずアスタリスクで囲まれ、次にそれを - デリミタ - タグで囲みます。このような形式になります。 - - - - - - - - Smarty のコメントは、テンプレートの最終的な出力には表示されません。この点は - <!-- HTML のコメント --> とは異なります。 - これは、テンプレート内での内部的なメモとして使用するのに便利です。 - 誰にもバレません ;-) - - - テンプレート内のコメント - - - -{$title} - - - -{* 別の Smarty コメント *} - - -{* この、複数行の - Smarty コメントは - ブラウザへは送信されません -*} - -{********************************************************* -クレジットブロックを含む複数行のコメント - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* メインロゴなどを含むヘッダファイル *} -{include file='header.tpl'} - - -{* 開発メモ: 変数 $includeFile の値は foo.php で設定されています *} - -{include file=$includeFile} - -{* この - {html_options options=$vals selected=$selected_id} - -*} - - -{* $affiliate|upper *} - -{* コメントを入れ子にすることはできません *} -{* - -*} - - -{* テンプレート用の cvs タグ。以下の 36 はアメリカの通貨記号ですが、 -. cvs がこれを変換してしまいます…… *} -{* $Id: Exp $ *} -{* $Id: *} - - -]]> - - - - diff --git a/docs/ja/designers/language-basic-syntax/language-syntax-functions.xml b/docs/ja/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index 7f24db7f..00000000 --- a/docs/ja/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - 関数 - - すべての Smarty タグは、 - 変数 - を出力するか何らかの関数を呼び出す動作をします。 - 関数は、 - {funcname attr1='val1' attr2='val2'} - のように関数名とその - 属性 - をデリミタで囲みます。 - - - 関数の構文 - -{$name}! -{else} - やぁ、{$name} -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - - - - - - 組み込み関数 - と カスタム関数 - は、テンプレート内では同じ構文です。 - - - 組み込み関数とは Smarty の - 内部で 動作する関数で、たとえば - {if}、 - {section} および - {strip} - などのことです。これらを変更したり修正したりすることはありません。 - - - カスタム関数は - 追加の 関数で、 - プラグイン で実装します。 - これらは自由に修正したり、新たな関数を追加したりする事が可能です。 - - {html_options} や - {popup} - などがカスタム関数の例です。 - - - - - register_function() - も参照してください。 - - - - diff --git a/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index a6834eec..00000000 --- a/docs/ja/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - ダブルクォート内に埋め込まれた変数 - - - - - Smarty が "ダブルクォート" で囲まれた内容の中から 割り当てられた - 変数 - として認識するのは、変数名が数字・文字・_(アンダースコア)・[](ブラケット) - のみで構成されているもののみです。詳細は - 名前の付けかた - を参照ください。 - - - - その他の文字、たとえば .(ピリオド)や - $object>reference(オブジェクト参照)を含む場合は、 - その変数を `バッククォート` で囲む必要があります。 - - - - 修飾子 を埋め込むことはできず、 - 常にクォートの外で適用する必要があります。 - - - - - 構文の例 - - - - - - - 実用例 - - - - - - - escape - も参照してください。 - - - - diff --git a/docs/ja/designers/language-basic-syntax/language-syntax-variables.xml b/docs/ja/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index d63b742b..00000000 --- a/docs/ja/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - 変数 - - テンプレート変数は、先頭にドル記号 $ を付けます。変数名には - PHP の変数 - と同様に英数字およびアンダースコアが使用できます。 - 配列の参照には、インデックスの数値もしくはそれ以外の文字を使用できます。 - オブジェクトのプロパティとメソッドの参照も同様です。 - - Config ファイルの変数 - にはドル記号を付けず、参照する際にはハッシュマーク # で囲むか、 - - $smarty.config - 変数として指定します。 - - - 変数 - -bar} <-- オブジェクトのプロパティ "bar"を表示します。 -{$foo->bar()} <-- オブジェクトのメソッド"bar"の返り値を表示します。 -{#foo#} <-- configファイル変数"foo"を表示します。 -{$smarty.config.foo} <-- {#foo#}と同じです。 -{$foo[bar]} <-- sectionループ内でのみ正当な構文です。{section}の項を参照のこと。 -{assign var=foo value='baa'}{$foo} <-- "baa"を表示します。{assign}の項を参照のこと。 - -その他多くの組み合わせが可能です。 - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- パラメータを渡します。 -{"foo"} <-- 静的な値を使用できます。 - -{* サーバ変数 "SERVER_NAME" の内容を表示します ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - $_GET や - $_SESSION などのようなリクエスト変数は、 - 予約済の変数 - $smarty の値で取得します。 - - - - - $smarty、 - config 変数、 - {assign} - および - assign() - も参照してください。 - - - - diff --git a/docs/ja/designers/language-builtin-functions.xml b/docs/ja/designers/language-builtin-functions.xml deleted file mode 100644 index 3348eefc..00000000 --- a/docs/ja/designers/language-builtin-functions.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - 組み込み関数 - - Smarty にはいくつかの組み込み関数があります。 - これらはテンプレートエンジンにとって必要不可欠なものです。これらと同じ名前の - カスタム関数 - を作成したり、組み込み関数を修正したりする事はできません。 - - - これらの関数の一部は assign 属性を持っており、 - 結果を出力せずにここで指定した名前のテンプレート変数に格納します。これは - - {assign} 関数と似ています。 - - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-capture.xml b/docs/ja/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 411f707d..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - {capture} - - - {capture} は、タグの間のテンプレートの出力を集め、 - それをブラウザに表示する代わりに変数に受け渡します。 - {capture name='foo'}{/capture} - の間のあらゆるコンテンツは、name - 属性で指定した変数に格納されます。 - - キャプチャされたコンテンツは、特別な変数 - $smarty.capture.foo - (fooname 属性で指定した変数) によって利用できます。 - name 属性を指定しない場合は default - が使われ、$smarty.capture.default - のようになります。 - - {capture}'s はネスト可能です。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - no - default - キャプチャされるブロックの名前 - - - assign - string - No - n/a - キャプチャされた出力を割り当てるための変数名 - - - - - - - - 注意 - - {insert} - の出力をキャプチャする際には注意が必要です。 - $caching - が有効の時に、実行したい - {insert} - コマンドがもしキャッシュされたコンテンツ内にあるのなら、そのコンテンツはキャプチャされません。 - - - - - - name 属性を使用した {capture} - -{$smarty.capture.banner} -{/if} -]]> - - - - - {capture} をテンプレート変数に格納 - この例は、 - {popup} - 関数の使用法を示すものです。 - - -Your ip is {$smarty.server.REMOTE_ADDR}. -{/capture} -help -]]> - - - - - - - $smarty.capture、 - {eval}、 - {fetch}、 - fetch() - および {assign} - も参照してください。 - - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-config-load.xml b/docs/ja/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index d929f1d8..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - {config_load} - - {config_load} を使用して、 - 設定ファイル からテンプレートに - #変数# - を読み込みます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - file - string - Yes - n/a - インクルードする設定ファイルの名前 - - - section - string - No - n/a - 読み込むセクションの名前 - - - scope - string - no - local - - 読み込む変数のスコープの処理方法。local、parent、global - のいずれかを指定します。 local を指定すると、 - 変数がローカルファイルのテンプレート変数として読み込まれます。 parent を指定すると、 - 該当ファイルとその親ファイルのテンプレート変数として読み込まれます。 - global を指定すると、すべてのテンプレートでテンプレート変数として利用できます。 - - - - global - boolean - No - No - - 変数が親テンプレートから利用できるかどうか。scope=parent と同じです - (注: この属性は非推奨です。代わりに scope 属性を使用するようになっていますが、 - まだサポートされています。scope 属性を指定すると、この値は無視されます)。 - - - - - - - - {config_load} - - example.conf ファイル - - - - - テンプレート - - -{#pageTitle#|default:"No title"} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - 設定ファイル - には、セクションも含まれます。section - 属性を指定する事で、そのセクション内の変数を読み込む事ができます。 - セクションを指定したとしても、 - グローバルな設定変数は常に読み込まれることに注意しましょう。 - グローバル変数と同じ名前のセクション変数があった場合は、 - セクション変数の内容が優先されます(グローバル変数の値を上書きします)。 - - - - 設定ファイルの sections と組み込みのテンプレート関数 - {section} - には特に関連はありません。単にたまたま名前が同じであるというだけのことです。 - - - - セクションを指定した {config_load} 関数 - - -{#pageTitle#} - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - -設定ファイル変数の配列については -$config_overwrite -を参照してください。 - - - - 設定ファイル のページ、 - config 変数 のページ、 - $config_dir、 - get_config_vars() - および - config_load() - も参照してください。 - -
    - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-foreach.xml b/docs/ja/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index e75cc25d..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,459 +0,0 @@ - - - - - - {foreach},{foreachelse} - - {foreach} を使用して、通常の数値添字配列と同じように - 連想配列 をループします。 - {section} - のように、数値添字の配列のみ をループさせるということはありません。 - {foreach} の構文は - {section} - よりずっと簡単ですが、その代わりに 1つの配列 - しか扱えません。すべての {foreach} タグは、 - 終了タグ {/foreach} とペアである必要があります。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - from - array - Yes - n/a - ループに使用する配列 - - - item - string - Yes - n/a - 現在の要素を示す変数の名前 - - - key - string - No - n/a - 現在のキーを示す変数の名前 - - - name - string - No - n/a - foreach プロパティにアクセスするための foreach ループ名 - - - - - - - - - 必須の属性は fromitem です。 - - - - {foreach} ループの name - は、英数字とアンダースコアを使用して自由に命名できます。これは - PHP の変数 - と同じです。 - - - - {foreach} ループはネスト可能で、ネストした - {foreach} の name はお互いにユニークである必要があります。 - - - - from 属性は、通常は値の配列で、 - {foreach} のループ回数を決定するために使われます。 - - - - {foreachelse} は、 - from 変数の値が存在しない場合に実行されます。 - - - - {foreach} ループは、プロパティを操作する変数を自身で持っています。 - これらは次のように表されます。 - - {$smarty.foreach.name.property} - ここで、name は - name 属性の値となります。 - - - 注意 - name 属性が必要となるのは - {foreach} のプロパティにアクセスする必要がある場合のみです。 - これは {section} - の場合とは異なります。{foreach} のプロパティに対して - 定義されていない name でアクセスしてもエラーは発生しませんが、 - 結果は予測できない値になります。 - - - - - - {foreach} のプロパティには - index、 - iteration、 - first、 - last、 - show、 - total - があります。 - - - - - - <parameter>item</parameter> 属性 - -assign('myArray', $arr); -?> -]]> - - $myArray を順序なしリストで出力するテンプレート - - -{foreach from=$myArray item=foo} -
  • {$foo}
  • -{/foreach} - -]]> -
    - - 出力 - - - -
  • 1000
  • -
  • 1001
  • -
  • 1002
  • - -]]> -
    -
    - - - <parameter>item</parameter> および <parameter>key</parameter> 属性の説明 - - 'Tennis', 3 => 'Swimming', 8 => 'Coding'); -$smarty->assign('myArray', $arr); -?> -]]> - - $myArray を キー/値 のペアで出力するテンプレート。 - PHP の foreach と似ています。 - - -{foreach from=$myArray key=k item=v} -
  • {$k}: {$v}
  • -{/foreach} - -]]> -
    - - 出力 - - - -
  • 9: Tennis
  • -
  • 3: Swimming
  • -
  • 8: Coding
  • - -]]> -
    -
    - - - - {foreach} で連想配列の <parameter>item</parameter> 属性を指定する例 - - array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') - ); -$smarty->assign('items', $items_list); -?> -]]> - - $items と - $myId を url に出力するテンプレート - - -{foreach from=$items key=myId item=i} -
  • {$i.no}: {$i.label}
  • -{/foreach} - -]]> -
    - - 出力 - - - -
  • 2456: Salad
  • -
  • 4889: Cream
  • - -]]> - -
    - - - {foreach} で <parameter>item</parameter> と <parameter>key</parameter> をネストする例 - 配列を Smarty に割り当てます。key にはループする値のキーが含まれます。 - -assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - - $contact を出力するテンプレート - - - {foreach key=key item=item from=$contact} - {$key}: {$item}
    - {/foreach} -{/foreach} -]]> -
    - - 出力 - - - - phone: 1
    - fax: 2
    - cell: 3
    -
    - phone: 555-4444
    - fax: 555-3333
    - cell: 760-1234
    -]]> -
    -
    - - - データベースを使用する {foreachelse} の例 - データベース (PEAR や ADODB など) を検索する例で、クエリの結果を Smarty に割り当てます。 - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - 結果がない場合に、{foreachelse} - を使用して 見つかりません と表示するテンプレート - -{$con.name} - {$con.nick}

    -{foreachelse} - 検索結果が見つかりませんでした -{/foreach} -]]> - - - - - - .index - - index には、現在の配列のインデックスをゼロから数えた値が含まれます。 - - - <parameter>index</parameter> の例 - - - -{foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - タイトル - {/if} - {$i.label} -{/foreach} - -]]> - - - - - - .iteration - - iteration は現在のループが反復された回数を表示します。 - index - とは異なり、常に 1 から始まります。 - 各ループごとに 1 ずつ加算されます。 - - - <parameter>iteration</parameter> および <parameter>index</parameter> の例 - - - - - - - - - .first - - first は、現在の {foreach} - の反復が最初のものであるときに &true; となります。 - - - <parameter>first</parameter> プロパティの例 - - -{foreach from=$items key=myId item=i name=foo} - - {if $smarty.foreach.foo.first}最新{else}{$myId}{/if} - {$i.label} - -{/foreach} - -]]> - - - - - - .last - - last は、現在の {foreach} - の反復が最後のものであるときに &true; となります。 - - - <parameter>last</parameter> プロパティの例 - -{$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} - ... コンテンツ ... -{/foreach} -]]> -
    -
    -
    - - - .show - - show{foreach} のパラメータとして使用します。 - show は boolean 値です。 - &false; の場合は {foreach} は表示されず、 - もし {foreachelse} が存在すれば、それが代わりに表示されます。 - - - - - .total - - total には、 - {foreach} がループするトータル回数が含まれます。 - これは、{foreach} の内部だけではなく - ループを抜けた後でも使用できます。 - - - <parameter>total</parameter> プロパティの例 - - -{if $smarty.foreach.foo.last} -
    {$smarty.foreach.foo.total} items
    -{/if} -{foreachelse} - ... 別の内容 ... -{/foreach} -]]> -
    -
    - - - {section} - および $smarty.foreach - も参照してください。 - -
    -
    - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-if.xml b/docs/ja/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 8fba32b4..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - {if},{elseif},{else} - - Smarty における {if} ステートメントは、PHP の - if と同等の柔軟性を持っています。 - さらに、テンプレートエンジンのための機能をいくつか追加しています。 - 全ての {if} は、対応する - {/if} とペアである必要があります。{else} - と {elseif} も使用できます。 - ||or、 - &&and、 - is_array() など、PHP の条件演算子や関数はすべて利用可能です。 - - - $security - が有効な場合は、 $security_settings - の配列 IF_FUNCS に含まれる PHP の関数のみが利用可能となります。 - - - 以下は認識される条件演算子の一覧です。 - これらはスペースによって周りの要素から分離される必要があります。 - [] 内に記載された項目は任意である事に注意して下さい。 - "PHP 相当" には、PHP において当てはまるものが示されます。 - - - - - - - - - - - - 条件演算子 - 代替 - 構文例 - 意味 - PHP 相当 - - - - - == - eq - $a eq $b - 等しい - == - - - != - ne, neq - $a neq $b - 等しくない - != - - - > - gt - $a gt $b - より大きい - > - - - < - lt - $a lt $b - より小さい - < - - - >= - gte, ge - $a ge $b - 以上 - >= - - - <= - lte, le - $a le $b - 以下 - <= - - - === - - $a === 0 - 同一性のチェック - === - - - ! - not - not $a - 否定 (単項) - ! - - - % - mod - $a mod $b - 剰余 - % - - - is [not] div by - - $a is not div by 4 - 割り切れる - $a % $b == 0 - - - is [not] even - - $a is not even - 偶数である [ない] (単項) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - 偶数番目のグループである [ない] - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - 奇数である [ない] (単項) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - 奇数番目のグループである [ない] - ($a / $b) % 2 != 0 - - - - - - {if} ステートメント - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - - -{* PHP 関数を埋め込むことも可能 *} -{if count($var) gt 0} - ... -{/if} - -{* 配列のチェック *} -{if is_array($foo) } - ..... -{/if} - -{* null でないことのチェック *} -{if isset($foo) } - ..... -{/if} - - -{* 値が偶数か奇数か *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - - -{* 値が 4 で割り切れるかどうか *} -{if $var is div by 4} - ... -{/if} - - -{* - ふたつずつグループ化したときに、値が even であるかどうか - 0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - - - - - - {if} のその他の例 - - 0} - {* foreach ループを実行します *} -{/if} - ]]> - - - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-include-php.xml b/docs/ja/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 0770e6c4..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - {include_php} - - テクニカルノート - - {include_php} は Smarty ではほとんど推奨されていません。 - カスタムテンプレート関数を使用すれば、同等の機能を実現できます。 - {include_php} を使用する理由がもしあるとすれば、 - plugins/ - ディレクトリやアプリケーションのコードから PHP 関数を完全に隔離したい場合などです。 - 詳細は コンポーネント化したテンプレートの例 - を参照してください。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - file - string - Yes - n/a - インクルードする PHP ファイル名 - - - once - boolean - No - &true; - 同じ PHP ファイルが複数回インクルードされた場合に、一度だけインクルードするかどうか - - - assign - string - No - n/a - include_php の出力を格納する変数名 - - - - - - - {include_php} タグを使用して、PHP スクリプトをテンプレートにインクルードします。 - $security - が有効な場合は、PHP スクリプトは $trusted_dir - で指定されたディレクトリに存在する必要があります。{include_php} - タグには file 属性が必須で、 - ここにはインクルードする PHP ファイルへのパスを指定します。 - このパスは $trusted_dir - からの相対パスか絶対パスのいずれかとなります。 - - - デフォルトでは、PHPファイルはテンプレート内で複数回呼ばれても一度しかインクルードしません。 - once 属性によって毎回インクルードするべきかどうかを指定できます。 - この属性を &false; に設定すると、テンプレート内でインクルードの指示がある毎に - PHP スクリプトをインクルードします。 - - - オプションで assign 属性を渡すこともできます。 - これは、{include_php} の出力をブラウザに表示させる代わりに - 変数に格納したい場合に、その変数名を指定します。 - - - Smarty オブジェクトは、インクルードした PHP スクリプト内で - $this として使用可能です。 - - - {include_php} 関数 - load_nav.php ファイル - -query('select url, name from navigation order by name'); -$this->assign('navigation', $db->getRows()); - -?> -]]> - - - テンプレート - - -{$nav.name}
    -{/foreach} -]]> -
    -
    - - {include}、 - $security、 -$trusted_dir、 - {php}{capture}テンプレートリソース および コンポーネント化したテンプレート - も参照してください。 - -
    - diff --git a/docs/ja/designers/language-builtin-functions/language-function-include.xml b/docs/ja/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index bc70625e..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - {include} - - {include} タグを使用して、 - 現在のテンプレートに他のテンプレートをインクルードします。 - 現在のテンプレートにて利用可能なあらゆる変数は、 - インクルードされたテンプレートでも同じく利用可能です。 - - - - - {include} タグには、テンプレートリソースのパスを含んだ - file 属性を必ず指定する必要があります。 - - - - {include} の出力をブラウザに表示する代わりに変数に格納したい場合は、 - オプションの assign 属性にその変数名を定義します。 - {assign} - と同等です。 - - - - インクルードされたテンプレートに変数を渡すには、 - attributes - を使用します。インクルードされたテンプレートに明示的に渡された変数は、 - インクルードされたファイルのスコープでのみ有効となります。 - そのテンプレートに同じ名前の変数が存在する場合は、 - 渡された変数がそれをオーバーライドします。 - - - - 全ての割り当て変数の値は、インクルードされたテンプレートのスコープが閉じた後に元に戻ります。 - これは、インクルードされたテンプレート内で全ての変数を使用可能であるということです。 - しかし、インクルードされたテンプレート内での変数の変更は - {include} - の後でインクルードしている側のテンプレート内では見ることはできません。 - - - - $template_dir - ディレクトリ外にあるファイルを {include} するには、 - テンプレートリソース を指定します。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - file - string - Yes - n/a - インクルードするテンプレートファイル名 - - - assign - string - No - n/a - インクルードしたコンテンツの出力を格納する変数名 - - - [var ...] - [var type] - No - n/a - ローカルからテンプレートに渡す変数 - - - - - - - シンプルな {include} の例 - - - - {$title} - - -{include file='page_header.tpl'} - -{* ここにテンプレートの本体を記述します。変数 $tpl_name - はたとえば 'contact.tpl' などに置き換えられます。 -*} -{include file="$tpl_name.tpl"} - -{include file='page_footer.tpl'} - - -]]> - - - - - {include} に変数を渡す - - - - このテンプレートは、以下のような links.tpl をインクルードします。 - - -

    {$title}{/h3> -
      -{foreach from=$links item=l} -.. 何かを行います ... - - -]]> - - - - - - {include} と変数への割り当て - この例は、nav.tpl - の内容を変数 $navbar に割り当て、 - ページの最初と最後に出力させるものです。 - - - - {include file='nav.tpl' assign=navbar} - {include file='header.tpl' title='Smarty is cool'} - {$navbar} - {* テンプレートの本体をここへ記述します *} - {$navbar} - {include file='footer.tpl'} - -]]> - - - - - さまざまな {include} リソースの例 - - - - - - {include_php}、 - {insert}、 - {php}、 - テンプレートリソース および - コンポーネント化したテンプレート - も参照してください。 - - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-insert.xml b/docs/ja/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 1ef80935..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - {insert} - - {insert} タグは {include} - タグと似た動作をします。ただ {insert} - タグは、テンプレートの キャッシュ - が有効であってもキャッシュされません。 - テンプレートが呼び出されるたびに実行されます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - Yes - n/a - 呼び出すinsert関数の名前(insert_name) - - - assign - string - No - n/a - 出力を格納するテンプレート変数名 - - - script - string - No - n/a - insert関数を呼び出す前にインクルードされるPHPスクリプト名 - - - [var ...] - [var type] - No - n/a - insert関数に渡す変数 - - - - - - - - 例えば、ページの上部にバナーを表示するテンプレートを持っているとします。 - バナーにはHTML, images, flash等が混合して含まれます。 - したがってここに静的リンクを用いる事はできないので、 - バナーコンテンツをキャッシュの対象にしたくありません。 - そのためには、あらかじめ設定ファイルから取得した #banner_location_id# - と #site_id# の値を渡し、バナーコンテンツを表示するために - {insert} タグを呼び出す必要があります。 - - - {insert} 関数 - -{* バナーを取得する例 *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - この例では、name 属性に getBanner を指定し、 - パラメータに #banner_location_id# と #site_id# を渡しています。Smarty は - PHP アプリケーション内の insert_getBanner() 関数を探し、第1パラメータとして - #banner_location_id# と #site_id# の値を格納した連想配列を渡します。 - アプリケーションにおける全ての {insert} 関数の名前は、 - ネームスペースの衝突を避けるために "insert_" によって始まる必要があります。 - insert_getBanner() 関数は、渡された値によって何らかの処理を行い、結果を返すべきです。 - この結果はテンプレートの {insert} タグに置換されて表示されます。 - この例では、Smarty は insert_getBanner(array("lid" => "12345","sid" => "67890")); - という関数を呼び出し、返された結果が {insert} タグの位置に表示されます。 - - - - assign 属性を指定すると、 - {insert} タグの出力は - ブラウザに表示される代わりにテンプレート変数に格納されます。 - - - 出力をテンプレート変数に格納するのは、 - キャッシュ - が有効な状態ではあまり有益ではありません。 - - - - - - script 属性を与えると、この PHP スクリプトは - {insert} 関数が実行される前に - (一度だけ) インクルードされます。 - これは、insert 関数がまだ存在しないかもしれない場合や、insert - 関数の動作のために PHP スクリプトを最初にインクルードする必要がある場合に指定します。 - - - パスには、絶対パスかあるいは - $trusted_dir - からの相対パスを指定します。$security - が有効な場合は、スクリプトは - $trusted_dir - 内にある必要があります。 - - - - Smarty オブジェクトは第2パラメータとして渡されます。 - これにより、{insert} - 関数から Smarty オブジェクトの情報の参照や修正が可能です。 - - - テクニカルノート - - テンプレートには、キャッシュの対象外となる部分を持たせる事が可能です。 - キャッシュ が有効の場合でも、 - {insert} タグによる出力はキャッシュされません。 - そのページが呼び出される度に動的に実行されます。 - この動作は、バナー・投票・天気予報・検索結果・ユーザーフィードバックエリア等に向いています。 - - - - {include} - も参照してください。 - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-ldelim.xml b/docs/ja/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 0c8212c5..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - {ldelim},{rdelim} - - {ldelim} および {rdelim} - は、テンプレートのデリミタを - エスケープ します。 - デフォルトでは、これは { - および } となります。 - Javascript や CSS のようなテキストのあつまりをエスケープするためには - {literal}{/literal} - を使用することもできます。{$smarty.ldelim} - も参照してください。 - - - {ldelim}, {rdelim} - - - - - 上の例の出力 - - - - - Javascript を使用する別の例 - - -function foo() {ldelim} - ... コード ... -{rdelim} - -]]> - - - 出力 - - - -function foo() { - .... コード ... -} - -]]> - - - - - - 別の Javascript の例 - - - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} - -Click here for Server Info -]]> - - - - - {literal} - および Smarty の構文解析を回避 - も参照してください。 - - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-literal.xml b/docs/ja/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index feebacfa..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - {literal} - - {literal} タグに囲まれたデータのブロックは、 - リテラルとして認識されます。これは一般的に、Javascript やスタイルシートなどで - 中括弧がテンプレートの - デリミタ - として解釈されるとまずい場合に使用します。 - {literal}{/literal} タブの内部は解釈されず、 - そのままで表示されます。{literal} - ブロック内にテンプレートタグを含める必要がある場合は、代わりに - {ldelim}{rdelim} - で個々のデリミタをエスケープしてください。 - - - - {literal} タグ - - - - -{/literal} -]]> - - - - - Javascript の関数の例 - - -{literal} -function myJsFunction(name, ip){ - alert("The server name\n" + name + "\n" + ip); -} -{/literal} - -Click here for the Server Info - ]]> - - - - - テンプレート内での css style - - -{literal} -/* this is an intersting idea for this section */ -.madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; -} -{/literal} - -
      With smarty you can embed CSS in the template
      -]]> -
      -
      - - - {ldelim} {rdelim} - および - Smarty の構文解析を回避 - のページも参照してください。 - -
      - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-php.xml b/docs/ja/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 9902e2df..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - {php} - - {php} タグで、PHP コードを直接テンプレートに埋め込むことができます。 - $php_handling - の設定にかかわらず、これはエスケープされません。 - このタグは上級ユーザのためのものなので通常は必要とされません。 - - -テクニカルノート - - {php} ブロック内の PHP 変数にアクセスするには、PHP の - global - キーワードを使う必要があります。 - - - - - {php} タグ内での PHP コード - - - - - - - - {php} タグで global を使用して変数を代入する - -assign('varX','Toffee'); -{/php} -{* 変数を出力します *} -{$varX} is my fav ice cream :-) -]]> - - - - - $php_handling、 - {include_php}、 - {include}、 - {insert} - および - コンポーネント化したテンプレート - も参照してください。 - - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-section.xml b/docs/ja/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 1abe5a2b..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,837 +0,0 @@ - - - - - - {section},{sectionelse} - - {section} は、 - データが格納された数値添字配列 をループするために使用します。 - これは、{foreach} - が 1つの連想配列 - をループするのとは異なります。すべての {section} - タグは、終了タグ {/section} とペアになっている必要があります。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - Yes - n/a - セクション名 - - - loop - mixed - Yes - n/a - ループ回数を決定する値 - - - start - integer - No - 0 - ループを開始するインデックス位置。この値が負の場合は、 - 配列の最後尾から開始位置が算出されます。 - 例えばループ配列に7つの値があり、そしてstartが-2であるならば、 - 開始インデックスは5になります。 - ループ配列の長さを超えるような無効な値は、 - 自動的に最も近い値に切り捨てられます。 - - - step - integer - No - 1 - - ループインデックスを進めるために使われるステップ値。 - 例えばstep=2なら、インデックスは0, 2, 4をループします。 - stepの値が負の場合は、配列の前方に向かって進みます。 - - - - max - integer - No - n/a - セクションがループする最大の回数 - - - show - boolean - No - &true; - このセクションを表示するかどうか - - - - - - - - 必須の属性は nameloop - です。 - - - - {section}name は、 - 英数字とアンダースコアを使って自由に命名できます。これは - PHP の変数 - と同様です。 - - - - {section} はネスト可能で、その場合の - {section} の名前はお互いにユニークである必要があります。 - - - - loop 属性で指定されたループ変数 - (たいていは配列) は、{section} - のループ回数を決定するために使用されます。 - loop の値として、整数値を渡すこともできます。 - - - - {section} 内で値を表示するには、 - 変数名に続けてブラケット {} で囲んだセクション名を指定します。 - - - - ループ変数に値が存在しない場合は - {sectionelse} が実行されます。 - - - - {section} には、そのプロパティを操作するための - 自身の変数があります。これらには - {$smarty.section.name.property} - としてアクセスできます。name は、name - 属性の値です。 - - - - {section} のプロパティには、 - index、 - index_prev、 - index_next、 - iteration、 - first、 - last、 - rownum、 - loop、 - show、 - total - があります。 - - - - - {section} でのシンプルな配列のループ - -配列を Smarty に assign() します。 - - -assign('custid',$data); -?> -]]> - -配列を出力するテンプレート - - -{/section} -
      -{* $custid 配列のすべての値を逆順に表示します *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
      -{/section} -]]> -
      - - 上の例の出力 - - - -id: 1001
      -id: 1002
      -
      -id: 1002
      -id: 1001
      -id: 1000
      -]]> -
      -
      - - - - {section} で配列を割り当てない例 - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - 上の例の出力 - - - -20 18 16 14 12 10 -]]> - - - - - - {section} の名前 - {section}name - は自由につけることができます。PHP - の変数 を参照してください。これは、{section} - 内のデータを参照する際に使用します。 - - - - - - - - {section} での連想配列のループ - これは、データの連想配列を - {section} で出力する例です。 - 次に示すのは、配列 $contacts - を Smarty に渡す PHP スクリプトです。 - - 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); -?> -]]> - - -$contacts を出力するテンプレート - - - name: {$contacts[customer].name}
      - home: {$contacts[customer].home}
      - cell: {$contacts[customer].cell}
      - e-mail: {$contacts[customer].email} -

      -{/section} -]]> -
      - - 上の例の出力 - - - - name: John Smith
      - home: 555-555-5555
      - cell: 666-555-5555
      - e-mail: john@myexample.com -

      -

      - name: Jack Jones
      - home phone: 777-555-5555
      - cell phone: 888-555-5555
      - e-mail: jack@myexample.com -

      -

      - name: Jane Munson
      - home phone: 000-555-5555
      - cell phone: 123456
      - e-mail: jane@myexample.com -

      -]]> -
      -
      - - - {section} での <varname>loop</varname> 変数の使用 - この例では、$custid$name - および $address にはすべて配列が割り当てられ、 - その要素数は同じであるものとします。まず、Smarty に配列を割り当てる - PHP スクリプトです。 - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 Abbey road', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> - -loop 変数は、ループの回数を決定するためにのみ使用します。 - {section} 内ではあらゆるテンプレート変数にアクセス可能です。 - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]} -

      -{/section} -]]> -
      - - 上の例の出力 - - - - id: 1000
      - name: John Smith
      - address: 253 Abbey road -

      -

      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln -

      -

      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st -

      -]]> -
      -
      - - - - - ネストした {section} - - {section} は無制限にネスト可能です。{section} をネストすることで、 - 多次元配列のような複雑なデータ構造にアクセスすることが可能です。 - これは、配列を割り当てる .php スクリプトの例です。 - - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); - -?> - ]]> - -このテンプレートでは、$contact_type[customer] - は現在の顧客の連絡手段を格納した配列となります。 - - - id: {$custid[customer]}
      - name: {$name[customer]}
      - address: {$address[customer]}
      - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
      - {/section} -{/section} -]]> -
      - - 上の例の出力。 - - - - id: 1000
      - name: John Smith
      - address: 253 N 45th
      - home phone: 555-555-5555
      - cell phone: 666-555-5555
      - e-mail: john@myexample.com
      -
      - id: 1001
      - name: Jack Jones
      - address: 417 Mulberry ln
      - home phone: 123-456-4
      - web: www.example.com
      -
      - id: 1002
      - name: Jane Munson
      - address: 5605 apple st
      - cell phone: 0457878
      -]]> -
      -
      - - - -データベースを使用する {sectionelse} の例 - データベース (ADODB や PEAR) の検索結果を Smarty に格納します。 - - assign('contacts', $db->getAll($sql)); -?> -]]> - -データベースの結果を HTML のテーブルに出力するテンプレート - - - Name>HomeCellEmail -{section name=co loop=$contacts} - - view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{sectionelse} - No items found -{/section} - -]]> - - - - - - .index - - index は現在のループインデックスを表示します。 - 0(又は start 属性の値)から始まり、 - 1(又は step 属性の値)ずつ増加します。 - - - テクニカルノート - - stepstart - 属性が変更されていない場合は、セクションのプロパティ iteration - と同じ動作をします。ただ、1 ではなく 0 から始まるという点が異なります。 - - - -{section} の <varname>index</varname> プロパティ - -ちなみに…… -$custid[customer.index] と -$custid[customer] は同じ意味です。 - - - - -{/section} -]]> - - - 上の例の出力 - - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - - - .index_prev - - index_prev - は前回のループインデックスを表示します。最初のループでは-1がセットされます。 - - - - - .index_next - - index_next - は次回のループインデックスを表示します。 - ループの最後でもやはり現在のインデックスの次回の値を返します - (step 属性の設定に従います)。 - - - -<varname>index</varname>、<varname>index_next</varname> - および <varname>index_prev</varname> プロパティ - -assign('rows',$data); -?> -]]> - -上の配列をテーブルに出力するテンプレート - - - - indexid - index_prevprev_id - index_nextnext_id - -{section name=row loop=$rows} - - {$smarty.section.row.index}{$rows[row]} - {$smarty.section.row.index_prev}{$rows[row.index_prev]} - {$smarty.section.row.index_next}{$rows[row.index_next]} - -{/section} - -]]> - - - 上の例の出力するテーブルは次のようになります。 - - - - - - - - - - .iteration - - iteration は現在のループが反復された回数を表示します。 - - - - index - プロパティとは異なり、これは {section} のプロパティ - startstep および max - の影響を受けません。 - iteration も 1 から始まります。これは - index が 0 から始まるのとは異なります。rownum - は iteration の別名で、全く同じ働きをします。 - - - -セクションのプロパティ <varname>iteration</varname> - -assign('arr',$id); -?> -]]> - -$arr 配列の要素を -step=2 で出力するテンプレート - - -{/section} -]]> - - - 上の例の出力 - - - -iteration=2 index=7 id=3007
      -iteration=3 index=9 id=3009
      -iteration=4 index=11 id=3011
      -iteration=5 index=13 id=3013
      -iteration=6 index=15 id=3015
      -]]> -
      - - もうひとつの例は、iteration プロパティを使用して - 5 行おきにテーブルのヘッダ部を出力します。 - {if} - 関数を mod 演算子とともに使用します。 - - - -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} -  Name>HomeCellEmail - {/if} - -
      view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{/section} - -]]> - - - - - - - .first - - first は、現在 - {section} の一回目の処理を行っている場合に - &true; となります。 - - - - - - .last - - last は、現在 - {section} の最後の処理を行っている場合に - &true; となります。 - - - {section} プロパティ <varname>first</varname> と <varname>last</varname> - - この例は $customers 配列をループし、 - ループの最初でヘッダブロック、そしてループの最後でフッタブロックを出力します。 - total - プロパティも使用します。 - - - - idcustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} customers - - {/if} -{/section} -]]> - - - - - - - .rownum - - rownum は現在のループが反復された回数を表示します(1から開始)。 - これは iteration - の別名で、同じ動作をします。 - - - - - .loop - - loop は、この - {section} ループの最後のインデックス番号を表示します。 - {section} の内部だけでなく、外部で使用することもできます。 - - - {section} プロパティ <varname>loop</varname> - - -{/section} -There are {$smarty.section.customer.loop} customers shown above. -]]> - - - 上の例の出力 - - - -1 id: 1001
      -2 id: 1002
      -There are 3 customers shown above. -]]> -
      -
      -
      - - - .show - - show は、セクションのパラメータとして使用する - boolean 値です。&false; の場合はこのセクションは表示されません。 - {sectionelse} があれば、それが代わりに表示されます。 - - - <varname>show</varname> プロパティ - Boolean $show_customer_info を PHP - アプリケーションから渡し、このセクションを表示するかどうかを調整します。 - - -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - - - 上の例の出力 - - - -2 id: 1001
      -3 id: 1002
      - -the section was shown. -]]> -
      -
      -
      - - - .total - - total{section} - がループしたトータル回数を表示します。これは - {section} の内部だけでなく外部でも使うことができます。 - - - <varname>total</varname> プロパティの例 - - -{/section} - There are {$smarty.section.customer.total} customers shown above. -]]> - - - - {foreach} - および - $smarty.section - も参照してください。 - - -
      - - diff --git a/docs/ja/designers/language-builtin-functions/language-function-strip.xml b/docs/ja/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 576d9c0d..00000000 --- a/docs/ja/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - {strip} - - Webデザイナーの方は、HTML コードに含まれたホワイトスペースとキャリッジリターンが - ブラウザの表示に影響を及ぼす問題に何度も遭遇した事があると思います。 - 問題を回避するには、テンプレートの全てのタグを連ねて記述する必要があります。 - しかしこれでは大変読みづらく管理しにくいテンプレートになってしまいます。 - - - {strip}{/strip} タグに囲まれたコンテンツは、 - ブラウザに表示される前に、各行の先頭と終端にある - 余分なホワイトスペースやキャリッジリターンが除去されます。 - これによってテンプレートは可読性を維持し、 - 余分なホワイトスペースによって問題を引き起こす心配もありません。 - - - - {strip}{/strip} はテンプレート変数の内容に影響しません。 - 詳細は strip 修飾子 - を参照してください。 - - - - {strip} タグ - - - - - - This is a test - - - - -{/strip} -]]> - - - 上の例の出力 - - -strip - 修飾子も参照してください。 - - - - - diff --git a/docs/ja/designers/language-combining-modifiers.xml b/docs/ja/designers/language-combining-modifiers.xml deleted file mode 100644 index 1bcae48b..00000000 --- a/docs/ja/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - 修飾子の連結 - - 変数には複数の修飾子を適用できます。 - それらは左から右に連結された順に適用されます。 - 各修飾子は、| (パイプ) キャラクタで連結しなければなりません。 - - - 修飾子の連結 - -assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); - -?> -]]> - - -テンプレート - - - - - - 出力 - - - - - - - - diff --git a/docs/ja/designers/language-custom-functions.xml b/docs/ja/designers/language-custom-functions.xml deleted file mode 100644 index 7812a163..00000000 --- a/docs/ja/designers/language-custom-functions.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - カスタム関数 - - Smarty は、テンプレートで使用可能なカスタム関数をいくつか実装しています。 - - - &designers.language-custom-functions.language-function-assign; - &designers.language-custom-functions.language-function-counter; - &designers.language-custom-functions.language-function-cycle; - &designers.language-custom-functions.language-function-debug; - &designers.language-custom-functions.language-function-eval; - &designers.language-custom-functions.language-function-fetch; - &designers.language-custom-functions.language-function-html-checkboxes; - &designers.language-custom-functions.language-function-html-image; - &designers.language-custom-functions.language-function-html-options; - &designers.language-custom-functions.language-function-html-radios; - &designers.language-custom-functions.language-function-html-select-date; - &designers.language-custom-functions.language-function-html-select-time; - &designers.language-custom-functions.language-function-html-table; - &designers.language-custom-functions.language-function-mailto; - &designers.language-custom-functions.language-function-math; - &designers.language-custom-functions.language-function-popup; - &designers.language-custom-functions.language-function-popup-init; - &designers.language-custom-functions.language-function-textformat; - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-assign.xml b/docs/ja/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 250736dc..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - {assign} - - {assign} は、テンプレート変数を - テンプレートの実行時に - 割り当てます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - var - string - Yes - n/a - 割り当てられるテンプレート変数の名前 - - - value - string - Yes - n/a - テンプレート変数に割り当てる値 - - - - - - - {assign} - - - - - 上の例の出力 - - - - - - - - {assign} での演算子の使用 -この複雑な例では、変数を `バッククォート` で囲む必要があります。 - - - - - - - - PHP スクリプトからの {assign} 変数へのアクセス - - PHP スクリプトから {assign} 変数にアクセスするには - - get_template_vars() - を使用します。これは、変数 $foo - を作成するテンプレートです。 - - - - -テンプレート変数は、以下のスクリプトのように -テンプレートの実行後か実行中にしか利用できません。 - - -get_template_vars('foo'); - -// テンプレートを変数に格納します。 -$whole_page = $smarty->fetch('index.tpl'); - -// これは 'smarty' と出力します。テンプレートが実行されたからです。 -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// これは 'Even smarter' を出力します。 -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - - 次の関数も、オプションで - テンプレート変数へ割り当てることができます。 - - - - {capture}、 - {include}、 - {include_php}、 - {insert}、 - {counter}、 - {cycle}、 - {eval}、 - {fetch}、 - {math}、 - {textformat} - - - - assign() - および - get_template_vars() - も参照してください。 - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-counter.xml b/docs/ja/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 9f312818..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - {counter} - - {counter} はカウントした回数を表示します。 - {counter} は各反復の回数を記憶します。 - 数字、カウントの間隔や進行方向、値の表示/非表示などを設定できます。 - また、各々にユニークなname属性を与える事によって、 - 同時に複数のカウンタを実行する事ができます。name属性を指定しなかった場合は、 - default を使用します。 - - - assign 属性を指定した場合は、 - {counter} 関数の出力がこのテンプレート変数に格納され、 - テンプレートには出力されません。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - No - default - カウンタの名前 - - - start - number - No - 1 - カウントを開始する数 - - - skip - number - No - 1 - カウントの間隔 - - - direction - string - No - up - カウントの進行方向 (up/down) - - - print - boolean - No - &true; - 値を表示するかどうか - - - assign - string - No - n/a - 出力が割り当てられるテンプレート変数 - - - - - - - {counter} - - -{counter}
      -{counter}
      -{counter}
      -]]> -
      - - 出力 - - - -2
      -4
      -6
      -]]> -
      -
      -
      - diff --git a/docs/ja/designers/language-custom-functions/language-function-cycle.xml b/docs/ja/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 6d953ec6..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - {cycle} - - {cycle} は、値の設定に従って循環します。 - テーブル内のセルの色を交互に2色もしくはそれ以上の色に変更したり、 - 配列の値を循環するような事が簡単に行えます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - No - default - サイクルの名前 - - - values - mixed - Yes - N/A - カンマを境界としたリスト (delimiter属性を参照) - または値の配列のどちらかによって指定する、循環される値 - - - - print - boolean - No - &true; - 値を表示するかどうか - - - advance - boolean - No - &true; - 次の値に進むかどうか - - - delimiter - string - No - , - value 属性で使用するためのデリミタ - - - assign - string - No - n/a - 出力が割り当てられるテンプレート変数 - - - reset - boolean - No - &false; - 次の値に進まずに、最初の値をセットする。 - - - - - - - - name 属性を渡す事によって、テンプレート内で - 1つ以上の値のセットを通して {cycle} を行えます。 - 各 {cycle} にはユニークな name - を与えてください。 - - - print 属性に &false; をセットする事で、 - 強制的に現在の値を表示しない事が可能です。これは、 - こっそり値をスキップするのに役に立つでしょう。 - - - advance 属性は値を繰り返すために使われます。 - &false; をセットした時に次の {cycle} が呼ばれると、 - 同じ値を表示します。 - - - assign 属性を指定した場合は、 - {cycle} 関数の出力は - テンプレートに出力される代わりにテンプレート変数に割り当てられます。 - - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - 上のテンプレートの出力 - - - 1 - - - 2 - - - 3 - -]]> - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-debug.xml b/docs/ja/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 787cfb04..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - {debug} - - {debug} は、ページにデバッギングコンソールを出力します。 - これは、PHP スクリプトにおける debug - の設定に関係なく動作します。これはプログラムを実行した時、 - 使用されるテンプレートは表示せずに、割り当てられた変数のみを表示します。 - ですが、現在このテンプレートのスコープ内で有効な変数をすべて見る事ができます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - output - string - No - javascript - 出力タイプ。html又はjavascript - - - - - - - デバッギングコンソール - のページも参照してください。 - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-eval.xml b/docs/ja/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index eb1d9f27..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - {eval} - - {eval} は、与えられた変数をテンプレートとして評価します。 - テンプレート変数又はテンプレートタグを - 変数や設定ファイル内に埋め込むような用途に使われます。 - - - assign 属性が指定されると、 - {eval} 関数の出y録はこのテンプレート変数に割り当てられ、 - テンプレートに出力されることはありません。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - var - mixed - Yes - n/a - 評価される変数 (又は文字列) - - - assign - string - No - n/a - 出力が割り当てられるテンプレート変数 - - - - - - - テクニカルノート - - - - 評価される変数は、テンプレートと同じように扱われます。 - エスケープやセキュリティ機能も、テンプレートと同様になります。 - - - - 評価される変数はリクエスト毎にコンパイルされるので、 - コンパイルされた形式では保存されません。ですが、 - キャッシュ が有効に設定されている場合は、 - 残りのテンプレートの出力に関してはキャッシュされます。 - - - - - - - {eval} -設定ファイル setup.conf - - -emphend = -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - - - テンプレート - - - - - - 上のテンプレートの出力 - - -city. -You must supply a state. -]]> - - - - - もうひとつの {eval} の例 - これは、サーバ名 (大文字変換したもの) と IP を出力します。 - 割り当てられる変数 $str は、 - データベースのクエリから取得します。 - - assign('foo',$str); -?> - ]]> - - - テンプレート - - - - - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-fetch.xml b/docs/ja/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 5c226e70..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - {fetch} - - {fetch} は、ローカルシステムやhttp, ftpからファイルを取得し、 - コンテンツを表示します。 - - - - - ファイル名が http:// から始まる場合は、web - サイト上のページを取得して表示します。 - - - http リダイレクトはサポートしていません。 - 必要に応じて、最後のスラッシュをつけることを忘れないようにしましょう。 - - - - - - ファイル名が ftp:// で始まる場合は、 - ftp サーバからダウンロードしたファイルを表示します。 - - - - ローカルファイルの場合には、ファイルのフルパスあるいは - 実行する PHP スクリプトからの相対パスを指定する必要があります。 - - - テンプレートの - $security が有効になっており、 - ファイルをローカルファイルシステムから取得する場合、 - {fetch} は定義済みの - 安全なディレクトリ - のいずれかにあるファイルのみを受け付けます。 - - - - - - assign 属性を指定すると、 - {fetch} 関数の出力がこのテンプレート変数に割り当てられます。 - テンプレートには出力されません。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - file - string - Yes - n/a - 取得するファイル、http あるいは ftp のサイト - - - assign - string - No - n/a - 出力が割り当てられるテンプレート変数 - - - - - - - - {fetch} の例 - -{$weather} -{/if} -]]> - - - - {capture}、 - {eval}、 - {assign} - および - fetch() - も参照してください。 - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index 3d27c306..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - {html_checkboxes} - - {html_checkboxes} は、 - 提供されたデータから HTML チェックボックスグループを作成する - カスタム関数 - です。デフォルトで選択されているアイテムの指定もうまく配慮されます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - No - checkbox - チェックボックスリストの名前 - - - values - array - Yes (options属性を用いない場合) - n/a - チェックボックスボタンの値の配列 - - - output - array - Yes (options属性を用いない場合) - n/a - チェックボックスボタンの出力の配列 - - - selected - string/array - No - empty - あらかじめ選択されたチェックボックス要素群 - - - options - associative array - Yes (valuesとoutput属性を用いない場合) - n/a - values属性とoutput属性の連想配列 - - - separator - string - No - empty - 各チェックボックスアイテムを区分するための文字列 - - - assign - string - No - empty - チェックボックスのタグを出力せずに配列に格納する - - - labels - boolean - No - &true; - 出力に <label> タグを加える - - - - - - - - options を使用しない場合は、 - 必須の属性は values および - output となります。 - - - - 全ての出力は XHTML 準拠です。 - - - - 上の属性リストに無いパラメータが与えられた場合は、作成された各 - <input> タグの内側に名前/値のペアで表されます。 - - - - - {html_checkboxes} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - -テンプレート - - -'} -]]> - - - あるいは、このような PHP コードに対して - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - テンプレートはこのようになります。 - - -'} -]]> - - - どちらも、出力は次のようになります。 - - -Joe Schmoe
      - -
      -
      -
      -]]> -
      -
      - - - データベースの例 (PEAR あるいは ADODB) - - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, contact_type_id, contact ' - .'from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - データベースのクエリの出力 - -'} -]]> - - - - {html_radios} - および - {html_options} - も参照してください。 - -
      - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-image.xml b/docs/ja/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index a586b068..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - {html_image} - - {html_image} は、HTML の <img> - タグを作成する - カスタム関数 です。 - height 属性と width - 属性を省略した場合は、画像ファイルから自動的に算出します。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - file - string - Yes - n/a - 画像のパス・ファイル名 - - - height - string - No - 実際の画像の高さ - 画像を表示する高さ - - - width - string - No - 実際の画像の幅 - 画像を表示する幅 - - - basedir - string - no - web サーバのドキュメントルート - 相対パスの基準となるディレクトリ - - - alt - string - no - - 画像の代替テキスト - - - href - string - no - n/a - 画像にリンクする href の値 - - - path_prefix - string - no - n/a - 出力パスのプレフィックス - - - - - - - - basedir 属性は、画像の相対パスの基準となるベースディレクトリです。 - 指定しなかった場合は、web サーバのドキュメントルートである - $_ENV['DOCUMENT_ROOT'] を使用します。 - $security - が有効な場合は、画像のパスは - セキュアディレクトリ - 内になければなりません。 - - - - href は画像にリンクされた href の値です。 - これを指定すると、image タグの周りに - <a href="LINKVALUE"><a> - タグを配置します。 - - - - path_prefix には、任意で - 出力パスを指定できます。これは、画像を違うサーバに配置したい場合に有効です。 - - - - 前述の属性リストにないパラメータが与えられた場合は、作成された各 - <img> タグの内側に - 名前/値 のペアで表されます。 - - - - - テクニカルノート - - {html_image} は、画像を読み込んで幅と高さを取得するため、 - ディスクへのアクセスが必要です。テンプレートの キャッシュ - を使用しない場合は、{html_image} - ではなく静的に image タグを使用するほうがパフォーマンス的にお勧めです。 - - - - - {html_image} の例 - - - - - 上のテンプレートの出力 - - - - - -]]> - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-options.xml b/docs/ja/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 07c0ca35..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - {html_options} - - {html_options} は、HTML の - <select><option> グループにデータを代入して作成する - カスタム関数 です。 - デフォルトで選択されるアイテムも決定できます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - values - array - Yes (options属性を用いない場合) - n/a - ドロップダウンリストのvalue属性の配列 - - - output - array - Yes (options属性を用いない場合) - n/a - ドロップダウンリストの出力内容の配列 - - - selected - string/array - No - empty - あらかじめ選択されているオプション要素 - - - options - associative array - Yes (valuesとoutput属性を用いない場合) - n/a - キーがvalues属性、要素がoutput属性の連想配列 - - - name - string - No - empty - selectグループの名前 - - - - - - - - options を使用しない場合は、 - values および output - が必須となります。 - - - - - 任意である name 属性が与えられると、 - <select></select> タグが作成されます。 - それ以外の場合は <option> のリストのみを作成します。 - - - - 配列が渡された場合は HTML の <optgroup> - として扱われ、グループが表示されます。 - <optgroup> での再帰呼出もサポートしています。 - - - - 前述の属性リストに無いパラメータが与えられた場合は、 - 作成された各 <select> タグの内側に - 名前/値 のペアで表されます。任意の name - 属性が与えられない場合には、これらは無視されます。 - - - - すべての出力は XHTML に準拠しています。 - - - - - - <varname>options</varname> 属性での連想配列 - -assign('myOptions', array( - 1800 => 'Joe Schmoe', - 9904 => 'Jack Smith', - 2003 => 'Charlie Brown') - ); -$smarty->assign('mySelect', 9904); -?> -]]> - - - 以下のテンプレートはドロップダウンリストを作成します。 - name 属性が存在することで - <select> タグが作成されることに注意しましょう。 - - - - - - - 上の例の出力 - - - - - - - -]]> - - - - -<varname>values</varname> と -<varname>ouptut</varname> を個別の配列で指定したドロップダウン - -assign('cust_ids', array(56,92,13)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 92); -?> -]]> - - - 上の配列を次のテンプレートで出力します - (PHP の - count() 関数を修飾子として使用することで、 - select の大きさを設定していることに注意しましょう)。 - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - 上の例の出力 - - - - - - - - -]]> - - - - データベース (ADODB あるいは PEAR) の例 - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - -テンプレートは次のようになります。 -truncate -修飾子の使用法に注意しましょう。 - - - - - {html_options options=$contact_types|truncate:20 selected=$contact.type_id} - -]]> - - - - - <optgroup> を使用したドロップダウン - - 'Golf', 9 => 'Cricket',7 => 'Swim'); -$arr['Rest'] = array(3 => 'Sauna',1 => 'Massage'); -$smarty->assign('lookups', $arr); -$smarty->assign('fav', 7); -?> -]]> - - テンプレート - - - - - - - 出力 - - - - - - - - - - - - - -]]> - - - - - {html_checkboxes} - および - {html_radios} - も参照してください。 - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-radios.xml b/docs/ja/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index 6a46c0fb..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - {html_radios} - - {html_radios} は - HTML のラジオボタングループを作成する - カスタム関数 - です。デフォルトで選択されているアイテムの指定も考慮します。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - name - string - No - radio - ラジオリストの名前 - - - values - array - Yes (options属性を用いない場合) - n/a - ラジオボタンの値の配列 - - - output - array - Yes (options属性を用いない場合) - n/a - ラジオボタンの項目内容の配列 - - - selected - string - No - empty - あらかじめ選択されたラジオ要素 - - - options - associative array - Yes (valuesとoutput属性を用いない場合) - n/a - values属性とoutput属性の連想配列 - - - separator - string - No - empty - 各ラジオアイテムを区分するための文字列 - - - assign - string - No - empty - radio タグを配列に格納し、出力はしない - - - - - - - - options を使用しない場合は - values および - output が必須となります。 - - - - 全ての出力は XHTML に準拠しています。 - - - - 前述の属性リストに無いパラメータが与えられた場合は、 - 作成された各 <input> タグの内側に - 名前/値 のペアで表されます。 - - - - {html_radios} の最初の例 - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - テンプレート - - -'} - ]]> - - - - {html_radios} の二番目の例 - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - テンプレート - - -'} -]]> - - - どちらも、次のように出力します。 - - - -Joe Schmoe
      -
      -
      -
      -]]> -
      -
      - - {html_radios} - データベース (PEAR あるいは ADODB) の例 - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - データベースから割り当てた変数を、次のテンプレートで出力します。 - - -'} -]]> - - - - {html_checkboxes} - および {html_options} - も参照してください。 - -
      - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-select-date.xml b/docs/ja/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index 230d79dd..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - {html_select_date} - - {html_select_date} は、日付のドロップダウンリストを作成する - カスタム関数 です。 - 年・月・日のいずれか又は全てを表示する事が出来ます。 - 以下の属性リストに無いパラメータが与えられた場合は、 - 作成された年、月、日の各 <select> タグの内側に - 名前/値 のペアで表されます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - prefix - string - No - Date_ - name属性に付加する接頭辞 - - - time - timestamp/ YYYY-MM-DD - No - UNIXタイムスタンプ又はYYYY-MM-DDフォーマットによる現在の時間 - 使用する日付/時間 - - - start_year - string - No - 現在の年 - ドロップダウンリストの始めの年 - (年を表す数字又は現在の年からの相対年数(+/- N)) - - - end_year - string - No - start_yearと同じ - ドロップダウンリストの終わりの年 - (年を表す数字又は現在の年からの相対年数(+/- N)) - - - display_days - boolean - No - &true; - 日を表示するかどうか - - - display_months - boolean - No - &true; - 月を表示するかどうか - - - display_years - boolean - No - &true; - 年を表示するかどうか - - - month_format - string - No - %B - 月の表示フォーマット(strftime) - - - day_format - string - No - %02d - 日の出力のフォーマット(sprintf) - - - day_value_format - string - No - %d - 日の値のフォーマット (sprintf) - - - year_as_text - boolean - No - &false; - 年をテキストとして表示するかどうか - - - reverse_years - boolean - No - &false; - 年を逆順で表示する - - - field_array - string - No - null - - name属性が与えられた場合、結果の値を - name[Day],name[Month],name[Year]の形の連想配列にしてPHPに返す - - - - day_size - string - No - null - 日のselectタグにsize属性を追加 - - - month_size - string - No - null - 月のselectタグにsize属性を追加 - - - year_size - string - No - null - 年のselectタグにsize属性を追加 - - - all_extra - string - No - null - 全てのselect/inputタグに拡張属性を追加 - - - day_extra - string - No - null - 日のselect/inputタグに拡張属性を追加 - - - month_extra - string - No - null - 月のselect/inputタグに拡張属性を追加 - - - year_extra - string - No - null - 年のselect/inputタグに拡張属性を追加 - - - field_order - string - No - MDY - フィールドを表示する順序 - - - field_separator - string - No - \n - フィールド間に表示する文字列 - - - month_value_format - string - No - %m - strftime() フォーマットによる月の値(デフォルトは%m) - - - year_empty - string - No - null - - 年のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 のvalueを持たせます。 - 例えば、セレクトボックスに 年を選択して下さい と表示させる時に便利です。 - 年を選択しないことを示唆するのに、time属性に対して -MM-DD - という値が指定できることに注意してください。 - - - month_empty - string - No - null - - 月のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 のvalueを持たせます。月を選択しないことを示唆するのに、 - time属性に対して YYYY--DD という値が指定できることに注意してください。 - - - day_empty - string - No - null - - 日のセレクトボックスの最初の要素に、指定した文字列をlabelとして、 - 空文字 のvalueを持たせます。日を選択しないことを示唆するのに、 - time属性に対して YYYY-MM- という値が指定できることに注意してください。 - - - - - - - - 日付に関するヒント - のページに、{html_select_date} - の値をタイムスタンプに変換する便利な php 関数が紹介されています。 - - - - - {html_select_date} - テンプレートのコード - - - - - 出力 - - - - - - - ..... 省略 ..... - - - - - - -]]> - - - - - {html_select_date} の二番目の例 - - - - - 現在が西暦 2000 だとすると、出力は次のようになります。 - - - - - -.... 省略 .... - - - - -]]> - - - - {html_select_time}、 - date_format、 - $smarty.now - および 日付に関するヒント - も参照してください。 - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-select-time.xml b/docs/ja/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index fd9941cf..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - {html_select_time} - - {html_select_time} は、時間のドロップダウンリストを作成する - カスタム関数 です。 - 時・分・秒・am/pm のいずれか又は全てを表示する事が出来ます。 - - - time 属性にはUNIXタイムスタンプや - YYYYMMDDHHMMSS 形式の文字列、PHP の - strtotime() - によって解析可能な文字列のような異なるフォーマットを持たせる事が出来ます。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - prefix - string - No - Time_ - name属性に付加する接頭辞 - - - time - timestamp - No - 現在の時間 - 使用する日付/時間 - - - display_hours - boolean - No - &true; - 時を表示するかどうか - - - display_minutes - boolean - No - &true; - 分を表示するかどうか - - - display_seconds - boolean - No - &true; - 秒を表示するかどうか - - - display_meridian - boolean - No - &true; - am/pm を表示するかどうか - - - use_24_hours - boolean - No - &true; - 24 時間クロックを用いるかどうか - - - minute_interval - integer - No - 1 - ドロップダウンリストの分間隔 - - - second_interval - integer - No - 1 - ドロップダウンリストの秒間隔 - - - field_array - string - No - n/a - 結果の値をこの名前の配列に渡して出力 - - - all_extra - string - No - null - 全てのselect/inputタグに拡張属性を追加 - - - hour_extra - string - No - null - 時間のselect/inputタグに拡張属性を追加 - - - minute_extra - string - No - null - 分のselect/inputタグに拡張属性を追加 - - - second_extra - string - No - null - 秒のselect/inputタグに拡張属性を追加 - - - meridian_extra - string - No - null - am/pmのselect/inputタグに拡張属性を追加 - - - - - - - {html_select_time} - - - - - 現在時刻が午前 9 時 20 分 23 秒だとすると、このテンプレートの出力は次のようになります。 - - - - - -... 省略 .... - - - -... 省略 .... - - - - - - -]]> - - - - $smarty.now、 - {html_select_date} - および 日付に関するヒントのページ - も参照してください。 - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-html-table.xml b/docs/ja/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 91b98e33..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - {html_table} - - {html_table} は、HTML の - <table> にデータの配列を出力する - カスタム関数 です。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - loop - array - Yes - n/a - ループに用いるデータ配列 - - - cols - mixed - No - 3 - - テーブルのカラム数。cols属性は空であるがrows属性が与えられたという場合、 - colsの数は、すべての要素を表示するのに事足りるcolsが表示されるように - rowsの数と要素の数によって計算されます。 - rowsとcolsの両方が空だった場合、 colsのデフォルトは 3 として計算は省かれます。 - リストあるいは配列を渡すと、そのリストあるいは配列の要素数がカラム数となります。 - - - - rows - integer - No - empty - - テーブルの行数。rows属性は空であるがcols属性が与えられたという場合、 - rowsの数は、すべての要素を表示するのに事足りるrowsが表示されるように - colsの数と要素の数によって計算されます。 - - - - inner - string - No - cols - - ループ配列から参照される連続要素の進行方向。 - cols なら要素が列方向へ、 - rows なら要素が行方向へ記述されることを意味します。 - - - - caption - string - No - empty - テーブルの <caption> - 要素に使用する文字列 - - - table_attr - string - No - border="1" - <table> タグの属性 - - - th_attr - string - No - empty - <th> タグの属性 - (配列は循環します) - - - tr_attr - string - No - empty - <tr> タグの属性 - (配列は循環します) - - - td_attr - string - No - empty - <td> タグの属性 - (配列は循環します) - - - trailpad - string - No - &nbsp; - 行の最後に余ったセルがあればそれらを埋めるのに用いられる値 - - - hdir - string - No - right - - 各行の表示される方向。有効な値: - right (左から右へ)、 - left (右から左へ) - - - - vdir - string - No - down - - 各カラムの表示される方向。有効な値: - down (上から下へ)、 - up (下から上へ) - - - - - - - - - cols 属性は、テーブルのカラム数を定義します。 - - - - table_attrtr_attr - および td_attr の値は、それぞれ - <table><tr> - および <td> タグの属性を表します。 - - - - tr_attrtd_attr - が配列の場合は、循環して処理します。 - - - - trailpad は、テーブルの最後の行でセルが余った場合に - そこを埋める値として使用します。 - - - - - {html_table} - -assign( 'data', array(1,2,3,4,5,6,7,8,9) ); -$smarty->assign( 'tr', array('bgcolor="#eeeeee"','bgcolor="#dddddd"') ); -$smarty->display('index.tpl'); -?> -]]> - - PHP から割り当てられた変数の内容を、三通りの方法で出力します。 - それぞれ、テンプレートの後に出力結果を続けます。 - - - - -123 -456 -789 - - - - -{**** 例 2 ****} -{html_table loop=$data cols=4 table_attr='border="0"'} - - - - - - - -
      1234
      5678
      9   
      - - -{**** 例 3 ****} -{html_table loop=$data cols="first,second,third,fourth" tr_attr=$tr} - - - - - - - - - - - - -
      firstsecondthirdfourth
      1234
      5678
      9   
      -]]> -
      - -
      -
      - - diff --git a/docs/ja/designers/language-custom-functions/language-function-mailto.xml b/docs/ja/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index 54267b72..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - {mailto} - - {mailto} は、mailto: - リンクの作成とメールアドレスのエンコードを自動的に行います。 - メールアドレスをエンコードすることで、 - アドレス収集ソフトがあなたのサイトからメールアドレスを取得することを困難にします。 - - テクニカルノート - - Javascript がおそらく一番徹底したエンコードを行いますが、 - hexエンコードも使用する事が出来ます。 - - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - address - string - Yes - n/a - メールアドレス - - - text - string - No - n/a - 表示するテキスト。デフォルトではメールアドレス。 - - - encode - string - No - none - メールアドレスのエンコード方法。 - none、 - hexjavascript - あるいは javascript_charcode - のいずれか。 - - - cc - string - No - n/a - カーボンコピーにあたるメールアドレス。 複数の場合はカンマによって区切られる。 - - - - bcc - string - No - n/a - ブラインドカーボンコピーにあたるメールアドレス。 - 複数の場合はカンマによって区切られる。 - - - subject - string - No - n/a - メールの件名 - - - newsgroups - string - No - n/a - 投稿するニュースグループ。複数の場合はカンマによって区切られる。 - - - followupto - string - No - n/a - フォローアップするメールアドレス。複数の場合はカンマによって区切られる。 - - - extra - string - No - n/a - リンクする際に渡したい特別な情報(例えばスタイルシートクラス)。 - - - - - - - - {mailto} のサンプルと、その結果 - -me@example.com
      - -{mailto address="me@example.com" text="send me some mail"} -send me some mail - -{mailto address="me@example.com" encode="javascript"} - - -{mailto address="me@example.com" encode="hex"} -m&..snipped...#x6f;m - -{mailto address="me@example.com" subject="Hello to you!"} -me@example.com - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -me@example.com - -{mailto address="me@example.com" extra='class="email"'} - - -{mailto address="me@example.com" encode="javascript_charcode"} - -]]> - - - - escape、 - {textformat} - および - E-mail アドレスを混乱させる - も参照してください。 - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-math.xml b/docs/ja/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index 030b050f..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - {math} - - {math} を使用すると、 - テンプレートのデザイナーがテンプレート内で数学の計算を実行できます。 - - - - 式の中では、数値型のテンプレート変数を使用でき、結果はタグの位置に出力されます。 - - - - 式で使用する変数はパラメータとして渡します。 - これはテンプレート変数あるいは静的な値のいずれかとなります。 - - - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, - pi, pow, rand, round, sin, sqrt, srans および tan を使用できます。 - これらの詳細については、PHP の - 数学 関数のマニュアルを参照してください。 - - - - assign 属性を指定すると、 - {math} 関数の出力はテンプレート変数に格納され、 - テンプレートには出力されません。 - - - - - テクニカルノート - - {math} は PHP の - eval() - 関数を使用するのでパフォーマンス的にコストの高い関数です。 - PHP 内で math 関数を実行する事は、テンプレートで行うよりもはるかに効率的で、 - mathの計算がPHPで可能な場合はPHPで行い、結果をテンプレートに - assign() するようにしましょう。 - - {section} ループ内のような反復動作で - {math} 関数を呼び出す事は避けて下さい。 - - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - equation - string - Yes - n/a - 実行する式 - - - format - string - No - n/a - 結果の表示フォーマット (sprintf) - - - var - numeric - Yes - n/a - 式の変数に渡す値 - - - assign - string - No - n/a - 出力を割り当てるテンプレート変数 - - - [var ...] - numeric - Yes - n/a - 式の変数の値 - - - - - - - - {math} - - サンプル a: - - - - - - 上の例の出力 - - - - - - サンプル b: - - - - - - 上の例の出力 - - - - - - サンプル c: - - - - - - 上の例の出力 - - - - - - サンプル d: - - - - - - 上の例の出力 - - - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-popup-init.xml b/docs/ja/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index af854517..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - {popup_init} - - {popup} - は、ポップアップウィンドウ用のライブラリである - overLib と統合しています。 - これは、ヘルプウィンドウやツールチップといった状況依存の情報を表示するために使用します。 - - - - - {popup_init} は、 - {popup} 関数を使用する予定のページ内で - 一度だけ 呼び出す必要があります。呼び出す場所としては - <head> タグの中がお勧めです。 - - - - パスは、実行するスクリプトの場所からの相対パスか、あるいは完全修飾形式のパスとなります。 - テンプレートからの相対パスではありません。 - - - - overLib の作者は - Erik Bosrup で、ホームページ/ダウンロード先は - &url.overLib; です。 - - - - - {popup_init} - - -{* popup_init は、ページの先頭で一度だけ呼ばれる必要があります。 *} -{popup_init src='javascripts/overlib/overlib.js'} - -{* 完全修飾形式の url の例 *} -{popup_init src='http://myserver.org/my_js_libs/overlib/overlib.js'} - - -// 最初の例の出力 - - - - -]]> - - - - -XHTML の検証 -{popup_init} は -strict な検証を行いません。strict で検証すると -document type does not allow element "div" here; -というエラーが出るでしょう -(<div> タグを <head> -の中で使用しているからです)。 - -つまり、<script> タグと -<div> タグを手動で追加する必要があります。 - - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-popup.xml b/docs/ja/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f80ffad2..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - {popup} - - {popup} を使用して、Javascript のポップアップウィンドウを作成します。 - - {popup_init} は、この動作の最初に呼び出される必要があります。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - text - string - Yes - n/a - ポップアップウィンドウ中に表示するtext/html - - - trigger - string - No - onMouseOver - ポップアップウィンドウを起動するトリガー(onMouseOver又はonClick) - - - sticky - boolean - No - &false; - 閉じられるまでポップアップを待機させる - - - caption - string - No - n/a - タイトルにセットする見出し - - - fgcolor - string - No - n/a - ポップアップボックスの内部の色 - - - bgcolor - string - No - n/a - ポップアップボックスの枠線の色 - - - textcolor - string - No - n/a - ポップアップボックス内部のテキストの色 - - - capcolor - string - No - n/a - ポップアップボックスの見出しのテキストの色 - - - closecolor - string - No - n/a - closeテキストの色 - - - textfont - string - No - n/a - メインテキストで使用されるフォントの種類 - - - captionfont - string - No - n/a - 見出しで使用されるフォント - - - closefont - string - No - n/a - Close テキストのフォント - - - textsize - string - No - n/a - メインテキストのフォントサイズ - - - captionsize - string - No - n/a - 見出しテキストのフォントサイズ - - - closesize - string - No - n/a - Close テキストのフォントサイズ - - - width - integer - No - n/a - ボックスの幅 - - - height - integer - No - n/a - ボックスの高さ - - - left - boolean - No - &false; - ポップアップをマウスの左側に表示 - - - right - boolean - No - &false; - ポップアップをマウスの右側に表示 - - - center - boolean - No - &false; - ポップアップをマウスの中央に表示 - - - above - boolean - No - &false; - ポップアップをマウスの上側に表示 - (注: heightがセットされている場合のみ有効) - - - below - boolean - No - &false; - ポップアップをマウスの下側に表示 - - - border - integer - No - n/a - ポップアップの枠線の幅 - - - offsetx - integer - No - n/a - ポインタから水平にどれくらい離れた位置にポップアップを表示するか - - - offsety - integer - No - n/a - ポインタから垂直にどれくらい離れた位置にポップアップを表示するか - - - fgbackground - url to image - No - n/a - ポップアップの内部に色の代わりに表示する画像 - - - bgbackground - url to image - No - n/a - ポップアップの境界に色の代わりに表示する画像。 - (注:bgcolor や colorを にしたほうがよい) - (注:Closeリンクを使用する場合、Netscape - ではテーブルのセルが再描写されて誤った表示になることがあります) - - - closetext - string - No - n/a - Close テキストの代替として使用する文字列 - - - noclose - boolean - No - n/a - sticky属性がtrueに設定されているポップアップの見出しに - Close テキストを表示しない - - - status - string - No - n/a - ブラウザのステータスバーに表示する文字列 - - - autostatus - boolean - No - n/a - ポップアップのテキストをステータスバーのテキストとして設定する - (注: statusの設定をオーバーライドします) - - - autostatuscap - string - No - n/a - ポップアップの見出しテキストをステータスバーのテキストとして設定する - (注: statusとautostatusの設定をオーバーライドします) - - - inarray - integer - No - n/a - overlib.js 内にある ol_array 配列中の指定したインデックスから、 - text を読み込む (このパラメータはtextの代わりに使用されます) - - - caparray - integer - No - n/a - overlib.js 内にある ol_caps 配列中の指定したインデックスから、 - caption を読み込む - - - capicon - url - No - n/a - ポップアップの見出しの前に画像を表示する - - - snapx - integer - No - n/a - ポップアップを水平グリッドにスナップする - - - snapy - integer - No - n/a - ポップアップを垂直グリッドにスナップする - - - fixx - integer - No - n/a - ポップアップの水平の位置を固定する - (注: 他の全ての水平の位置に関する属性はオーバーライドされます) - - - fixy - integer - No - n/a - ポップアップの垂直の位置を固定する - (注: 他の全ての垂直の位置に関する属性はオーバーライドされます) - - - background - url - No - n/a - テーブルボックスの背景の代わりに画像をセットする - - - padx - integer,integer - No - n/a - 水平のホワイトスペースによって背景画像の表示領域を大きくする - (注: 2つのパラメータが必要) - - - pady - integer,integer - No - n/a - 垂直のホワイトスペースによって背景画像の表示領域を大きくする - (注: 2つのパラメータが必要) - - - fullhtml - boolean - No - n/a - 背景画像上でHTMLを完全にコントロールする (HTML コードは - text 属性に記述する) - - - frame - string - No - n/a - 異なるフレームにおけるポップアップを操作する - (詳細はoverlibのサイトを参照) - - - function - string - No - n/a - 指定した Javascript 関数を呼び出し、 - その返り値をポップアップウィンドウに表示する - - - delay - integer - No - n/a - ポップアップをツールチップ風に表示する。 - 設定した遅延 (ミリ秒) の後にポップアップします。 - - - hauto - boolean - No - n/a - ポップアップがマウスの左側か右側のどちらに位置するべきかを自動的に決定する - - - vauto - boolean - No - n/a - ポップアップがマウスの上側か下側のどちらに位置するべきかを自動的に決定する - - - - - - - {popup} - -mypage - -{* popupのtextにhtmlやlinksを用いる事ができます *} -mypage - -{* テーブルのセルの上でポップアップします *} -{$part_number} -]]> - - - - {capture} - のページにもよい例があります。 - - {popup_init} - および - overLib のホームページも参照してください。 - - - - diff --git a/docs/ja/designers/language-custom-functions/language-function-textformat.xml b/docs/ja/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index e56d296e..00000000 --- a/docs/ja/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - {textformat} - - {textformat} は、 - テキストを整形するために用いる - ブロック関数 です。 - これは基本的に空白と特殊文字を取り除き、 - 境界でラップして行をインデントする事によって段落を整形します。 - - - 明示的にパラメータを設定したり、あらかじめ決められたスタイルを使用したりできます。現在、 - email のみが有効なスタイルです。 - - - - - - - - - - - - 属性名 - - 必須 - デフォルト - 概要 - - - - - style - string - No - n/a - あらかじめ決められたスタイル - - - indent - number - No - 0 - 各行をインデントするキャラクタ数 - - - indent_first - number - No - 0 - 最初の行をインデントするキャラクタ数 - - - indent_char - string - No - (半角スペース1個) - インデントするために使われるキャラクタ(又は文字列) - - - wrap - number - No - 80 - 各行をいくつのキャラクタ数でラップするか - - - wrap_char - string - No - \n - 各行を分割するためのキャラクタ(又は文字列) - - - wrap_cut - boolean - No - &false; - &true; ならば、単語の境界の代わりに正確なキャラクタ数で行を分割します。 - - - assign - string - No - n/a - 出力が割り当てられるテンプレート変数 - - - - - - - {textformat} - - - - - 上の例の出力 - - - - - - - - - 上の例の出力 - - - - - - - - - 上の例の出力 - - - - - - - - - 上の例の出力 - - - - - - - {strip} - および - wordwrap - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers.xml b/docs/ja/designers/language-modifiers.xml deleted file mode 100644 index cfc83707..00000000 --- a/docs/ja/designers/language-modifiers.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - - 変数の修飾子 - - 変数の修飾子は、 - 変数 や - カスタム関数 - や文字列を修飾して出力することができます。修飾子を適用するには、 - 変数名の後に | (パイプ) と修飾子の名前を指定します。 - また、修飾子はその動作に影響を及ぼす追加のパラメータを受け入れる場合もあります。 - そのパラメータは修飾子の後に続き、: (コロン) によって区切られます。 - また、すべての PHP 関数は、暗黙的に修飾子として使用でき - (あとで説明します)、修飾子は 組み合わせる - こともできます。 - - - 修飾子の例 - - -{html_options output=$myArray|upper|truncate:20} - -]]> - - - - - - 配列に対して修飾子を用いた場合は、その配列に格納された全ての値に影響を及ぼします。 - 配列全体を1つの値として作用させるには修飾子の先頭に @ - 記号をつける必要があります。 - - - {$articleTitle|@count} - これは、 - 配列 $articleTitle の要素数を、php の - count() - 関数を修飾子として用いて出力します。 - - - - - 修飾子は $plugins_dir - から自動的に読み込むか、明示的に register_modifier() - 関数で登録します。2つ目の方法は、PHP スクリプトと Smarty テンプレートで - 関数を共有する場合などに有用です。 - - - - 先ほどの例で示したように、全ての PHP 関数は暗黙で修飾子として使用する事ができます。 - しかし、修飾子としてPHP関数を使うには2つの小さな落とし穴があります。 - - 第1に、 たまに関数のパラメータの順序が望ましいものではなくります。 - $foo を - {"%2.f"|sprintf:$foo} でフォーマットすることはできますが、 - Smarty が提供する方式である {$foo|string_format:"%2.f"} - のほうがより直感的です。 - - - 第2に、 - $security が有効な場合、 - 修飾子として使用される全ての PHP 関数は - - $security_settings 配列の - MODIFIER_FUNCS 要素で - 信頼できるものとして定義される必要があります。 - - - - - - - register_modifier()、 - 修飾子の連結 - および - プラグインによる Smarty の拡張 - も参照してください。 - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-capitalize.xml b/docs/ja/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 4a8db398..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - capitalize - - 変数内の全ての単語の先頭を大文字で開始します。 - PHP の - ucwords() 関数と似ています。 - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - boolean - No - &false; - 数字とセットの単語を大文字にするかどうか - - - - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - lower - および - upper - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-cat.xml b/docs/ja/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 0e7b0730..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - cat - - 与えられた変数に値を連結します。 - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - No - empty - 与えられた変数にこの値を連結する - - - - - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-count-characters.xml b/docs/ja/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index a0ad3f48..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - count_characters - - 変数内の文字数をカウントします。 - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - boolean - No - &false; - 空白キャラクタをカウントに含めるかどうか - - - - - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - count_words、 - count_sentences および - count_paragraphs - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4c917e2b..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - count_paragraphs - - 変数内のパラグラフの数をカウントします。 - - - count_paragraphs - -assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - count_characters、 - count_sentences - および - count_words. - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 7fad717d..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - count_sentences - - 変数内のセンテンスの数をカウントします。 - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - count_characters、 - count_paragraphs - および - count_words. - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-count-words.xml b/docs/ja/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 0f4356e7..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - count_words - - 変数内の単語の数をカウントします。 - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - count_characters、 - count_paragraphs - および - count_sentences. - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-date-format.xml b/docs/ja/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 5d2c6ba6..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - date_format - - 日付と時間を - strftime() - のフォーマットに基づいて整形します。日付を Unix - タイムスタンプ - や MySQL タイムスタンプ、そして月・日・年で構成された - (PHP の strtotime() - でパース可能な) 文字列として変数に割り当てる事ができます。デザイナーは、 - date_format を使用することで日付の書式設定を自由にコントロールできます。 - date_format に渡した日付が空で - 第2パラメータが渡された場合、その日付をフォーマットします。 - - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - No - %b %e, %Y - 日付の表示フォーマット - - - 2 - string - No - n/a - 入力が空のときのデフォルトの日付 - - - - - - - - - Smarty-2.6.10 以降、date_format に渡された数値は - 常に (MySQL タイムスタンプは例外です。以下を参照してください) - Unix タイムスタンプとして解釈されるようになりました。 - - - Smarty-2.6.10 より前は、PHP の - strtotime() がパース可能な数値文字列 - (YYYYMMDD のような形式) は、 - タイムスタンプではなく日付文字列として解釈されることもあります - (strtotime() の実装に依存します)。 - - - 唯一の例外は、mysql タイムスタンプです。 - これは数値のみで、文字数は14文字 ("YYYYMMDDHHMMSS") です。 - mysql タイムスタンプは unix タイムスタンプより優先されます。 - - - - プログラマーズノート - - date_format は、本質的には PHP の - strftime() - 関数のラッパーです。PHP をコンパイルしたシステム上の - strftime() - の実装によっては、利用可能な変換指定子が多少変わる場合があります。 - 有効な指定子の一覧は、システムの man ページを参照してください。 - Windows 上でも一部の指定子をエミュレートしており、%D, %e, %h, %l, %n, - %r, %R, %t, %T が使用できます。 - - - - - date_format - -assign('config', $config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - - - このテンプレートでは、 - $smarty.now を使用して現在時刻を取得しています。 - - - - - - 出力 - - - - - - - - date_format の変換指定子 - - - %a - 現在のロケールに基づく短縮された曜日の名前 - - - %A - 現在のロケールに基づく完全な曜日の名前 - - - %b - 現在のロケールに基づく短縮された月の名前 - - - %B - 現在のロケールに基づく完全な月の名前 - - - %c - 現在のロケールに基づく適当な日付と時間の表現 - - - %C - 世紀(年を100で割り、整数に丸めたもの。00から99) - - - %d - 10進数の日付(01から31) - - - %D - %m/%d/%yと同じ - - - %e - 月単位の日付を10進数で表したもの。日付が1桁の場合は、前に空白を一つ付ける。('1'から'31') - - - %g - 西暦の下二桁 [00,99] - - - %G - 西暦 [0000,9999] - - - %h - %bと同じ。 - - - %H - 時間を24時間表示の10進数で(00から23まで) - - - %I - 時間を12時間表示の10進数で(01から12までの範囲) - - - %j - 年間での日付を10進数で表現 (001から366) - - - %k - 24時間表示の時間の一桁目に空白を入れる ( 0 から 23までの範囲) - - - %l - 12時間表示の時間の一桁目に空白を入れる ( 1 から 12までの範囲) - - - %m - 月を10進数で表現 (01から12) - - - %M - 分を10進数で表現 - - - %n - 改行文字 - - - %p - 指定した時間により `am' または `pm' 、または 現在のロケールに対応した文字列 - - - %r - a.m.およびp.m.表記で表した時間 - - - %R - 24時間表記で表した時間 - - - %S - 10進数で表した秒 - - - %t - タブ文字 - - - %T - 現在の時間。%H:%M:%Sに等しい。 - - - %u - 10進数表記の曜日で[1,7]の範囲。1が月曜日。 - - - %U - 年間で何番目の週であるかを 10 進数で表現。年間で最初の日曜を最初の週の最初の日として数えます。 - - - %V - ISO 8601:1988で規定された現在の年の週番号の10進数表現で 01から53までの範囲となります。 - 1は最初の週でその週は現在の年に 最低4日はあります。週は月曜日から始まります。 - - - %w - 曜日を10進数で表現。日曜は0になります。 - - - %W - 現在の年で何番目の週であるかを10進数で表現。 年間で最初の月曜を最初の週の最初の日として数えます。 - - - %x - 時間を除いた日付を現在のロケールに基づき表現します。 - - - %X - 日付を除いた時間を現在のロケールに基づき表現します。 - - - %y - 世紀の部分を除いた年を10進数として表現。(00から99までの範囲) - - - %Y - 世紀を含む年を10進数で表現 - - - %Z - タイムゾーンまたはその名前または短縮形 - - - %% - 文字リテラル`%' - - - - - - $smarty.now、 - strftime()、 - {html_select_date} - および 日付に関するヒント のページも参照してください。 - - - - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-default.xml b/docs/ja/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 159a35df..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - default - - 変数のデフォルト値を設定します。変数が空であるか設定されていない場合に、 - 代わりとしてデフォルト値が表示されます。この修飾子は1つのパラメータをとります。 - - - - - - error_reporting(E_ALL) を指定すると、 - テンプレート内で未定義の変数を使用した場合に常にエラーが発生します。 - この関数を使用すると、null あるいは空文字列に変換できるので便利です。 - - - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - No - empty - 変数が空の場合に表示されるデフォルト値 - - - - - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email', ''); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - 変数のデフォルトの扱い - および - 空白の変数の扱い - のページも参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-escape.xml b/docs/ja/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index faa17249..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - escape - - escape は変数のエンコードやエスケープを行います。 - たとえば html、 - urlシングルクォート、 - hexhexentity、 - javascript および mail - などに対する処理を行います。 - デフォルトでは html 用の処理をします。 - - - - - - - - - - - - - パラメータの位置 - - 必須 - 有効な値 - デフォルト - 概要 - - - - - 1 - string - No - html, htmlall, - url, - urlpathinfo, quotes, - hex, hexentity, - javascript, mail - - html - 使用するエスケープフォーマット - - - 2 - string - No - ISO-8859-1, UTF-8 - および - htmlentities() がサポートする任意の文字セット - - ISO-8859-1 - htmlentities() へ渡す文字セットのエンコーディング - - - - - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); - -?> -]]> - - - escape を使用するテンプレートの後に、その出力結果を続けています。 - - - をエスケープします *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -{$articleTitle|escape:'htmlall'} {* 全ての html エンティティをエスケープします *} -'Stiff Opposition Expected to Casketless Funeral Plan' - -click here -click here - -{$articleTitle|escape:'quotes'} -\'Stiff Opposition Expected to Casketless Funeral Plan\' - -{$EmailAddress|escape:"hexentity"} -{$EmailAddress|escape:'mail'} {* email をテキストに変換します *} -bob..snip..et - -{'mail@example.com'|escape:'mail'} -smarty [AT] example [DOT] com -]]> - - - - - 別の例 - PHP の関数を修飾子として使用できます。これは - - $security の設定によります。 - - -click here -]]> - - これは email 用に便利です。しかし、 - - {mailto} も参照してください。 - -{$EmailAddress|escape:'mail'} -]]> - - - - - Smarty の構文解析を回避、 - {mailto} - および - E-mail アドレスを混乱させる - のページも参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-indent.xml b/docs/ja/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 85562577..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - indent - - 各行で文字列をインデントします。デフォルトは 4 です。 - 第1パラメータには、インデントするキャラクタ数が指定できます。 - 第2パラメータには、インデントに使用するキャラクタが指定できます。 - たとえば、"\t" はタブを表します。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - integer - No - 4 - インデントするキャラクタ数 - - - 2 - string - No - (半角スペース 1 文字) - インデントに使用するキャラクタ - - - - - - - indent - -assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - strip、 - wordwrap - および - spacify - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-lower.xml b/docs/ja/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index ee97d832..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - lower - - 変数を小文字に置き換えます。これは、PHP の - - strtolower() 関数と同義です。 - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - upper - および - capitalize - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-nl2br.xml b/docs/ja/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 82903885..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - nl2br - - 与えられた変数内の全ての改行文字 "\n" - を html の <br /> タグに変換します。 - これは PHP の - nl2br() 関数と同義です。 - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - テンプレート - - - - - - 出力 - - -today, dark tonight -]]> - - - - word_wrap、 - count_paragraphs - および - count_sentences - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index bb01bca0..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - regex_replace - - 変数に対して正規表現による検索・置換を行います。 - 正規表現は、PHP マニュアルの - - preg_replace() の構文を使用してください。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - Yes - n/a - 置換するための正規表現 - - - 2 - string - Yes - n/a - この文字列に置換する - - - - - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - - replace - および - escape - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-replace.xml b/docs/ja/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 75c71168..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - replace - - 変数に対して、シンプルな検索・置換を行います。これは、PHP の - - str_replace() 関数と同義です。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - Yes - n/a - 置換元の文字列 - - - 2 - string - Yes - n/a - この文字列に置換する - - - - - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - regex_replace - および - escape - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-spacify.xml b/docs/ja/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 60e36d67..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - spacify - - spacify は、変数の各キャラクタ間にスペースを挿入します。 - 第1パラメータには、挿入するキャラクタ(または文字列) を渡す事ができます。 - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - No - one space - 変数の各キャラクタ間に挿入される要素 - - - - - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - wordwrap - および - nl2br - も参照ください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-string-format.xml b/docs/ja/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 11eb7385..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - string_format - - 変数の値を10進数として表示したり、文字列をフォーマットして表示します。 - フォーマット文字列には - sprintf() - の構文を使用してください。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - string - Yes - n/a - フォーマット文字列(sprintf) - - - - - - - string_format - -assign('number', 23.5787446); - -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - - date_format - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 3cdcea2a..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - strip_tags - - マークアップタグを取り除きます。これは、基本的に - <> - で囲まれたもののことです。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - bool - No - &true; - タグを' 'または''のどちらで置き換えるか - - - - - - - strip_tags - -assign('articleTitle', - "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years." - ); - -?> -]]> - - - テンプレート - - - - - - 出力 - - -New Kidney from Dad she Hasn't Seen in years. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - - - - replace - および - regex_replace - も参照してください。 - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-strip.xml b/docs/ja/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 881a7c43..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - strip - - 繰り返された空白・改行・タブを、1つの空白または与えられた文字列によって置き換えます。 - - - Note - - テンプレートテキストのブロックを対象に取り去りたいなら、 - 組み込みの {strip} - 関数を使用して下さい。 - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - - {strip} - および - truncate - も参照してください。 - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-truncate.xml b/docs/ja/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 129af96d..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - truncate - - 指定したキャラクタ数(デフォルトは80)で変数を切り捨てます。 - 第2パラメータには、変数が切り捨てられた時に終端に付加する文字列を指定する事が出来ます。 - 指定する文字列の長さは元の切り捨ての長さの中に含まれます。 - デフォルトでは、truncate は単語の境界で切り捨てを行います。 - 厳密なキャラクタ数で切り捨てたい場合には第3パラメータに &true; を渡します。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - integer - No - 80 - 切り捨てを行うキャラクタ数 - - - 2 - string - No - ... - 切り捨てが発生した際に終端に付加するキャラクタ。 - この長さは切り捨て長さの設定に含まれません。 - - - 3 - boolean - No - &false; - 切り捨てを単語の境界で行うか(&false;)、厳密なキャラクタ数で行うか(&true;) - - - 4 - boolean - No - &false; - 切り捨てを文字列の終端で行うか(&false;)、 - 文字列の中盤で行うか(&true;)。この設定が&true;の場合、 - 単語の境界が無視されることに注意。 - - - - - - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-upper.xml b/docs/ja/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 9b557083..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - upper - - 変数を大文字に置き換えます。これは、PHP の - - strtoupper() 関数と同義です。 - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -?> -]]> - - - テンプレート - - - - - - 出力 - - - - - - - lower - および - capitalize - も参照してください。 - - - - diff --git a/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 71a555dc..00000000 --- a/docs/ja/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - wordwrap - - 指定したカラム幅で文字列をワードラップします(デフォルトは80)。 - 第2パラメータには、次の行にワードラップするために使用される文字列を指定する事が出来ます - (デフォルトは "\n")。 - デフォルトでは、wordwrap は単語の境界でワードラップを行います。 - 厳密な文字数でワードラップしたい場合は第3パラメータに &true; を渡します。 - これは PHP の - wordwrap() - 関数と同義です。 - - - - - - - - - - - - パラメータの位置 - - 必須 - デフォルト - 概要 - - - - - 1 - integer - No - 80 - ワードラップするカラム幅 - - - 2 - string - No - \n - ワードラップに使用される文字列 - - - 3 - boolean - No - &false; - ワードラップを単語の境界で行うか(&false;)、 - 厳密なキャラクタ数で行うか(&true;) - - - - - - - wordwrap - -assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - - - テンプレート - - -\n"} - -{$articleTitle|wordwrap:26:"\n":true} -]]> - - - 出力 - - - -from dad she hasn't seen in
      -years. - -Blind woman gets new kidn -ey from dad she hasn't se -en in years. -]]> -
      -
      - - nl2br - および - {textformat} - も参照してください。 - -
      - - - diff --git a/docs/ja/designers/language-variables.xml b/docs/ja/designers/language-variables.xml deleted file mode 100644 index f0789703..00000000 --- a/docs/ja/designers/language-variables.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - 変数 - - Smarty は色々な種類の変数を持っています。変数の種類は接頭辞の記号によって決まります - (記号によって囲まれる場合もあります)。 - - - Smarty 変数は、その値を直接表示したり - 関数 の引数や - 属性、 - 修飾子、 - そして条件式の内部などで使用されたりします。 - 変数の値を表示するには、それを単純に - デリミタ - で囲み、デリミタ内に変数のみが含まれるようにします。 - -変数の例 - -{$product.description} - -{$Contacts[row].Phone} - - -]]> - - - -ヒント -Smarty 変数の値を手っ取り早く調べるには、 -デバッギングコンソール を使用するとよいでしょう。 - - - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - - diff --git a/docs/ja/designers/language-variables/language-assigned-variables.xml b/docs/ja/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 89492a81..00000000 --- a/docs/ja/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - PHP から割り当てられた変数 - - PHP から 割り当てられた 変数は、 - (php と同様に) 先頭にドル記号 ($) をつける事で参照できます。 - テンプレート内で - {assign} - 関数を用いて割り当てられた変数もこの方法で表示されます。 - - - - 割り当てられた変数 - php script - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - 一方、index.tpl の内容はこのようになります。 - - - -{* これは動作しません。変数名は大文字小文字を区別するからです。 *} -This weeks meeting is in {$meetingplace}. -{* こちらは動作します *} -This weeks meeting is in {$meetingPlace}. -]]> - - - - 出力は次のようになります。 - - - -This weeks meeting is in . -This weeks meeting is in New York. -]]> - - - - - - 連想配列 - - PHP から割り当てられた連想配列を参照することもできます。 - この場合は、'.' (ピリオド) 記号の後にキーを指定します。 - - - 連想配列の値にアクセスする - -assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - - - 一方、index.tpl の内容はこのようになります。 - - - -{$Contacts.email}
      -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}
      -{$Contacts.phone.cell}
      -]]> -
      - - 出力は次のようになります。 - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - 配列のインデックス - - 配列に対してインデックスでアクセスすることもできます。 - これは PHP 本来の構文と同じです。 - - - インデックスによって配列にアクセスする - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - 一方、index.tpl の内容はこのようになります。 - - - -{$Contacts[1]}
      -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}
      -{$Contacts[2][1]}
      -]]> -
      - - 出力は次のようになります。 - - - -zaphod@slartibartfast.example.com
      -555-444-3333
      -555-111-1234
      -]]> -
      -
      -
      - - - - オブジェクト - - PHP から割り当てられた オブジェクト - のプロパティにアクセスするには、-> - 記号の後にプロパティ名を指定します。 - - - オブジェクトのプロパティにアクセスする - -name}
      -email: {$person->email}
      -]]> -
      - - 出力は次のようになります。 - - - -email: zaphod@slartibartfast.example.com
      -]]> -
      -
      -
      -
      - - diff --git a/docs/ja/designers/language-variables/language-config-variables.xml b/docs/ja/designers/language-variables/language-config-variables.xml deleted file mode 100644 index a790c7a3..00000000 --- a/docs/ja/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - 設定ファイルから読み込まれた変数 - - 設定ファイル - から読み込まれた変数を参照するには、それをハッシュマーク (#) - で囲むか、あるいは Smarty 変数 - $smarty.config を使用します。 - 2つ目の方法は、クォートされた属性値の中に含める場合に便利です。 - - - 設定ファイルの変数 - - サンプルの設定ファイル - foo.conf: - - - - - - #hash# 方式のテンプレート - - - -{#pageTitle#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - - $smarty.config 方式のテンプレート - - - -{$smarty.config.pageTitle} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      - - どちらの場合も出力は同じです。 - - - -This is mine - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - 変数は、設定ファイルから読み込まれるまで使用できません。 - 詳細は、後ほど - - {config_load} - の項で説明します。 - - - 変数 および - 予約変数 - $smarty も参照してください。 - -
      - diff --git a/docs/ja/designers/language-variables/language-variables-smarty.xml b/docs/ja/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 406f155f..00000000 --- a/docs/ja/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - 予約変数 {$smarty} - - PHP の予約変数 {$smarty} を使用すると、 - 環境変数やリクエスト変数にアクセスすることができます。 - アクセスできる内容について、以下に説明します。 - - - - リクエスト変数 - - $_GET$_POST、 - $_COOKIE$_SERVER、 - $_ENV および $_SESSION - ( - $request_vars_order - および - $request_use_auto_globals を参照してください) - といった リクエスト変数 - にアクセスするには、下の例のようにします。 - - - リクエスト変数の表示 - - - - - - - 歴史的な理由から、{$SCRIPT_NAME} には直接アクセスできます。 - しかし、この値にアクセスする方法としては - {$smarty.server.SCRIPT_NAME} が推奨されています。 - - -click me -click me -]]> - - - - - - {$smarty.now} - - 現在の タイムスタンプ - にアクセスするには {$smarty.now} を使用します。 - この値は、いわゆるエポック (1970年1月1日) からの経過秒数が含まれます。 - また、これを直接 - date_format - 修飾子に渡して表示させることができます。実行するたびに - time() - がコールされることに注意しましょう。つまり、全体を処理するのに3秒かかるスクリプトがあったとして、 - その最初と最後でそれぞれ $smarty.now - をコールすると、その値には2秒の差が生じます。 - - - - - - - - - - {$smarty.const} - - PHP 定数の値に直接アクセスできます。smarty 定数 も参照してください。 - - - - -]]> - - -定数を出力するテンプレート - - - - - - - - - {$smarty.capture} - - 組み込みの - - {capture}..{/capture} - 関数でキャプチャしたテンプレートの出力にアクセスするには - {$smarty.capture} 変数を使用します。 - 詳細は - {capture} のページを参照してください。 - - - - - {$smarty.config} - - {$smarty.config} 変数は、読み込まれた - config 変数 - を参照するのに使用できます。 - {$smarty.config.foo} は - {#foo#} と同義です。詳細は - {config_load} - のページを参照してください。 - - - - - {$smarty.section}、{$smarty.foreach} - - {$smarty.section} 変数および - {$smarty.foreach} 変数は、 - {section} - および - {foreach} - のループプロパティを参照するために使用します。 - この中には .first.index - といった有用な値が含まれます。 - - - - - {$smarty.template} - - 現在処理中のテンプレートの名前を返します。 - 次の例の container.tpl と、そこからインクルードしている - banner.tpl の両方で - {$smarty.template} を使用しています。 - - -Main container is {$smarty.template} -{include file='banner.tpl'} -]]> - - - 出力は、このようになります。 - - -Main page is container.tpl -banner.tpl -]]> - - - - - {$smarty.version} - - このテンプレートをコンパイルした Smarty のバージョンを返します。 - - -Powered by Smarty {$smarty.version} -]]> - - - - - {$smarty.ldelim}、{$smarty.rdelim} - - これらの変数を使用して、左右のデリミタをそのまま表示します。 - - {ldelim}、{rdelim} と同じです。 - - - assigned variables および - config variables - も参照してください。 - - - - diff --git a/docs/ja/getting-started.xml b/docs/ja/getting-started.xml deleted file mode 100644 index 096907df..00000000 --- a/docs/ja/getting-started.xml +++ /dev/null @@ -1,685 +0,0 @@ - - - - - - はじめに - - - Smarty とは? - - Smarty は PHP のためのテンプレートエンジンです。具体的に言うと、php - のプレゼンテーションからアプリケーションのロジックとコンテンツを分離して管理する事を容易にします。 - これは、プログラマーとテンプレートデザイナーの役割が異なり、 - これらの役割を違う人間が受け持っている場合に最適だと言えます。 - - - - 例えば、新聞記事を表示するwebページを作成しているとします。 - - - - 記事の $headline (見出し)、$tagline - (キャッチフレーズ)、$author (著者) および - $body (本文) が中身を構成する要素となります。 - ここには、それをどのように表示するかという情報は含まれません。 - これらはアプリケーションによって Smarty に - 渡されます。 - - - - テンプレートデザイナーはこのテンプレートを編集し、 - HTML タグや テンプレートタグ - を使用して、これらの 変数 - と要素 (テーブル、div、背景色、フォントサイズ、スタイルシート、svg など) - の体裁を調整します。 - - - - ある日、プログラマーが (アプリケーションロジックを変更したなどの理由で) - 記事の内容を取得する手段を変更する必要が出てきたとします。 - この変更はテンプレートデザイナーに影響がないため、 - 記事には全く同じ内容のテンプレートが適用できるでしょう。 - - - - 同様に、もしテンプレートデザイナーがテンプレートを完全に作り直したい場合でも、 - アプリケーションロジックを変更する必要がありません。 - - - - したがって、プログラマーはテンプレートを作り直す事なくアプリケーションロジックを変更する事ができ、 - テンプレートデザイナーはアプリケーションロジックを壊す事なくテンプレートを変更できます。 - - - - - Smarty の設計の目標の一つとして、 - ビジネスロジックとプレゼンテーションロジックの分離があります。 - - - - - これは、プレゼンテーションのためだけという条件の下で - テンプレートにロジックを含める事が可能であるという事です。 - 他のテンプレートを include - したり、テーブル行の色を - 変更 したり、変数を - 大文字 にしたり、データの配列を - ループ させたり、それを - 表示 - したりといったことが、プレゼンテーションロジックの例になります。 - - - これは、Smarty がビジネスロジックとプレゼンテーションロジックの分離を - 強制している訳ではない事を意味しています。 - Smarty はテンプレート内に置かれたものがビジネスロジックなのか何なのか全くわかりません。 - - - また、テンプレートにロジックを 置きたくない - ならば、テキストと変数のみでコンテンツを作り上げることも可能です。 - - - - - Smarty のユニークな特徴の一つは、テンプレートをコンパイルすることです。 - つまり、Smarty がテンプレートファイルを読み込み、 - それをもとにして PHP スクリプトを作成するということです。 - 一度作成してしまえば、その後はコンパイルされた PHP スクリプトが実行されるので、 - 各リクエスト時にテンプレートファイルのパースによるオーバーヘッドがありません。 - さらに各テンプレートは、 - eAccelerator、 - ionCube、 - mmCache - あるいは Zend Accelerator - のような PHP コンパイラやキャッシュソリューションを最大限に活用することができます。 - - - Smarty の特徴 - - - - - 非常に高速 - - - - - 下仕事は PHP パーサが行うので能率的 - - - - - コンパイルは一度だけ行われるので、テンプレートのパースによるオーバーヘッドが無い - - - - - 再コンパイル - は変更があったテンプレートファイルのみで行うのでスマート - - - - - 簡単に独自の 関数 - や 変数の修飾子 - を作成できるので、テンプレート言語を強力に拡張することが可能 - - - - - テンプレートの - {デリミタ} - タグの記法を変更し、 - {$foo}{{$foo}}、 - <!--{$foo}--> などを使用することが可能 - - - - - - {if}..{elseif}..{else}..{/if} - 構文は PHP パーサが処理するので、{if...} - の条件式にはシンプルなものから複雑なものまで自由に指定可能 - - - - - - sectionsif's - などは無制限にネスト可能 - - - - - テンプレートファイル内に - PHP コードを埋め込む - ことも可能。しかし、エンジン自体が - カスタマイズ できるので、 - これはおそらく不要 (そして非推奨)。 - - - - - 組み込みで キャッシュ機能 をサポート - - - - - 任意の テンプレート ソース - - - - - カスタム キャッシュハンドラ - 関数 - - - - - プラグイン 機構 - - - - - - - - - - - インストール - - - 必要条件 - - Smarty は、PHP 4.0.6 以降が動作しているウェブサーバを必要とします。 - - - - - 基本的なインストール - - - Smarty のライブラリファイルを、ディストリビューションの - /libs/ サブディレクトリにインストールしてください。 - これらの .php を編集してはいけません。 - これらはすべてのアプリケーションで共有するものであり、 - Smarty を新しいバージョンにアップグレードする際にのみ更新します。 - - 以下の例で、Smarty の tarball の展開先は次のようになります。 - - *nix の場合は - /usr/local/lib/Smarty-v.e.r/ - - Windows 環境の場合は - c:\webroot\libs\Smarty-v.e.r\ - - - - - - 必要な Smarty ライブラリファイル群 - - - - - - - Smarty は、SMARTY_DIR - という名前の PHP の 定数 - を使用します。これは、Smarty の libs/ ディレクトリへの - 絶対パス を表します。 - 基本的にあなたのアプリケーションが Smarty.class.php - ファイルを見つける事が出来るなら - SMARTY_DIR - を定義する必要はありません。Smarty は自分でそれを考えます。 - したがって、もし Smarty.class.php が - include_path - にないか、あなたのアプリケーションにてそれらへの絶対パスが指定されていないなら、 - 手動で SMARTY_DIR を定義する必要があります。 - SMARTY_DIR は、 - 最後にスラッシュ / を含めなければなりません。 - - - - - - 次の例では、PHP スクリプト内での Smarty インスタンスの作成方法を示します。 - - - -]]> - - - - - 上のスクリプトを実行してみてください。 - Smarty.class.php ファイルが見つからないというエラーが出た場合は、 - 以下のいずれかを行う必要があります。 - - - - 手動で SMARTY_DIR 定数を定義する - - -]]> - - - - - ライブラリファイルの絶対パスを指定する - - -]]> - - - - - <filename>php.ini</filename> ファイルにライブラリへのパスを追加する - - - - - - - PHP スクリプト内での <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - によるインクルードパスの追加 - - -]]> - - - - - これでライブラリファイルは正常に設置できたので、 - 今度はあなたのアプリケーション内に Smarty 用のディレクトリを セットアップしましょう。 - - - - - Smarty は、デフォルトで - templates/、 - templates_c/configs/ および cache/ - と名づけられた4つのディレクトリが必要です。 - - - これらの名前は、それぞれ - Smarty クラスのプロパティ - - $template_dir、 - - $compile_dir、 - - $config_dir および - - $cache_dir で定義することができます。 - - - - Smarty を使用する各アプリケーションにおいて、 - これらのディレクトリを個別に設置する事を強く推奨します。 - - - - - インストール例として、ゲストブックアプリケーションの - Smarty 環境をセットアップしてみます。 - 私達はディレクトリの命名規約の目的についてのみ取り上げました。 - 例のアプリケーション名を guestbook/ - からあなたのアプリケーション名に置き換えれば、同様の環境を使用できます。 - - - - - ファイル構造 - - - - - - - あなたは web サーバのドキュメントルートの位置を知っている必要があります。 - 例ではドキュメントルートは /web/www.example.com/guestbook/htdocs/ - とします。Smarty ディレクトリは Smarty ライブラリによってのみアクセスされ、 - web ブラウザから直接アクセスされる事はありません。 - したがってセキュリティの心配を避けるために、 - これらのディレクトリをドキュメントルートの 外部 - に配置する事を推奨します (ただし必須ではありません)。 - - - - ドキュメントルート下には最低1つのファイルが必要であり、 - それは web ブラウザによってアクセスされるスクリプトです。 - この例ではドキュメントルート /htdocs/ - の下にサブディレクトリを作成し、その中に index.php - を配置します。 - - - - - Smarty は - - $compile_dir と - - $cache_dir - (templates_c/ と - cache/) に - 書き込み権限 でアクセスする必要があるので、 - web サーバのユーザがこれらに書き込める必要があります - (windows ユーザはこの話を無視してください)。 - - 通常は、このユーザは nobody でグループは - nobody です。OS X ユーザの場合は、デフォルトのユーザは - www でグループは www です。 - もし Apache を使用しているなら、httpd.conf - ファイルを見ればユーザ名とグループ名がわかります。 - - - - パーミッションおよびディレクトリへの書き込み権限の付与 - - - - - - - 注意 - - chmod 770 は強固なセキュリティです。 - これは、ユーザ nobody とグループ nobody - のみにディレクトリのリード/ライトアクセスを許可します。 - もし誰にでもリードアクセスを可能にしたい場合 - (大抵はあなた自身がファイルを見るための利便性から) - は、代わりに 775 を使う事が出来ます。 - - - - - 次に、Smarty が表示するファイル index.tpl - を作成する必要があります。これは、 - $template_dir の中に配置しなければなりません。 - - - - /web/www.example.com/guestbook/templates/index.tpl - - - - - - - テクニカルノート - - {* Smarty *} はテンプレートの - コメント です。 - これは必須ではありませんが、全てのテンプレートファイルのはじめに - コメントを書くのは良い習慣です。 - これは、ファイルの拡張子に関わらずファイルを認識する事を簡単にします。 - 例えば、テキストエディタはファイルを認識して特有のシンタックスハイライトを有効にするでしょう。 - - - - - では、index.php を編集しましょう。 - Smarty のインスタンスを作成し、テンプレート変数を割り当て - (assign())、 - index.tpl ファイルを表示 - (display()) - します。 - - - - /web/www.example.com/docs/guestbook/index.php の編集 - -template_dir = '/web/www.example.com/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -//** 次の行のコメントをはずすと、デバッギングコンソールを表示します -//$smarty->debugging = true; - -$smarty->display('index.tpl'); - -?> -]]> - - - - - 注意 - - この例では、Smartyのディレクトリすべてを絶対パスで設定しています。 - もし /web/www.example.com/guestbook/ - が PHP の include_path にあるのなら、これらの設定は必要ありません。 - けれどもこれらを絶対パスで指定する方が より効率的で、(経験上)エラーが少なくなります。 - そうすれば、Smarty はあなたが意図したディレクトリからファイルを確実に取得できます。 - - - - - では、web ブラウザから index.php ファイルを読み込んでみましょう。 - "こんにちは、Ned。ようこそ Smarty へ!" と表示されるはずです。 - - - これで Smarty の基本的なセットアップは完了しました! - - - - - - - - - 拡張セットアップ - - - これは、基本的なインストール - の続きです。まず先にこちらから読んで下さい! - - - Smarty をより柔軟にするセットアップ方法は、 - クラスを拡張 - してあなたの Smarty の環境を初期化する事です。 - ディレクトリパスの設定を同じ変数に何度も割り当てる代わりに、一箇所でそれらを行う事が出来ます。 - - - 新しいディレクトリ/php/includes/guestbook/ - を作成し、setup.php という新しいファイルを作成しましょう。 - この例の環境では /php/includes - が include_path です。 - 例と同じようにするか、あるいは絶対パスを使用して下さい。 - - - - /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - では、index.php ファイルを修正し、 - setup.php を使うようにしてみましょう。 - - - - /web/www.example.com/guestbook/htdocs/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - このように、アプリケーションのために全てを自動的に初期化する - Smarty_GuestBook() - クラスを使う事で、Smarty のインスタンスをとても簡単に作成することができました。 - - - - - - - - diff --git a/docs/ja/language-defs.ent b/docs/ja/language-defs.ent deleted file mode 100644 index c5b174a1..00000000 --- a/docs/ja/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/docs/ja/language-snippets.ent b/docs/ja/language-snippets.ent deleted file mode 100644 index fb6dade5..00000000 --- a/docs/ja/language-snippets.ent +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - テクニカルノート - - merge パラメータは配列のキーを尊重するので、 - インデックスが数値である2つの配列をマージする場合、 - それらはお互い上書きされるか不連続なキーの配列になるかもしれません。 - これは、数値のキーを全て削除した後に再びキーに番号付けを行う、PHP - の array_merge() - 関数とは違っています。 - -'> - - - テクニカルノート - - 選択したコールバック function が - array(&$object, $method) 形式である場合は、 - 同じ $method を持つクラスのインスタンスをひとつだけ登録できます。 - そのような場合は、最後に登録されたコールバック function - のみが用いられます。 - -'> - - - 任意の第3パラメータとして $compile_id - を渡すことができます。 - 異なる言語でコンパイルされた別々のテンプレートが存在するような、 - 同じテンプレートの異なるバージョンをコンパイルしたい場合に利用します。 - $compile_id の別の利用法としては、複数の - $template_dir - を持っているが - $compile_dir - は1つしかない場合などがあります。各 - $template_dir - に別々の $compile_id をセットしなければ、 - 同名のテンプレートはお互いに上書きされてしまいます。 - この関数をコールする度に compile_id を渡す代わりに、一度 - - $compile_id 変数をセットすることもできます。 -'> - - - PHP 関数のコールバック function - は、次のいずれかとなります。 - - - 関数名を含んだ文字列 - - - - array(&$object, $method) 形式の配列 - (&$object はオブジェクトの参照で、 - $method はメソッド名を含む文字列) - - - - array($class, $method) という形式の配列 - ($class はクラス名であり、 - $method はクラスのメソッド) - - - '> diff --git a/docs/ja/livedocs.ent b/docs/ja/livedocs.ent deleted file mode 100644 index 040f65fc..00000000 --- a/docs/ja/livedocs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - -'> -'> - - diff --git a/docs/ja/make_chm_index.html b/docs/ja/make_chm_index.html deleted file mode 100644 index 3e1fa83e..00000000 --- a/docs/ja/make_chm_index.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Smarty マニュアル - - - - - - - -

      - -

      -
      -

      Smarty マニュアル

      -
      Monte Ohrt
      -
      Andrei Zmievski
      -
      -

      このファイルは [GENTIME] に作成されました
      -最新版は http://smarty.php.net/download-docs.php -で取得してください。

      - -
      - -
      - diff --git a/docs/ja/preface.xml b/docs/ja/preface.xml deleted file mode 100644 index b90d2b95..00000000 --- a/docs/ja/preface.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - 序文 - - "PHP スクリプトをレイアウトから分離させるにはどうすればいいのですか?" - これは間違いなく、PHPメーリングリストでよく尋ねられた質問のうちの1つでしょう。 - PHP は "HTML 埋め込み型スクリプト言語" と言われていますが、 - PHP と HTML を混ぜ合わせたプロジェクトを2,3書いた後で、 - フォームとコンテンツの分離は良いものであるというアイディアを考え出しました。 - その上、多くの会社においてのレイアウトデザイナーとプログラマの役割は分担されています。 - このような理由から、テンプレートソリューションの模索が始まりました。 - - - 例えば私たちの会社において、アプリケーション開発は次の順序で行われています。 - アプリケーションの要求仕様書を作成した後、インタフェースデザイナーは - ユーザーインタフェースのモデルを作成しプログラマに渡します。 - プログラマーは PHP によってビジネスロジックを実装し、 - ユーザーインタフェースのモデルを使ってテンプレートの骨組みを作成します。 - その後、プロジェクトはとても素晴らしいテンプレートをもたらしてくれる - HTML テンプレートデザイナー/レイアウトデザイナーに手渡されます。 - このようにプロジェクトはプログラマー/デザイナーの間で - あちこちに何度も行き来する可能性があります。 - プログラマーは HTML を何も扱いたくないし、HTML デザイナーに PHP - コードの箇所をいじられたくないので、有用なテンプレートの土台を持つ事は重要です。 - デザイナーは設定ファイルやダイナミックブロックのサポートや - 他のインタフェースの公開が必要ですが、彼らは複雑な PHP 言語を扱いたくありません。 - - - 今日、PHP で利用可能な多くのテンプレートソリューションを見ると、 - それらの大半は制限付きのダイナミックブロックの機能性や、 - テンプレート内に変数を展開するための基本的な方法を提供しています。 - しかし、我々のニーズは僅かにそれを上回るものを必要としました。 - プログラマーは HTML レイアウトを全く扱いたくないのですが、 - これはほとんど避けられませんでした。例えば、 - デザイナーが背景色をダイナミックブロックによって変更したい場合、 - プログラマーはそれを前もって考慮しておく必要がありました。 - また、我々はテンプレートに変数を割り当てるための環境設定用のファイルを扱える - デザイナーを必要としました。話は続きます。 - - - 我々は 1999 年末からテンプレートエンジンの仕様を書き始めました。 - 仕様を書き終えた後、願わくば PHP に統合されるようにと C - で書かれたテンプレートエンジンに取り組み始めました。 - その時、我々は複雑な技術的障害に直面したばかりでなく、 - 具体的にテンプレートエンジンですべき事とすべきではない事についての激しい討論をしました。 - そしてその経験から、テンプレートエンジンは PHP のクラスとして記述されるべきであると決定したのは、 - 誰もが使用するのに適していると考えたからです。我々は PHP のクラスとしてのエンジンを書き、 - そして SmartTemplate が生まれました - (注: このクラスは一般に公開されませんでした)。これは、 - 規則的な変数置換・他のテンプレートのインクルード・設定ファイルによる統一・PHP - スクリプトの埋め込み・制限された if ステートメントの機能性と多重ネスト可能なダイナミックブロック等、 - 我々が必要とした全てを持ち合わせたクラスでした。 - ですが、むしろ全てが正規表現によって処理されるというコードは私たちには理解できませんでした。 - 各呼び出しごとに全てのパースと正規表現による作業を行う必要があったので、 - 大規模なアプリケーションでは動作が著しく遅かったのです。 - プログラマの観点からの最も大きな問題は、テンプレート及びダイナミックブロックをセットアップ・ - 処理するために PHP スクリプトにおいての必要な作業でした。どうすれば、 - これをより容易に行えるのでしょうか? - - - そうして、最終的に Smarty となったものの展望がたちました。 - 私たちはテンプレートのパースによるオーバーヘッドを持たない - PHP コードがどれくらい高速に動作するかを知っています。 - また、我々は PHP スクリプトが一般のデザイナーにとって - こまごまとした高圧的なものに見える可能性がある事を知っています。 - そしてそれは PHP よりもはるかにシンプルなテンプレート言語によって隠蔽されるかもしれません。 - もし我々がこの2つの強さを兼ね備えたらどうなるでしょう? - このようにして "Smarty" は生まれたのです…… (^o^) - - - - diff --git a/docs/ja/programmers/advanced-features.xml b/docs/ja/programmers/advanced-features.xml deleted file mode 100644 index 8774ea05..00000000 --- a/docs/ja/programmers/advanced-features.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - 拡張機能 -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; - - diff --git a/docs/ja/programmers/advanced-features/advanced-features-objects.xml b/docs/ja/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9b5b21a4..00000000 --- a/docs/ja/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - オブジェクト - - Smarty は、テンプレートから PHP の - オブジェクト - へのアクセスを許可しています。オブジェクトにアクセスするには2つの方法があります。 - - - - - 1つはテンプレートに オブジェクトを登録 - し、カスタム関数 - と似た構文を用いてアクセスする方法です。 - - - もう1つの方法は assign() - を用いてテンプレートにオブジェクトを割り当て、 - 他の割り当てられた変数のようにオブジェクトにアクセスする方法です。 - - - - - 1つめのメソッドは素晴らしいテンプレート構文を持っています。 - それはとてもセキュアで、 登録されたオブジェクトはいくつかのメソッドやプロパティを制限する事が出来ます。 - しかし繰り返しの処理やオブジェクトの配列への割り当て等の事が出来ません。 - あなたのニーズによって選択するメソッドは決まりますが、 - テンプレート構文を最小限守るには必ず1つめのメソッドを使用して下さい。 - - - $security - が有効の時、('_' から始まる) プライベートメソッドや関数にはアクセス出来ません。 - もしメソッドとプロパティで同じ名前が存在する場合、メソッドが優先されます。 - - - 第3パラメータにメソッドやパラメータをリストした配列を与える事でアクセスを制限できます。 - - - デフォルトではテンプレートからオブジェクトに渡されたパラメータは - カスタム関数 - によって同じ方法で渡されます。 連想配列は第1パラメータとして渡され、 - smarty オブジェクトは第2パラメータとして渡されます。 - もし古いオブジェクトパラメータの渡し方のように各引数を一度に渡したいなら、第4パラメータに - &false; を指定します。 - - - 任意の第5パラメータは - format が &true; の時だけ影響し、 - ブロックとして扱われるべきオブジェクトのメソッドのリストを格納します。 - これはこれらのメソッドがテンプレート内に終了タグ - ({foobar->meth2}...{/foobar->meth2}) - を持つことを意味し、メソッドへのパラメータは - - block-function-plugins - へのパラメータと同じ構文となります。つまり、4つのパラメータ - $params、 - $content、 - &$smarty および - &$repeat を持ち、ブロック関数プラグインのように振る舞います。 - - - 登録または割り当てられたオブジェクトを使用する - -register_object('foobar',$myobj); - -// いくらかのメソッド又はプロパティを制限したい場合、それらを配列の値としてリストします -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); - - // 古いオブジェクトパラメータの形式を使いたい場合、booleanのfalseを渡します。 -$smarty->register_object('foobar',$myobj,null,false); - -// オブジェクトを割り当てる事が可能です(できれば参照渡しで) -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - - - そして index.tpl - でオブジェクトにアクセスするには以下のようにします。 - - -meth1 p1='foo' p2=$bar} - -{* outputに割り当てる事が可能 *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* 割り当てたオブジェクトにアクセスします *} -{$myobj->meth1('foo',$bar)} -]]> - - - - register_object() - および - assign() - も参照してください。 - - - diff --git a/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 6137bbfd..00000000 --- a/docs/ja/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - アウトプットフィルタ - - テンプレートが - display() 又は - fetch() - を経由して呼び出された時、出力は1つ又は複数のアウトプットフィルタを通して送られます。 - これは - ポストフィルタ とは異なります。 - コンパイルされたテンプレートがポストフィルタによって、 - テンプレートがディスクに保存される前に処理されるのに対し、 - アウトプットフィルタはテンプレートが実行される時にその出力を処理します。 - - - - アウトプットフィルタは、 - 登録する - か、あるいは load_filter() - 関数や - $autoload_filters 変数によって - プラグインディレクトリ から読み込みます。 - Smarty は内部でユーザ定義関数の第1パラメータにコンパイルされたテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - - - アウトプットフィルタを使用する - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// これによりテンプレート出力に含まれるいくつかのemailアドレスは -// スパムボットからシンプルな保護を受けるでしょう -?> -]]> - - - - register_outputfilter()、 - load_filter()、 - $autoload_filters、 - ポストフィルタ および - $plugins_dir - も参照してください。 - - - diff --git a/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml b/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 45cdf47b..00000000 --- a/docs/ja/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - ポストフィルタ - - ポストフィルタは、テンプレートが - コンパイルされた後に - 実行されるPHPユーザ定義関数です。ポストフィルタは、 - 登録する - か、あるいは load_filter() - 関数や - $autoload_filters 変数によって - プラグインディレクトリ から読み込みます。 - Smarty は内部でユーザ定義関数の第1パラメータにコンパイルされたテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - - - ポストフィルタを使用する - -\n\"; ?>\n".$tpl_source; -} - -// ポストフィルタを登録します -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - 上のポストフィルタは、このようなコンパイル済みテンプレート - index.tpl を作成します。 - - - -{* 以下、残りのコンテンツ *} -]]> - - - - register_postfilter()、 - プリフィルタ、 - アウトプットフィルタ - および - load_filter() - も参照してください。 - - - diff --git a/docs/ja/programmers/advanced-features/advanced-features-prefilters.xml b/docs/ja/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 84b984b2..00000000 --- a/docs/ja/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - プリフィルタ - - プリフィルタは、テンプレートがコンパイルされる前に - 実行されるPHPユーザ定義関数です。テンプレートに含まれた不必要なコメントを除いたり、 - 第三者にテンプレートの更新を任せている時に - テンプレート内にどのようなものが含まれているかを監視する等といった前処理を行います。 - - - プリフィルタは、 登録する - か、あるいは load_filter() - 関数や - $autoload_filters 変数によって - プラグインディレクトリ から読み込みます。 - - - Smartyは内部でユーザ定義関数の第1パラメータにテンプレートのソースコードを渡すので、 - 関数内で処理を行った後にその結果のソースコードを戻り値として返すようにします。 - - - プリフィルタを使用する - - これはテンプレートソース内の全てのコメントを取り除いてくれるでしょう。 - - -/U",'',$tpl_source); -} - -// プリフィルタを登録します -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - - - - - register_prefilter()、 - ポストフィルタ - および - load_filter() - も参照してください。 - - - diff --git a/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index dbd3dc24..00000000 --- a/docs/ja/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - キャッシュハンドラ関数 - - デフォルトのファイルベースのキャッシュメカニズムの代替として、 - キャッシュファイルの読み書きや破棄を直接行うキャッシュハンドラ関数を指定できます。 - - - まず、アプリケーション内にSmartyがキャッシュハンドラとして使用するための関数を定義します。 - そしてその関数名を - $cache_handler_func - クラス変数に指定します。Smarty は、これを使用してキャッシュされたデータを処理します。 - - - - - 第1パラメータはキャッシュの動作を表す文字列で、これは - readwrite および - clear のいずれかとなります。 - - - - 第2パラメータは Smarty オブジェクトです。 - - - - 第3パラメータはキャッシュの内容です。 - write の場合はキャッシュされたコンテンツが渡され、 - read の場合は参照を受け取ってそこにキャッシュされたコンテンツを書き込み、 - clear の場合はこのパラメータの値を使用しないのでダミーの変数が渡されます。 - - - - 第4パラメータはテンプレートファイル名です('read'又は'write'の場合に必要)。 - - - - 任意の第5パラメータは $cache_id です。 - - - - 任意の第6パラメータは - $compile_id です。 - - - - 最後の第7パラメータ $exp_time - は Smarty-2.6.0 で追加されました。 - - - - - - キャッシュソースとしてMySQLを使用する例 - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -MySQLデータベースのスキーマ定義 - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -**************************************************/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // ここでDBのホスト名・ユーザ名・パスワードを指定します - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // ユニークなキャッシュIDを作成します - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg('cache_handler: could not connect to database'); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // キャッシュをデータベースから読み込みます - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // キャッシュをデータベースに保存します - - if($use_gzip && function_exists("gzcompress")) { - // 記憶効率のために内容を圧縮します - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - case 'clear': - // キャッシュ情報を破棄します - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // 全てのキャッシュを破棄します - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: query failed.'); - } - $return = $results; - break; - default: - // エラー・未知の動作 - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - - diff --git a/docs/ja/programmers/advanced-features/template-resources.xml b/docs/ja/programmers/advanced-features/template-resources.xml deleted file mode 100644 index dc01bbff..00000000 --- a/docs/ja/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - テンプレートリソース - - テンプレートは様々なリソースから呼び出して使用できます。テンプレートを - display()、 - fetch() - したり別のテンプレートからインクルードしたりする際には、 - リソースの種類に続けて適切なパスとテンプレート名を指定します。 - リソースを明示的に指定しない場合は - $default_resource_type の値であるとみなします。 - - - - $template_dir からのテンプレート - - - $template_dir からのテンプレートを使用する場合は、 - テンプレートリソースの指定は必要ありません。しかし、一貫性を保つために - file: リソースを使用してもかまいません。使用したいテンプレートへのパスを、 - - $template_dir - のルートディレクトリからの相対パスで指定します。 - - - $template_dir のテンプレートを使用する - -display('index.tpl'); -$smarty->display('admin/menu.tpl'); -$smarty->display('file:admin/menu.tpl'); // 上と同じ -?> -]]> - -Smarty のテンプレート - - - - - - - 任意のディレクトリからのテンプレート - - - $template_dir - の外に置かれたテンプレートを使うには、リソースの種類 - file: を指定しなければなりません。 - その後にテンプレートへの絶対パスを続けます。 - - - 任意のディレクトリからのテンプレートを使用する - -display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Smarty のテンプレート - - - - - - - - Windows のファイルパス - - 通常、Windows 環境の場合はファイルパスの先頭にドライブレター (C:) - が含まれます。ネームスペースの衝突を回避して期待通りの結果を得るために、 - 必ず file: を使用して下さい。 - - - Windows ファイルパスからテンプレートを使用する - -display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - - - Smarty テンプレート - - - - - - - - - - その他のリソース内のテンプレート - - データベース・ソケット・LDAP 等の - PHPによってアクセス可能なリソースからテンプレートを取得する事ができます。 - そのためにはリソースプラグイン関数を記述し、それを登録する必要があります。 - - - - リソースプラグイン関数についての詳細な情報は - リソースプラグイン - の項を参照してください。 - - - - - 元から存在する file: リソースは上書きできないことに注意しましょう。 - しかし、ファイルシステム上のテンプレートを別の方法で取得するテンプレートを作成することはできます。 - それを別のリソース名で登録すればよいのです。 - - - - カスタムリソースを使用する - -register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// phpスクリプトからテンプレートリソースを使用します -$smarty->display("db:index.tpl"); -?> -]]> - - - Smarty テンプレート - - - - - - - - - デフォルトのテンプレートハンドラ関数 - - テンプレートリソースからテンプレートの取得に失敗した際に、 - テンプレートのコンテンツを取り戻すために呼び出されるユーザ定義関数を指定します。 - この関数の使用方法の1つとして、その場限りのテンプレートを作成する処理を行います。 - - - デフォルトのテンプレートハンドラ関数を使用する - -$smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 'contents'=>$template_source ), $smarty_obj ); - return true; - } - } else { - // ファイルではない場合 - return false; - } -} - -// デフォルトのハンドラをセット -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - - diff --git a/docs/ja/programmers/api-functions.xml b/docs/ja/programmers/api-functions.xml deleted file mode 100644 index 73cbf7e2..00000000 --- a/docs/ja/programmers/api-functions.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - Smarty クラスメソッド -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - - - diff --git a/docs/ja/programmers/api-functions/api-append-by-ref.xml b/docs/ja/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index cf0cae4b..00000000 --- a/docs/ja/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - append_by_ref() - 参照として値を追加します。 - - - 説明 - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - これを使用して、テンプレートに参照として値を - 追加 します。 - 値を参照で追加すると、元の値が変更されると - 追加した値も変更されます。 - オブジェクト の場合は、 - append_by_ref() を使用すると - 追加されたオブジェクトをメモリ内でコピーすることを避けられます。 - 詳細は、PHP マニュアルのリファレンスの説明を参照して下さい。 - 任意の第3パラメータに &true; が渡された場合は、 - 値は現在のテンプレート配列に追加される代わりにマージされます。 - - ¬e.parameter.merge; - - append_by_ref - -append_by_ref('Name', $myname); -$smarty->append_by_ref('Address', $address); -?> -]]> - - - - append()、 - assign() - および - get_template_vars() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-append.xml b/docs/ja/programmers/api-functions/api-append.xml deleted file mode 100644 index 906910b8..00000000 --- a/docs/ja/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - append() - 割り当てられたテンプレート配列に要素を追加します。 - - - 説明 - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - もし文字列を追加する場合は、 配列の値としてコンバートされた後に追加されます。 - 配列名/値のペアを明示的に指定するか、それらが格納された連想配列を指定します。 - 配列ではないテンプレート変数に対して追加した場合、 - その変数を配列に変換した後で追加されます。 任意の第3パラメータに &true; - が渡された場合は、値は現在のテンプレート配列に追加される代わりにマージされます。 - - ¬e.parameter.merge; - - append - -append('foo', 'Fred'); -// これ以降、foo をテンプレート内で配列として使用することができます -$smarty->append('foo', 'Albert'); - -$array = array(1 => 'one', 2 => 'two'); -$smarty->append('X', $array); -$array2 = array(3 => 'three', 4 => 'four'); -// 配列 X に2番目の要素を追加します -$smarty->append('X', $array2); - -// 連想配列を渡します -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - - append_by_ref()、 - assign() - および - get_template_vars() - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-assign-by-ref.xml b/docs/ja/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 51ceaaa3..00000000 --- a/docs/ja/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - assign_by_ref() - 参照として値を割り当てます。 - - - 説明 - - voidassign_by_ref - stringvarname - mixedvar - - - これを使用して、コピーを作ることなく参照として - テンプレートに変数を 割り当て - ます。詳細は、PHP マニュアルのリファレンスの説明を参照して下さい。 - - - テクニカルノート - - これは参照によってテンプレートに変数を追加するのに使用されます。 - 参照による値が追加された場合は、その値が変更されると追加された元の値も変更されます。 - objects - についても、assign_by_ref() - は追加されたオブジェクトをメモリ内にコピーする事を避けます。詳細は、 - PHP マニュアルのリファレンスの説明を参照して下さい。 - - - - assign_by_ref() - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - assign()、 - clear_all_assign()、 - append()、 - {assign} - および - get_template_vars() - も参照してください。 - - - - - - diff --git a/docs/ja/programmers/api-functions/api-assign.xml b/docs/ja/programmers/api-functions/api-assign.xml deleted file mode 100644 index 0c8e4cb0..00000000 --- a/docs/ja/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - assign() - テンプレートに値を割り当てます。 - - - 説明 - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - テンプレート変数名/値のペアを明示的に指定するか、それらが格納された連想配列を指定します。 - - - assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// 連想配列を渡します -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// 配列を渡します -$myArray = array('no' => 10, 'label' => 'Peanuts'); -$smarty->assign('foo',$myArray); - -// データベース (例: adodb) の行を渡します -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - テンプレートの内容 - - - - - - - より複雑な配列の割り当てに関しては、 - {foreach} - および - {section} - を参照してください。 - - - - assign_by_ref()、 - get_template_vars()、 - clear_assign()、 - append() - および - {assign} - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-all-assign.xml b/docs/ja/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 46e396c6..00000000 --- a/docs/ja/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - clear_all_assign() - 割り当てられた全てのテンプレート変数を破棄します。 - - - 説明 - - voidclear_all_assign - - - - clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// 上の内容を出力します -print_r( $smarty->get_template_vars() ); - -// 割り当てられた変数を破棄します -$smarty->clear_all_assign(); - -// 何も出力しません -print_r( $smarty->get_template_vars() ); - -?> -]]> - - - - clear_assign()、 - clear_config()、 - get_template_vars()、 - assign() - および append() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-all-cache.xml b/docs/ja/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 6159dfa5..00000000 --- a/docs/ja/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - clear_all_cache() - 全てのテンプレートのキャッシュをクリアします。 - - - 説明 - - voidclear_all_cache - intexpire_time - - - 任意のパラメータとして、キャッシュファイルを削除する前にそのファイルが存在しなくてはならない - 最低限の時間(秒)を与える事が出来ます。 - - - clear_all_cache - -clear_all_cache(); - -// 一時間以上経過しているファイルをすべてクリアします -$smarty->clear_all_cache(3600); -?> -]]> - - - - clear_cache()、 - is_cached() - および - キャッシュ のページも参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-assign.xml b/docs/ja/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 322fe003..00000000 --- a/docs/ja/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - clear_assign() - 割り当てられたテンプレート変数の値を破棄します。 - - - 説明 - - voidclear_assign - mixedvar - - -パラメータには1つの変数又は変数名を格納した配列を渡します。 - - - clear_assign() - -clear_assign('Name'); - -// 複数の変数をクリアします -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - - - - clear_all_assign()、 - clear_config()、 - get_template_vars()、 - assign() - および append() - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-cache.xml b/docs/ja/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index cbe8c072..00000000 --- a/docs/ja/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - clear_cache() - 指定したテンプレートのキャッシュを破棄します。 - - - Description - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - - intexpire_time - - - - - If you have multiple caches - for a template, you can clear a specific - cache by supplying the cache_id as the second - parameter. - - - You can also pass a - $compile_id - as a third parameter. - You can group templates together - so they can be removed as a group, see the - caching section for more - information. - - - As an optional fourth parameter, you can supply a - minimum age in seconds the cache file must be before it will - get cleared. - - - - - clear_cache() - -clear_cache('index.tpl'); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clear_cache('index.tpl', 'MY_CACHE_ID'); -?> -]]> - - - - See also - clear_all_cache() - and - caching section. - - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index 84b052ce..00000000 --- a/docs/ja/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - clear_compiled_tpl() - 指定したテンプレートのキャッシュを破棄します。 - - - 説明 - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - 指定したテンプレートリソースをコンパイルした内容を破棄します。 - 何も指定しなかった場合は、すべてのコンパイル済みテンプレートファイルを破棄します。 - $compile_id - を渡すと、指定した - $compile_id - のテンプレートのみを破棄します。exp_time を指定すると、 - exp_time 秒以上経過しているファイルのみが破棄されます。 - デフォルトでは、経過時間にかかわらず全てのコンパイル済みテンプレートを破棄します。 - この関数は上級者のみが使用するもので、通常は不要です。 - - - clear_compiled_tpl() - -clear_compiled_tpl('index.tpl'); - -// コンパイルディレクトリの内容を全て破棄します -$smarty->clear_compiled_tpl(); -?> -]]> - - - - clear_cache() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-clear-config.xml b/docs/ja/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 08d0c599..00000000 --- a/docs/ja/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - clear_config() - 割り当てられたすべての設定ファイルの変数をクリアします。 - - - 説明 - - voidclear_config - stringvar - - - 割り当てられたすべての - 設定ファイルの変数 - をクリアします。変数名を指定すると、その変数のみをクリアします。 - - - clear_config() - -clear_config(); - -// ひとつの変数のみをクリアします -$smarty->clear_config('foobar'); -?> -]]> - - - - get_config_vars()、 - config variables、 - config files、 - {config_load}、 - config_load() - および - clear_assign() - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-config-load.xml b/docs/ja/programmers/api-functions/api-config-load.xml deleted file mode 100644 index 0ff6c3a9..00000000 --- a/docs/ja/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - config_load() - 設定ファイルのデータを読み込み、テンプレートに割り当てます。 - - - 説明 - - voidconfig_load - stringfile - stringsection - - - 設定ファイル - のデータを読み込み、テンプレートに割り当てます。 - これは、テンプレート関数 - - {config_load} - とまったく同じ働きをします。 - - - テクニカルノート - - Smarty 2.4.0以降では、割り当てられたテンプレート変数は - fetch() - および display() - の実行前後を通じて保持されます。 - config_load() から読み込まれた設定ファイルの変数は、 - 常にグローバルスコープです。設定ファイルは - 高速に実行するためにコンパイルされます。その際には - - $force_compile や - - $compile_check の設定を尊重します。 - - - - config_load() - -config_load('my.conf'); - -// セクションを読み込みます -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - {config_load}、 - get_config_vars()、 - clear_config() - および - 設定ファイルの変数 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-display.xml b/docs/ja/programmers/api-functions/api-display.xml deleted file mode 100644 index c6549c51..00000000 --- a/docs/ja/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - display() - テンプレートを表示します。 - - - 説明 - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - テンプレートを表示します - (fetch() と違い出力を行います)。 - 第1パラメータには、有効な テンプレートリソース - の種類を含むパスを指定する事ができます。任意の第2パラメータには - キャッシュID を渡す事ができます。 - 詳細は キャッシュの項 を参照してください。 - - ¶meter.compileid; - - display() - -caching = true; - -// キャッシュが存在しない場合はデータベースを呼び出します -if(!$smarty->is_cached('index.tpl')) { - - // ダミーデータ - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name', 'Fred'); - $smarty->assign('Address', $address); - $smarty->assign('data', $db_data); - -} - -// 出力を表示します -$smarty->display('index.tpl'); -?> -]]> - - - - - display() 関数にテンプレートリソースを指定した例 - - - $template_dir ディレクトリ外のファイルを表示するためには、 - テンプレートリソース - を指定します。 - - -display('/usr/local/include/templates/header.tpl'); - -// ファイルの絶対パス (上と同じ) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// windows環境の絶対パス (接頭辞に"file:"を使う必要があります) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// "db"と名付けられたテンプレートリソースからインクルードします -$smarty->display('db:header.tpl'); -?> -]]> - - - - fetch() および - template_exists() - も参照してください。 - - - - - - diff --git a/docs/ja/programmers/api-functions/api-fetch.xml b/docs/ja/programmers/api-functions/api-fetch.xml deleted file mode 100644 index a6402537..00000000 --- a/docs/ja/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - fetch() - テンプレートの出力を返します。 - - - 説明 - - stringfetch - stringtemplate - stringcache_id - string$compile_id - - - - これは、テンプレートを - 表示する - のではなくその出力を返します。第1パラメータには、有効な - テンプレートリソース - の種類を含んだパスを指定する事ができます。任意の第2パラメータには - キャッシュID を渡す事ができます。 - 詳細は、キャッシュの項目 を参照してください。 - - ¶meter.compileid; - - - - fetch() - -caching = true; - -// キャッシュが存在しない場合はデータベースを呼び出します -if(!$smarty->is_cached('index.tpl')) { - - // ダミーデータを用意 - $address = '245 N 50th'; - $db_data = array( - 'City' => 'Lincoln', - 'State' => 'Nebraska', - 'Zip' => '68502' - ); - - $smarty->assign('Name','Fred'); - $smarty->assign('Address',$address); - $smarty->assign($db_data); - -} - -// 出力を取り込みます -$output = $smarty->fetch('index.tpl'); - -// ここで$outputについて何かの処理を行います -echo $output; -?> -]]> - - - - - - - Email の送信に fetch() を使用する - - email_body.tpl テンプレート - - - - - - - {textformat} 修飾子を用いた - email_disclaimer.tpl - - - - - - PHP の - - mail() 関数を用いたPHPスクリプト - - -getRow($sql); -$smarty->assign('contact', $contact); - -mail($contact['email'], 'Subject', $smarty->fetch('email_body.tpl')); - -?> -]]> - - - - - - {fetch}、 - display()、 - {eval}、 - および - template_exists() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-get-config-vars.xml b/docs/ja/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 37c52e59..00000000 --- a/docs/ja/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - get_config_vars() - 読み込まれた設定ファイル変数を返します。 - - - 説明 - - arrayget_config_vars - stringvarname - - - パラメータが与えられない場合は 全ての読み込まれた - 設定ファイル変数 - の配列が返されます。 - - - get_config_vars() - -get_config_vars('foo'); - -// 全ての設定ファイル変数を取得します -$all_config_vars = $smarty->get_config_vars(); - -// では見てみましょう -print_r($all_config_vars); -?> -]]> - - - - clear_config()、 - {config_load}、 - config_load() - および - get_template_vars() - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-get-registered-object.xml b/docs/ja/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 4893aa58..00000000 --- a/docs/ja/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - get_registered_object() - 登録されたオブジェクトの参照を返します。 - - - 説明 - - arrayget_registered_object - stringobject_name - - - カスタム関数の中から - 登録されたオブジェクト - に直接アクセスしたい時に便利です。詳細は - オブジェクト の項を参照ください。 - - - get_registered_object() - -get_registered_object($params['object']); - // オブジェクトを参照している$obj_refを使用します - } -} -?> -]]> - - - - register_object()、 - unregister_object() - および - オブジェクトの項 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-get-template-vars.xml b/docs/ja/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 3e9aae29..00000000 --- a/docs/ja/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - get_template_vars() - 割り当てられた変数の値を返します。 - - - 説明 - - arrayget_template_vars - stringvarname - - - パラメータが与えられない場合は、 全ての - 割り当てられた - 変数の配列を返します。 - - - get_template_vars - -get_template_vars('foo'); - -// 割り当てられたテンプレートの全ての変数を取得します -$all_tpl_vars = $smarty->get_template_vars(); - -// では見てみましょう -print_r($all_tpl_vars); -?> -]]> - - - - assign()、 - {assign}、 - append()、 - clear_assign()、 - clear_all_assign() - および - get_config_vars() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-is-cached.xml b/docs/ja/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 10597523..00000000 --- a/docs/ja/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - is_cached() - テンプレートが有効なキャッシュを持つ場合にtrueを返します。 - - - 説明 - - boolis_cached - stringtemplate - stringcache_id - stringcompile_id - - - - - - これは、 - $caching が &true; の場合にのみ機能します。 - キャッシュの項 も参照してください。 - - - - 1つのテンプレートに - 複数のキャッシュ - が存在する場合は、第2パラメータに - $cache_id を渡すことができます。 - - - - 第3パラメータに - $compile id - を渡すを渡す事が出来ます。このパラメータを省いた時は、もし永続的な - - $compile_id が設定されていればそれを使用します。 - - - - $cache_id は渡さずに - - $compile_id だけを渡したい場合は、 - $cache_id に &null; を指定します。 - - - - - テクニカルノート - - is_cached() が &true; を返すと、 - 実際にはキャッシュされた出力が読み込まれ、内部に格納されます。続いてコールされる - display() または - fetch() - はこの内部に格納された出力を返し、キャッシュファイルを再読み込みしようとはしません。 - これにより、上の例における is_cached() のコールから - display() のコールまでの間に - 別のプロセスがキャッシュをクリアしてしまうといった競合を防ぐことができます。これは、 - is_cached() が &true; を返した後は - clear_cache() - やその他キャッシュ設定の変更が何の影響も及ぼさないということも意味します。 - - - - - is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { -// ここでデータベースを呼び出し、値を割り当てます -} - -$smarty->display('index.tpl'); -?> -]]> - - - - - 複数のキャッシュを使用したテンプレートにおける is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl', 'FrontPage')) { - // ここでデータベースを呼び出し、値を割り当てます -} - -$smarty->display('index.tpl', 'FrontPage'); -?> -]]> - - - - - - clear_cache()、 - clear_all_cache() - および - キャッシュの項 も参照してください。 - - - - - - diff --git a/docs/ja/programmers/api-functions/api-load-filter.xml b/docs/ja/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index d9c0bf33..00000000 --- a/docs/ja/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - load_filter() - フィルタプラグインを読み込みます。 - - - 説明 - - voidload_filter - stringtype - stringname - - - 第1パラメータには、読み込むフィルタの種類を - prepost あるいは output - のいずれかで指定します。第2パラメータにはフィルタプラグインの名前を指定します。(例: 'trim') - - - フィルタプラグインを読み込む - -load_filter('pre', 'trim'); - -// 'datefooter'という他のプリフィルタを読み込みます -$smarty->load_filter('pre', 'datefooter'); - -// 'compress'というアウトプットフィルタを読み込みます -$smarty->load_filter('output', 'compress'); - -?> -]]> - - - - register_prefilter()、 - register_postfilter()、 - register_outputfilter()、 - $autoload_filters - および - 拡張機能 も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-register-block.xml b/docs/ja/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 0706887a..00000000 --- a/docs/ja/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - register_block() - ブロック関数プラグインを動的に登録します。 - - - 説明 - - voidregister_block - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - ブロック関数プラグイン - を動的に登録します。パラメータには、ブロック関数名とそれを実装する - PHP のユーザー定義関数名を渡します。 - - &api.register.snippet; - - - cacheablecache_attrs - はほとんどの場合に省略可能です。これらの正しい使用法についての詳細は、 - キャッシュ可能なプラグインの出力の制御 - を参照して下さい。 - - - register_block() - -register_block('translate', 'do_translation'); -?> -]]> - - - テンプレート - - - - - - - - unregister_block() - および - ブロック関数プラグイン - のページも参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-compiler-function.xml b/docs/ja/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 141beca4..00000000 --- a/docs/ja/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - register_compiler_function() - コンパイラ関数プラグインを動的に登録します。 - - - 説明 - - boolregister_compiler_function - stringname - mixedimpl - boolcacheable - - - コンパイラ関数 の名前と、 - それを実装する PHP のユーザー定義関数名を渡します。 - - &api.register.snippet; - - - cacheable はほとんどの場合に省略可能です。 - これらの正しい使用法についての詳細は、 - キャッシュ可能なプラグインの出力の制御 を参照して下さい。 - - - - -unregister_compiler_function() -および -コンパイラ関数プラグイン -も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-function.xml b/docs/ja/programmers/api-functions/api-register-function.xml deleted file mode 100644 index a823e79f..00000000 --- a/docs/ja/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - register_function() - テンプレート関数プラグインを動的に登録します。 - - - 説明 - - voidregister_function - stringname - mixedimpl - boolcacheable - mixedcache_attrs - - - - パラメータには、テンプレート関数 - 名とそれを実装する PHP のユーザー定義関数名を渡します。 - - &api.register.snippet; - - - - cacheablecache_attrs は、 - ほとんどの場合に省略可能です。これらの正しい使用法についての詳細は、 - キャッシュ可能なプラグインの出力の制御 - を参照して下さい。 - - - register_function() - -register_function('date_now', 'print_current_date'); - -function print_current_date($params, &$smarty) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - } - return strftime($format,time()); -} -?> -]]> - - - テンプレート - - - - - - - -unregister_function() -および -テンプレート関数プラグイン の項も参照してください。 - - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-modifier.xml b/docs/ja/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index b51672b1..00000000 --- a/docs/ja/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - register_modifier() - 変数の修飾子プラグインを動的に登録します。 - - - 説明 - - voidregister_modifier - stringname - mixedimpl - - - パラメータには、変数の修飾子名とそれを実装するPHPのユーザー定義関数名を渡します。 - - &api.register.snippet; - - - - register_modifier() - -register_modifier('ss', 'stripslashes'); - -?> -]]> - -テンプレートでは、ss を使用してスラッシュを取り除きます。 - - -]]> - - - - - unregister_modifier()、 - register_function()、 - 修飾子、 - プラグインによる Smarty の拡張 - および - 修飾子プラグインの作成 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-register-object.xml b/docs/ja/programmers/api-functions/api-register-object.xml deleted file mode 100644 index ae36969f..00000000 --- a/docs/ja/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - register_object() - テンプレート内で使用するオブジェクトを登録します。 - - - 説明 - - voidregister_object - stringobject_name - objectobject - arrayallowed_methods_properties - - booleanformat - arrayblock_methods - - - 詳細は、 - オブジェクト - の項を参照して下さい。 - - - get_registered_object() - および - unregister_object() - も参照してください。 - - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-outputfilter.xml b/docs/ja/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 24932f39..00000000 --- a/docs/ja/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - register_outputfilter() - アウトプットフィルタを動的に登録します。 - - - 説明 - - voidregister_outputfilter - mixedfunction - - - テンプレートの出力が - 表示 される前に作用する、 - アウトプットフィルタ - を動的に登録します。アウトプットフィルタ関数の定義のしかたは、 - アウトプットフィルタ - の項を参照して下さい。 - - &api.register.snippet; - ¬e.parameter.function; - -unregister_outputfilter()、 -load_filter()、 -$autoload_filters -および -アウトプットフィルタ -も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-register-postfilter.xml b/docs/ja/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 91ed8271..00000000 --- a/docs/ja/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - register_postfilter() - ポストフィルタを動的に登録します。 - - - 説明 - - voidregister_postfilter - mixedfunction - - - テンプレートをコンパイルした後で実行される - ポストフィルタ - を動的に登録します。ポストフィルタ関数の定義の仕方は、 - ポストフィルタ - の項を参照して下さい。 - - &api.register.snippet; - ¬e.parameter.function; - - - unregister_postfilter()、 - - register_prefilter()、 - load_filter()、 - - $autoload_filters - および - アウトプットフィルタ - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-prefilter.xml b/docs/ja/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 0a4f70d5..00000000 --- a/docs/ja/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - register_prefilter() - プリフィルタを動的に登録します。 - - - 説明 - - voidregister_prefilter - mixedfunction - - - テンプレートをコンパイルする前に実行する、 - プリフィルタ - を動的に登録します。プリフィルタ関数の定義の仕方は、プリフィルタ - の項を参照して下さい。 - - &api.register.snippet; - ¬e.parameter.function; - - - - unregister_prefilter()、 - register_postfilter()、 - register_ouputfilter()、 - load_filter()、 - $autoload_filters - および - アウトプットフィルタ - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-register-resource.xml b/docs/ja/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index d21ff8cc..00000000 --- a/docs/ja/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - register_resource() - リソースプラグインを動的に登録します。 - - - 説明 - - voidregister_resource - stringname - arrayresource_funcs - - - リソースプラグイン - を動的に登録します。パラメータとして、 - リソース名および実行する PHP ユーザ定義関数の名前を格納した配列を渡します。 - テンプレートを取得するための関数の定義の仕方は、 - テンプレートリソース - の項を参照してください。 - - テクニカルノート - - リソース名の長さは少なくとも2文字以上である必要があります。 - 1文字のリソース名は無視され、$smarty->display('c:/path/to/index.tpl'); - のようにファイルパスの一部として使用されます。 - - - - - - - - PHP関数名が含まれる配列 resource_funcs - には4つまたは5つの要素が必要です。 - - - 要素が4つの場合は、source、 - timestampsecure および - trusted がリソースの関数としてそれぞれコールバックされます。 - - - 要素が5つの場合は、最初の要素はリソースを実装するオブジェクトの参照または - オブジェクトのクラス名またはクラスである必要があり、続く4つの要素は - sourcetimestampsecure - および trusted を実装したメソッド名である必要があります。 - - - - register_resource() - -register_resource('db', array( - 'db_get_template', - 'db_get_timestamp', - 'db_get_secure', - 'db_get_trusted') - ); -?> -]]> - - - - - unregister_resource() - および - テンプレートリソース - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-template-exists.xml b/docs/ja/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 11f3863c..00000000 --- a/docs/ja/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - template_exists() - 指定したテンプレートが存在するかどうかをチェックします。 - - - 説明 - - booltemplate_exists - stringtemplate - - - ファイルシステムに関するテンプレートへのパス - 又はテンプレートを指定するリソースの文字列のいずれかを受け入れる事ができます。 - - - - template_exists() - - この例は、コンテンツテンプレートを - インクルード - するのに $_GET['page'] を使用しています。 - テンプレートが存在しない場合、代わりにエラーページが表示されます。 - まずは page_container.tpl から。 - - - -{$title} - -{include file='page_top.tpl'} - -{* コンテンツページの中央部分をインクルード *} -{include file=$content_template} - -{include file='page_footer.tpl'} - -]]> - - - そしてスクリプトです。 - - -template_exists($mid_template) ){ - $mid_template = 'page_not_found.tpl'; -} -$smarty->assign('content_template', $mid_template); - -$smarty->display('page_container.tpl'); - -?> -]]> - - - - - display()、 - fetch()、 - {include} - および - {insert} - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-trigger-error.xml b/docs/ja/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index c1684bc0..00000000 --- a/docs/ja/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - trigger_error() - エラーメッセージを出力します。 - - - 説明 - - voidtrigger_error - stringerror_msg - intlevel - - - Smartyを通してエラーメッセージを出力します。 - level パラメータには、PHP - の - trigger_error() 関数に使用される値 - (E_USER_NOTICEE_USER_WARNING など) - を指定します。デフォルトは E_USER_WARNING です。 - - - - $error_reporting、 - debugging - および - トラブルシューティング - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-block.xml b/docs/ja/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index 1f38c85c..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - unregister_block() - 動的に登録されたブロック関数プラグインを未登録にします。 - - - 説明 - - voidunregister_block - stringname - - - 動的に登録された - ブロック関数プラグイン - を未登録にします。パラメータには、ブロック関数名を渡します。 - - - - register_block() - および - ブロック関数プラグイン - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-compiler-function.xml b/docs/ja/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 4b209814..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - unregister_compiler_function() - 動的に登録されたコンパイラ関数を未登録にします。 - - - 説明 - - voidunregister_compiler_function - stringname - - - パラメータにはコンパイラ関数名を渡します。 - - - - - register_compiler_function() - および - コンパイラ関数プラグイン - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-function.xml b/docs/ja/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index fd170bbe..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - unregister_function - 動的に登録されたテンプレート関数プラグインを未登録にします。 - - - 説明 - - voidunregister_function - stringname - - - パラメータには、テンプレート関数名を渡します。 - - - unregister_function - -unregister_function('fetch'); - -?> -]]> - - - - - - register_function() も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-modifier.xml b/docs/ja/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 71b90a3a..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - unregister_modifier() - 動的に登録された変数の修飾子プラグインを未登録にします。 - - - 説明 - - voidunregister_modifier - stringname - - - パラメータには、変数修飾子の名前を渡します。 - - - unregister_modifier() - -unregister_modifier('strip_tags'); - -?> -]]> - - - - register_modifier() - および - 修飾子プラグイン - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-object.xml b/docs/ja/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index e2ae571c..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - unregister_object() - 動的に登録されたオブジェクトを未登録にします。 - - - 説明 - - voidunregister_object - stringobject_name - - - - register_object() - および - オブジェクトの項 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-outputfilter.xml b/docs/ja/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index c9316c35..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - unregister_outputfilter() - 動的に登録されたアウトプットフィルタプラグインを未登録にします。 - - - 説明 - - voidunregister_outputfilter - stringfunction_name - - - 動的に登録されたアウトプットフィルタプラグインを未登録にします。 - - - - - register_outputfilter() - および - アウトプットフィルタ - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-postfilter.xml b/docs/ja/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index ebca7001..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - unregister_postfilter() - 動的に登録されたポストフィルタプラグインを未登録にします。 - - - 説明 - - voidunregister_postfilter - stringfunction_name - - - - - register_postfilter() - および - ポストフィルタの項 - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-prefilter.xml b/docs/ja/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 2b49732e..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - unregister_prefilter() - 動的に登録されたプリフィルタプラグインを未登録にします。 - - - 説明 - - voidunregister_prefilter - stringfunction_name - - - - - register_prefilter() - および - プリフィルタの項 - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-functions/api-unregister-resource.xml b/docs/ja/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 6a1fe12e..00000000 --- a/docs/ja/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - unregister_resource() - 動的に登録されたリソースプラグインを未登録にします。 - - - 説明 - - voidunregister_resource - stringname - - - パラメータにはリソース名を渡します。 - - - unregister_resource() - -unregister_resource('db'); - -?> -]]> - - - - - - register_resource() - および - テンプレートリソース - も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-variables.xml b/docs/ja/programmers/api-variables.xml deleted file mode 100644 index df6338f4..00000000 --- a/docs/ja/programmers/api-variables.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - Smarty クラス変数 - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-error-reporting; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; - - diff --git a/docs/ja/programmers/api-variables/variable-autoload-filters.xml b/docs/ja/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index c3cf91f1..00000000 --- a/docs/ja/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - $autoload_filters - - 全てのテンプレートの呼出し時に適用したいフィルタがある場合、 - この変数を用いて指定する事で、Smarty はそれらを自動的に読み込みます。 - これは、配列のキーがフィルタの種類、値がフィルタの名前を格納した連想配列です。 - たとえば次のようになります。 - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - register_outputfilter()、 - register_prefilter()、 - register_postfilter() - および - load_filter() - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-cache-dir.xml b/docs/ja/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 233c9a61..00000000 --- a/docs/ja/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - $cache_dir - - テンプレートのキャッシュが格納されるディレクトリです。デフォルトは - ./cache で、 - これは実行中のPHPスクリプトが置かれた場所にある - cache/ ディレクトリを探す事を意味します。 - このディレクトリは web サーバが書き込み可能でなくてはなりません。 - 詳細は インストールについての説明 - を参照してください。 - - - この設定を使わずに、キャッシュファイルを操作するための - - 自作のキャッシュハンドラ - 関数を使う事もできます。詳細は - $use_sub_dirs - も参照してください。 - - - テクニカルノート - - この設定は、相対パス又は絶対パスである必要があります。 - include_path はファイル書き込み時には使用されません。 - - - - テクニカルノート - - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨しません。 - - - - - $caching、 - $use_sub_dirs、 - $cache_lifetime、 - $cache_handler_func、 - $cache_modified_check - および - キャッシュの項目 も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-variables/variable-cache-handler-func.xml b/docs/ja/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index b00df079..00000000 --- a/docs/ja/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $cache_handler_func - - $cache_dir. - 用いる組み込みメソッドを使用する代わりに、 - キャッシュファイルを操作するために定義された関数の名前を指定します。 - 詳細は、 - cache - キャッシュハンドラ関数 の項を参照して下さい。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-cache-lifetime.xml b/docs/ja/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index d8b4fedc..00000000 --- a/docs/ja/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - $cache_lifetime - - テンプレートのキャッシュの期限(単位:秒)です。これが切れるとキャッシュは再生成されます。 - - - - - $cache_lifetime を使用するためには、 - $caching を有効に (1 あるいは 2 のいずれかに) する必要があります。 - - - - $cache_lifetime の値を -1 にすると、キャッシュを無期限で有効とします。 - - - - この値を 0 にすると、キャッシュを常に再生成します - (これはテスト時にのみ有用です。 - キャッシュを無効にするためには、より効率的な方法として $caching = 0 - があります)。 - - - - 各テンプレートごとに有効期限を独自に設定したい場合は - - $caching = 2 - とします。そして - display() - あるいは fetch() - を呼び出す前に - $cache_lifetime に値を設定してください。 - - - - - - $force_compile - が有効の場合、キャッシュファイルは毎回再生成されるので事実上キャッシュは無効になります。 - clear_all_cache() - 関数で全てのキャッシュを、clear_cache() - 関数で特定のキャッシュファイル (グループ) をクリアする事が出来ます。 - - - - - diff --git a/docs/ja/programmers/api-variables/variable-cache-modified-check.xml b/docs/ja/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index c6aa3ba9..00000000 --- a/docs/ja/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - -$cache_modified_check - - &true; の場合、Smarty はクライアントから送信された If-Modified-Since - ヘッダを尊重します。キャッシュファイルのタイムスタンプが最後に訪れた時から変わっていなければ、 - コンテンツの代わりに '304: Not Modified' レスポンスが返されます。 - これは、キャッシュされた内容に - {insert} - タグが含まれない場合にのみ機能します。 - - - - $caching、 - $cache_lifetime、 - $cache_handler_func - および - キャッシュの項 も参照してください。 - - - - - diff --git a/docs/ja/programmers/api-variables/variable-caching.xml b/docs/ja/programmers/api-variables/variable-caching.xml deleted file mode 100644 index bd3bfbea..00000000 --- a/docs/ja/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - $caching - - テンプレートの出力を - $cache_dir にキャッシュするかどうかを設定します。 - デフォルトは 0 で、これは無効を意味します。 - テンプレートが何度も同じコンテンツを生成するような場合は、 - $caching を有効にするほうがよいでしょう。 - これにより、パフォーマンスが向上します。 - - - - 複数の - キャッシュをひとつのテンプレートファイルに持たせることもできます。 - - - - - 値として 1 または 2 を指定すると、キャッシュを有効にします。 - - - - 1 は、Smarty にそのキャッシュが期限切れかどうかを調べるために、 現在の時間と - $cache_lifetime - の値を比較するように指示します。 - - - 2 は、Smarty にそのキャッシュが生成された時点の時間と - $cache_lifetime - の値を比較するように指示します。このようにキャッシュの期限を制御するために、 - テンプレートを 取得 する直前に - $cache_lifetime - をセットする事ができます。詳細は、 - is_cached() - の項を参照して下さい。 - - - - $compile_check - が有効な場合、キャッシュに含まれるテンプレートや設定ファイルが変更されていると、 - キャッシュが再生成されます。 - - - - $force_compile - が有効ならばキャッシュは常に再生成されます。 - - - - $cache_dir、 - $cache_lifetime、 - $cache_handler_func、 - $cache_modified_check、 - is_cached() - および -キャッシュの項 も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-compile-check.xml b/docs/ja/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index c8e5be87..00000000 --- a/docs/ja/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - $compile_check - - SmartyはPHPアプリケーションの各リクエスト時に、 - 現在のテンプレートが最後に訪れた時から変更されている(タイムスタンプが異なる) - かどうかを検査します。もし変更されているならば、 - そのテンプレートを再コンパイルします。 - そのテンプレートが一度もコンパイルされていなかった場合は、 - この設定に関係なくコンパイルを行います。この変数のデフォルトは &true; です。 - - - テンプレートが変更される予定がないアプリケーションがいったん稼動に入れば、 - もはや compile_checkの ステップは必要ありません。 - 最大限のパフォーマンスを向上させるために、必ず - $compile_check を &false; に設定して下さい。 - また、この設定を &false; に変更した後にテンプレートファイルが変更された場合、 - そのテンプレートが再コンパイルされる事は「ない」ので変更は反映されない事に注意してください。 - $caching と - $compile_check が共に有効ならば、 - テンプレートファイルが更新されるとキャッシュファイルが再生成されます - 詳細は、 - $force_compile および clear_compiled_tpl() - を参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-compile-dir.xml b/docs/ja/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index 3f40c015..00000000 --- a/docs/ja/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - $compile_dir - - コンパイルされたテンプレートが置かれるディレクトリです。デフォルトは - ./templates_c で、 - これは実行中の PHP スクリプトが置かれた場所にある - templates_c/ ディレクトリを探すことを意味します。 - このディレクトリは web サーバが書き込み可能でなければなりません - 。詳細は - インストール - の説明を参照してください。 - - - - テクニカルノート - - この設定は相対パス又は絶対パスである必要があります。 - include_path はファイル書き込み時には使用されません。 - - - - テクニカルノート - - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨されません。 - - - - $compile_id - および - $use_sub_dirs - も参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-compile-id.xml b/docs/ja/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 392d3343..00000000 --- a/docs/ja/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - $compile_id - - コンパイルファイルを識別するための id です。すべての関数呼び出しで毎回 - $compile_id を渡すかわりに - $compile_id を指定すると、その後は暗黙のうちにこれを使用します。 - - - $compile_id を使用すると、同一の - $compile_dir - を別々の - $template_dirs で使用できないという制限を回避できます。 - 異なる $compile_id をそれぞれの - $template_dir - で指定すると、Smarty はコンパイルしたテンプレートを - $compile_id で区別します。 - - - 例として、コンパイル時刻でテンプレートをローカライズ (言語依存のパーツを翻訳) - する prefilter - を用いる場合、$compile_id - に現在の言語を使用することで、各言語についてのコンパイルしたテンプレートのセットを得ることができます。 - - - 別の例としては、複数のドメイン/複数のバーチャルホスト - をまたがって同じコンパイルディレクトリを使用する場合があります。 - - - バーチャルホスト環境での $compile_id - -compile_id = $_SERVER['SERVER_NAME']; -$smarty->compile_dir = '/path/to/shared_compile_dir'; - -?> -]]> - - - - diff --git a/docs/ja/programmers/api-variables/variable-compiler-class.xml b/docs/ja/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index 699b62eb..00000000 --- a/docs/ja/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - $compiler_class - - Smarty がテンプレートをコンパイルするために使用するコンパイラクラスの名前を指定します。 - デフォルトは 'Smarty_Compiler' です。 - これは上級ユーザのために用意されています。 - - - diff --git a/docs/ja/programmers/api-variables/variable-config-booleanize.xml b/docs/ja/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index eaf00bf1..00000000 --- a/docs/ja/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $config_booleanize - - &true; の場合、設定ファイル - の on/true/yes - や off/false/no といった値が自動的に - boolean 値に変換されます。これにより、テンプレートで - {if #foobar#}...{/if} のように使用できるようになります。foobar が - ontrue あるいは yes - である場合に {if} ステートメントを実行します。 - デフォルトは &true; です。 - - - diff --git a/docs/ja/programmers/api-variables/variable-config-dir.xml b/docs/ja/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 9405b135..00000000 --- a/docs/ja/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - $config_dir - - テンプレートから読み込むための - 設定ファイル - を置くディレクトリです。デフォルトは - ./configs - で、実行中の PHP スクリプトが置かれた場所にある - configs/ - ディレクトリを探すことを意味します。 - - - テクニカルノート - - このディレクトリをwebサーバのドキュメントルート下に置く事は推奨されません。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-config-fix-newlines.xml b/docs/ja/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index c8295f77..00000000 --- a/docs/ja/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - $config_fix_newlines - - &true; の場合、mac や dos の改行コード ('\r' や - '\r\n') が設定ファイルにあると、パース時にそれを - '\n' に変換します。 - デフォルトは is &true; です。 - - - diff --git a/docs/ja/programmers/api-variables/variable-config-overwrite.xml b/docs/ja/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index d73bb85b..00000000 --- a/docs/ja/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - $config_overwrite - - &true; の場合、 - 設定ファイル - から読み込んだ変数は互いに上書きされます (デフォルトは &true;)。 - &false; の場合、変数は配列にプッシュされます。 - これは各要素を複数回リストするような、 - 設定ファイルのデータの配列を格納したい場合に役立ちます。 - - - - 設定ファイル変数の配列 - - この例では $config_overwrite = &false; とし、 - {cycle} - でテーブルの行の色を 赤/緑/青 と切り替えています。 - - 設定ファイル - - - - - - {section} ループを使用したテンプレート - - - - {section name=r loop=$rows} - - ....何かの内容.... - - {/section} - -]]> - - - - {config_load}、 - get_config_vars()、 - clear_config()、 - config_load() - および config files section - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-config-read-hidden.xml b/docs/ja/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 57792384..00000000 --- a/docs/ja/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - $config_read_hidden - - &true; の場合、設定ファイル - のhiddenセクション(セクション名がピリオドで始まるもの) - をテンプレートから読み込むことができます。 - 通常はこれを &false; のままにしておきます。 - そうすると、設定ファイルにデータベースパラメータのような注意が必要なデータを格納しても、 - テンプレートがそれらのデータを読み出してしまう心配はありません。デフォルトは &false; です。 - - - diff --git a/docs/ja/programmers/api-variables/variable-debug-tpl.xml b/docs/ja/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 4b472b4b..00000000 --- a/docs/ja/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - $debug_tpl - - これは、デバッギングコンソールに使用するテンプレートファイルの名前です。 - デフォルトは debug.tpl という名前で、 - SMARTY_DIR - に位置します。 - - - $debugging - および - デバッギングコンソール - も参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-debugging-ctrl.xml b/docs/ja/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 6168cee2..00000000 --- a/docs/ja/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - $debugging_ctrl - - デバッギングコンソールを有効にするための $debugging に代わる方法です。 - NONE は、これを無効にする事を意味します。 - URL は、QUERY_STRING の中にキーワード - SMARTY_DEBUG が含まれていた時に - デバッギングコンソールが有効になる事を意味します。 - - $debugging が &true; - の場合は、この設定は無視されます。 - - - localhost での $debugging_ctrl - - -debugging = false; // デフォルト -$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE'; -?> -]]> - - - - - デバッギングコンソール - および - $debugging - も参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-debugging.xml b/docs/ja/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 54945e25..00000000 --- a/docs/ja/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - $debugging - - デバッギングコンソール - を有効にします。このコンソールは、現在のスクリプトにおける - インクルードされた - テンプレートや PHP から 割り当てられた 変数、 - 設定ファイルの変数 - といった情報を javascript のポップアップウィンドウで通知します。 - {assign} - 関数によってテンプレート内で割り当てられた変数は表示されません。 - - このコンソールは、url から - - $debugging_ctrl - を用いることで有効にすることもできます。 - - - {debug}、 - $debug_tpl、 - および $debugging_ctrl - も参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-default-modifiers.xml b/docs/ja/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index f47ec953..00000000 --- a/docs/ja/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - $default_modifiers - - テンプレート内のすべての変数に暗黙に適用される修飾子が格納された配列です。 - 例えば、 デフォルトですべての変数にHTMLエスケープ処理を施したい場合は、 - array('escape:"htmlall"') となります。 - この影響を受けない変数にするには、{$var|smarty:nodefaults} - のように nodefaults 修飾子をパラメータに持つ - smarty 修飾子を指定します。 - - - diff --git a/docs/ja/programmers/api-variables/variable-default-resource-type.xml b/docs/ja/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index ed0d8540..00000000 --- a/docs/ja/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $default_resource_type - - これは、暗黙に使用されるリソースの種類を指定します。 - デフォルトの値は file で、 - これは $smarty->display('index.tpl') と - $smarty->display('file:index.tpl') - とが意味的に同じになる、ということです。 - 詳細は、リソース - の項を参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml b/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index 9d0edf33..00000000 --- a/docs/ja/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - $default_template_handler_func - - リソースからのテンプレートの取得に失敗した場合に、この関数をコールします。 - - - diff --git a/docs/ja/programmers/api-variables/variable-error-reporting.xml b/docs/ja/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index e930e93f..00000000 --- a/docs/ja/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - $error_reporting - - この値に null でない値がセットされると、その値は - display() と - fetch() の内側で - PHP の error_reporting - レベルとして使用されます。デバッグ - が有効のときはこの値は無視され、エラーレベルには全く触れられません。 - - - trigger_error()、 - デバッギングコンソール - および - トラブルシューティング - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-force-compile.xml b/docs/ja/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 8cca2eac..00000000 --- a/docs/ja/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - $force_compile - - テンプレートが呼び出される毎に強制的にコンパイル(再コンパイル)を行います。 - この設定は、 - $compile_check をオーバーライドします。 - デフォルトの設定では無効になっています。開発や - デバッグ の際に便利ですが、 - 決して運用環境で使用してはいけません。 - $caching - が有効の場合はキャッシュファイルは毎回再生成されます。 - - - diff --git a/docs/ja/programmers/api-variables/variable-left-delimiter.xml b/docs/ja/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 1861c208..00000000 --- a/docs/ja/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $left_delimiter - - これは、テンプレート言語の開始を表すデリミタです。 - デフォルトは { です。 - - - $right_delimiter - および - Smarty の構文解析を回避 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-php-handling.xml b/docs/ja/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index c47f75ed..00000000 --- a/docs/ja/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - $php_handling - - テンプレートに埋め込まれた PHP コードの扱いを設定します。 - これには4つの設定があり、デフォルトは - SMARTY_PHP_PASSTHRU です。 - テンプレート内の - {php}{/php} - タグで囲まれたPHPコードには影響を及ぼさない事に注意して下さい。 - - - - - - SMARTY_PHP_PASSTHRU - PHPコードを実行せずにそのまま出力します。 - - - - SMARTY_PHP_QUOTE - PHPコードをHTMLエンティティとして表示します。 - - - - SMARTY_PHP_REMOVE - PHPコードをテンプレートから除去します。 - - - - SMARTY_PHP_ALLOW - PHPコードを実行します。 - - - - - - テンプレート内にPHPコードを埋め込む事は、とにかく避けるべきです。 代わりに、 - カスタム関数 または - 修飾子 を使用します。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-plugins-dir.xml b/docs/ja/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index ae6859f8..00000000 --- a/docs/ja/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - $plugins_dir - - Smartyが必要とするプラグインを置くディレクトリです。デフォルトは - SMARTY_DIR - 直下の plugins/ です。 - 相対パスが指定された場合は、まず最初に - SMARTY_DIR - 直下を見ます。そこで見つからなかった場合は、 - 次にカレントディレクトリ、PHPのinclude_pathの順で見ていきます。 - $plugins_dir - がディレクトリ名の配列であった場合、Smarty - は各プラグインディレクトリを - 与えられた順に 検索します。 - - - テクニカルノート - - パフォーマンスを確保するため、$plugins_dir - には PHP のインクルードパスを使用しないでください。絶対パスを使用するか、 - SMARTY_DIR あるいはカレントディレクトリからの相対パスを使用してください。 - - - - - ローカルのプラグインディレクトリの追加 - -plugins_dir[] = 'includes/my_smarty_plugins'; - -?> - -]]> - - - - 複数の $plugins_dir - -plugins_dir = array( - 'plugins', // デフォルトは SMARTY_DIR の配下 - '/path/to/shared/plugins', - '../../includes/my/plugins' - ); - -?> - -]]> - - - - - diff --git a/docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 7c757683..00000000 --- a/docs/ja/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - $request_use_auto_globals - - Smarty が、PHP の $HTTP_*_VARS[] - を使用するのか (&false; の場合) あるいは $_*[] - を使用するのか (&true; の場合) を指定します。デフォルトでは - $_*[] を使用します。これは、テンプレートで - - {$smarty.request.*}, {$smarty.get.*} - などを使用する際に影響します。 - - - 注意 - - $request_use_auto_globals を true - に設定すると - - $request_vars_order - はこうかを及ぼさず、PHP の設定値 - gpc_order を使用します。 - - - - - diff --git a/docs/ja/programmers/api-variables/variable-request-vars-order.xml b/docs/ja/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index ebb3d18f..00000000 --- a/docs/ja/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $request_vars_order - - リクエスト変数が登録される順番です。php.iniのvariables_orderの設定と同様です。 - - - $smarty.request - および - $request_use_auto_globals - も参照してください。 - - - diff --git a/docs/ja/programmers/api-variables/variable-right-delimiter.xml b/docs/ja/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index d1966b7a..00000000 --- a/docs/ja/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - $right_delimiter - - これは、テンプレート言語の終端を表すデリミタです。 - デフォルトは } です。 - - - $left_delimiter - および - Smarty の構文解析を回避 - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-secure-dir.xml b/docs/ja/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index b3cce591..00000000 --- a/docs/ja/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - $secure_dir - - これは、セキュアであるとみなすローカルファイルやディレクトリを格納する配列です。 - {include} - および {fetch} - は、$security - が有効な場合にこの設定を使用します。 - - - - -$secure_dir の例 - -secure_dir = $secure_dirs; -?> -]]> - - - - - $security_settings - および $trusted_dir - も参照してください。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-security-settings.xml b/docs/ja/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index a08bfb12..00000000 --- a/docs/ja/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - $security_settings - -$security - が有効な場合に、これらを使用してセキュリティ設定の指定やオーバーライドを行います。 - 以下のような設定があります。 - - - - - PHP_HANDLING - boolean。&true; の場合は、セキュリティのための - $php_handling - のチェックを行いません。 - - - - - IF_FUNCS - 配列。 - {if} - ステートメントで使用できる PHP 関数の名前を指定します。 - - - - - INCLUDE_ANY - boolean。&true; の場合は - $secure_dir - のリストの内容にかかわらず、ファイルシステムからテンプレートを - インクルード できます。 - - - - - PHP_TAGS - boolean。&true; の場合は、 - テンプレート内で - {php}{/php} - タグが使用できるようになります。 - - - - - MODIFIER_FUNCS - 配列。 - 変数の修飾子として使用できる PHP 関数の名前を指定します。 - - - - - ALLOW_CONSTANTS - boolean。&true; の場合は、テンプレート内で - {$smarty.const.FOO} - のようにして定数を使用することができます。 - - - - - diff --git a/docs/ja/programmers/api-variables/variable-security.xml b/docs/ja/programmers/api-variables/variable-security.xml deleted file mode 100644 index 672ece72..00000000 --- a/docs/ja/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - $security - - $security は &true; または &false; となり、 - デフォルトは &false; です。これは、 - テンプレート言語によってシステムのセキュリティが脆弱になる危険性を減らしたい場合や、 - (例えばFTPによって) テンプレートを編集するグループにあまり信用がおけない時に最適です。 - セキュリティを有効にすると、 - $security_settings - によってオーバーライドされない限りは次の規則をテンプレート言語へ適用します。 - - - -If $php_handling -が SMARTY_PHP_ALLOW に設定されていれば、 -それを暗黙のうちに SMARTY_PHP_PASSTHRU に変更します。 - - - -PHP 関数を {if} -ステートメント内で使用することができません。ただし -$security_settings -で指定されているものは除きます。 - - -テンプレートは、 -$secure_dir -配列に格納されているディレクトリからのみ取得できます。 - - -ローカルファイルは、 -$secure_dir -配列に格納されているディレクトリから -{fetch} -を使用することによってのみ取得できます。 - - -{php}{/php} タグは使用できません。 - - -PHP 関数を修飾子として使用することはできません。ただし -$security_settings -で指定されているものは除きます。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-template-dir.xml b/docs/ja/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 1fba726b..00000000 --- a/docs/ja/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - $template_dir - - これは、デフォルトのテンプレートディレクトリの名前です。 - ファイルのインクルード時にリソースの種類を指定しなかった場合は、 - このディレクトリから探します。デフォルトは - ./templates で、 - これは、実行しているスクリプトと同じ場所にある - templates/ - ディレクトリを探すということです。 - - - テクニカルノート - - このディレクトリをwebサーバのドキュメントルート下に置く事を推奨しません。 - - - - diff --git a/docs/ja/programmers/api-variables/variable-trusted-dir.xml b/docs/ja/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 44cab815..00000000 --- a/docs/ja/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - $trusted_dir - - $trusted_dir は、 - $security - が有効な場合にのみ使用します。これは、 - 信用がおけると考えられる全ディレクトリパスの配列です。 - 信用がおけるディレクトリには、テンプレートから - {include_php} - によって直接実行される PHP スクリプトを置きます。 - - - diff --git a/docs/ja/programmers/api-variables/variable-use-sub-dirs.xml b/docs/ja/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index fca43240..00000000 --- a/docs/ja/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - $use_sub_dirs - -$use_sub_dirs を &true; に設定すると、 -Smarty は -テンプレートディレクトリ と -キャッシュディレクトリ -の下にサブディレクトリを作ります。デフォルトは &false; です。 -何万ものファイルが生成される可能性のある環境では、 -ファイルシステムの速度低下を抑える助けになります。 -一方、環境次第では、ディレクトリを生成するためのPHPプロセスが許容されない事があるので、 -その場合はこの変数を無効にしなければなりません。デフォルトは無効になっています。 - - -サブディレクトリは効率がよいので、可能なら使用するとよいでしょう。 -理論的には、10のディレクトリがそれぞれ100のファイルを持っているほうが、1つのディレクトリに1000 -のファイルを持っている場合よりも良いパフォーマンスを得られます。 -少なくとも Solaris 7 (UFS) の場合には確実にそうでした……。 -ext3 や reiserfs などの最近のファイルシステムでも、そんなに違いはないでしょう。 - - - -テクニカルノート - - - $use_sub_dirs=true は、 - safe_mode=On - の場合は動作しません。safe_mode は切り替え可能で、デフォルトは off です。 - - - - $use_sub_dirs=true は、Windows ではうまく動作しません。 - - - Safe_mode は、PHP6 で廃止される予定です。 - - - - - - $compile_id、 - $cache_dir - および - $compile_dir - も参照してください。 - - - - diff --git a/docs/ja/programmers/caching.xml b/docs/ja/programmers/caching.xml deleted file mode 100644 index ae937536..00000000 --- a/docs/ja/programmers/caching.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - キャッシュ - - キャッシュは出力内容をファイルに保存する事によって、 - display() - 又は - fetch() - を呼び出す速度を向上させるために使用されます。キャッシュが有効の場合、 - 出力を再生成せずに表示されます。特に処理時間が長いテンプレートは、 - キャッシュを使用する事で大きく速度が上昇するでしょう。 - キャッシュされるのは - display() - 又は - fetch() - の出力結果なので、1つのキャッシュファイルが複数のテンプレートファイルや - 設定ファイル等で構成されていることもあります。 - - - テンプレートが動的コンテンツの場合、何をどれくらいの期間キャッシュするのか注意が必要です。 - 例えば、Webサイトの一面にそれほど変更されないコンテンツが表示されている場合は、 - 一時間かそれ以上、このページをキャッシュしても問題なく動作するでしょう。 - 一方、一分経過するごとに新しい情報が格納される天気図をページに表示する場合は、 - このページをキャッシュする事は意味をなさないでしょう。 - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - diff --git a/docs/ja/programmers/caching/caching-cacheable.xml b/docs/ja/programmers/caching/caching-cacheable.xml deleted file mode 100644 index bb5d1666..00000000 --- a/docs/ja/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - キャッシュ可能なプラグインの出力の制御 - - Smarty 2.6.0 から、プラグインを登録する際にキャッシュ可能なプラグインを宣言する事が出来ます。 - register_block()、 - - register_compiler_function() および - register_function() - の第3パラメータは $cacheable と呼ばれ、デフォルトは - &true; です。この時、Smarty 2.6.0 以前のプラグインの振る舞いになります。 - - - $cacheable=false であるプラグインが登録された時、 - プラグインはページがキャッシュから読まれる場合でもページを表示する度に呼ばれます。 - プラグイン関数は - {insert} - 関数に少し似た振る舞いをします。 - - - {insert} - とは対照的に、プラグインの属性はデフォルトではキャッシュされません。 - キャッシュするためには第4パラメータ $cache_attrs - によって宣言します。$cache_attrs - はキャッシュされるべき属性の名前を格納した配列であり、 - プラグイン関数はページがキャッシュから取り出される度に - 属性はキャッシュに記述されていたものとして値を取得します。 - - - - プラグインの出力がキャッシュされるのを防ぐ - -caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if($remain >= 0){ - return $remain . ' second(s)'; - }else{ - return 'done'; - } -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // データベースから $obj を取り出して割り当てる - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - index.tpl は次のようになります。 - - -endtime} -]]> - - - たとえページがキャッシュされていても $obj - の endtime の秒数までは各ページの表示は変更されていきます。 - その後のリクエストでページがキャッシュに書かれている時、 - endtime 属性がキャッシュされたのでオブジェクトをデータベースから取り出す必要があるだけです。 - - - - - テンプレートの一節がキャッシュされるのを防ぐ - -caching = 1; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - index.tpl は次のようになります。 - - - - - - - - ページをリロードした時に、両方の日付が異なる点に注意して下さい。 - 一つは dynamic であり、もう一つは static です。 - {dynamic}...{/dynamic} 間に含まれるコンテンツ全てを動的に生成する事ができ、 - 残るコンテンツはキャッシュされない事を確認して下さい。 - - - - - diff --git a/docs/ja/programmers/caching/caching-groups.xml b/docs/ja/programmers/caching/caching-groups.xml deleted file mode 100644 index 1d276112..00000000 --- a/docs/ja/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - キャッシュのグループ - - $cache_id のグループを設定する事で、 - より複雑なグループにする事が出来ます。これは $cache_id - の値の中の | によって各サブグループに分けられる事で実現できます。 - サブグループはいくらでも持つ事が出来ます。 - - - - - ディレクトリ階層のようなキャッシュグループを考える事が出来ます。 - 例えば 'a|b|c' というキャッシュグループは、 - '/a/b/c/' というディレクトリ構造だと考えられます。 - - - - clear_cache(null,'a|b|c') - はファイル '/a/b/c/*' を、 - clear_cache(null,'a|b') はファイル - '/a/b/*' を削除するのに似ています。 - - - - $compile_id - を clear_cache(null,'a|b','foo') のように指定すると、 - それをキャッシュグループに追加して - '/a/b/c/foo/' として扱います。 - - - - テンプレート名を - clear_cache('foo.tpl','a|b|c') のように指定すると、 - Smarty は '/a/b/c/foo.tpl' を削除しようと試みます。 - - - - また、'/a/b/*/foo.tpl' のように、 - 複数のキャッシュグループの下でテンプレート名を指定して削除する事は出来ません。 - キャッシュグループは左から右へ向かう順序でのみグループ化を定義できます。 - グループとしてそれらをクリアするためには、 - 単一のキャッシュグループ階層の下でテンプレートをグループ化する必要があります。 - - - - - キャッシュのグループ化はテンプレートディレクトリ階層によって混乱させられるべきではなく、 - テンプレートがどのような構造なのかも知り得ません。例えば、 - themes/blue/index.tpl のようなテンプレート構造があり、 - blue テーマのキャッシュファイルを全てクリアしたい時、 - テンプレートファイル構造をまねた - display('themes/blue/index.tpl','themes|blue') - のような キャッシュグループ構造を作成する必要があり、それならば - clear_cache(null,'themes|blue') - によってキャッシュをクリアする事が出来ます。 - - - $cache_id groups - -caching = true; - -// はじめの2つのcache_idグループが"sports|basketball"のキャッシュを全てクリアします。 -$smarty->clear_cache(null,'sports|basketball'); - -// はじめのcache_idグループが"sports"のキャッシュを全てクリアします。 -// これは"sports|basketball"又は"sports|(anything)|(anything)|(anything)|..."を用いてインクルードされたものでしょう。 -$smarty->clear_cache(null,'sports'); - -// cache_id として"sports|basketball"を用いてfoo.tpl のキャッシュファイルをクリアします。 -$smarty->clear_cache('foo.tpl','sports|basketball'); - - -$smarty->display('index.tpl','sports|basketball'); -?> -]]> - - - - - - diff --git a/docs/ja/programmers/caching/caching-multiple-caches.xml b/docs/ja/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index a76651f0..00000000 --- a/docs/ja/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - ページごとに複数のキャッシュ - - display() - や fetch() - のひとつの呼び出しから、複数のキャッシュファイルを持つ事が出来ます。 - 例えば display('index.tpl') を呼び出した時、 - いくつかの状況に応じて異なった内容の出力を持っているかもしれず、 - その出力ごとに別のキャッシュを持たせたいと思うかもしれません。 - これは、関数を呼び出す時に第2パラメータとして - $cache_id を渡す事で可能です。 - - - display() に $cache_id を渡す - -caching = 1; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl', $my_cache_id); -?> -]]> - - - - 上記の例では、$cache_id として - display() - に変数 $my_cache_id を渡しました。 - それぞれにユニークな $my_cache_id - の値を与える事で、index.tpl の別々のキャッシュが生成されます。 - この例では、$cache_id として使われる - article_id は URL から渡されています。 - - - テクニカルノート - - クライアント (Web ブラウザ) から Smarty (又はいくつかの PHP アプリケーション) - に値を渡すときには用心しなくてはいけません。前の例で、URL から article_id - を扱うのは便利そうにみえましたが、それは悪い結果をもたらすかもしれません。 - $cache_id はファイルシステムにディレクトリを作成するのに使用され、 - そしてもしユーザーが article_id に極めて大きな値を渡そうとしたり、速いペースでランダムの - article_id を送信するスクリプトを記述した場合、 - これはサーバレベルの問題を引き起こすかもしれません。必ず、 - 値を利用する前に渡されたデータの汚染チェックを行って下さい。おそらくこの例では、 - あなたは article_id が10文字かつ英数字のみで構成され、データベース内に有効な - article_id が存在しなければならない事を知っています。これをチェックして下さい! - - - - is_cached() と - clear_cache() - には、第2パラメータとして同じ $cache_id - を渡すようにしましょう。 - - - is_cached() に cache_id を渡す - -caching = 1; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // キャッシュが有効でないので、ここで変数の割り当てを行いますn - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -?> -]]> - - - - clear_cache() - の第1パラメータとして &null; を渡すと、指定した - $cache_id のすべてのキャッシュをクリアすることができます。 - - - 特定のcache_idの全てのキャッシュをクリアする - -caching = 1; - -// cache_idが"sports"のキャッシュをすべてクリアする -$smarty->clear_cache(null,'sports'); - -$smarty->display('index.tpl','sports'); -?> -]]> - - - - このように同じ $cache_id を与える事で、 - キャッシュをまとめて グループ化 する事が出来ます。 - - - - - diff --git a/docs/ja/programmers/caching/caching-setting-up.xml b/docs/ja/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 9ce4b4a4..00000000 --- a/docs/ja/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - キャッシュのセットアップ - - まずはじめにキャッシュを有効にします。これは、 - $caching = 1 (あるいは 2) - を設定するだけです。 - - - キャッシュを有効にする - -caching = 1; - -$smarty->display('index.tpl'); -?> -]]> - - - - いつものようにテンプレートから出力内容をパースするために - display('index.tpl') を呼び出しますが、 - キャッシュを有効にした事でその出力内容をコピーしたファイルが - $cache_dir - 内に保存されます。次回 display('index.tpl') - が呼ばれる際には、再びテンプレートをパースする代わりにキャッシュされたコピーが使用されます。 - - - テクニカルノート - - $cache_dir - 内のファイルにはテンプレート名に類似した名前が付けられます。 - 拡張子は .php ですが、実際にはPHPスクリプトとして実行されません。 - これらのファイルは編集しないで下さい! - - - - 各々のキャッシュされたページは、 - $cache_lifetime - 生存時間が限られています。デフォルト値は 3600 秒です。 - 期限が過ぎた後、キャッシュは再生成されます。 - $caching=2 - を設定する事によって、個々のキャッシュに自分自身の生存時間を与える事が可能です。詳細は、 - $cache_lifetime - を参照して下さい - - - キャッシュごとに生存時間を設定する - -caching = 2; // 生存時間はキャッシュごと - -// index.tplに5分のcache_lifetimeをセットします -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// home.tplに1時間のcache_lifetimeをセットします -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// 注: $caching = 2の時、次のような$cache_lifetimeの設定は動作しません。 -// home.tplのキャッシュの生存時間は既に1時間にセットされているので、 -// もはや、$cache_lifetimeの値が尊重される事はありません。 -// home.tplのキャッシュは、今までどおり1時間後に満期になるでしょう。 -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); -?> -]]> - - - - - $compile_check が有効の時、 - キャッシュファイルに入り組んだすべてのテンプレートファイルと設定ファイルは - 修正されたかどうかをチェックされます。 - もしキャッシュが生成されてからいくつかのファイルが修正されていた場合、 - キャッシュは即座に再生成されます。 - これは最適なパフォーマンスのためには僅かなオーバーヘッドになるので、 - $compile_check - は &false; にして下さい。 - - - $compile_check を有効にする - -caching = 1; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - - $force_compile が有効の場合、 - キャッシュファイルは常に再生成されます。これは事実上、キャッシュ機能を無効にします。通常、 - $force_compile - は デバッグ - 目的でのみ使用し、キャッシュは - $caching - = 0. - にセットして無効にするのがさらに効率の良い方法です。 - - - is_cached() - 関数は、テンプレートが有効なキャッシュを持っているかどうかを調べるのに使われます。 - もしデータベースフェッチを必要とするようなテンプレートのキャッシュが存在する場合、 - フェッチ過程をスキップするためにこの関数を使う事が出来ます。 - - - is_cached() を使用する - -caching = 1; - -if(!$smarty->is_cached('index.tpl')) { - // キャッシュが有効でないので、ここで変数の割り当てを行います - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -?> -]]> - - - - {insert} - テンプレート関数によってページの一部を動的に保つ事が出来ます。 - 例えば、すべてのページは右下に表示されるバナー以外はキャッシュが可能だとします。 - バナー部分には - {insert} - 関数を使う事によって、キャッシュされたコンテンツの中に動的な要素を保つ事ができます。 - 詳細な説明や例は、{insert} - のドキュメントを参照してください。 - - - clear_all_cache() - 関数または clear_cache() - 関数によって、個々のキャッシュファイル (そしてグループ) - をクリアする事ができます。 - - - キャッシュをクリアする - -caching = 1; - -// 全てのキャッシュファイルをクリアします -$smarty->clear_cache('index.tpl'); - -// index.tplのキャッシュファイルのみクリアします -$smarty->clear_all_cache(); - -$smarty->display('index.tpl'); -?> -]]> - - - - - - diff --git a/docs/ja/programmers/plugins.xml b/docs/ja/programmers/plugins.xml deleted file mode 100644 index 0b0d0c3f..00000000 --- a/docs/ja/programmers/plugins.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - プラグインによる Smarty の拡張 - - Smarty 2.0 から導入されたプラグインアーキテクチャにより、 - Smarty のほとんど全ての機能がカスタマイズ可能になりました。 - プラグインには次のものがあります。 - - テンプレート関数プラグイン - 修飾子プラグイン - ブロック関数プラグイン - コンパイラ関数プラグイン - プリフィルタプラグイン - ポストフィルタプラグイン - アウトプットフィルタプラグイン - リソースプラグイン - インサートプラグイン - - リソースを除いて、register_* API - によって関数を登録する古い方法の後方互換性はサポートされます。 - API を使わずに、代わりに $custom_funcs, - $custom_mods や その他のクラス変数を変更していたなら、 - API を使用するか、行った拡張をプラグインに変換するようにスクリプトを調整する必要があります。 - - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; - - diff --git a/docs/ja/programmers/plugins/plugins-block-functions.xml b/docs/ja/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index 44a8e4fb..00000000 --- a/docs/ja/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - ブロック関数プラグイン - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - ブロック関数は、{func} .. {/func} 形式の関数です。 - この関数によって囲まれたテンプレートのブロックの内容を処理します。 - ブロック関数は、同じ名前の - カスタム関数 - より優先されます。つまり、テンプレート関数 - {func} とブロック関数 - {func}..{/func} の両方を定義することはできません。 - - - - - デフォルトでは、実装された関数はSmartyによって2度 - (1度目は開始タグ、2度目は終端タグによって)呼び出されます - (この動作の変更方法は次の $repeat を参照)。 - - - ブロック関数の開始タグのみ 属性 - を持つ場合があります。全ての属性はテンプレートからテンプレート関数に、 - 連想配列として $params に格納された状態で渡されます。 - また、終端タグを処理している時に開始タグの属性にアクセスする事が可能です - - - 変数 $content の値は、 - 関数が開始タグ又は終端タグのどちらから呼ばれるかによって変わります。 - 開始タグの場合は &null;、終端タグの場合はテンプレートブロックのコンテンツです。 - テンプレートブロックが Smarty によって既に処理されている事に注意して下さい。 - つまり、受け取るのはテンプレートソースではなくテンプレートの出力です。 - - - - $repeat パラメータは実装された関数に参照によって渡され、 - そのブロックが何回表示されるのかを操作する事ができます。 - デフォルトでは、最初のブロック関数の呼び出し(開始タグ)のとき - $repeat は &true; で、その後に呼び出される場合(終端タグ)は、 - &false; となります。 実装された関数で $repeat を &true; - とする事で、{func}...{/func} 間のコンテンツが再度評価され、 - $content パラメータに新しいブロックコンテンツが格納された状態で、 - 再び呼び出されます。 - - - - - ネストしたブロック関数がある場合、変数 - $smarty->_tag_stack - にアクセスする事で親のブロック関数を見つける事が可能です。 - var_dump() - を行い、構造をはっきりと理解すべきべきです。 - - - - ブロック関数プラグイン - - -]]> - - - - - register_block() - および - unregister_block() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/plugins/plugins-compiler-functions.xml b/docs/ja/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index d27b3e01..00000000 --- a/docs/ja/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - コンパイラ関数プラグイン - - コンパイラ関数プラグインはテンプレートのコンパイル時にのみ呼び出されます。 - これらのプラグインは、PHPコードまたは時間に依存する静的コンテンツをテンプレートに含める時に便利です。 - コンパイラ関数と カスタム関数 - が双方とも同じ名前で登録された場合は、コンパイラ関数が優先されます。 - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - コンパイラ関数には2つのパラメータを渡します。 - これらのパラメータは、タグ内の文字列(基本的に関数名から終端デリミタまでの全ての文字列)と、 - Smartyのオブジェクトです。戻り値には、コンパイルされたテンプレートに挿入されるPHPコードを返します。 - - - - シンプルなコンパイラ関数プラグイン - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - - この関数はテンプレートから次のように呼ばれます。 - - - - - - コンパイルされたテンプレートの結果として生じるPHPコードは次のようになります。 - - - -]]> - - - - - - register_compiler_function() - および - - unregister_compiler_function() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/plugins/plugins-functions.xml b/docs/ja/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 112be46a..00000000 --- a/docs/ja/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,132 +0,0 @@ - - - - - テンプレート関数プラグイン - - - void smarty_function_name - array $params - object &$smarty - - - - テンプレートからテンプレート関数に渡された全ての - 属性 は、 - 連想配列として $params に格納されます。 - - - 関数の出力(戻り値)はテンプレート関数のタグの部分と置き換えられます(例: - {fetch} - 関数)。 あるいは何も出力せずに単に他のタスクを実行する事ができます(例: - - {assign} 関数)。 - - - 関数によっていくつかの変数をテンプレートに割り当てる必要がある、 - もしくは Smarty に提供された他の機能を使う必要がある場合は、 - 提供された $smarty オブジェクトを使用して - $smarty->foo() のようにします。 - - - - - 出力ありのテンプレート関数プラグイン - - -]]> - - - - - 次のようにテンプレートで使用する事ができます。 - - -質問: 将来、タイムトラベルは実現可能でしょうか? -答え: {eightball}. - - - - 出力なしのテンプレート関数プラグイン - -trigger_error("assign: パラメータ 'var' がありません"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: パラメータ 'value' がありません"); - return; - } - - $smarty->assign($params['var'], $params['value']); -} -?> -]]> - - - - - register_function() - および - unregister_function() - も参照してください。 - - - - diff --git a/docs/ja/programmers/plugins/plugins-howto.xml b/docs/ja/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 872c707e..00000000 --- a/docs/ja/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - プラグインの動作原理 - - プラグインは要求があると常に読み込まれます。テンプレートから呼び出された - 修飾子・関数・リソース等のプラグインだけが読み込まれます。 - さらに各プラグインは同じリクエスト内に Smarty - の異なるインスタンスが複数実行されていても、読み込まれるのは一度だけです。 - - - プリフィルタ/ポストフィルタとアウトプットフィルタは少し特殊です。 - これらはテンプレートから呼び出されないので、テンプレートが処理される前に - API 関数を経由して明示的に登録または読み込まれる必要があります。 - 同じ種類の複数のフィルタが実行される順序は、それらが登録または読み込まれる順序によって決まります。 - - - プラグインディレクトリ - は、単一のパスを示す文字列または複数のパスを格納した配列でとなります。 - プラグインのインストールは、単にプラグインファイルをいずれかのプラグインディレクトリ内に置くだけです。 - そうすれば Smarty はそれを自動的に使用します。 - - - - diff --git a/docs/ja/programmers/plugins/plugins-inserts.xml b/docs/ja/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index f7bc9027..00000000 --- a/docs/ja/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - インサートプラグイン - - インサートプラグインは、テンプレートの - {insert} - タグによって呼び出される関数を実装するために使用されます。 - - - - string smarty_insert_name - array $params - object &$smarty - - - - この関数の第1パラメータは、insert タグに渡される属性の連想配列です。 - - - インサートプラグイン関数は戻り値として、 - テンプレートの {insert} タグの部分を置き換える結果を返します。 - - - インサートプラグイン - -trigger_error("insert time: missing 'format' parameter"); - return; - } - return strftime($params['format']); -} -?> -]]> - - - - - diff --git a/docs/ja/programmers/plugins/plugins-modifiers.xml b/docs/ja/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 240392c5..00000000 --- a/docs/ja/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - 修飾子プラグイン - - 修飾子プラグイン - は、テンプレートの変数が表示される前または他のコンテンツに使用される前に適用される関数です。 - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - 修飾子プラグインへの第1パラメータは、この修飾子によって影響を受ける値です。 - 残りのパラメータはどのような動作が行われるかによって任意です。 - - - 修飾子プラグインは処理の結果を - 返す - 必要があります。 - - - - シンプルな修飾子プラグイン - - このプラグインは、基本的に組み込みの PHP 関数の名前を変えただけのものです。 - 追加のパラメータはありません。 - - - -]]> - - - - - 更に複雑な修飾子プラグイン - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - register_modifier() - および - unregister_modifier() - も参照してください。 - - - - diff --git a/docs/ja/programmers/plugins/plugins-naming-conventions.xml b/docs/ja/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index ba637860..00000000 --- a/docs/ja/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - 命名規約 - - プラグインファイルとその関数が Smarty - によって認識されるためには特有の命名規約に従わなければなりません。 - - - プラグインファイル は次のように指定します。 -
      - - - type.name.php - - -
      -
      - - - - type は次のプラグインタイプのうちのいずれか1つです。 - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - - - name には英数字とアンダースコアのみ使用できます。 - PHP の変数 - を参照してください。 - - - - 例: function.html_select_date.php、 - resource.db.php、 - modifier.spacify.php。 - - - - - - - PHP ファイル内で定義する プラグイン関数 - は次のように指定します。 -
      - - smarty_type_name - -
      -
      - - - - type および name - の意味は前述したものと同じです。 - - - たとえば foo という名前の修飾子の場合は、 - function smarty_modifier_foo() となります。 - - - - 必要なプラグインファイルが見当たらないか、 - ファイル名又はプラグイン関数名が不正な場合 Smarty は適切なエラーメッセージを出力します。 - -
      - - diff --git a/docs/ja/programmers/plugins/plugins-outputfilters.xml b/docs/ja/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index d049c8ff..00000000 --- a/docs/ja/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - アウトプットフィルタプラグイン - - アウトプットフィルタプラグインは、テンプレートが読み込まれて実行された後 - (しかしその出力が表示される前)にテンプレートの出力を操作します。 - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - アウトプットフィルタの第1パラメータは、処理を行うテンプレート出力です。 - 第2パラメータは、プラグインを呼び出したSmartyのインスタンスです。 - このプラグインは戻り値に、修正されたテンプレート出力を返すようにして下さい。 - - - アウトプットフィルタプラグイン - - -]]> - - - - - register_outputfilter() - および - - unregister_outputfilter() - も参照してください。 - - - - diff --git a/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index ba5567eb..00000000 --- a/docs/ja/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - プリフィルタ/ポストフィルタプラグイン - - プリフィルタ/ポストフィルタプラグインは概念において非常によく似ています。 - それらの違いは実行されるタイミングにあります。 - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - プリフィルタは、テンプレートソースをコンパイルする直前に何らかの処理を行うために使用されます。 - プリフィルタ関数への第1パラメータはテンプレートソースであり、 - これは他のプリフィルタによって既に修正されている可能性があります。 - このプラグインは戻り値に、修正されたテンプレートソースを返すようにして下さい。 - また、このテンプレートソースはどこにも保存されず、コンパイルする目的だけに使用される事に注意して下さい。 - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - ポストフィルタは、テンプレートのコンパイルが行われてファイルシステムに保存される前に、 - そのテンプレートのコンパイル結果(PHPスクリプト)に何らかの処理を行うために使用されます。 - ポストフィルタへの第1パラメータはコンパイルされたテンプレートソースであり、 - これは他のポストフィルタによって既に修正されている可能性があります。 - このプラグインは戻り値に、修正されたテンプレートソースを返すようにして下さい。 - - - プリフィルタプラグイン - -]+>!e', 'strtolower("$1")', $source); - } -?> -]]> - - - - - ポストフィルタプラグイン - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - - register_prefilter()、 - - unregister_prefilter()、 - - register_postfilter() - および - - unregister_postfilter() - も参照してください。 - - - - diff --git a/docs/ja/programmers/plugins/plugins-resources.xml b/docs/ja/programmers/plugins/plugins-resources.xml deleted file mode 100644 index fb85b8a4..00000000 --- a/docs/ja/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,156 +0,0 @@ - - - - - リソースプラグイン - - リソースプラグインは、テンプレートソースやPHPスクリプトのコンポーネントを - Smarty に提供する一般的な方法と意図されています - (例: データベース, LDAP, 共有メモリ, ソケット等)。 - - - - 各種リソースのために4つの関数を登録する必要があります。 - これらの関数の最初のパラメータには要求されたリソースが渡され、 - 最後のパラメータには Smarty のオブジェクトが渡されます。 - 残りのパラメータは関数によって異なります。 - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - - 1つめの関数 source() ではリソースを取得します。 - 第2パラメータ $source - は参照で渡され、ここに結果が格納されます。 - 戻り値は、リソースの取得に成功すれば &true;、 - それ以外は &false; となります。 - - - - 2つめの関数 timestamp() は、 - 要求されたリソースが最後に修正された時間(UNIXタイムスタンプ)を取得します。 - 第2パラメータ $timestamp は参照で渡され、 - ここにタイムスタンプが格納されます。タイムスタンプが取得できれば - &true;、それ以外は &false; を返します。 - - - - 3つめの関数 secure() は、 - 要求されたリソースがセキュアであるかどうかに応じて &true; 又は &false; を返します。 - この関数はテンプレートリソースのためにだけ用いられますが、定義する必要があります。 - - - - 4つめの関数 trusted() は、 - 要求されたリソースが信用できるかどうかに応じて &true; 又は &false; を返します。 - この関数を使用するのは、 - {include_php} タグあるいは - {insert} - タグで src 属性によって要求された PHP - スクリプトコンポーネントのみです。 - しかし、テンプレートリソースであっても定義する必要があります。 - - - - - - リソースプラグイン - - -]]> - - - - - register_resource() - および - unregister_resource() - も参照してください。 - - - - - diff --git a/docs/ja/programmers/plugins/plugins-writing.xml b/docs/ja/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 0f9d0df8..00000000 --- a/docs/ja/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - プラグインの記述 - - プラグインは Smarty によってファイルシステムから自動的に読み込まれるか、 - register_* API 関数のうちの1つを経由して動的に登録する事ができます。 - また、それらは unregister_* API 関数を使う事によって未登録にする事ができます。 - - - 動的に登録されるプラグインについてはプラグイン関数の命名規約に従う必要はありません。 - - - Smarty にバンドルされたいくらかのプラグインに関する場合と同様に、 - プラグインが別のプラグインによって提供される機能に依存する場合は次の方法で必要とされるプラグインを読み込みます。 - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - 基本的に、Smarty のオブジェクトは常に最後のパラメータとしてプラグインに渡されます。 - ただし、例外が2つあります。 - - - - 変数の修飾子は Smarty オブジェクトを渡しません。 - - - ブロックの場合は Smarty オブジェクトの後に $repeat - が渡されます。これは、以前のバージョンの Smarty - との後方互換性を保つためのものです。 - - - - - - diff --git a/docs/ja/programmers/smarty-constants.xml b/docs/ja/programmers/smarty-constants.xml deleted file mode 100644 index f1dfcbb6..00000000 --- a/docs/ja/programmers/smarty-constants.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -定数 - - - SMARTY_DIR - - この定数には、Smarty のクラスファイルが置かれた場所への - システム上でのフルパス を指定します。 - 定義されていない場合、Smarty は自動的に適切な値に決定しようと試みます。 - 定義した場合、必ずスラッシュで終わるようにします。 - - - SMARTY_DIR - - -]]> - - - - $smarty.const - および - $php_handling 定数 - も参照してください。 - - - - - SMARTY_CORE_DIR - - この定数には、Smarty のコアファイルの置かれた場所への - フルパス を指定します。定義されていない場合、Smartyは - SMARTY_DIR. - の下の internals/ サブディレクトリをデフォルトとします。 - 定義した場合は、必ずスラッシュで終わるようにします。 - 手動で core.* ファイルをインクルードするような時にはこの定数を使用して下さい。 - - - SMARTY_CORE_DIR - - -]]> - - - - - $smarty.const - も参照してください。 - - - - diff --git a/docs/ja/translation.xml b/docs/ja/translation.xml deleted file mode 100644 index 94fa16ac..00000000 --- a/docs/ja/translation.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - このファイルは、Smarty 日本語マニュアルの翻訳状況を示すものです。 - このファイルは、smarty/docs/scripts/revcheck.php によって自動的に作成されます。 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/manual.xml.in b/docs/manual.xml.in deleted file mode 100644 index 6194fba1..00000000 --- a/docs/manual.xml.in +++ /dev/null @@ -1,69 +0,0 @@ - - -%build.version; - - - - - -%language-defs; -%language-snippets; - - - - -%language-defs.default; - - - - -%global.entities; - - - -%file.entities; - -]> - - - - &SMARTYManual; - - &bookinfo; - &preface; - &getting-started; - - - &SMARTYDesigners; - - &designers.language-basic-syntax; - &designers.language-variables; - &designers.language-modifiers; - &designers.language-combining-modifiers; - &designers.language-builtin-functions; - &designers.language-custom-functions; - &designers.config-files; - &designers.chapter-debugging-console; - - - - &SMARTYProgrammers; - - &programmers.smarty-constants; - &programmers.api-variables; - &programmers.api-functions; - &programmers.caching; - &programmers.advanced-features; - &programmers.plugins; - - - - &Appendixes; - &appendixes.troubleshooting; - &appendixes.tips; - &appendixes.resources; - &appendixes.bugs; - - diff --git a/docs/pt_BR/appendixes/bugs.xml b/docs/pt_BR/appendixes/bugs.xml deleted file mode 100644 index 9cd6911b..00000000 --- a/docs/pt_BR/appendixes/bugs.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - BUGS - - Verifique o arquivo BUGS que vem com a ltima - distribuio do Smarty, ou verifique a seo BUGS do website. - - - - diff --git a/docs/pt_BR/appendixes/resources.xml b/docs/pt_BR/appendixes/resources.xml deleted file mode 100644 index 88f2dad1..00000000 --- a/docs/pt_BR/appendixes/resources.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Recursos - - A homepage do Smarty est localizada em &url.smarty;. - Voc pode entrar na lista de discusso enviando um e-mail para - &ml.general.sub;. O arquivo da lista de discusso pode ser - visualizado em &url.ml.archive;. - - - - diff --git a/docs/pt_BR/appendixes/tips.xml b/docs/pt_BR/appendixes/tips.xml deleted file mode 100644 index 99b170ac..00000000 --- a/docs/pt_BR/appendixes/tips.xml +++ /dev/null @@ -1,361 +0,0 @@ - - - - - Dicas & Truques - - - - Manipulao de Varivel Vazia - - H momentos que voc quer mostrar um valor padro para uma varivel vazia ao invs de no mostrar nada, - tal como mostrar "&nbsp;" para que os planos de fundo de tabelas funcionem corretamente. Muitos - usariam uma instruo {if} para fazer isso, mas h um macete que pode ser feito usando-se o - modificador de varivel padro do Smarty. - - -Imprimindo &nbsp; quando uma varivel est vazia - - - - - - - - Manipulao do valor padro de uma Varivel - - Se uma varivel usada freqentemente em seus templates, aplicar o modificador de varivel - padro toda vez pode se tornar algo muito desagradvel. Voc pode evitar - isto atribuindo um valor padro para a varivel usando a funo assign. - - -Atribuindo o valor padro para uma varivel de template - - - - - - - Passando a varivel titulo para o template de cabealho - - Quando a maioria de seus templates usam os mesmos cabealhos e mesmos rodaps, - comum dividi-los um em cada template e ento inclu-los. Mas o que fazer se o - cabealho precisa ter um titulo diferente, dependendo de que pgina ele est vindo? - Voc pode passar o titulo para o - cabealho quando ele includo. - - -Passando a varivel titulo para o template de cabealho - - - -{$title|default:"BC News"} - - - - -footer.tpl ----------- - - -]]> - - - - Quando a pgina for extrada, o ttulo da "Pgina Principal" passado ao template 'cabecalho.tpl', - e ser imediatamente usado como ttulo da pgina. Quando a pgina de arquivos extrada, o ttulo - muda para "Arquivos". No que no exemplo de arquivos, ns estamos usando uma varivel que vem do - arquivo 'pagina_arquivos.conf' ao invs de uma varivel definida no cdigo. Note tambm que "BC News" - mostrado somente se a varivel $titulo no conter valor algum, isto feito usando-se o modificador - de variveis padro. - - - - Datas - - Em geral, sempre envie datas ao Smarty no formato timestamp. Deste modo o desginer do template - pode usar o modificador date_format - para ter um controle total sobre a formatao da data, e tambm facilita a comparao de datas - se necessrio. - - - Nota: No Smarty 1.4.0, voc pode enviar datas ao Smarty no formato unix timestamp, - mysql timestamp, ou qualer outra data que possa ser lida pela funo strtotime(). - - - usando date_format - - - - - Ir mostrar: - - - - - - - - - Ir mostrar: - - - - - - - - - - Quando se est usando {html_select_date} em um template, o programador normalmente vai querer - converter a sada de um formulrio de volta para o formato timestamp. Abaixo est uma funo - que ir ajud-lo fazer isto. - - -Convertendo datas de volta ao formato timestamp - - -]]> - - - - - WAP/WML - - Os templates WAP/WML exigem um cabealho com o tipo de contedo (Content-Type) PHP para serem - passados junto com o template. O modo mais fcil de se fazer isso seria escrever uma funo - personalizada que envia-se este cabealho. Se voc est usando cache, isto no ir funcionar, - ento ns faremos isso usando a tag insert (lembre-se que tags de insert no so guardadas no cache!). - Certifique-se de que nada enviado ao navegador antes do template, caso contrrio o cabealho no ir - funcionar. - - -Usando insert para escrever um cabealho WML Content-Type - - -]]> - - -seu template do Smarty deve comear com a tag insert, veja o exemplo seguir: - - - - - - - - - - - - -

      -Bem-vindo ao WAP com Smarty! -Pressione OK para continuar... -

      -
      - - -

      -Bem fcil isso, no ? -

      -
      -
      -]]> -
      -
      -
      - - Templates componentizados - - Tradicionalmente, programar templates para suas aplicaes feito da seguinte maneira: - Primeiro, voc guardar suas variveis junto com a aplicao PHP, (talvez obtendo-as de consultas - banco de dados). Aps, voc instancia seu objeto Smarty, atribui valores s variveis e - mostra o template. Digamos que ns temos um registrador de estoque em nosso template. Ns - coletaramos os dados do estoque em nossa aplicao, e ento atriburiamos valores as variveis - referentes ele no template e depois exibiramos o template na tela. Agora no seria legal - se voc pudesse adicionar este registrador de esto em qualquer aplicao simplesmente incluindo - um template nela, e sem se preocupar com a busca dos dados futuramente? - - - Voc pode fazer isto escrevendo um plugin personalizado que obteria o - contedo e atribuiria ele uma varivel definida no template. - - -Template componentizado - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - - - - - - Ofuscando endereos de E-mail - - Voc j se espantou como seu endereo de E-mail entra em tantas listas de spam? - A nica forma dos spammers coletarem seu(s) endereo(s) de E-mail(s) de pginas web. - Para ajudar combater este problema, voc pode fazer seu endereo de E-mail aparecer em javascript - misturado em cdigo HTML, e ainda assim ele ir aparecer e funcionar corretamente no navegador. - Isto feito com o plugin chamado 'mailto'. - - -Exemplo de ofuscamento de um Endereo de E-mail - - - - - - Nota tcnica - - Este mtodo no 100% a prova de falha. Um spammer poderia criar um programa - para coletar o e-mail e decodificar estes valores, mas muito pouco provvel. - - - -
      - \ No newline at end of file diff --git a/docs/pt_BR/appendixes/troubleshooting.xml b/docs/pt_BR/appendixes/troubleshooting.xml deleted file mode 100644 index 6bf8f258..00000000 --- a/docs/pt_BR/appendixes/troubleshooting.xml +++ /dev/null @@ -1,183 +0,0 @@ - - - - Localizao de Erros - - - Erros do Smarty/PHP - - O Smarty pode obter muitos erros, tais como: atributos de tags perdidos ou nomes de variveis - mal formadas. Se isto acontece, voc ver um erro similar ao seguir: - - - -Erros do Smarty - -Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah' - in /path/to/smarty/Smarty.class.php on line 1041 - -Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name - in /path/to/smarty/Smarty.class.php on line 1041 - - - - O Smarty te mostra o nome do template, o nmero da linha e o erro. - Depois disso, o erro consiste do nmero da linha da classe Smarty em que o erro - ocorreu. - - - - H certos erros que o Smarty no consegue detectar, tais como uma tag de fechamento errada. - Estes tipos de erro geralmente acabam gerando erros em tempo de processamento do interpretador - de erros do PHP. - - - -Erros de anlise do PHP - -Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75 - - - - Quando voc encontra um erro de anlise do PHP, o nmero da linha do erro corresponder ao - script PHP compilado, no o template em si. Normalmente voc pode no template localizar o - erro de sintaxe. Aqui algumas coisas para voc procurar: - falta de fechamento de tags para {if}{/if} ou - {section}{/section}, ou erro de lgica dentro de uma tag {if}. - Se voc no conseguir encontrar o erro, talvez seja necessrio abrir - o arquivo PHP compilado e ir at o nmero da linha exibido, para saber - onde se encontra o erro correspondente no template. - - - - Other common errors - - - - - - - - - - - The $template_dir - is incorrect, doesn't exist or - the file index.tpl is not in the - templates/ directory - - - - - A {config_load} - function is within a template (or - config_load() - has been called) and either - $config_dir - is incorrent , does not exist or - site.conf is not in the directory. - - - - - - - - - - - - - - Either the - $compile_dir - is incorrectly set, the directory does not exist, - or templates_c is a - file and not a directory. - - - - - - - The $compile_dir - is not writable by the web server. See the bottom of the - installing smarty page - for permissions. - - - - - - - - - This means that - $caching is enabled and either; - the - $cache_dir - is incorrectly set, the directory does not exist, - or cache is a - file and not a directory. - - - - - - - - - This means that - $caching is enabled and the - $cache_dir - is not writable by the web server. See the bottom of the - installing smarty page - for permissions. - - - - - - - See also - debugging, - $error_reporting - and - trigger_error(). - - - - \ No newline at end of file diff --git a/docs/pt_BR/bookinfo.xml b/docs/pt_BR/bookinfo.xml deleted file mode 100755 index d949545a..00000000 --- a/docs/pt_BR/bookinfo.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Smarty - a ferramenta para compilar templates para PHP - - - MonteOhrt <monte at ohrt dot com> - - - AndreiZmievski <andrei@php.net> - - - - - FernandoCorrea da Conceio <fernandoc@php.net> - - - MarceloPerreira Fonseca da Silva <marcelo@php.net> - - - TanielFranklin <taniel@ig.com.br> - - - ThomasGonzalez Miranda <thomasgm@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/docs/pt_BR/designers/chapter-debugging-console.xml b/docs/pt_BR/designers/chapter-debugging-console.xml deleted file mode 100644 index 5688e25f..00000000 --- a/docs/pt_BR/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Debugging Console - - H um console para debug incluso no Smarty. O console informa voc todos - os templates includos, variveis definidas e variveis de arquivos de - configurao do template atual. Um template chamado "debug.tpl" est - incluso com a distribuio do Smarty o qual controla a formtao do console. - Defina a varivel $debugging para true no Smarty, e se necessrio defina - $debug_tpl com o caminho do diretrio onde est o arquivo debug.tpl (o diretrio padro - o da constante SMARTY_DIR). Quando voc carrega uma pgina, um javascript abre uma - janela pop-up e fornece voc o nome de todos os templates includos e variveis definidas - ara a pgina atual. Para ver as variveis disponveis para um template especfico, - veja a funo {debug}. Para desabilitar - o console de debug, defina a varivel $debugging para false. Voc tambm pode ativar - temporariamente o console de debug colocando na URL, caso voc tenha ativado esta opo - na varivel $debugging_ctrl. - - - Nota Tcnica - - O console de debug no funciona quando voc usa a API fetch(), - somente quando voc estiver usando display(). Isto um conjunto de comandos - em javascript adicionados ao final do template gerado. Se voc no gosta de javascript, - voc pode editar o template debug.tpl para exibir sada no formato que voc quiser. - Dados do debug no so armazenados em cache e os dados do debug.tpl no so - inclusos no console de debug. - - - - - O tempo de carregamento de cada template e arquivo de configurao so exibidos em - segundos, ou ento fraes de segundo. - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/config-files.xml b/docs/pt_BR/designers/config-files.xml deleted file mode 100644 index 61b49d72..00000000 --- a/docs/pt_BR/designers/config-files.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Arquivos de Configurao - - Arquivos de configurao so teis para designers que gerenciam variveis globais - para os templates partir de um arquivo. Um exemplo so as cores do template. - Normalmente se voc quisesse mudar o tema de cores de uma aplicao, voc teria - que abrir cada arquivo de template e alterar as cores. Com arquivos de configuraes, - as cores podem ser armazenadas em um lugar, e apenas um arquivo precisaria ser alterado. - - - Exemplo de sintaxe de um arquivo de configurao - - - - - - Valores de variveis de arquivos de configurao pode estar entre aspas, - mas no necessrio. Voc pode usar tanto aspas simples como duplas. - Se voc tiver um valor que ocupe mais de uma linha, coloque-o dentre trs aspas - ("""). Voc pode colocar comentrios em arquivos de configurao com qualquer - sintaxe que no vlida para um arquivo de configurao. Ns recomendamos usar um - # (cancela) no incio de cada linha que contm o comentrio. - - - Este arquivo de configurao tem duas sees. Nomes de sees devem estar entre conchetes []. - Nomes de seo podem ser string arbritraria que no contenham os smbolos - [ ou ]. As quatro variveis no topo so variveis globais, - ou variveis que no pertencem uma seo. Estas variveis sempre so carregadas do arquivo de - configurao. Se uma seo em particular carregada, ento as variveis globais e as variveis - desta seo tambm so carregadas. Se uma varivel de seo e global j existirem, - a varivel de seo ser utilizada. Se voc tiver duas variveis na mesma seo com o mesmo nome, - a ltima ser utilizada. - - - Arquivos de configurao so carregados no template usando a funo embutida config_load. - - - Voc pode esconder as variveis ou uma seo inteira colocando um ponto - antes do nome da seo ou varivei. Isso til em casos no qual sua aplicao l - arquivos de configurao e obtm dados sensveis que no so necessrios para o sistema - de templates. Se a edio de seus templates terceirizada, voc ter certeza que eles no - iro ler os dados sensveis do arquivo de configurao que carregado no template. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax.xml b/docs/pt_BR/designers/language-basic-syntax.xml deleted file mode 100644 index 520df4ce..00000000 --- a/docs/pt_BR/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Sintaxe Bsica - - Todas as tags de template do Smarty contm delimitadores. Por padro, - estes delimitadores so { e }, - mas eles podem ser alterados. - - - Para os exemplos seguir, ns assumiremos que voc est usando os delimitadores - padro. Para o Smarty, todo o contedo fora dos delimitadores mostrado como - contedo esttico, ou inaltervel. Quando o Smarty encontra tags de template, - ele tenta interpret-las, e ento mostra a sada apropriada em seu lugar. - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - - - diff --git a/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml b/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 7a59cd24..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - Escapando da interpretao do Smarty - - Algumas vezes desejvel ou mesmo necessrio fazer o Smarty ignorar sesses - que em outro caso ele interpretaria. Um exemplo classico embutindo Javascript ou - cdigo CSS no template. O problema aparece porque estas linguagens usam os - caracteres { e } que so os - delimitadores padro para o Smarty. - - - - A coisa mais simples evitar a situao em s separando o seu cdigo Javascript e - CSS nos seus prprios arquivos e ento usar os mtodos padres do HTML para acessa-los. - - - - Incluir contedo literal possvel usando blocos {literal} .. {/literal}. - De modo similar ao uso de entidades HTML, voc pode usar {ldelim},{rdelim} ou {$smarty.ldelim} - para mostrar os delimitadores atuais. - - - - As vezes conveniente simplesmente mudar $left_delimiter e - $right_delimiter. - - - Exemplo de modificar os delimitadores - -left_delimiter = ''; -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - Aonde example.tpl : - - - to Smarty - -]]> - - - - Veja tambm escape modifier - - - diff --git a/docs/pt_BR/designers/language-basic-syntax/language-math.xml b/docs/pt_BR/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 3be77ebe..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Matemtica - - Matemtica pode ser aplicada diretamente aos valores de variveis. - - - Exemplos de matemtica - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 30c0c30c..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Atributos - - A maioria das funes contm atributos que especificam ou modificam - o seu comportamento. Atributos para funes do Smarty so muito parecidos - com atributos da HTML. Valores estticos no precisam ficar entre aspas, - mas recomenda-se usar aspas para strings literais. Variveis tambm podem - ser usadas, e no precisam estar entre aspas. - - - Alguns atributos exigem valores booleanos (verdadeiro ou falso). Estes valores - podem ser especificados sem aspas true, - on, e yes, ou - false, off, e - no. - - - Sintaxe de atributos de funes - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml b/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 601d5626..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Comentrios - - Os comentrios do template ficam entre asteriscos dentro de delimitadores, - exemplo: {* este um comentrio *}. Comentrios do Smarty no so - exibidos no resultado final do template. Eles so usados para fazer - anotaes internas nos templates. - - - Comentrios - - -{html_options values=$vals selected=$selected output=$output} - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml b/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index fdcfe1d2..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Funes - - Cada tag Smarty mostra uma - varivel ou utiliza algum tipo de - funo. Funes so processadas e exibidas colocando-se a funo e seus - atributos entre delimitadores, exemplo: {funcname attr1="val" attr2="val"}. - - - Sintaxe de funes - -{$nome}! -{else} - Seja bem-vindo, {$nome}! -{/if} - -{include file="rodape.tpl"} -]]> - - - - Ambas as funes internas e as funes personalizadas tem a mesma sintaxe nos - templates. Funes internas so o funcionamento do Smarty, - tais como if, section e - strip. Elas no podem ser modificadas. Funes personalizadas - so funes adicionais implementadas por modo de plugins. Elas podem ser modificadas - como voc quiser, ou voc pode adionar novas. html_options e - html_select_date so exemplos de funes personalizadas. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 2d52176c..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Colocando Variveis em Aspas Duplas - - Smarty ir reconhecer variveis definidas entre asplas duplas enquanto - as variveis conterem apenas nmeros, letras, sublinhados e conchetes []. - Com qualquer outro caractere (pontos, referncia objetos, etc.) a varivel - deve estar entre apstrofos. - - - Sintaxe entre aspas - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml b/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index ba35e3c5..00000000 --- a/docs/pt_BR/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Variables - - Vaiaveis do template comeam com o sinal de $dollar. Elas podem conter nmeros, - letras e sublinhados, parecido com - varivel PHP. - Voc pode referenciar arrays - pelo ndice nmero ou no numrico. Tambm pode - referenciar propriedades e metodos de objetos. - - Variveis do arquivo de configurao - so excesses a sintaxe de $dollar - e so ao invs referenciadas com #cancelas#, ou - via a varivel - $smarty.config. - - - Variveis - -bar} <-- display the object property "bar" -{$foo->bar()} <-- display the return value of object method "bar" -{#foo#} <-- display the config file variable "foo" -{$smarty.config.foo} <-- synonym for {#foo#} -{$foo[bar]} <-- syntax only valid in a section loop, see {section} -{assign var=foo value='baa'}{$foo} <-- displays "baa", see {assign} - -Many other combinations are allowed - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- passing parameters -{"foo"} <-- static values are allowed - -{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - Variveis de requisio como $_GET, $_SESSION etc esto disponveis atravs - da varivel reservada - $smarty. - - - - Veja tambm Variveis reservadas do $smarty, - Variveis da Configurao - {assign} - e - assign(). - - - - diff --git a/docs/pt_BR/designers/language-builtin-functions.xml b/docs/pt_BR/designers/language-builtin-functions.xml deleted file mode 100644 index 5d7b22d5..00000000 --- a/docs/pt_BR/designers/language-builtin-functions.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Funes internas - - O Smarty contm vrias funes internas. Funes internas so parte integral - da linguagem de template. Voc no pode criar funes personalizadas com o - mesmo nome de uma funo interna, e tambm no pode modificar funes internas. - - - &designers.language-builtin-functions.language-function-capture; - &designers.language-builtin-functions.language-function-config-load; - &designers.language-builtin-functions.language-function-foreach; - &designers.language-builtin-functions.language-function-include; - &designers.language-builtin-functions.language-function-include-php; - &designers.language-builtin-functions.language-function-insert; - &designers.language-builtin-functions.language-function-if; - &designers.language-builtin-functions.language-function-ldelim; - &designers.language-builtin-functions.language-function-literal; - &designers.language-builtin-functions.language-function-php; - &designers.language-builtin-functions.language-function-section; - &designers.language-builtin-functions.language-function-strip; - - - - diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 5495984f..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - capture - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - No - default - O nome do bloco capturado - - - assign - string - No - n/a - O nome da varivel para dar o valor da sada capturada - - - - - - capture usado para coletar toda a sada do template em uma varivel ao invs - de mostra-lo. Qualquer contedo entre {capture - name="foo"} e {/capture} coletado na varivel especificada no atributo name. - O contedo capturado pode ser usado no template a partir da varivel especial - $smarty.capture.foo aonde foo o valor passado para o atributo name. Se voc no - passar um atributo name, ento ser usado "default". Todos os comandos - {capture} devem ter o seu {/capture}. Voc pode aninhar(colocar um dentro de outro) - comandos capture. - - - Nota Tecnica - - Smarty 1.4.0 - 1.4.4 coloca o contedo capturado dentro da varivel - chamada $return. A partir do 1.4.5, este funcionamento foi mudado - para usar o atributo name, ento atualize os seus templates de acordo. - - - - - Tenha cuidado quando capturar a sada do comando insert. - Se voc tiver o cache em on e voc tiver comandos insert - que voc espera que funcione com contedo do cache, - no capture este contedo. - - - - - capturando contedo do template - - - - {$smarty.capture.banner} - - -{/if} -]]> - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index b144887f..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - config_load - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - file - string - Sim - n/d - O nome do arquivo de configurao para incluir - - - section - string - No - n/d - O nome da seo a carregar - - - scope - string - No - local - - Como o escopo das variveis carregadas tratado, - o qual deve ser um entre local, parent ou global. local - indica que as variveis so carregadas no contexto do - template local apenas. parent indica que as variveis so carregadas - no contexto atual e no template que o chamou. global indica - que as variveis esto - disponveis para todos os templates. - - - - global - boolean - No - No - - Quando ou no as variveis so visiveis para o template - superior(aquele que chamou este), o mesmo que scope=parent. - NOTA: este atributo esta obsoleto devido ao atributo scope, mas - ainda suportado. Se scope for indicado, este valor ignorado. - - - - - - - Esta funo usada para carregar as variveis de um arquivo de configurao - dentro de um template. Veja Arquivos de Configurao - para mais informaes. - - -Funo config_load - - - -{#tituloPagina#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      - - Arquivos de configurao podem conter sees tambm. Voc pode carregar - variveis de uma seo adicionando o atributo - section. - - - NOTA: Config file sections e a funo embutida de - template section no tem nada a ver um com o outro, - eles apenas tem uma mesma - conveno de nomes. - - -Funo config_load com sees - - -{#tituloPagina#} - - - - - - - -
      FirstLastAddress
      - - -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 1c1443fd..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,204 +0,0 @@ - - - - - foreach,foreachelse - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - from - string - Sim - n/d - O nome da matriz que voc estar pegando os elementos - - - item - string - Yes - n/d - O nome da varivel - que o elemento atual - - - key - string - No - n/d - O nome da varivel que a chave atual - - - name - string - No - n/d - O nome do loop foreach para acessar as - propriedades foreach - - - - - - Loops foreach so uma alternativa para loops - section. foreach usado - para pegar cada elemento de uma matriz associativa simples. - A sintaxe para foreach muito mais simples do que - section, mas tem a desvantagem de poder ser usada - apenas para uma nica matriz. Tags foreach devem ter - seu par /foreach. Os parmetros requeridos so - from e item. O nome do loop - foreach pode ser qualquer coisa que voc queira, feito de letras, nmeros - e sublinhados. Loops foreach - podem ser aninhados, e o nome dos loops aninhados devem ser diferentes - um dos outros. A varivel from (normalmente uma - matriz de valores) determina o nmero de vezes do loop - foreach. - foreachelse executado quando no houverem mais valores - na varivel from. - - -foreach - - -{/foreach} -]]> - -MOSTRA: - - -id: 1001
      -id: 1002
      -]]> -
      -
      - - -foreach key - -assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -*} - -{foreach name=outer item=contact from=$contacts} - {foreach key=key item=item from=$contact} - {$key}: {$item}
      - {/foreach} -{/foreach} -]]> -
      -MOSTRA: - - -fax: 2
      -cell: 3
      -phone: 555-4444
      -fax: 555-3333
      -cell: 760-1234
      -]]> -
      -
      - - - Loop foreach tambm tem as suas prprias variveis para manipilar as propriedades - foreach. Estas so indicadas assim: {$smarty.foreach.foreachname.varname} com - foreachname sendo o nome especificado no atributo - name do foreach. - - - - - iteration - - iteration usado para mostrar a interao atual do loop. - - - Iteration sempre comea em 1 e - incrementado um a um em cada interao. - - - - - first - - first definido como true se a interao atual - do foreach for a primeira. - - - - - last - - last definido como true se a interao atual - do foreach for a ltima. - - - - - show - - show usado como parmetro para o foreach. - show um valor booleano, true ou false. Se - false, o foreach no ser mostrado. Se tiver um foreachelse - presente, este ser alternativamente mostrado. - - - - - total - - total usado para mostrar o nmero de interaes do - foreach. Isto pode ser usado dentro ou depois do foreach. - - - - - - - -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-if.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index 80845f13..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,219 +0,0 @@ - - - - - if,elseif,else - - Comandos {if} no Smarty tem muito da mesma flexibilidade do php, - com algumas caractersticas mais para o sistema de template. - Todo if deve ter o seu - /if. else e - elseif tambm so permitidos. Todos os - condicionais do PHP so reconhecidos, tais como ||, or, &&, and, etc. - - - - A seguir est uma lsita dos qualificadores, que devem estar separados dos elementos - por espao. Note que itens listado entre [conchetes] so opcionais. Os equivalentes - em PHP so mostrados quando aplicveis. - - - - - - - - - - - Qualificador - Alternativas - Exemplo de sintaxe - Significado - Equivalente no PHP - - - - - == - eq - $a eq $b - iguais - == - - - != - ne, neq - $a neq $b - no iguais - != - - - > - gt - $a gt $b - maior que - > - - - < - lt - $a lt $b - menor que - < - - - >= - gte, ge - $a ge $b - maior ou igual - >= - - - <= - lte, le - $a le $b - menor ou igual - <= - - - ! - not - not $a - negao (unary) - ! - - - % - mod - $a mod $b - mdulo - % - - - is [not] div by - - $a is not div by 4 - divisvel por - $a % $b == 0 - - - is [not] even - - $a is not even - [not] an even number (unary) - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - grouping level [not] even - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [not] an odd number (unary) - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [not] an odd grouping - ($a / $b) % 2 != 0 - - - - - -comandos if - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* voc pode tambm colocar funes php *} -{if count($var) gt 0} - ... -{/if} - -{* testa se o valor par ou impar *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* verifica se a varivel divisvel por 4 *} -{if $var is div by 4} - ... -{/if} - -{* test if var is even, grouped by two. i.e., -0=even, 1=even, 2=odd, 3=odd, 4=even, 5=even, etc. *} -{if $var is even by 2} - ... -{/if} - -{* 0=even, 1=even, 2=even, 3=odd, 4=odd, 5=odd, etc. *} -{if $var is even by 3} - ... -{/if} -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 2f2dd3a0..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - include_php - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - file - string - Sim - n/a - O nome do arquivo php a incluir - - - once - boolean - No - true - Quando incluir ou no o arquivo php mais de uma vez se - includo vrias vezes - - - assign - string - No - n/a - O nome da varivel - que receber a sada do arquivo php - - - - - - Nota Tcnica - - include_php est quase sendo retirado do Smarty, voc pode obter a mesma funcionalidade - usando uma funo customizada em um template. A nica razo para usar o include_php - se voc realmente precisar deixar funo php fora do diretrio de plugin ou cdigo da - sua aplicao. Veja a seo - templates componentizados - para mais detalhes. - - - - Tags include_php so usadas para incluir um script php no seu template. - Se a segurana estiver ativada, ento o script php deve estar localizado - no diretrio especificado na varivel $trusted_dir. A tag include_php - deve ter o atributo "file", o qual contm o caminho para o arquivo php - includo, pode ser um camiho tanto absoluto ou relativo a $trusted_dir. - - - include_php um bom meio de manipular templates componentizados, - e manter o cdigo PHP separado dos arquivos de template. Digamos - que voc tenha um template que mostre a navegao do seu site, o qual - preenchido automaticamente a partir de um banco de dados. Voc pode - manter a sua lgica PHP que obtm os dados em um diretrio separado, - e inclui-la no topo do template. Agora voc pode incluir este template - em qualquer lugar sem se preocupar se a informao do banco de dados foi - obtida antes de usar. - - - Por padro, os arquivos php so includos apenas uma vez mesmo - se includos vrias vezes no template. Voc pode especificar que ele - seja includo todas as vezes com o atributo once. - Definindo once para false ir incluir o script php a cada vez que - ele seja includo no template. - - - Voc pode opcionalmente passar o atributo assign, - o qual ir especificar uma varivel de template a qual ir conter - toda a sada de - include_php em vez de mostra-la. - - - O objeto smarty esta disponvel como $this dentro do - script php que voc incluiu. - - -Funo include_php - -query("select * from site_nav_sections order by name",SQL_ALL); - $this->assign('sections',$sql->record); - -?> - - -index.tpl ---------- - -{* caminho absoluto ou relativo a $trusted_dir *} -{include_php file="/caminho/para/load_nav.php"} - -{foreach item="curr_section" from=$sections} - {$curr_section.name}
      -{/foreach} -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index 98d96264..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - include - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - file - string - Sim - n/d - O nome do arquivo de template a incluir - - - assign - string - No - n/d - O nome de uma varivel que ir - conter toda a sada do template - - - [var ...] - [var type] - No - n/d - Varivel para passar localmente para o template - - - - - - Tags include so usadas para incluir outros templates no template - atual. Quaisquer variveis disponveis no template atual tambm estaro - disponveis junto com template includo. A tag include deve ter o atributo - "file", o qual contm o caminho do arquivo a incluir. - - - Voc pode opcionalmente passar o atributo assign, - o qual ir especificar o nome de uma varivel de template para a qual - conter todo o contedo do include ao - invs de mostr-lo. - - -function include - - - - - - Voc pode tambm passar variveis para o template includo como atributos. - Quaisquer variveis passadas para um template includo como atributos - esto disponveis somente dentro do escopo do template includo. - As variveis passadas como atributos sobrescrevem as variveis de - template atuais, no caso de ambas terem o mesmo nome. - - -Funo include passando variveis - - - - - - Use a sintaxe de template resources para - incluir arquivos fora do diretrio $template_dir. - - -Exemplos de recursos para a funo include - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index a37ee81e..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - insert - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - Sim - n/d - O nome da funo insert (insert_name) - - - assign - string - No - n/d - O nome da varivel que - ir receber a sada - - - script - string - No - n/d - O nome de um script php que ser incluido - antes que a funo insert seja chamada - - - [var ...] - [var type] - No - n/d - Varivel para passar para a funo insert - - - - - - Tags insert funcionam parecido com as tags include, exceto que as tags - insert no vo para o cache quando caching esta ativado. Ela ser - executada a cada invocao do template. - - - Digamos que voc tenha um template com um banner no topo da pgina. O - banner pode conter uma mistura de html, imagens, flash, etc. - Assim ns no podemos usar um link estatico aqui, e ns no - queremos que este contedo fique no cache junto com a pgina. E a que entra a tag - insert: o template conhece os valores #banner_location_id# e - #site_id# (obtidos de um arquivo de configurao), e precisa chamar - uma funo para obter o contedo do banner. - - -funo insert - -{* exemplo de como obter um banner *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - Neste exemplo, ns estamos usando o nome "getBanner" e passando os parmetros - #banner_location_id# e #site_id#. O Smarty ir procurar por uma funo chamada - insert_getBanner() na sua aplicao PHP, passando os valores de - #banner_location_id# e #site_id# como primeiro argumento em uma - matriz associativa. Todos os nomes de funo insert em sua - aplicao devem ser precedidas por "insert_" para prevenir possveis - problemas com nomes de funes repetidos. Sua funo insert_getBanner() - deve fazer alguma coisa com os valores passados e retornar os resultados. - Estes resultados so mostrados no template no lugar da tag insert. - Neste exemplo, o Smarty ir chamar esta funo: - insert_getBanner(array("lid" => "12345","sid" => "67890")); - e mostrar o resultado retornado no lugar da tag insert. - - - Se voc passar o atributo "assign", a sada da tag insert ser - dada para esta varivel ao invs de ser mostrada - no template. - - - Nota - - definir a sada para uma varivel no - til quando o cache esta ativo. - - - - Se voc passar o atributo "script", este script php ser incluido - (apenas uma vez) antes da execuo da funo insert. Este - o caso onde a funo insert no existe ainda, e um script - php deve ser includo antes para faze-la funcionar. O caminho pode - ser absoluto ou relativo varivel $trusted_dir. Quando a segurana esta - ativada, o script deve estar no local definido na varivel $trusted_dir. - - - O objeto Smarty passado como segundo argumento. Deste modo - voc pode refenciar o objeto Smarty - de dentro da funo. - - - Nota Tecnica - - possvel ter partes do template fora do cache. - se voc tiver caching - ativado, tags insert no estaro no cache. Ela ser executada - dinamicamente a cada vez que a pgina seja criada, mesmo com - pginas em cache. Isto funciona bem para coisas como banners, pesquisa, - previses do tempo, resultados de pesquisa, reas de opnio do usurio, etc. - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 7400c1be..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - ldelim,rdelim - - ldelim e rdelim so usados para mostrar os delimitadores de templates literalmente, - no nosso caso "{" ou "}". Ou voc pode usar {literal}{/literal} para - interpretar blocos de texto literalmente. Veja tambm {$smarty.ldelim} e {$smarty.rdelim} - - -ldelim, rdelim - - - -O exemplo acima exibir: - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 726dcd10..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - literal - - Tags literal permitem que um bloco de dados seja tratado literalmente, ou seja, - no interpretado pelo Smarty. Isto tipicamente usado com blocos de cdigo - javascript ou folhas de estilo (stylesheet), que s vezes contm chaves - que podem entrar em conflito com o delimitador de sintaxe. Qualquer coisa entre - {literal}{/literal} no interpretado, mas mostrado. Se voc precisa que - tags de templates sejam embutidas em um bloco literal, use {ldelim}{rdelim}. - - -Tags literal - - - - - - -{/literal} -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 060a2ea8..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - php - - Tags php permitem que cdigos php sejam embutidos diretamente nos templates. - Eles no sero interpretados, no importando a definio de - $php_handling. Esta opo - somente para usurios avanados e normalmente no necessria. - - -Tags php - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 224fdc08..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,629 +0,0 @@ - - - - - section,sectionelse - - - - - - - - - - Nome do atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - Sim - n/d - O nome da seo - - - loop - [$variable_name] - Sim - n/d - O nome da varivel para determinar o - nmero de interaes - - - start - integer - No - 0 A posio - do ndice que a seo vai comear. Se o valor - negativo, a posio de inicio calculada a partir - do final da matriz. Por exemplo, se houverem - sete valores na matriz e 'start' for -2, o - ndice inicial 5. Valores invlidos (valores fora do - tamanho da matriz) so automaticamente corrigidos - para o valor vlido mais prximo. - - - step - integer - No - 1 - O valor do passo que ser usado para percorrer - a matriz. Por exemplo, step=2 ir percorrer - os ndices 0,2,4, etc. Se step for negativo, ele ir caminhar - pela matriz de trs para frente. - - - max - integer - No - 1 - Define o nmero mximo de loops - para a section. - - - show - boolean - No - true - Determina quando mostrar ou no esta section - - - - - - Os 'sections' de template so usados para percorrer os dados de uma matriz. - Todas as tags section devem ser finalizadas com /section. - Os parmetros obrigatrios so name e loop. - O nome da 'section' pode ser o que voc quiser, contendo letras, nmeros e sublinhados. - As 'sections' podem ser aninhadas, e os nomes das sections devem ser nicos. A varivel - 'loop' (normalmente uma matriz de valores) determina o nmero de vezes que a section - ser percorrida. Quando estiver exibindo uma varivel dentro de uma section, - o nome da section deve estar ao lado da varivel dentro de conchetes []. - sectionelse executado quando no houver valores na - varivel 'loop'. - - -section - - -{/section} -]]> - -MOSTRA: - - -id: 1001
      -id: 1002
      -]]> -
      -
      - - -loop de varivel section - - - nome: {$nome[consumidor]}
      - endereo: {$endereco[customer]}
      -

      -{/section} -]]> - -MOSTRA: - - -nome: John Smith
      -endereo: 253 N 45th
      -

      -id: 1001
      -nome: Jack Jones
      -endereo: 417 Mulberry ln
      -

      -id: 1002
      -nome: Jane Munson
      -endereo: 5605 apple st
      -

      -]]> - - - - -Nomes de section - - - nome: {$nome[meusdados]}
      - endereo: {$endereco[meusdados]}
      -

      -{/section} -]]> - - - - -sections aninhadas - - - name: {$name[customer]}
      - address: {$address[customer]}
      - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
      - {/section} -

      -{/section} -]]> - -MOSTRA: - - -name: John Smith
      -address: 253 N 45th
      -home phone: 555-555-5555
      -cell phone: 555-555-5555
      -e-mail: john@mydomain.com
      -

      -id: 1001
      -name: Jack Jones
      -address: 417 Mulberry ln
      -home phone: 555-555-5555
      -cell phone: 555-555-5555
      -e-mail: jack@mydomain.com
      -

      -id: 1002
      -name: Jane Munson
      -address: 5605 apple st
      -home phone: 555-555-5555
      -cell phone: 555-555-5555
      -e-mail: jane@mydomain.com
      -

      -]]> - - - - -sections e matrizes associativas - - - telefone: {$contatos[consumidor].telefone}
      - celular: {$contatos[consumidor].celular}
      - e-mail: {$contatos[consumidor].email}

      -{/section} -]]> - -MOSTRA: - - -home: 555-555-5555
      -cell: 555-555-5555
      -e-mail: john@mydomain.com

      -name: Jack Jones
      -home phone: 555-555-5555
      -cell phone: 555-555-5555
      -e-mail: jack@mydomain.com

      -name: Jane Munson
      -home phone: 555-555-5555
      -cell phone: 555-555-5555
      -e-mail: jane@mydomain.com

      -]]> - - - - - - -sectionelse - - -{sectionelse} - no h valores em $custid. -{/section} -]]> - - - - Sections tambm tem as suas prprias variveis que manipulam as propriedades da section. - Estas so indicadas assim: {$smarty.section.nomesection.nomevariavel} - - - Nota - - A partir do Smarty 1.5.0, a sintaxe para as variveis de propriedades da section - mudou de {%nomesecao.nomevariavel%} para {$smarty.section.nomesection.nomevariavel}. A - sintaxe antiga ainda suportada, mas voc ver referncias somente nova sintaxe no - manual. - - - - index - - index usado para mostrar o ndice atual do loop, comeando em zero - (ou pelo atributo start caso tenha sido definido), e incrementado por um - (ou pelo atributo step caso tenha sido definido). - - - Nota Tcnica: - - Se as propriedades 'start' e 'step' da section no foram modificadas, - elas iro funcionar da mesma maneira que a propriedade 'interation' da - section funcionam, exceto que ela comea do 0 ao invs de 1. - - - - propriedade index da section - - -{/section} -]]> - -MOSTRA: - - -1 id: 1001
      -2 id: 1002
      -]]> -
      -
      -
      - - index_prev - - index_prev usado para mostrar o ndice anterior do loop. - No primeiro loop, o valor dele -1. - - - propriedade index_prev da section - - - {* Para sua informao, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_prev] ne $custid[consumidor.index]} - O id do consumidor ir mudar
      - {/if} -{/section} -]]> -
      -MOSTRA: - - - O id do consumidor ir mudar
      -1 id: 1001
      - O id do consumidor ir mudar
      -2 id: 1002
      - O id do consumidor ir mudar
      -]]> -
      -
      -
      - - index_next - - index_next usado para mostrar o prximo indice do loop. No ltimo loop, - isto ainda um mais o ndice atual( respeitando a definio - do atributo step, caso tenha sido definido.) - - - propriedade index_next section - - - {* Para sua informao, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_next] ne $custid[consumidor.index]} - O id do consumidor ir mudar
      - {/if} -{/section} -]]> -
      -MOSTRA: - - - O id do consumidor ir mudar
      -1 id: 1001
      - O id do consumidor ir mudar
      -2 id: 1002
      - O id do consumidor ir mudar
      -]]> -
      -
      -
      - - iteration - - iteration usado para mostrar a interao atual do loop. - - - Nota: - - 'interation' no afetado pelas propriedades start, step e max da section, - diferentemente da propriedade index. Interation diferente de 'index' comea - com 1 ao invs de 0. 'rownum' um sinnimo de 'interation', eles exercem a - mesma funo. - - - - propriedade interation da section - - - {$smarty.section.consumidor.index} id: {$custid[consumidor]}
      - {* Para sua informao, $custid[consumidor.index] e $custid[consumidor] tem o mesmo significado *} - {if $custid[consumidor.index_next] ne $custid[consumidor.index]} - O id do consumidor ir mudar
      - {/if} -{/section} -]]> -
      -MOSTRA: - - - O id do consumidor ir mudar
      -interao atual do loop: 2 -7 id: 1001
      - O id do consumidor ir mudar
      -interao atual do loop: 3 -9 id: 1002
      - O id do consumidor ir mudar
      -]]> -
      -
      -
      - - first - - first definido como true se a interao atual da section - a primeira. - - - propriedade first da section - - - {/if} - - {$smarty.section.consumidor.index} id: {$custid[consumidor]} - - {if $smarty.section.consumidor.last} - - {/if} -{/section} -]]> - -MOSTRA: - - - 0 id: 1000 - 1 id: 1001 - 2 id: 1002 - -]]> - - - - - last - - last definido como true se a interao atual da - section a ltima. - - - propriedade last da section - - - {/if} - - {$smarty.section.consumidor.index} id: {$custid[consumidor]} - - {if $smarty.section.consumidor.last} - - {/if} -{/section} -]]> - -MOSTRA: - - - 0 id: 1000 - 1 id: 1001 - 2 id: 1002 - -]]> - - - - - rownum - - rownum usado para mostrar a interao atual do loop, - comeando em um. um sinnimo de iteration, - eles exercem a mesma funo. - - - propriedade rownum da section - - -{/section} -]]> - -MOSTRA: - - -2 id: 1001
      -3 id: 1002
      -]]> -
      -
      -
      - - loop - - loop usado para exibir o nmero do ltimo ndice que a section percorreu. - Ele pode ser usado dentro ou aps o trmino da section. - - - propridade index da section - - -{/section} - - Foram mostrados {$smarty.section.customer.loop} consumidores acima. -]]> - -MOSTRA: - - -1 id: 1001
      -2 id: 1002
      - -Foram mostrados 3 consumidores acima. -]]> -
      -
      -
      - - show - - show usado como um parmetro da section. show - um valor booleano, verdadeiro ou falso. Caso seja falso, a section no ser mostrada. - Se existir uma sectionelse presente, ela ser exibida. - - - atributo show da section - - -{/section} - -{if $smarty.section.consumidor.show} - a section foi mostrada. -{else} - a section no foi mostrada. -{/if} -]]> - -MOSTRA: - - -2 id: 1001
      -3 id: 1002
      - -a section foi mostrada. -]]> -
      -
      -
      - - total - - total usado para exibir o nmero de interaes que esta section ir percorrer. - Ela pode ser usada dentro ou aps a section. - - - propriedade total da section - - -{/section} - - Foram mostrados {$smarty.section.customer.loop} consumidores acima. -]]> - -MOSTRA: - - -2 id: 1001
      -4 id: 1002
      - -Foram mostrados 3 consumidores acima. -]]> -
      -
      -
      - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml b/docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 70f7565e..00000000 --- a/docs/pt_BR/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - strip - - Muitas vezes web designers tem problemas com espaos em branco e - caracteres especiais (carriage returns) afetam a exibio do HTML - ("caractersticas" do navegador), assim voc obrigado colocar todas - as suas tags juntas para obter os resultados esperados. Isso geralmente - acaba tornando o template ilegvel ou no manipulvel. - - - Tudo entre as tags {strip}{/strip} no Smarty tem seus espaos extras - ou caracteres especiais (carriage returns) removidos no incio e fim das - linhas antes de elas serem exibidas. Deste modo voc pode manter seu - template legvel, e no se preocupar com espaos extras causando - problemas. - - - Nota Tcnica - - {strip}{/strip} no afeta o contedo das variveis de template. - Veja modificador strip. - - - -strip tags - - - - - - Isto um teste - - - - -{/strip} -]]> - -MOSTRAR: - -Isto um teste -]]> - - - - Observe que no exemplo acima, todas as linhas comeam e terminam com tags HTML. - Esteja ciente para que todas as linhas fiquem juntas. - Se voc tiver texto simples no incio ou final de uma linha, - ele ser juntado na hora da converso e pode causar resultados - no desejados. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-combining-modifiers.xml b/docs/pt_BR/designers/language-combining-modifiers.xml deleted file mode 100644 index d1a21e97..00000000 --- a/docs/pt_BR/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Combinando Modificadores - - Voc pode aplicar a quantidade de moficadores que quiser uma varivel. Eles sero aplicados - na ordem em que foram combinados, da esquerda para direita. Eles devem ser separados - com o caracter | (pipe). - - - combinando modificadores - -assign('articleTitle', 'Smokers are Productive, but Death Cuts Efficiency.'); -$smarty->display('index.tpl'); -?> - -index.tpl: - -{$articleTitle} -{$articleTitle|upper|spacify} -{$articleTitle|lower|spacify|truncate} -{$articleTitle|lower|truncate:30|spacify} -{$articleTitle|lower|spacify|truncate:30:". . ."} -]]> - - - O texto acima mostrar: - - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions.xml b/docs/pt_BR/designers/language-custom-functions.xml deleted file mode 100644 index 165b4076..00000000 --- a/docs/pt_BR/designers/language-custom-functions.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - Funes Personalizadas - - O Smarty contm vrias funes personalizadas que voc - pode usar em seus templates. - -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-textformat; - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml b/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 4690a3b4..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - assign - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - var - string - Sim - n/a - O nome da varivel que est sendo definida - - - value - string - Yes - n/a - O valor que est sendo definido - - - - - - assign usado para definir o valor de uma varivel - de template durante a execuo do template. - - -assign - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml b/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index 65e16e02..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - counter - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - No - default - O nome do contador - - - start - number - No - 1 - O nmero no qual a contagem se inicia - - - skip - number - No - 1 - O intervalo entre as contagens - - - direction - string - No - up - A direo para contar (up/down) - - - print - boolean - No - true - Quando mostrar ou no o valor - - - assign - string - No - n/a - A varivel de template que vai - receber a sada - - - - - - counter usada para mostrar uma contagem. counter ir se lembrar de - count em cada interao. Voc pode ajustar o nmero, o intervalo - e a direo da contagem, assim como detrminar quando - mostrar ou no a contagem. Voc pode ter vrios contadores ao - mesmo tempo, dando um nome nico para cada um. Se voc no der um nome, - o nome 'default' ser usado. - - - Se voc indicar o atributo especial "assign", a sada da funo counter - ser passada para essa varivel de template ao invs de - ser mostrada no template. - - -counter - - -{counter}
      -{counter}
      -{counter}
      - -MOSTRA: - -2
      -4
      -6
      -8
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml b/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index 9287ed69..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - cycle - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - No - default - O nome do ciclo - - - values - mixed - Sim - n/d - Os valores do ciclo, ou uma lista delimitada - por vrgula (veja o atributo delimiter), - ou uma matriz de valores. - - - print - boolean - No - true - Quando mostrar ou no o valor - - - advance - boolean - No - true - Quando avanar ou no para o prximo valor - - - delimiter - string - No - , - O delimitador para usar no atributo 'values'. - - - assign - string - No - n/d - A varivel de template que - receber a sada - - - - - - Cycle usado para fazer um clico atravs de um conjunto de valores. - Isto torna fcil alternar entre duas ou mais cores em uma tabela, - ou entre uma matriz de valores. - - - Voc pode usar o cycle em mais de um conjunto de valores - no seu template. D a cada conjunto de valores - um nome nico. - - - Voc pode fazer com que o valor atual no seja mostrado - definindo o atributo print para false. Isto til para - pular um valor. - - - O atributo advance usado para repetir um valor. Quando definido - para false, a prxima chamada para cycle ir mostrar o mesmo valor. - - - Se voc indicar o atributo especial "assign", a sada da funo - cycle ser passada para uma varivel de template ao invs de ser - mostrado diretamente no template. - - -cycle - - - {$data[rows]} - -{/section} - -MOSTRA: - - - 1 - - - 2 - - - 3 - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml b/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 5ca6ec6c..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - debug - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - output - string - No - html - Tipo de sada, html ou javascript - - - - - - {debug} mostra o console de debug na pgina. Ele funciona independente - da definio de debug. - J que ele executado em tempo de execuo, ele capaz apenas de - mostrar as variveis definidas, e no os templates - que esto em uso. Mas voc pode ver todas as variveis - disponveis no escopo do template. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml b/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 383a5717..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - eval - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - var - mixed - Sim - n/a - Varivel (ou string) para avaliar - - - assign - string - No - n/a - A varivel de template que - receber a sada - - - - - - eval usado para avaliar uma varivel como template. Isto pode ser usado para - coisas como embutir tags/variveis de template dentro de variveis - ou tags/variveis dentro de variveis em um arquivo de configurao. - - - Se voc indicar o atributo especial "assign", a sada da funo - eval ir para esta varivel de template ao - invs de aparecer no template. - - - Nota Tcnica - - Variveis avaliadas so tratadas igual a templates. Elas seguem - o mesmo funcionamento para escapar e para segurana como - se fossem templates. - - - - Nota Tcnica - - Variveis avaliadas so compiladas a cada invocao, as verses - compiladas no so salvas. Entretando, se voc tiver o cache ativado, - a sada vai ficar no cache junto com o resto do template. - - - -eval - - -emphend = -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. - - -index.tpl ---------- - -{config_load file="setup.conf"} - -{eval var=$foo} -{eval var=#title#} -{eval var=#ErrorCity#} -{eval var=#ErrorState# assign="state_error"} -{$state_error} - -MOSTRA: - -This is the contents of foo. -Welcome to Foobar Pub & Grill's home page! -You must supply a city. -You must supply a state. -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml b/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 6a0d04d5..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - fetch - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - file - string - Sim - n/a - O arquivo, site http ou ftp para obter - - - assign - string - No - n/a - A varivel de template - que vai receber a sada - - - - - - fetch usado para obter arquivos do sistema de arquivos local, - http ou ftp, e mostrar o seu contedo. Se o nome do arquivo comear - com "http://", a pgina do web site ser obtida e mostrada. Se o - nome do arquivo comear com "ftp://", o arquivo ser obtido do servidor - ftp e mostrado. Para arquivos locais, o caminho completo do sistema de - arquivos deve ser dado, ou um caminho relativo ao script php executado. - - - Se voc indicar o atributo especial "assign", a sada da funo - fetch ser passada para uma varivel de template ao invs de - ser mostrado no template. (novo no Smarty 1.5.0) - - - Nota Tcnica - - fetch no suporta redirecionamento http, tenha - certeza de incluir a barra no final aonde necessrio. - - - - Nota Tcnica - - Se a segurana do template esta ativada e voc - estiver obtendo um arquivo do sistema de arquivos locais, fetch - ir funcionar apenas em arquivos de um dos diretrios - definidos como seguros. ($secure_dir) - - - -fetch - -{$weather} -{/if} -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e3c67aed..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - - html_checkboxes - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - No - checkbox - O nome da lista checkbox - - - values - array - Sim, a menos que estaja usando o atributo options - n/a - Uma matriz de valores para os botes checkbox - - - output - array - Sim, a menos que estaja usando o atributo options - n/a - uma matriz de sada para os botes checkbox - - - selected - string/array - No - empty - O(s) elemento(s) checkbox marcado(s) - - - options - matriz - Sim, a menos que esteja usando values e output - n/a - Uma matriz associativa de valores e sada - - - separator - string - No - empty - string de texto para separar cada checkbox - - - labels - boolean - No - true - Adicionar tags <label> para na sada - - - - - - html_checkboxes uma funo personalizada que cria um grupo de - checkbox com os dados fornecidos. Ela cuida de qual(is) item(s) - esto selecionado(s) por padro. Os atributos obrigatrios so - values e output, a menos que voc use options. - Toda a sada compatvel com XHTML. - - - Todos os parmetro que no estejam na lista acima so mostrados - como pares nome/valor dentro de cada tag <input> criada. - - -html_checkboxes - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="
      "} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - -{html_checkboxes name="id" options=$cust_checkboxes checked=$customer_id separator="
      "} - - -MOSTRA: (ambos os exemplos) - -
      -
      -
      -
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 267fce58..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - html_image - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - file - string - Sim - n/a - nome/caminho para a imagem - - - border - string - No - 0 - tamanho da borda de contorno da imagem - - - height - string - No - altura atual da imagem - altura com a qual a imagem deve ser mostrada - - - width - string - No - largura atual da imagem - largura com a qual a imagem deve ser mostrada - - - basedir - string - No - doc root do servidor - diretrio de base a caminhos relativos - - - alt - string - No - "" - descrio alternativa da imagem - - - href - string - No - n/a - valor href para aonde a imagem ser linkada - - - - - - html_image uma funo customizada que gera uma tag HTML para uma imagem. - A altura e a largura so automaticamente calculadas a partir do arquivo de imagem se - nenhum valor fornecido. - - - basedir o diretrio base do qual caminhos relativos de imagens esto baseados. - Se no fornecido, o document root do servidor (varivel de ambiente DOCUMENT_ROOT) usada - como o diretrio base. Se a segurana est habilitada, o caminho para a imagem deve estar dentro - de um diretrio seguro. - - - href o valor href para onde a imagem ser linkada. Se um link fornecido, - uma tag <a href="LINKVALUE"><a> posta em volta da tag da imagem. - - - Nota Tcnica - - html_image requer um acesso ao disco para ler a imagem e calcular - a altura e a largura. Se voc no usa caching de template, normalmente - melhor evitar html_image e deixar as tags de imagem estticas para performance - otimizada. - - - -html_image - -display('index.tpl'); - -index.tpl: - -{html_image file="pumpkin.jpg"} -{html_image file="/path/from/docroot/pumpkin.jpg"} -{html_image file="../path/relative/to/currdir/pumpkin.jpg"} - -MOSTRA: (possvel) - - - - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 616bea2e..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - html_options - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - values - array - Sim, a menos que usando atributos de options - n/a - uma matriz de valores para o menu dropdown - - - output - array - Sim, a menos que usando atributos de options - n/a - uma matriz de sada para o menu dropdown - - - selected - string/array - No - empty - o elemento do options selecionado - - - options - associative array - Sim, a menos que usando values e output - n/a - uma matriz associativa de output e output - - - name - string - No - empty - nome do grupo selecionado - - - - - - html_options uma funo personalizada que cria um grupo html option com os dados fornecidos. - Ela est atenta de quais itens esto selecionados por padro. Atributos obrigatrios so 'values' e - 'output', a menos que voc use options no lugar. - - - Se um valor dado um array, ele ser tratado como um OPTGROUP html, - e mostrar os grupos. - Recursividade suportada pelo OPTGROUP. Todas as sadas so compatveis com XHTML. - - - Se o atributo opcional name dado, as tags - <select name="groupname"></select> iro incluir a lista de opes dentro dela. - Caso contrrio apenas a lista de opes gerada. - - - Todos os parmetros que no esto na lista acima so exibidos como - nome/valor dentro de <select>-tag. Eles so ignorados se o opcional - name no fornecido. - - -html_options - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - - - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_options', array( - 1001 => 'Taniel Franklin', - 1002 => 'Fernando Correa', - 1003 => 'Marcelo Pereira', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - -index.tpl: - - - - -OUTPUT: (both examples) - - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index dd0965a1..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - html_radios - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - name - string - No - radio - nome da radio list - - - values - array - Sim, a menos que utilizando atributo de options - n/a - uma matriz de valores para radio buttons - - - output - array - Sim, a menos que utilizando atributo de options - n/a - uma matriz de sada pra radio buttons - - - checked - string - No - empty - O elemento do radio marcado - - - options - associative array - Sim, a menos que utilizando values e output - n/a - uma matriz associativa de values e output - - - separator - string - No - empty - string de texto para separar cada item de radio - - - - - - html_radios uma funo personalizada que cria grupo de botes de radio html - com os dados fornecidos. Ele est atento para qual item est selecionado por padro. - Atributos obrigatrios so 'values' e 'output', a menos que voc use 'options' no lugar disso. Toda - sada compatvel com XHTML. - - - Todos os parmetros que no esto na lista acima so impressos como - nome/valor de dentro de cada tag <input> criada. - - - -html_radios - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane -Johnson','Carlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios values=$cust_ids checked=$customer_id output=$cust_names separator="
      "} - - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->assign('cust_radios', array( - 1001 => 'Joe Schmoe', - 1002 => 'Jack Smith', - 1003 => 'Jane Johnson', - 1004 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); -$smarty->display('index.tpl'); - - -index.tpl: - -{html_radios name="id" options=$cust_radios checked=$customer_id separator="
      "} - - -OUTPUT: (both examples) - -Taniel Fraklin
      -
      -Marcelo Pereira
      -Charlie Brown
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index e105ba65..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,352 +0,0 @@ - - - - - html_select_date - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - prefix - string - No - Date_ - Com o que prefixar o nome da varivel - - - time - timestamp/YYYY-MM-DD - No - tempo atual no formato timestamp do unix ou YYYY-MM-DD - qual date/time usar - - - start_year - string - No - ano atual - o primeiro ano no menu dropdown, ou o - nmero do ano, ou relativo ao ano atual (+/- N) - - - end_year - string - No - da mesma forma que start_year - o ltimo ano no menu dropdown, ou o - nmero do ano, ou relativo ao ano atual (+/- N) - - - display_days - boolean - No - true - se mostra os dias ou no - - - display_months - boolean - No - true - se mostra os meses ou no - - - display_years - boolean - No - true - se mostra os anos ou no - - - month_format - string - No - %B - qual o formato do ms (strftime) - - - day_format - string - No - %02d - a sada do dia seria em qual formato (sprintf) - - - day_value_format - string - No - %d - o valor do dia seria em qual formato (sprintf) - - - year_as_text - booleano - No - false - se mostra ou no o ano como texto - - - reverse_years - booleano - No - false - mostra os anos na ordem reversa - - - field_array - string - No - null - - se um nome dado, as caixas de seleo sero exibidos assim que os resultados - forem devolvidos ao PHP - na forma de name[Day], name[Year], name[Month]. - - - - day_size - string - No - null - adiciona o atributo de tamanho para a tag select se for dada - - - month_size - string - No - null - adiciona o atributo de tamanho para a tag de select se for dada - - - year_size - string - No - null - adiciona o atributo de tamanho para a tag de select se for dada - - - all_extra - string - No - null - adiciona atributos extras para todas as tags select/input se - forem dadas - - - day_extra - string - No - null - adiciona atributos - extras para todas as tags select/input se forem dadas - - - month_extra - string - No - null - adiciona atributos extras - para todas as tags select/input se forem dadas - - - year_extra - string - No - null - adiciona atributos extras - para todas as tags select/input se forem dadas - - - field_order - string - No - MDY - a ordem para se mostrar os campos - - - field_separator - string - No - \n - string exibida entre os diferentes campos - - - month_value_format - string - No - %m - formato strftime dos valores do ms, o padro - %m para nmero de ms. - - - year_empty - string - No - null - Se for fornecido ento o primeiro eleemento do select-box 'anos' - ter este nome e o valor "". Isto til para fazer o select-box ler - "Por favor selecione um ano" por exemplo. Note que voc pode usar valores - como "-MM-DD" como atributos de tempo para indicar um ano no selecionado. - - - - month_empty - string - No - null - Caso fornecido ento o primeiro elemento do select-box 'meses' ter - este nome e o valor "". Note que voc pode suar valores como "YYYY--DD" como - atributos de tempo para indicar meses no selecionados. - - - - day_empty - string - No - null - Caso fornecido ento o primeiro elemento do select-box 'dias' ter - este nome e o valor "". Note que voc pode usar valores como "YYYY-MM-" como - atributos de tempo para indicar dias no selecionados. - - - - - - - html_select_date uma funo personalizada que cria menus dropdowns - de data para voc. Ele pode mostrar qualquer um/ou todos os anos, meses e dias. - - -html_select_date - - - - - - - - - - - - - - - - - -]]> - - - - - -html_select_date - - - - - - - - - - - - - - - - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index fa75ada3..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,327 +0,0 @@ - - - - - html_select_time - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - prefix - string - No - Time_ - com o que prefixar o nome da varivel - - - time - timestamp - No - tempo atual - qual date/time para usar - - - display_hours - booleano - No - true - Exibir ou no as horas - - - display_minutes - booleano - No - true - Exibir ou no os minutos - - - display_seconds - booleano - No - true - Exibir ou no os segundos - - - display_meridian - booleano - No - true - Exibir ou no no formato (am/pm) - - - use_24_hours - booleano - No - true - Usar ou no relgio de 24 horas - - - minute_interval - inteiro - No - 1 - intervalo dos nmeros dos minutos do menu dropdown - - - second_interval - integer - No - 1 - intervalo dos nmeros dos segundos do menu dropdown - - - field_array - string - No - n/a - exibe valores para o array deste nome - - - all_extra - string - No - null - adiciona atributos - extras para tags select/input se fornecidas - - - hour_extra - string - No - null - adiciona atributos - extras para tags select/input se fornecidas - - - minute_extra - string - No - null - adiciona atributos - extras para tags select/input tags se fornecidas - - - second_extra - string - No - null - adiciona atributos - extras para tags select/input se fornecidas - - - meridian_extra - string - No - null - adiciona atributos - extras para tags select/input se fornecidas - - - - - - html_select_time uma funo personalizada que cria menus dropdowns de hora para voc. Ela pode mostrar - alguns valores, ou tudo de hora, - minuto, segundo e ainda no formato am/pm. - - -html_select_time - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml b/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index c1ca80bb..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - html_table - - - - - - - - - - Nome do atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - loop - array - Sim - n/d - array de dados para ser feito o loop - - - cols - inteiro - No - 3 - nmero de colunas na tabela - - - table_attr - string - No - border="1" - atributos para a tag table - - - tr_attr - string - No - empty - atributos para a tag tr (arrays esto em ciclo) - - - td_attr - string - No - empty - atributos para a tag (arrays esto em ciclo) - - - trailpad - string - No - &nbsp; - values to pad the trailing cells on last row with - (se algum) - - - - hdir - string - No - right - direao de uma linha para ser representada. Possveis valores: left/right - - - vdir - string - No - down - direo das colunas para serem representadas. Possveis valores: up/down - - - - - - html_table uma funo personalizada que transforma um array de dados - em uma tabela HTML. O atributo cols determina a quantidade de colunas que - a tabela ter. Os valores table_attr, tr_attr e - td_attr determinam os atributos dados para a tabela, tags tr e td. Se tr_attr ou - td_attr so arrays, eles entraro em ciclo. - trailpad o - valor colocado dentro do trailing - cells na ltima linha da tabela - se h alguma presente. - - -html_table - -assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -index.tpl: - -{html_table loop=$data} -{html_table loop=$data cols=4 table_attr='border="0"'} -{html_table loop=$data cols=4 tr_attr=$tr} - -MOSTRA: - - - - - -
      123
      456
      789
      - - - - -
      1234
      5678
      9&nbsp;&nbsp;&nbsp;
      - - - - -
      1234
      5678
      9&nbsp;&nbsp;&nbsp;
      -]]> -
      -
      -
      - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml b/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index b5afb557..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - mailto - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - address - string - Sim - n/d - O endereo de email - - - text - string - No - n/d - O texto ser exibido, o padro - o endereo de email - - - encode - string - No - none - Como codificar o e-mail. - Pode ser none, - hex ou javascript. - - - cc - string - No - n/d - Endereo de e-mail para mandar uma cpia carbono(cc). - Separe os endereos por vrgula. - - - bcc - string - No - n/d - Endereo de e-mail para mandar uma cpia carbono cega(bcc). - Separe os endereos por vrgula. - - - subject - string - No - n/d - Assunto do e-mail. - - - newsgroups - string - No - n/d - newsgroup para postar. - Separe os endereos por vrgula. - - - followupto - string - No - n/d - Endereo para acompanhar. - Separe os endereos por vrgula. - - - extra - string - No - n/d - Qualquer outra informao que voc - queira passar para o link, como - classes de planilhas de estilo - - - - - - mailto automatiza o processo de criao de links de e-mail e opcionalmente - codifica eles. Codificar o e-mail torna mais difcil para - web spiders pegarem endereos no seu site. - - - Nota Tcnica - - javascript provavelmente o meio de codificao mais - utilizado, entretanto voc pode usar codificao hexadecimal tambm. - - - -mailto - -me@domain.com -send me some mail - -&#x6d;&#x65;&#x40;&#x64;& -#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d; -me@domain.com -me@domain.com - -]]> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-math.xml b/docs/pt_BR/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index adf8fc44..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - math - - - - - - - - - - Nome do atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - equation - string - Sim - n/a - a equao ser executar - - - format - string - No - n/a - o formato do resultado (sprintf) - - - var - numrico - Sim - n/a - valor da varivel da equao - - - assign - string - No - n/a - varivel de template cuja sada ser atribuida - - - [var ...] - numrica - Sim - n/a - valor da varivel da equao - - - - - - math permite o desenhista de template fazer equaes matemticas no template. - Qualquer varivel de template numrica pode ser usada nas equaes, e o resultado - exibido no lugar da tag. As variveis usadas na equao so passadas como parmetros, - que podem ser variveis de template - ou valores estticos. +, -, /, *, abs, ceil, cos, - exp, floor, log, log10, max, min, pi, pow, rand, round, sin, sqrt, - srans and tan so todos os operadores vlidos. Verifique a documentao do PHP para - mais informaes acerca destas funes matemticas. - - - Se voc fornece o atributo especial "assign", a sada da funo matemtica ser - atribudo para esta varivel - de template ao invs de ser exibida para o template. - - - Nota Tcnica - - math uma funo de performance cara devido ao uso da funo do php eval(). - Fazendo a matemtica no PHP muito mais eficiente, ento sempre possvel fazer - os clculos matemticos no PHP e lanar os resultados para o template. Definitivamente - evite chamadas de funes de - matemticas repetitivamente, como dentro de loops de section. - - - -math - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml b/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index ba32fb13..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - popup_init - - popup uma integrao com overLib, uma biblioteca usada para janelas - popup. Esta usada para informaes sensveis ao contexto, como - janelas de ajuda ou dicas. popup_init deve ser usada uma vez ao - topo de cada pgina que voc planeje usar a funo popup. overLib - foi escrita por Erik Bosrup, e a pgina esta localizada em - http://www.bosrup.com/web/overlib/. - - - A partir da verso 2.1.2 do Smarty, overLib NO vem com a distribuio. - Baixe o overLib, coloque o arquivo overlib.js dentro da sua arvore de - documentos e indique o caminho relativo para o parmetro "src" - de popup_init. - - -popup_init - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml b/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index f959aa70..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,430 +0,0 @@ - - - - - popup - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - text - string - Sim - n/d - O text/html para mostrar na janela popup - - - trigger - string - No - onMouseOver - O que usado para fazer a janela aparecer. Pode ser - onMouseOver ou onClick - - - sticky - boolean - No - false - Faz a janela colar at que seja fechada - - - caption - string - No - n/d - Define o texto para o ttulo - - - fgcolor - string - No - n/d - A cor usada dentro da caixa popup - - - bgcolor - string - No - n/d - A cor da borda da caixa popup - - - textcolor - string - No - n/d - Define a cor do texto dentro da caixa popup - - - capcolor - string - No - n/d - Define a cor do ttulo da caixa - - - closecolor - string - No - n/d - Define a cor do texto para fechar - - - textfont - string - No - n/d - Define a cor do texto para ser usado no texto principal - - - captionfont - string - No - n/d - Define a fonte para ser usada no Ttulo - - - closefont - string - No - n/d - Define a fonte para o texto "Close" - - - textsize - string - No - n/d - Define a fonte do texto principa - - - captionsize - string - No - n/d - Define o tamanho da fonte do ttulo - - - closesize - string - No - n/d - Define o tamanho da fonte do texto "Close" - - - width - integer - No - n/d - Define a largura da caixa - - - height - integer - No - n/d - Define a altura da caixa - - - left - boolean - No - false - Faz os popups irem para a esquerda do mouse - - - right - boolean - No - false - Faz os popups ir para a diresita do mouse - - - center - boolean - No - false - Faz os popups ir para o centro do mouse - - - above - boolean - No - false - Faz os popups irem para acima do mouse. NOTA: somente - possvel se height foi definido - - - below - boolean - No - false - Faz os popups irem abaixo do mouse - - - border - integer - No - n/d - Torna as bordas dos popups grossas ou finas - - - offsetx - integer - No - n/d - A que distancia do mouse o popup ir - aparecer, horizontalmente - - - offsety - integer - No - n/d - A que distancia do mouse o popup ir - aparecer, verticalmente - - - fgbackground - url para imagem - No - n/d - Define uma imagem para usar ao invs de uma - cor dentro do popup. - - - bgbackground - url to image - No - n/d - define uma imagem para ser usada como borda - ao invs de uma cor para o popup. Nota: voc deve definir bgcolor - como "" ou a cor ir aparecer tambm. NOTA: quando tiver um - link "Close", o Netscape ir redesenhar as clulas da tabela, - fazendo as coisas aparecerem incorretamente - - - closetext - string - No - n/d - Define o texto "Close" para qualquer outra coisa - - - noclose - boolean - No - n/d - No mostra o texto "Close" em coladas - com um ttulo - - - status - string - No - n/d - Define o texto na barra de status do browser - - - autostatus - boolean - No - n/d - Define o texto da barra de status para o texto do popup. - NOTA: sobrescreve a definio de status - - - autostatuscap - string - No - n/d - define o texto da barra de status como o texto do ttulo - NOTA: sobrescreve o status e autostatus - - - inarray - integer - No - n/d - Indica ao overLib para ler o texto deste ndice - na matriz ol_text array, localizada em overlib.js. Este - parmetro pode ser usado ao invs do texto - - - caparray - integer - No - n/d - diz para overLib ler o ttulo a partir deste ndice - na matriz ol_caps - - - capicon - url - No - n/d - Mostra a imagem antes do ttulo - - - snapx - integer - No - n/d - snaps the popup to an even position in a - horizontal grid - - - snapy - integer - No - n/d - snaps the popup to an even position in a - vertical grid - - - fixx - integer - No - n/d - locks the popups horizontal position Note: - overrides all other horizontal placement - - - fixy - integer - No - n/d - locks the popups vertical position Note: - overrides all other vertical placement - - - background - url - No - n/d - Define uma imagem para ser usada como - fundo ao invs da tabela - - - padx - integer,integer - No - n/d - Prenche a imagem de fundo com espaos em branco horizontal - para colocao do texto. Nota: este um comando - de dois parmetros - - - pady - integer,integer - No - n/d - Prenche a imagem de fundo com espaos em branco vertical - para colocao do texto. Nota: este um comando - de dois parmetros - - - fullhtml - boolean - No - n/d - Permite a voc controlar o html sobre a figura - de fundo completamente. O cdigo HTML esperado - no atributo "text" - - - frame - string - No - n/d - Controla popups em frames diferentes. Veja a pgina da - overlib para maiores informaes sobre esta funo - - - timeout - string - No - n/d - Utiliza uma funo e pega o valor de retorno - como texto que deva ser mostrado - na janela popup - - - delay - integer - No - n/d - Faz com que o popup funcione como um tooltip. Ir - aparecer apenas aps um certo atraso em milsimos de segundo - - - hauto - boolean - No - n/d - Determina automaticamente se o popup deve aparecer - a esquerda ou direita do mouse. - - - vauto - boolean - No - n/d - Determina automaticamente se o popup deve aparecer - abaixo ou acima do mouse. - - - - - - popup usado para criar janelas popup com javascript. - - -popup - -{* popup_init deve ser utilizada uma vez no topo da pgina *} -{popup_init src="/javascripts/overlib.js"} - -{* cria um link com uma janela popup que aparece quando se passa o mouse sobre ele *} -<A href="mypage.html" {popup text="This link takes you to my page!"}>mypage</A> - -{* voc pode usar html, links, etc no texto do popup *} -<A href="mypage.html" {popup sticky=true caption="mypage contents" -text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A> - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml b/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 42a07b72..00000000 --- a/docs/pt_BR/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,256 +0,0 @@ - - - - - textformat - - - - - - - - - - Nome do Atributo - Tipo - Obrigatrio - Padro - Descrio - - - - - style - string - No - n/d - estilo pr-definido - - - indent - number - No - 0 - O nmero de caracteres para endentar cada linha. - - - indent_first - number - No - 0 - O nmero de caracteres para endentar a primeira linha - - - indent_char - string - No - (single space) - O caractere (ou string de caracteres) para indenta - - - wrap - number - No - 80 - Quantidade de caracteres antes de quebrar cada linha - - - wrap_char - string - No - \n - O caractere (ou string de caracteres) para usar - para quebrar cada linha - - - wrap_cut - boolean - No - false - Se true, wrap ir quebrar a linha no caractere - exato em vez de quebrar ao final da palavra - - - assign - string - No - n/d - A varivel de template que ir - receber a sada - - - - - - textformat uma funo de bloco usada para formatar texto. Basicamente - ela remove espaos e caracteres especiais, e formata os pargrafos - quebrando o texto ao final de palavras e identando linhas. - - - Voc pode definir os parmetros explicitamente, ou usar um estilo pr-definido. - Atualmente o nico estilo disponvel "email". - - -textformat - - - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers.xml b/docs/pt_BR/designers/language-modifiers.xml deleted file mode 100644 index e615935e..00000000 --- a/docs/pt_BR/designers/language-modifiers.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - Modificadores de variveis - - Modificadores de variveis podem ser aplicados a variveis, funes personalizadas - ou strings. Para aplicar um modificador, especifique o valor seguido por - |(pipe) e o nome do modificador. Um modificador aceita - parmetros adicionais que afetam o seu comportamento. Estes parmetros vem aps - o nome do modificador e so separados por : (dois pontos). - - - Exemplo de modificador - -{$titulo|upper}

    - -{* Faz com que $topico use somente 40 caracteres, e coloca ... no fim da frase *} - -Tpico: {$topico|truncate:40:"..."} - -{* transforma a data em um formato legvel *} -{"agora"|date_format:"%Y/%m/%d"} - -{* aplica um modificador uma funo personalizada *} -{mailto|upper address="eu@dominio.dom"} -]]> -
    -
    - - Se voc aplicar um modificador uma matriz ao invs de aplicar ao valor de uma varivel, - o modificador vai ser aplicado cada valor da matriz especificada. Se voc quer que o modificador - use a matriz inteira como um valor, voc deve colocar o smbolo @ antes do - nome do modificador, como a seguir: {$tituloArtigo|@count} - (isto ir mostrar o nmero de elementos na matriz $tituloArtigo). - - - Modificadores podem ser carregados automaticamente partir do seu $plugins_dir (veja: - Nomes sugeridos) ou podem ser - registrados explicitamente (veja: register_modifier). Adicionalmente, - todas as funes php podem ser utiliadas como modificadores implicitamente. (O - exemplo do @count acima usa a funo count do php e no - um modificador do Smarty). Usar funes do php como modificadores tem dois - pequenos problemas: Primeiro: s vezes a ordem dos parmetros da funo - no a desejada ({"%2.f"|sprintf:$float} atualmente funciona, - mas o melhor seria algo mais intuitivo. Por exemplo: {$float|string_format:"%2.f"} - que disponibilizado na distribuio do Smarty). Segundo: com a varivel - $security ativada em todas as funes do - php que so usadas como modificadores precisam ser declaradas como confiveis (trusted) - na matriz $security_settings['MODIFIER_FUNCS']. - - -&designers.language-modifiers.language-modifier-capitalize; -&designers.language-modifiers.language-modifier-count-characters; -&designers.language-modifiers.language-modifier-cat; -&designers.language-modifiers.language-modifier-count-paragraphs; -&designers.language-modifiers.language-modifier-count-sentences; -&designers.language-modifiers.language-modifier-count-words; -&designers.language-modifiers.language-modifier-date-format; -&designers.language-modifiers.language-modifier-default; -&designers.language-modifiers.language-modifier-escape; -&designers.language-modifiers.language-modifier-indent; -&designers.language-modifiers.language-modifier-lower; -&designers.language-modifiers.language-modifier-nl2br; -&designers.language-modifiers.language-modifier-regex-replace; -&designers.language-modifiers.language-modifier-replace; -&designers.language-modifiers.language-modifier-spacify; -&designers.language-modifiers.language-modifier-string-format; -&designers.language-modifiers.language-modifier-strip; -&designers.language-modifiers.language-modifier-strip-tags; -&designers.language-modifiers.language-modifier-truncate; -&designers.language-modifiers.language-modifier-upper; -&designers.language-modifiers.language-modifier-wordwrap; - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index ef044501..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - capitalize - - Isto usado para converter para maisculas a primeira letra de todas as palavras em uma varivel. - - - capitalize - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|capitalize} - -SADA: - -Police begin campaign to rundown jaywalkers. -Police Begin Campaign To Rundown Jaywalkers. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index 0d4ecbac..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - cat - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - cat - Descrio - - - - - 1 - string - No - empty - Este o valor para concatenar com a varivel dada. - - - - - - Este valor concatenado com a varivel dada. - - -cat - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Psychics predict world didn't end"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|cat:" yesterday."} - -MOSTRA: - -Psychics predict world didn't end yesterday. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index 70e66d3d..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - count_characters - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - boolean - No - false - Isto determina quando incluir ou no os espaos em - branco na contagem. - - - - - - Isto usado para contar o nmero de caracteres em uma varivel. - - -count_characters - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_characters} -{$articleTitle|count_characters:true} -MOSTRA: - -Cold Wave Linked to Temperatures. -29 -32 - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index aab1936f..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - count_paragraphs - - Isto usado para contar o nmero de paragrafos em uma varivel. - - -count_paragraphs - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins -Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_paragraphs} - -MOSTRA: - -War Dims Hope for Peace. Child's Death Ruins Couple's Holiday. - -Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation. -2 - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index 19e4ad93..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - count_sentences - - Isto usado para contar o nmero de sentenas em uma varivel. - - -count_sentences - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_sentences} - -MOSTRA: - -Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe. -2 - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index 26e99be8..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - count_words - - Isto usado para contar o nmero de palavras em uma varivel. - - -count_words - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|count_words} - -MOSTRA: - -Dealers Will Hear Car Talk at Noon. -7 - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 2f1d7fd4..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - date_format - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - No - %b %e, %Y - Este o formato para a data mostrada. - - - 2 - string - No - n/a - Esta a data padro se a entrada estiver vazia. - - - - - - Isto formata a data e hora no formato strftime() indicado. - Datas podem ser passadas para o Smarty como timestamps unix, timestamps mysql, - ou qualquer string composta de ms dia ano(interpretavel por strtotime). - Designers podem ento usar date_format para ter um controle completo da formatao - da data. Se a data passada para date_format estiver vazia e um segundo parmetro - for passado, este ser usado como a data - para formatar. - - -date_format - -index.php: - -$smarty = new Smarty; -$smarty->assign('yesterday', strtotime('-1 day')); -$smarty->display('index.tpl'); - -index.tpl: - - -{$smarty.now|date_format} -{$smarty.now|date_format:"%A, %B %e, %Y"} -{$smarty.now|date_format:"%H:%M:%S"} -{$yesterday|date_format} -{$yesterday|date_format:"%A, %B %e, %Y"} -{$yesterday|date_format:"%H:%M:%S"} - -MOSTRA: - -Feb 6, 2001 -Tuesday, February 6, 2001 -14:33:00 -Feb 5, 2001 -Monday, February 5, 2001 -14:33:00 - - -date_format conversion specifiers - -%a - nome do dia da semana abreviado de acordo com o local atual - -%A - nome do dia da semana inteiro de acordo com o local atual - -%b - nome do ms abreviado de acordo com o local atual - -%B - nome do ms inteiro de acordo com o local atual - -%c - representao preferencial de data e hora para o local atual - -%C - ano com dois dgitos (o ano dividido por 100 e truncado para um inteiro, intervalo de 00 a 99) - -%d - dia do ms como um nmero decimal (intervalo de 00 a 31) - -%D - o mesmo que %m/%d/%y - -%e - dia do ms como um nmero decimal, um nico dgito precedido por um -espao (intervalo de 1 a 31) - -%g - ano baseado na semana, sem o sculo [00,99] - -%G - ano baseado na semana, incluindo o sculo [0000,9999] - -%h - o mesmo que %b - -%H - hora como um nmero decimal usando um relgio de 24 horas (intervalo de 00 a 23) - -%I - hora como um nmero decimal usando um relgio de 12 horas (intervalo de 01 a 12) - -%j - dia do ano como um nmero decimal (intervalo de 001 a 366) - -%k - hora (relgio de 24 horas) digtos nicos so precedidos por um espao em branco (intervalo de 0 a 23) - -%l - hora como um nmero decimal usando um relgio de 12 horas, digtos unicos so precedidos -por um espao em branco (intervalo de 1 a 12) - -%m - ms como nmero decimal (intervalo de 01 a 12) - -%M - minuto como um nmero decimal - -%n - caractere de nova linha - -%p - ou `am' ou `pm' de acordo com o valor de hora dado, ou as strings correspondentes ao local atual - -%r - hora na notao a.m. e p.m. - -%R - hora na notao de 24 horas - -%S - segundo como nmero decimal - -%t - caractere tab - -%T - hora atual, igual a %H:%M:%S - -%u - dia da semana como um nmero decimal [1,7], com 1 representando segunda-feira - -%U - nmero da semana do ano atual como um nmero decimal, comeando com o primeiro domingo como primeiro dia da primeira semana - -%V - nmero da semana do ano atual como um nmero decimal de acordo com The ISO 8601:1988, -intervalo de 01 a 53, aonde a semana 1 a primeira semana que tenha pelo menos quatro dias no ano atual, sendo domingo o primeiro dia da semana. - -%w - dia da semana como decimal, domingo sendo 0 - -%W - nmero da semana do ano atual como nmero decimal, comeando com a primeira segunda como primeiro dia da primeira semana - -%x - representao preferencial da data para o local atualsem a hora - -%X - representao preferencial da hora para o local atual sem a data - -%y - ano como nmero decimal sem o sculo (intervalo de 00 a 99) - -%Y - ano como nmero decimal incluindo o sculo - -%Z - zona horria ou nome ou abreviao - -%% - um caractere `%' - - -NOTA PARA PROGRAMADORES: date_format essencialmente um wrapper para a funo strftime() do PHP. -Voc dever ter mais ou menos especificadores de converso disponveis de acordo com a -funo strftime() do sistema operacional aonde o PHP foi compilado. De uma olhada -na pgina de manual do seu sistema para uma lista completa dos especificadores vlidos. - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 2ddfbb44..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - default - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - No - vazio - Este o valor padro para mostrar se a varivel - estiver vazia. - - - - - - Isto usado para definir um valor padro para uma varivel. Se a varivel estiver - vazia ou no for definida, o valor padro dado mostrado. - Default usa um argumento. - - -default - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|default:"no title"} -{$myTitle|default:"no title"} - -MOSTRA: - -Dealers Will Hear Car Talk at Noon. -no title - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 2c6b4143..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - escape - - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Valores Possveis - Padro - Descrio - - - - - 1 - string - No - html,htmlall,url,quotes,hex,hexentity,javascript - html - Este o formato de escape para usar. - - - - - - Este usado para escapar html, url, aspas simples em uma varivel que j no esteja - escapada, escapar hex, hexentity ou javascript. - Por padro, escapado - o html da varivel. - - -escape - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "'Stiff Opposition Expected to Casketless Funeral Plan'"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|escape} -{$articleTitle|escape:"html"} {* escapa & " ' < > *} -{$articleTitle|escape:"htmlall"} {* escapa todas as entidades html *} -{$articleTitle|escape:"url"} -{$articleTitle|escape:"quotes"} -<a href="mailto:{$EmailAddress|escape:"hex"}">{$EmailAddress|escape:"hexentity"}</a> - -MOSTRA: - -'Stiff Opposition Expected to Casketless Funeral Plan' -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -&#039;Stiff Opposition Expected to Casketless Funeral Plan&#039; -%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27 -\'Stiff Opposition Expected to Casketless Funeral Plan\' -<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a> - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 71090de4..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,104 +0,0 @@ - - - - - indent - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - integer - No - 4 - Isto define com quantos - caracteres endentar. - - - 2 - string - No - (um espao) - Isto define qual caractere usado para endentar. - - - - - - Isto endenta uma string em cada linha, o padro 4. Como - parmetro opcional, voc pode especificar o nmero de caracteres para - endentar. Como segundo parmetro opcional, voc pode especificar o caractere - usado para endentar. (Use "\t" para tabs.) - - -indent - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'NJ judge to rule on nude beach.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} - -{$articleTitle|indent} - -{$articleTitle|indent:10} - -{$articleTitle|indent:1:"\t"} - -MOSTRA: - -NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - NJ judge to rule on nude beach. - Sun or rain expected today, dark tonight. - Statistics show that teen pregnancy drops off significantly after 25. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index 02b75a5c..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - lower - - Isto usado para converter para minsculas uma varivel. - - -lower - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|lower} - -MOSTRA: - -Two Convicts Evade Noose, Jury Hung. -two convicts evade noose, jury hung. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 9c67c439..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - nl2br - - Todas as quebras de linha sero convertidas para <br /> na varivel - data. Isto equivalente a funo nl2br() do PHP. - - -nl2br - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight"); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle|nl2br} - -MOSTRA: - -Sun or rain expected<br />today, dark tonight - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index b40f29b1..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - regex_replace - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - Sim - n/a - Esta a expresso regular a ser substituda. - - - 2 - string - Sim - n/a - Esta a string que ir substituir a expresso regular. - - - - - - Uma expresso regular para localizar e substituir na varivel. Use a sintaxe - para preg_replace() do manual do PHP. - - -regex_replace - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); -$smarty->display('index.tpl'); - -index.tpl: - -{* replace each carriage return, tab & new line with a space *} - -{$articleTitle} -{$articleTitle|regex_replace:"/[\r\t\n]/":" "} - -MOSTRA: - -Infertility unlikely to - be passed on, experts say. -Infertility unlikely to be passed on, experts say. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index b2b5c950..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - replace - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - Sim - n/a - Esta a string a ser substituida. - - - 2 - string - Sim - n/a - Esta a string que ir substituir. - - - - - - Um simples localizar e substituir. - - -replace - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Child's Stool Great for Use in Garden."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|replace:"Garden":"Vineyard"} -{$articleTitle|replace:" ":" "} - -OUTPUT: - -Child's Stool Great for Use in Garden. -Child's Stool Great for Use in Vineyard. -Child's Stool Great for Use in Garden. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index 9438e8aa..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - spacify - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - No - um espao - O que inserido entre cada caractere - da varivel. - - - - - - Insere um espao entre cada caractere de uma varivel. - Voc pode opcionalmente passar um caractere (ou uma string) diferente para inserir. - - -spacify - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|spacify} -{$articleTitle|spacify:"^^"} - -OUTPUT: - -Something Went Wrong in Jet Crash, Experts Say. -S o m e t h i n g W e n t W r o n g i n J e t C r a s h , E x p e r t s S a y . -S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^^ ^^C^^r^^a^^s^^h^^,^^ ^^E^^x^^p^^e^^r^^t^^s^^ ^^S^^a^^y^^. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index b7420cdd..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - string_format - - - - - - - - - - Posio do parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - string - Sim - n/a - Este o formato para ser usado. (sprintf) - - - - - - Este um meio para formatar strings, como nmeros decimais e outros. - Use a sintaxe para sprintf para a formatao. - - -string_format - -index.php: - -$smarty = new Smarty; -$smarty->assign('number', 23.5787446); -$smarty->display('index.tpl'); - -index.tpl: - -{$number} -{$number|string_format:"%.2f"} -{$number|string_format:"%d"} - -MOSTRA: - -23.5787446 -23.58 -24 - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 23b7356a..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - strip_tags - - Isto retira as tags de marcao, basicamente tudo entre < e >. - - -strip_tags - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|strip_tags} - -MOSTRA: - -Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index dad18594..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - strip - - Isto substitui todos os espaos repetidos, novas linhas e tabs por - um nico espao ou a string indicada. - - - Nota - - Se voc quer substituir blocos de texto do template, use a funo strip. - - - -strip - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Grandmother of\neight makes\t hole in one."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|strip} -{$articleTitle|strip:"&nbsp;"} - -MOSTRA: - -Grandmother of -eight makes hole in one. -Grandmother of eight makes hole in one. -Grandmother&nbsp;of&nbsp;eight&nbsp;makes&nbsp;hole&nbsp;in&nbsp;one. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index 19996063..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - truncate - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - integer - No - 80 - Este determina para - quantos caracteres truncar. - - - 2 - string - No - ... - Este o texto para adicionar se truncar. - - - 3 - boolean - No - false - Isto determina quando truncar ou no ao final de uma - palavra(false), ou no caractere exato (true). - - - - - - Isto trunca a varivel para uma quantidade de caracteres, o padro 80. - Como segundo parmetro opcional, voc pode especificar uma string para mostrar - ao final se a varivel foi truncada. Os caracteres da string so includos no tamanho - original para a truncagem. por padro, truncate ir tentar cortar ao final de uma palavra. - Se voc quizer cortar na quantidade exata de caracteres, passe o terceiro - parmetro, que opcional, - como true. - - -truncate - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|truncate} -{$articleTitle|truncate:30} -{$articleTitle|truncate:30:""} -{$articleTitle|truncate:30:"---"} -{$articleTitle|truncate:30:"":true} -{$articleTitle|truncate:30:"...":true} - -MOSTRA: - -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after Eighteen Years at Checkout Counter. -Two Sisters Reunite after... -Two Sisters Reunite after -Two Sisters Reunite after--- -Two Sisters Reunite after Eigh -Two Sisters Reunite after E... - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 4b14bcd6..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - upper - - Isto usado para converter para maisculas uma varivel. - - -upper - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} -{$articleTitle|upper} - -MOSTRA: - -If Strike isn't Settled Quickly it may Last a While. -IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index 387b351b..00000000 --- a/docs/pt_BR/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,118 +0,0 @@ - - - - - wordwrap - - - - - - - - - - Posio do Parmetro - Tipo - Requerido - Padro - Descrio - - - - - 1 - integer - No - 80 - Isto determina em - quantas colunas quebrar. - - - 2 - string - No - \n - Esta a string usada para quebrar. - - - 3 - boolean - No - false - Isto determina quando quebrar ou no ao final de uma palavra - (false), ou no caractere exato (true). - - - - - - Isto quebra uma string para uma largura de coluna, o padro 80. - Como segundo parmetro opcional, voc pode especificar a string que ser usada - para quebrar o texto para a prxima linha - (o padro um retorno de carro \n). - Por padro, wordwrap ir tentar quebrar ao final de uma palavra. Se - voc quiser quebrar no tamanho exato de caracteres, passe o terceiro parmetro, que opcional, como true. - - -wordwrap - -index.php: - -$smarty = new Smarty; -$smarty->assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years."); -$smarty->display('index.tpl'); - -index.tpl: - -{$articleTitle} - -{$articleTitle|wordwrap:30} - -{$articleTitle|wordwrap:20} - -{$articleTitle|wordwrap:30:"<br>\n"} - -{$articleTitle|wordwrap:30:"\n":true} - -MOSTRA: - -Blind woman gets new kidney from dad she hasn't seen in years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. - -Blind woman gets new -kidney from dad she -hasn't seen in -years. - -Blind woman gets new kidney<br> -from dad she hasn't seen in years. - -Blind woman gets new kidney fr -om dad she hasn't seen in year -s. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-variables.xml b/docs/pt_BR/designers/language-variables.xml deleted file mode 100644 index 74e6e9c3..00000000 --- a/docs/pt_BR/designers/language-variables.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Variveis - - No Smarty h vrios tipos diferentes de variveis. O tipo da varivel depende do prefixo que - ela usa (ou do smbolo pelo qual ela est contida). - - - Variveis no Smarty podem tanto serem exibidas diretamente ou usadas como argumentos - para atributos de funes e modificadores, dentro de expresses condicionais, etc. - Para que uma varivel seja exibida o nome dela deve estar dentro dos delimitadores - e no pode conter nenhum outro caracter. Veja os exemplos abaixo: - - -]]> - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - - diff --git a/docs/pt_BR/designers/language-variables/language-assigned-variables.xml b/docs/pt_BR/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 0ec98a27..00000000 --- a/docs/pt_BR/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - - - Variveis definidas do PHP - - Variveis que so definidas do PHP so referenciadas precedendo elas - com um sinal de sifro $. Variveis definidas dentro do template - com a funo assign - tambm so mostradas desta maneira. - - - - Variveis definidas - -Hello {$firstname}, glad to see you could make it. -<p> -Your last login was on {$lastLoginDate}. - -MOSTRA: - -Hello Doug, glad to see you could make it. -<p> -Your last login was on January 11th, 2001. - - - - Associative arrays - - Voc tambm pode referenciar matrizes associativas que so definidas no PHP - especificando a chave depois do smbolo '.' - (ponto). - - -Acessando variveis de matriz associativa - -index.php: - -$smarty = new Smarty; -$smarty->assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234'))); -$smarty->display('index.tpl'); - -index.tpl: - -{$Contacts.fax}<br> -{$Contacts.email}<br> -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}<br> -{$Contacts.phone.cell}<br> - -MOSTRA: - -555-222-9876<br> -zaphod@slartibartfast.com<br> -555-444-3333<br> -555-111-1234<br> - - - - ndices de Matrizes - - Voc pode referencia matrizes pelo seu ndice, muito - parecido com a sintaxe nativa do PHP. - - -Acesando matrizes por seus ndices - -index.php: - -$smarty = new Smarty; -$smarty->assign('Contacts', - array('555-222-9876', - 'zaphod@slartibartfast.com', - array('555-444-3333', - '555-111-1234'))); -$smarty->display('index.tpl'); - -index.tpl: - -{$Contacts[0]}<br> -{$Contacts[1]}<br> -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}<br> -{$Contacts[2][1]}<br> - -MOSTRA: - -555-222-9876<br> -zaphod@slartibartfast.com<br> -555-444-3333<br> -555-111-1234<br> - - - - Objetos - - Propriedades de objetos definidos do PHP podem ser referenciados - especificando-se o nome da propriedade depois do smbolo '->'. - - -Acessando propriedades de objetos - -name: {$person->name}<br> -email: {$person->email}<br> - -MOSTRA: - -name: Zaphod Beeblebrox<br> -email: zaphod@slartibartfast.com<br> - - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-variables/language-config-variables.xml b/docs/pt_BR/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 6251cd3e..00000000 --- a/docs/pt_BR/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Variveis carregadas de arquivos de configurao - - Variveis que so carregadas de arquivos de configurao so referenciadas - colocando-se elas entre cancelas (#), ou com a varivel smarty - $smarty.config. - A segunda sintaxe til para coloca-las - entre aspas em um atributo. - - - -Variveis de configurao - -foo.conf: - -pageTitle = "This is mine" -bodyBgColor = "#eeeeee" -tableBorderSize = "3" -tableBgColor = "#bbbbbb" -rowBgColor = "#cccccc" - -index.tpl: - -{config_load file="foo.conf"} -<html> -<title>{#pageTitle#}</title> -<body bgcolor="{#bodyBgColor#}"> -<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"> -<tr bgcolor="{#rowBgColor#}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> - -index.tpl: (sintaxe alternativa) - -{config_load file="foo.conf"} -<html> -<title>{$smarty.config.pageTitle}</title> -<body bgcolor="{$smarty.config.bodyBgColor}"> -<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}"> -<tr bgcolor="{$smarty.config.rowBgColor}"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> - - -SADA: (mesma para ambos exemplos) - -<html> -<title>This is mine</title> -<body bgcolor="#eeeeee"> -<table border="3" bgcolor="#bbbbbb"> -<tr bgcolor="#cccccc"> - <td>First</td> - <td>Last</td> - <td>Address</td> -</tr> -</table> -</body> -</html> - - - Variveis de um arquivo de configurao no podem ser usadas at - que sejam carregadas de um arquivo de configurao. Este procedimento - explicado posteriormente neste documento em - config_load. - - - \ No newline at end of file diff --git a/docs/pt_BR/designers/language-variables/language-variables-smarty.xml b/docs/pt_BR/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index f23254a4..00000000 --- a/docs/pt_BR/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - A varivel reservada {$smarty} - - A varivel reservada {$smarty} pode ser utilizada para acessar variveis - especiais do template. Segue uma lista completa. - - - - Variveis Request - - Variveis request como get, post, cookies, server, - environment, e session podem ser acessadas como mostrado - nos exemplos abaixo: - - - - Mostrando vriveis request - -{* mostra o valor de page da URL (GET) http://www.domain.com/index.php?page=foo *} -{$smarty.get.page} - -{* mostra a varivel "page" de um formulrio (POST) *} -{$smarty.post.page} - -{* mostra o valor do cookie "username" *} -{$smarty.cookies.username} - -{* mostra a varivel do servidor "SERVER_NAME" *} -{$smarty.server.SERVER_NAME} - -{* mostra a varivel de ambiente do sistema "PATH" *} -{$smarty.env.PATH} - -{* mostra a varivel de session do php "id" *} -{$smarty.session.id} - -{* mostra a varivel "username" da unio de get/post/cookies/server/env *} -{$smarty.request.username} - - - - - {$smarty.now} - - O timestamp atual pode ser acessado com {$smarty.now}. - O nmero reflete o nmero de segundos passados desde o assim chamado - Epoch (1 de Janeiro de 1970) e pode ser passado diretamente para o - modificador date_format para mostrar a data. - - - -Usando {$smarty.now} - -{* usa o modificador date_format para mostrar a data e hora atuais *} -{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"} - - - - {$smarty.const} - - Voc pode acessar o valor de constantes PHP diretamente. - - - -Usando {$smarty.const} - -{$smarty.const._MY_CONST_VAL} - - - - - {$smarty.capture} - - A sada capturada via {capture}..{/capture} pode ser acessada usando a varivel - {$smarty}. Veja a a seo sobre - capture para um exemplo. - - - - - {$smarty.config} - - A varivel {$smarty} pode ser usada para referir variveis de configurao carregadas. - {$smarty.config.foo} um sinonimo para {#foo#}. Veja a seo sobre - config_load para um exemplo. - - - - - {$smarty.section}, {$smarty.foreach} - - A varivel {$smarty} pode ser usada para se referir a propriedades 'section' e - 'foreach' de loop. Veja a documentao sobre - section e - foreach. - - - - - {$smarty.template} - - Esta varivel contm o nome do template - atual que esta sendo processado. - - - - - {$smarty.ldelim} - - This variable is used for printing the left-delimiter value literally. - See also {ldelim},{rdelim}. - - - - {$smarty.rdelim} - - This variable is used for printing the right-delimiter value literally. - See also {rdelim},{rdelim}. - - - - - \ No newline at end of file diff --git a/docs/pt_BR/getting-started.xml b/docs/pt_BR/getting-started.xml deleted file mode 100644 index 7e7788df..00000000 --- a/docs/pt_BR/getting-started.xml +++ /dev/null @@ -1,521 +0,0 @@ - - - - - Iniciando - - - O que o Smarty? - - O Smarty um sistema de templates para PHP. Mais especificamente, ele fornece uma maneira - fcil de controlar a separao da aplicao lgica e o contedo de sua apresentao. Isto - melhor descrito em uma situao onde o programador da aplicao e o designer do template executam - diferentes funes, ou na maioria dos casos no so a mesma pessoa. - - - - Por exemplo, digamos que voc - est criando uma pgina para web para mostrar um artigo de um jornal. O autor, a manchete, - a concluso e o corpo do artigo so elementos de contedo, eles no contm informao alguma - sobre como eles devem ser mostrados. Ele so enviados ao Smarty pela aplicao, ento o designer - do template edita o template e usa uma combinao de tags HTML e tags de templates para formatar - a apresentao destes elementos (tabelas HTML, cores de fundo, tamanhos de fontes, folhas de estilos, etc.). - Se algum dia o programador precisar alterar a maneira como o contedo do artigo tratado (uma mudana na - lgica da aplicao). Esta mudana no afeta o design do template, o contedo ser enviado ao template - exatamente da mesma forma. De modo semelhante, se o designer do template quiser redesenhar completamente - os templates, no necessria nenhuma alterao na lgica da aplicao. Sendo assim, o programador - pode fazer mudanas na lgica da aplicao sem a necessidade de reestruturar os templates, e o designer - do template pode fazer mudanas nos templates sem alterar a lgica da aplicao. - - - Um objetivo do projeto Smarty a separao da lgica do negcio e da lgica da apresentao. - Isto significa que os templates podem certamente conter a lgica sob a circunstncia que somente - para apresentao. Alguns exemplos so: a incluso de outros templates, alternao de cores nas linhas - das tabelas, colocar o texto de uma varivel em maisculo, percorrer uma matriz de dados e mostr-la, etc. - so todos exemplos de apresentao lgica. Isto no significa que o Smarty fora a separao da lgica de - negcios e da lgica de apresentao. O Smarty no tem conhecimento do que o que em sua aplicao, portanto - colocar sua a lgica de negcio no template problema seu. Caso voc deseje que no haja nenhuma lgica - em seus templates voc pode certamente fazer isso trocando o contedo para textos e variveis somente. - - - - Um dos aspectos nicos do Smarty seu sistema de compilao de templates. O Smarty l os arquivos - de templates e cria scripts PHP partir deles. Uma vez criados, eles so executados sem ser necessrio - uma outra compilao do template novamente. Com isso, os arquivos de template no so 'parseados'(analisados) - toda vez que um template solicitado, e cada template tem a total vantagem de solues de cache do - compilador PHP, tais como: Zend Accelerator (&url.zend;) ou PHP Accelerator - (&url.ion-accel;). - - - Algumas das caractersticas do Smarty: - - - - - Ele extremamente rpido. - - - - - Ele eficiente visto que o interpretador do PHP faz o trabalho mais pesado. - - - - - Sem elevadas interpretaes de template, apenas compila uma vez. - - - - - Ele est atento para s recompilar os arquivos de template que foram mudados. - - - - - Voc pode fazer funes prprias - e seus prprios modificadores de variveis, assim - a linguagem de templates extremamente extensvel. - - - - - Delimitadores de tag - configurveis, sendo assim voc pode usar {}, {{}}, <!--{}-->, etc. - - - - - Os construtores if/elseif/else/endif so passados - para o interpretador de PHP, assim a sintaxe de expresso {if ...} pode ser tanto simples quanto - complexa da forma que voc queira. - - - - - Aninhamento ilimitado de sections, - ifs, etc. permitidos. - - - - - possvel embutir o cdigo PHP diretamente em - seus arquivos de template, apesar de que isto pode no ser necessrio (no recomendado) visto que a - ferramenta to customizvel. - - - - - Suporte de caching embutido. - - - - - Fontes de template arbitrrios. - - - - - Funes de manipulao - de cache customizadas. - - - - - Arquitetura de Plugin. - - - - - - Instalao - - - Requisitos - - Smarty requer um servidor web rodando o PHP 4.0.6 superior. - - - - - Instalao Bsica - - Instale os arquivos da biblioteca do Smarty que esto no subdiretrio /libs/ da - distribuio. Estes so os arquivos PHP que voc NO PRECISA editar. Eles so comuns - a todas as aplicaes e eles s so atualizados quando voc atualiza para uma nova - verso do Smarty. - - - Arquivos da biblioteca do Smarty necessrios - -Smarty.class.php -Smarty_Compiler.class.php -Config_File.class.php -debug.tpl -/internals/*.php (all of them) -/plugins/*.php (todos eles para ser seguro, talvs a sua pagina precise de apenas alguns) - - - - - O Smarty utiliza uma constante do PHP chamada - SMARTY_DIR que o - caminho completo para o diretrio 'libs/' do Smarty. - Basicamente, se sua aplicao puder encontrar o arquivo - Smarty.class.php, voc no precisa - definir SMARTY_DIR, - o Smarty ir encontrar por si s. Entretanto, se - Smarty.class.php no estiver em seu include_path, ou voc - no indicar um caminho absoluto para ele em sua aplicao, ento voc - dever definir SMARTY_DIR manualmente. SMARTY_DIR deve incluir uma - barra ao final. - - - Aqui est um exemplo de como voc cria uma instncia do Smarty em seus scripts PHP: - - - - Cria uma instncia do Smarty - -NOTE: Smarty has a capital 'S' -require_once('Smarty.class.php'); -$smarty = new Smarty(); - - - - - Tente rodar o script acima. Se voc obtiver um erro dizendo que o arquivo - Smarty.class.php no pde ser encontrado, voc tem que fazer uma - das coisas a seguir: - - - - Definir a constante SMARTY_DIR manualmente - -// *nix style (note capital 'S') -define('SMARTY_DIR', '/usr/local/lib/php/Smarty-v.e.r/libs/'); - -// windows style -define('SMARTY_DIR', 'c:/webroot/libs/Smarty-v.e.r/libs/'); - -// hack version example that works on both *nix and windows -// Smarty is assumend to be in 'includes/' dir under current script -define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty-v.e.r/libs/'); - -require_once(SMARTY_DIR . 'Smarty.class.php'); -$smarty = new Smarty(); - - - - - Adicionar o diretrio da biblioteca para o include_path do PHP - -// Edite o seu arquivo php.ini, adicione o diretrio da biblioteca do Smarty -// para o include_path e reinicie o servidor web. -// Ento o cdigo a seguir funcionaria: -require('Smarty.class.php'); -$smarty = new Smarty; - - - - - Defina a constante SMARTY_DIR manualmente - -define('SMARTY_DIR','/usr/local/lib/php/Smarty/'); -require(SMARTY_DIR.'Smarty.class.php'); -$smarty = new Smarty; - - - - - Agora que os arquivos da biblioteca esto no lugar, hora de configurar os diretrios - do Smarty para a sua aplicao. - - - O Smarty necessita de quatro diretrios, que so chamados - por padro 'templates/', - 'templates_c/', 'configs/' e 'cache/'. - - - Cada um deles pode ser definido - pelas propriedades da classe Smarty - - $template_dir, - - $compile_dir, - - $config_dir, e - - $cache_dir repectivamente. - altamente recomendado que - voc configure um conjunto diferente destes diretrios para cada aplicao - que for usar o Smarty. - - - Certifique-se que voc sabe a localizao do 'document root' do seu servidor web. Em nosso exemplo, - o 'document root' "/web/www.mydomain.com/docs/". Os diretrios do Smarty - s so acessados pela biblioteca do Smarty e nunca acessados diretamente pelo navegador. Ento para - evitar qualquer preocupao com segurana, recomendado colocar estes diretrios - fora do document root. - - - Para o nosso exemplo de instalao, ns estaremos configurando o ambiente do Smarty - para uma aplicao de livro de visitas. Ns escolhemos uma aplicao s para o propsito - de uma conveno de nomeao de diretrio. Voc pode usar o mesmo ambiente para qualquer - aplicao, apenas substitua "guestbook" com o nome de sua aplicao. Ns colocaremos nossos - diretrios do Smarty dentro de - "/web/www.mydomain.com/smarty/guestbook/". - - - Voc precisar pelo menos de um arquivo dentro de seu 'document root', e que seja acessado pelo - navegador. Ns chamamos nosso - script de "index.php", e o colocamos em um subdiretrio dentro - do 'document root' chamado "/guestbook/". - - - - Nota Tcnica - - conveniente configurar o servidor web para que 'index.php' possa ser - idendificado como o ndice padro do diretrio, asssim se voc acessar - http://www.example.com/guestbook/, o script 'index.php' ser executado - sem adicionar 'index.php' na URL. No Apache voc pode configurar isto adicioanando - "index.php" ao final da sua configurao DirectoryIndex - (separe cada item com um espao.) como no exemplo de httpd.conf - - - DirectoryIndex - index.htm index.html index.php index.php3 default.html index.cgi - - - - - - Vamos dar uma olhada na estrutura de arquivos at agora: - - - - Exemplo de estrutura de arquivo - - - - - - - O Smarty ir precisar de acesso de escrita - (usurios de windows por favor ignorem) em - - $compile_dir e - - $cache_dir, - ento tenha certesa que o usurio do servidor web possa escrever. - Este geralmente o usurio "nobody" e o grupo "nobody" (ningum). Para - SO com X usurios, o usurio padro "www" e o grupo "www". Se voc est usando Apache, voc - pode olhar em seu arquivo httpd.conf (normalmente em "/usr/local/apache/conf/") para ver - qual o usurio e grupo esto sendo usados. - - - - Configurando permisses de arquivos - - - - - - - Nota Tcnica - - chmod 770 ser a segurana correta suficientemente restrita, s permite ao usurio "nobody" e - o grupo "nobody" acesso de leitura/escrita aos diretrios. Se voc gostaria de abrir o acesso de leitura - para qualquer um (na maioria das vezes para sua prpria convenincia de querer ver estes - arquivos), voc pode usar o 775 ao invs do 770. - - - - - Ns precisamos criar o arquivo "index.tpl" que o Smarty vai ler. Ele estar localizado em seu - $template_dir. - - - - Editando /web/www.example.com/smarty/guestbook/templates/index.tpl - - -{* Smarty *} - -Ola! {$name}, bem vindo ao Smarty! - - - - - - Nota Tcnica - - {* Smarty *} um comentrio - de template. Ele no exigido, mas uma prtica boa - iniciar todos os seus arquivos de template com este com este comentrio. Isto faz com - que o arquivo seja reconhecido sem levar em considerao a sua extenso. Por exemplo, - editores de texto poderiam reconhecer o arquivo e habilitar colorao de sintaxe especial. - - - - - Agora vamos editar 'index.php'. Ns vamos criar uma instancia do Smarty, - assign(definir) uma - varivel do template e display - (mostrar) o arquivo 'index.tpl'. - - - - Editando /web/www.example.com/docs/guestbook/index.php - -template_dir = '/web/www.example.com/smarty/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - -$smarty->assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Nota Tcnica - - No nosso exemplo, ns estamos definindo caminhos absolutor para todos os diretrios - do Smarty. Se /web/www.example.com/smarty/guestbook/ - estiver dentro do seu include_path do PHP, ento estas definies no so necessrias. - Entretando, mais eficinte e (com experincia) causa - menos erros definir como caminhos absolutos. Isto faz ter certeza que o Smarty - esta lendo os arquivos dos diretrios que voc quer. - - - - - Agora carregue o arquivo index.php em seu navegador. - Voc veria "Ol, Thomas! bem vindo ao Smarty" - - - Voc completou a configurao bsica para o Smarty! - - - - Estendendo a configurao - - - Esta uma continuao da instalao bsica, - por favor leia a instalao bsica primeiro! - - - Uma forma um pouco mais flexvel de configurar o Smarty estender a classe e inicializar seu ambiente de - Smarty. Ento, ao invs de configurar caminhos de diretrios repetidamente, preencher as mesmas variveis, - etc., ns podemos fazer isso para facilitar. Vamos criar um novo diretrio "/php/includes/guestbook/" e criar um - novo arquivo chamado "setup.php". Em nosso ambiente de exemplo, "/php/includes" est em nosso - include_path. Certifique-se de que voc - tambm definiu isto, ou use caminhos de arquivos absolutos. - - - - Editando /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/smarty/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/smarty/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/smarty/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/smarty/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - Agora vamos alterar o arquivo index.php para usar o setup.php: - - - - Editando /web/www.example.com/docs/guestbook/index.php - - -require('guestbook/setup.php'); - -$smarty = new Smarty_GuestBook; - -$smarty->assign('nome','Thomas'); - -$smarty->display('index.tpl'); - - - - - Agora voc pode ver que extremamente simples criar uma instncia do Smarty, apenas use - Smarty_GuestBook que automaticamente inicializa tudo para a nossa aplicao. - - - - - - diff --git a/docs/pt_BR/language-defs.ent b/docs/pt_BR/language-defs.ent deleted file mode 100644 index 45563de2..00000000 --- a/docs/pt_BR/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/docs/pt_BR/language-snippets.ent b/docs/pt_BR/language-snippets.ent deleted file mode 100644 index 5b0d5713..00000000 --- a/docs/pt_BR/language-snippets.ent +++ /dev/null @@ -1,28 +0,0 @@ - - - - Nota tecnica - - O parmetro merge respeita as chaves de matrizes, assim se - voc combinar duas matrizes com ndices nmericos, elas devem se sobrescrever - ou resultar em chaves no sequenciais. Isto diferente da funo - array_merge() - do PHP o qual elimina os ndices nmeros e colocas os nmeros novamente. - -'> - - - Como o terceiro parmetro opcional, voc pode passar - $compile_id. - Isto no caso de voc querer compilar diferentes verses do mesmo - template, como ter templates separados compilados para - lnguas diferentes. Outro uso para - $compile_id quando voc for usar mais de um - $template_dir - mas apenas um $compile_dir. - Defina um $compile_id separado para cada - $template_dir, se no - templates com o mesmo nome iro se sobrescrever. Voc pode - tambm definir a varivel $compile_id - ao invs de passar isto a cada chamada desta funo. -'> \ No newline at end of file diff --git a/docs/pt_BR/livedocs.ent b/docs/pt_BR/livedocs.ent deleted file mode 100755 index 2541793f..00000000 --- a/docs/pt_BR/livedocs.ent +++ /dev/null @@ -1,7 +0,0 @@ - - - -'> -'> - - diff --git a/docs/pt_BR/make_chm_index.html b/docs/pt_BR/make_chm_index.html deleted file mode 100755 index 4eb37002..00000000 --- a/docs/pt_BR/make_chm_index.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Manual do Smarty - - - - - - - -

    - -

    -
    -

    Manual do Smarty

    -
    Monte Ohrt
    -
    Andrei Zmievski
    -
    Fernando Correa da Conceio
    -
    Marcelo Perreira Fonseca da Silva
    -
    Taniel Franklin
    -
    Thomas Gonzalez Miranda
    -
    -

    Este arquivo foi gerado em: [GENTIME]
    -Clique em http://smarty.php.net/download-docs.php -para obter a verso atual.

    - -
    - -
    - diff --git a/docs/pt_BR/preface.xml b/docs/pt_BR/preface.xml deleted file mode 100644 index 14675d20..00000000 --- a/docs/pt_BR/preface.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - Prefcio - - Esta sem dvida uma das perguntas mais freqentes nas listas de discusses sobre PHP: - como eu fao meus scripts em PHP independentes do layout? O PHP vendido como sendo uma - "linguagem de script embutida no HTML", aps escrever alguns projetos que misturam HTML e - PHP naturalmente vem uma idia de que a separao da forma e contedo uma boa prtica [TM]. - Alm disso, em muitas empresas os papis de designer e programador so separados. - Conseqentemente, a busca por um sistema de templates continua. - - - Na nossa empresa por exemplo, o desenvolvimento de uma aplicao feito da seguinte - maneira: Aps a documentao necessria estar pronta, o designer faz o esboo da interface - e entrega ao programador. O programador implementa as regras de negcio no PHP e usa o - esboo da interface para criar o esqueleto dos templates. O projeto ento est nas mos - da pessoa responsvel pelo layout HTML da pgina que ento transforma o esboo em um layout - realmente funcional. O projeto talvez v e volte entre programao/designer HTML vrias vezes. - Porm, importante ter um bom suporte templates porque os programadores no querem ter que - ficar mexendo com HTML e no querem que os designers estraguem seus cdigos PHP. Os designers - precisam de ajuda para alterar os arquivos de configurao, blocos dinmicos e outros - problemas relacionados interface usada, mas eles no querem ocupar-se com as complexidades - da linguagem de programao PHP. - - - Analisando muitas das solues de templates disponveis para PHP hoje em dia, a - maioria somente disponibilizada uma forma rudimentar de substituio de variveis - dentro dos templates e trabalham de forma limitada com as funcionalidades dos blocos - dinmicos. Mas nossas necessidades necessitam de um pouco mais do que isso. Ns no - queramos que programadores mexendo com layout em HTML, mas isso praticamente inevitvel. - Por exemplo, se um designer quiser que as cores de fundo se alternam em blocos dinmicos, - isso tem que ser feito pelo programador antecipadamente. Ns tambm precisamos que os designers - possam usar seus prprios arquivos de configurao, e usar as variveis definidas nestes arquivos - em seus templates. E a lista de necessidades continua... - - - Ns comeamos escrever as especificaes para um sistema de templates por volta de 1999. - Aps o trmino das especificaes, ns comeamos a escrever um sistema de template em C - que espervamos ser aceito para rodar com o PHP. No s esbarramos em muitas barreiras - tcnicas, como tambm houve um enorme debate sobre o que exatamente um sistema de template - deveria ou no fazer. partir desta experincia, ns decidimos que o sistema de template - fosse escrito para ser uma classe do PHP, para que qualquer um usa-se da forma que lhe fosse - mais conveniente, ento ns escrevemos um sistema que fazia exatamente, foi a que surgiu o - SmartTemplate (obs: esta classe nunca foi enviada ao pblico). - Foi uma classe que fez quase tudo que ns queramos: substituio de variveis, suporte - incluso de outros templates, integrao com arquivos de configurao, cdigo PHP embutido, - funcionalidades 'if' limitada e blocos dinmicos muito mais robustos que poderiam ser aninhados - muitas vezes. Foi tudo feito usando expresses reguladores e cdigos confusos, como diramos, - impenetrvel. Era um sistema tambm extremamente lento em grandes aplicativos por causa de todo - o trabalho que era feito pelas expresses regulares e o 'parsing'(interpretao) em cada chamada - ao aplicativo. O maior problema do ponto de vista de um programador foi o espantoso trabalho que - era necessrio para configurar e processar os blocos dinmicos dos templates. Como faramos - esse sistema ser simples de usar? - - - Foi ento que veio a viso do que hoje conhecido como Smarty. Ns sabemos o quo - rpido um cdigo PHP sem o sobrecarregamento de um sistema de templates. Ns tambm - sabemos quo meticuloso e assustador a linguagem PHP aos olhos de um designer atual, - e isso tudo poderia ser mascarado usando uma sintaxe simples nos templates. Ento o que - acontece se ns combinarmos essas duas foras? Assim, nasceu o Smarty... - - diff --git a/docs/pt_BR/programmers/advanced-features.xml b/docs/pt_BR/programmers/advanced-features.xml deleted file mode 100644 index 2974da53..00000000 --- a/docs/pt_BR/programmers/advanced-features.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Advanced Features -&programmers.advanced-features.advanced-features-objects; -&programmers.advanced-features.advanced-features-prefilters; - -&programmers.advanced-features.advanced-features-postfilters; - -&programmers.advanced-features.advanced-features-outputfilters; - -&programmers.advanced-features.section-template-cache-handler-func; - -&programmers.advanced-features.template-resources; - - diff --git a/docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml b/docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index 9ff60eb8..00000000 --- a/docs/pt_BR/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - Objetos - - O Smarty permite acesso a objetos do PHP atravs de seus templates. H duas formas de acess-los. - Uma forma registrar objetos para o template, ento os acessa via sintaxe similar a funes - customizveis. A outra forma atribuir objetos para os templates e acess-los como se fossem - uma varivel atribuda. O primeiro mtodo tem uma sintaxe de template muito mais legal. E tambm - mais segura, medida que um objeto registrado pode ser restrito a certos mtodos e - propriedades. Entretanto, um objeto registrado no pode ser - posto em loop ou ser atribuido em arrays de - objetos, etc. O mtodo que voc escolher ser determinado pelas suas necessidades, mas use o - primeiro mtodo se possvel para - manter um mnimo de sintaxe no template. - - - Se a segurana est habilitada, nenhum dos mtodos privados ou funes podem acessados - (comeando com "_"). Se um mtodo e propriedade de um mesmo nome existir, o mtodo ser - usado. - - - Voc pode restringir os mtodos e propriedades que podem ser acessados listando os em um array - como o terceiro parmetro de registrao. - - - Por definio, parmetros passados para objetos atravs dos templates so passados da mesma - forma que funes customizveis os obtm. Um array associativo passado como o primeiro parmetro, - e o objeto smarty como o segundo. Se voc quer que os parmetros passados um de cada vez - por cada argumento como passagem de parmetro de objeto tradicional, defina o quarto parmetro - de registrao para falso. - - - O quinto parmetro opcional s tem efeito com format - sendo true e contm - uma lista de mtods de ob que seriam tratados como - blocos. Isso significa que estes mtodos - tem uma tag de fechamento no template - ({foobar->meth2}...{/foobar->meth2}) e - os parmetros para os mtodos tem a mesma sinopse como os parmetros para - block-function-plugins: Eles pegam 4 parmetros - $params, - $content, - &$smarty e - &$repeat e eles tambm comportam-se como - block-function-plugins. - - - usando um objeto registrado ou atribudo - -<?php -// O objeto - -class My_Object { - function meth1($params, &$smarty_obj) { - return "this is my meth1"; - } -} - -$myobj = new My_Object; -// registrando o objeto (ser por referncia) -$smarty->register_object("foobar",$myobj); -// Se voc quer restringie acesso a certos mtodos ou propriedades, liste-os -$smarty->register_object("foobar",$myobj,array('meth1','meth2','prop1')); -// Se voc quer usar o formato de parmetro de objeto tradicional, passe um booleano de false -$smarty->register_object("foobar",$myobj,null,false); - -// Voc pode tambm atribuir objetos. Atribua por referncia quando possvel. -$smarty->assign_by_ref("myobj", $myobj); - -$smarty->display("index.tpl"); -?> - -TEMPLATE: - -{* accessa nosso objeto registrado *} -{foobar->meth1 p1="foo" p2=$bar} - -{* voc pode tambm atribuir a sada *} -{foobar->meth1 p1="foo" p2=$bar assign="output"} -the output was {$output} - -{* acessa nosso objeto atribudo *} -{$myobj->meth1("foo",$bar)} - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 06efa1d1..00000000 --- a/docs/pt_BR/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Output Filters (Filtros de Sada) - - Quando o template invocado via display() ou fetch(), sua sada pode ser enviada - atravs de um ou mais filtros de sada. Estes diferem dos postfilters porque postfilters - operam em templates compilados antes de serem salvos para o disco, e os filtros de sada - operam na sada do template quando - ele executado. - - - - Filtros de Sada podem ser ou - registrado ou carregado - do diretrio de plugins usando a funo - load_filter() ou configurando a varivel - $autoload_filters. - O Smarty passar a sada como o primeiro argumento, - e espera a funo retornar o resultado - do processamento. - - - usando um filtro de sada de template - -<?php -// ponha isto em sua aplicao -function protect_email($tpl_output, &$smarty) -{ - $tpl_output = - preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $tpl_output); - return $tpl_output; -} - -// registra o outputfilter -$smarty->register_outputfilter("protect_email"); -$smarty->display("index.tpl"); - -// agora qualquer ocorrncia de um endereo de email na sada do template ter uma -// simples proteo contra spambots -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml b/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index 75a811b8..00000000 --- a/docs/pt_BR/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Postfilters - - Os postfilters de template so funes de PHP nas quais seus templates so rodados - imediatamente depois de serem compilados. Os postfilters podem ser ou - registradocarrgados do diretrio de - plugins usando a funo - load_filter() ou pela - varivel de configurao - $autoload_filters. - O Smarty passar o cdigo fonte do template compilado - como o primeiro argumento, e espera - a funo retornar o resultado do processamento. - - - usando um postfilter de template - -<?php -// ponha isto em sua aplicao -function add_header_comment($tpl_source, &$smarty) -{ - return "<?php echo \"<!-- Created by Smarty! -->\n\" ?>\n".$tpl_source; -} - -// registra o postfilter -$smarty->register_postfilter("add_header_comment"); -$smarty->display("index.tpl"); -?> - -{* compiled Smarty template index.tpl *} -<!-- Created by Smarty! --> -{* rest of template content... *} - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml b/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 2ff89c3c..00000000 --- a/docs/pt_BR/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Prefilters - - Os prefilters de Template so funes de PHP nas quais seus templates so rodados - antes de serem compilados. Isto bom para preprocessamento de seus templates para remover - comentrios indesejados, mantendo o olho no que as pessoas esto colocando nos seus templates, - etc. Prefilters podem ser ou registrado - ou carregado do diretrio de plugins usando a funo - load_filter() - ou pela configurao da varivel - $autoload_filters. - O Smarty passar o cdigo fonte do template como o - primeiro argumeto, e espera a funo retornar - o cdigo fonte do template resultante. - - - Usando um prefilter de template - -<?php -// Ponha isto em sua aplicao -function remove_dw_comments($tpl_source, &$smarty) -{ - return preg_replace("/<!--#.*-->/U","",$tpl_source); -} - -// registrar o prefilter -$smarty->register_prefilter("remove_dw_comments"); -$smarty->display("index.tpl"); -?> - -{* Smarty template index.tpl *} -<!--# esta linha ser removida pelo prefilter --> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index ae5ad701..00000000 --- a/docs/pt_BR/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - Funo Manipuladora de Cache - - Como uma alternativa ao uso do mecanismo de caching padro baseado em arquivo, voc pode - especificar uma funo de manipulao de cache customizada que ser usada para ler, escrever - e limpar arquivos de cache. - - - Crie uma funo em sua aplicao que o Smarty usar como um manipulador de cache. Defina o - nome dela na varivel de classe - $cache_handler_func. - O Smarty agora usar esta para manipular dados no cache. O primeiro argumento a ao, - que um desses 'read', 'write' e 'clear'. O segundo parmetro o objeto do Smarty. O - terceiro parmetro o contedo que est no cache. - No write, o Smarty passa o contedo em - cache nestes parmetros. No 'read', o Smarty espera sua funo aceitar este parmetro por - referncia e preenche ele com os dados em cache. No 'clear', passa uma varivel simulacra aqui - visto que ela no usada. O quarto parmetro - o nome do arquivo de template (necessrio para - ler/escrever), o quinto parmetro a cache_id (opcional), - e o sexto a compile_id (opcional). - - - Note que: O ltimo parmetro ($exp_time)foi adicionado no Smarty-2.6.0. - - - exemplo usando MySQL como uma fonte de cache - -<?php -/* - -exemplo de uso: - -include('Smarty.class.php'); -include('mysql_cache_handler.php'); - -$smarty = new Smarty; -$smarty->cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -mysql database is expected in this format: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // set db host, user and pass here - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - $use_gzip = false; - - // cria um cache id unico - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg("cache_handler: could not connect to database"); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // save cache to database - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists("gzuncompress")) { - $cache_contents = gzuncompress($row["CacheContents"]); - } else { - $cache_contents = $row["CacheContents"]; - } - $return = $results; - break; - case 'write': - // save cache to database - - if($use_gzip && function_exists("gzcompress")) { - // compress the contents for storage efficiency - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - case 'clear': - // clear cache info - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query("delete from CACHE_PAGES"); - } else { - $results = mysql_query("delete from CACHE_PAGES where CacheID='$CacheID'"); - } - if(!$results) { - $smarty_obj->_trigger_error_msg("cache_handler: query failed."); - } - $return = $results; - break; - default: - // error, unknown action - $smarty_obj->_trigger_error_msg("cache_handler: unknown action \"$action\""); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/advanced-features/template-resources.xml b/docs/pt_BR/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 4fbae390..00000000 --- a/docs/pt_BR/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,214 +0,0 @@ - - - - - Recursos (Resources) - - Os templates podem vir de uma variedade de fontes. Quando voc exibe (display) ou - busca (fetch) um template, ou inclui um template de dentro de outro template, voc - fornece um tipo de recurso, seguido pelo - caminho e nome do template apropriado. Se um - recurso no dado explicitamente o valor de - $default_resource_type assumido. - - - Templates partindo do $template_dir - - Templates a partir do $template_dir no exigem um recurso de template, - apesar de voc usar o arquivo: resource for consistancy. - Apenas fornea o caminho para o template que voc quer usar em relao ao diretrio - root $template_dir. - - - Usando templates partindo do $template_dir - -// from PHP script -$smarty->display("index.tpl"); -$smarty->display("admin/menu.tpl"); -$smarty->display("file:admin/menu.tpl"); // Igual ao de cima - -{* de dentro do template do Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* igual ao de cima *} - - - - Templates partindo de qualquer diretrio - - Os Templates de fora do $template_dir exigem o arquivo: - tipo de recurso do template, - seguido pelo caminho absoluto e nome do template. - - - usando templates partindo de qualquer diretrio - -// de dentro do script PHP -$smarty->display("file:/export/templates/index.tpl"); -$smarty->display("file:/path/to/my/templates/menu.tpl"); - -{* de dentro do template do Smarty *} -{include file="file:/usr/local/share/templates/navigation.tpl"} - - - - Caminhos de arquivos do Windows - - Se voc est usando uma mquina windows, caminhos de arquivos normalmente incluem uma letra - do drive (C:) no comeo do nome do caminho. - Esteja certo de usar "file:" no caminho para - evitar conflitos de nome e obter os resultados desejados. - - - usando templates com caminhos de arquivo do windows - -// de dentro do script PHP -$smarty->display("file:C:/export/templates/index.tpl"); -$smarty->display("file:F:/path/to/my/templates/menu.tpl"); - -{* de dentro do template do Smarty *} -{include file="file:D:/usr/local/share/templates/navigation.tpl"} - - - - - - Templates partindo de outras fontes - - Voc pode resgatar templates usando qualquer fonte possvel de voc acessar com PHP: banco - de dados, sockets, LDAP, e assim por diante. - Voc faz isto escrevendo as funes de plugin - de recurso e registrando elas com o Smarty. - - - - Veja a seo plugins de recurso - para mais informao sobre as funes - que voc deve fornecer. - - - - - Note que voc pode ativar manualmente o recurso de arquivo embutido, mas no pode fornecer um recurso que busca templates a partir do sistema de arquivos de alguma outra forma registrando sob um outro nome de recurso. - file resource, but you can provide a resource - that fetches templates from the file system in some other way by - registering under another resource name. - - - - usando recursos customizveis - -// no script PHP - -// ponha estas funes em algum lugar de sua aplicao -function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) -{ - // faa o banco de dados chamar aqui para buscar o seu template, - // preenchendo o $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // faa o banco de dados chamar daqui para preencher a $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // assume-se que todos os templates so seguros - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // no usado para templates -} - -// registrar o nome de recurso "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// usando o recurso a partir do script PHP -$smarty->display("db:index.tpl"); - -{* usando o recurso de dentro do template do Smarty *} -{include file="db:/extras/navigation.tpl"} - - - - - Funo Manipuladora de Template Padro - - Voc pode especificar a funo que usada para devolver o contedo do template no evento - em que o template no pode ser devolvido de seu recurso. Um uso disto para criar templates - que no existem "on-the-fly" - (templates cujo contedo flutua muito, bastante varivel). - - - usando a funo manipuladora de template padro - -<?php -// ponha esta funo em algum lugar de sua aplicao - -function make_template ($resource_type, $resource_name, &$template_source, &$template_timestamp, &$smarty_obj) -{ - if( $resource_type == 'file' ) { - if ( ! is_readable ( $resource_name )) { - // cria um arquivo de template, retorna o contedo. - $template_source = "This is a new template."; - $template_timestamp = time(); - $smarty_obj->_write_file($resource_name,$template_source); - return true; - } - } else { - // no arquivo - return false; - } -} - -// defina a manipuladora padro -$smarty->default_template_handler_func = 'make_template'; -?> - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions.xml b/docs/pt_BR/programmers/api-functions.xml deleted file mode 100644 index b91d4ffe..00000000 --- a/docs/pt_BR/programmers/api-functions.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Mtodos -&programmers.api-functions.api-append; -&programmers.api-functions.api-append-by-ref; -&programmers.api-functions.api-assign; -&programmers.api-functions.api-assign-by-ref; -&programmers.api-functions.api-clear-all-assign; -&programmers.api-functions.api-clear-all-cache; -&programmers.api-functions.api-clear-assign; -&programmers.api-functions.api-clear-cache; -&programmers.api-functions.api-clear-compiled-tpl; -&programmers.api-functions.api-clear-config; -&programmers.api-functions.api-config-load; -&programmers.api-functions.api-display; -&programmers.api-functions.api-fetch; -&programmers.api-functions.api-get-config-vars; -&programmers.api-functions.api-get-registered-object; -&programmers.api-functions.api-get-template-vars; -&programmers.api-functions.api-is-cached; -&programmers.api-functions.api-load-filter; -&programmers.api-functions.api-register-block; -&programmers.api-functions.api-register-compiler-function; -&programmers.api-functions.api-register-function; -&programmers.api-functions.api-register-modifier; -&programmers.api-functions.api-register-object; -&programmers.api-functions.api-register-outputfilter; -&programmers.api-functions.api-register-postfilter; -&programmers.api-functions.api-register-prefilter; -&programmers.api-functions.api-register-resource; -&programmers.api-functions.api-trigger-error; - -&programmers.api-functions.api-template-exists; -&programmers.api-functions.api-unregister-block; -&programmers.api-functions.api-unregister-compiler-function; -&programmers.api-functions.api-unregister-function; -&programmers.api-functions.api-unregister-modifier; -&programmers.api-functions.api-unregister-object; -&programmers.api-functions.api-unregister-outputfilter; -&programmers.api-functions.api-unregister-postfilter; -&programmers.api-functions.api-unregister-prefilter; -&programmers.api-functions.api-unregister-resource; - - - diff --git a/docs/pt_BR/programmers/api-functions/api-append-by-ref.xml b/docs/pt_BR/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index f186a75f..00000000 --- a/docs/pt_BR/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - append_by_ref - - - void append_by_ref - string varname - mixed var - - - void append_by_ref - string varname - mixed var - boolean merge - - - - Isso usado para adicionar vlaores para o template por referncia. - Se voc adicionar uma varivel por referncia e ento alterar este valor - o valor adicionado enxergar a alterao tambm. Para objetos, - append_by_ref() tambm evita uma cpia em memria do objeto adicionado. - Veja o manual do PHP em referenciando variveis para uma melhor explanao sobre o assunto. - Se voc passar o terceiro parmetro opcional para true, - o valor ir ser mesclado com o array atual ao invs de adicion-lo. - - - Notas Tcnicas - - O parmetro de unio respeita a chave do array, ento se voc mesclar - dois ndices nmericos de arrays, eles devem sobrescrever-se um ao outro ou - em resultados no sequncias de chave. Isso diferente da funo de PHP array_merge() - que apaga as chaves numricas e as renumera. - - - - append_by_ref - -// appending name/value pairs -$smarty->append_by_ref("Name",$myname); -$smarty->append_by_ref("Address",$address); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-append.xml b/docs/pt_BR/programmers/api-functions/api-append.xml deleted file mode 100644 index cf702c1f..00000000 --- a/docs/pt_BR/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - append - - - void append - mixed var - - - void append - string varname - mixed var - - - void append - string varname - mixed var - boolean merge - - - - Isso usado para adicionar um elemento para um array fixado. Se voc adicionar - uma string como valor, isso ir converter-se para um valor de array e ento adicion-lo. - Voc pode explicitamente passar pares nomes/valores, ou arrays associativos - contendo o par nome/valor. Se voc passar o terceiro parmetro opcional para true, - o valor unir-se ao array atual - ao invs de ser adicionado. - - - Notas Tcnicas - - O parmetro de unio respeita a chave do array, ento se voc - mesclar dois ndices nmericos de um array, eles devem sobrescrever-se - um ao outro ou em resultados no sequncias de chave. Isso diferente da funo de PHP array_merge() - que apaga as chaves e as renumera. - - - - append - -// passing name/value pairs -$smarty->append("Name","Fred"); -$smarty->append("Address",$address); - -// passing an associative array -$smarty->append(array("city" => "Lincoln","state" => "Nebraska")); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml b/docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index e779e4f7..00000000 --- a/docs/pt_BR/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - assign_by_ref - - - void assign_by_ref - string varname - mixed var - - - - Isso usado para fixar valores para o template por referncia ao invs de fazer uma cpia. - Veja o manual do PHP na parte sobre referncia de variveis para uma explanao mais detalhada. - - - Notas Tcnicas - - Isso usado para fixar valores para o template por referncia. - Se voc fixar uma varivel por referncia e ento alterar o valor dela, - o valor fixado enxergar o valor alterado tambm. - Para objetos, assign_by_ref() tambm restringe uma cpia de objetos fixados - em memria. - Veja o manual do php em refereciando variveis para uma melhor explanao. - - - - assign_by_ref - -// passing name/value pairs -$smarty->assign_by_ref("Name",$myname); -$smarty->assign_by_ref("Address",$address); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-assign.xml b/docs/pt_BR/programmers/api-functions/api-assign.xml deleted file mode 100644 index 8bcb9f3f..00000000 --- a/docs/pt_BR/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - assign - - - void assign - mixed var - - - void assign - string varname - mixed var - - - - Isso usado para fixar valores para o template. Voc pode - explicitamente passar pares de nomes/valores, ou um array associativo - contendo o par de nome/valor. - - - assign - -// passing name/value pairs -$smarty->assign("Name","Fred"); -$smarty->assign("Address",$address); - -// passing an associative array -$smarty->assign(array("city" => "Lincoln","state" => "Nebraska")); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml b/docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index 80d39d5d..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - clear_all_assign - - - void clear_all_assign - - - - - Isso limpa o valor de todas as variveis fixadas. - - -clear_all_assign - -// clear all assigned variables -$smarty->clear_all_assign(); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml b/docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index b396ab92..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - clear_all_cache - - - void clear_all_cache - int expire time - - - - Isso limpa completamente o cache de template. Como um parmetro - opcional, voc pode fornecer um ano mnimo em segundos - que o arquivo de cache deve ter antes deles serem apagados. - - -clear_all_cache - -// clear the entire cache -$smarty->clear_all_cache(); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-assign.xml b/docs/pt_BR/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index d3b9bd78..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - clear_assign - - - void clear_assign - string var - - - - Isso limpa o valor de uma varivel fixada. Isso - pode ser um valor simples, ou um array de valores. - - -clear_assign - -// clear a single variable -$smarty->clear_assign("Name"); - -// clear multiple variables -$smarty->clear_assign(array("Name","Address","Zip")); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-cache.xml b/docs/pt_BR/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 30d1d09e..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - clear_cache - - voidclear_cache - stringtemplate - stringcache id - stringcompile id - intexpire time - - - Isso limpa o cache de um template especfico. Se voc tem - mltiplos caches para este arquivo, voc limpa o cache - especfico fornecendo o cache id como o segundo parmetro. - Voc pode tambm passar um compile id como um terceiro parmetro. - Voc pode "agrupar" templates juntos e ento eles podem ser removidos - como um grupo. Veja o caching section para maiores informaes. Como um quarto - parmetro opcional, voc pode fornecer um ano mnimo em segundos - que o arquivo de cache deve - ter antes dele ser apagado. - - -clear_cache - -// clear the cache for a template -$smarty->clear_cache("index.tpl"); - -// clear the cache for a particular cache id in an multiple-cache template -$smarty->clear_cache("index.tpl","CACHEID"); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index b9eb6428..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - clear_compiled_tpl - - - void clear_compiled_tpl - string tpl_file - - - - Isso limpa a verso compilada do recurso de template especificado, - ou todos os arquivos de templates compilados se nenhum for especificado. - Essa funo para uso avanado somente, no normalmente necessria. - - -clear_compiled_tpl - -// clear a specific template resource -$smarty->clear_compiled_tpl("index.tpl"); - -// clear entire compile directory -$smarty->clear_compiled_tpl(); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-clear-config.xml b/docs/pt_BR/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index c9fb0ea4..00000000 --- a/docs/pt_BR/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - clear_config - - voidclear_config - stringvar - - - - Isso limpa todas as variveis de configurao fixadas. Se um nome de varivel - fornecido, somente esta varivel apagada. - - -clear_config - -// clear all assigned config variables. -$smarty->clear_config(); - -// clear one variable -$smarty->clear_config('foobar'); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-config-load.xml b/docs/pt_BR/programmers/api-functions/api-config-load.xml deleted file mode 100644 index dd56c174..00000000 --- a/docs/pt_BR/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - config_load - - voidconfig_load - stringfile - stringsection - - - Isso carrega o arquivo de configurao de dados e fixa-o para o - template. Isso funciona idntico a funo - config_load. - - - Notas Tcnicas - - partir da Smarty 2.4.0, variveis de template fixadas so - mantidas atravs de fetch() e display(). Variveis de configurao carregadas - de config_load() so sempre de escopo global. Arquivos de configurao - tambm so compilados para execuo rpida, e repeita o force_compile e compile_check parmetros de configurao. - - - -config_load - -// load config variables and assign them -$smarty->config_load('my.conf'); - -// load a section -$smarty->config_load('my.conf','foobar'); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-display.xml b/docs/pt_BR/programmers/api-functions/api-display.xml deleted file mode 100644 index a2d843ce..00000000 --- a/docs/pt_BR/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - display - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - Isso mostra o template. Fornecendo um vlido template resource - tipo e path. Como um segundo parmetro opcional, voc pode passar - um cache id. Veja o caching - section para maiores informaes. - - - Como um terceiro parmetro opcional, voc pode passar um compile id. - Isso est no evento que voc quer compilar diferentes verses do - mesmo template, como ter templates compilados separadamente para diferentes linguagens. - Outro uso para compile_id quando voc usa mais do que um $template_dir - mas somente um $compile_dir. Seta um compile_id em separado para cada $template_dir, - de outra maneira templates com mesmo nome iro sobrescrever-se um ao outro. - Voc pode tambm setar a varivel $compile_id ao invs de - passar isso para cada chamada - de display(). - - -display - -include("Smarty.class.php"); -$smarty = new Smarty; -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached("index.tpl")) -{ - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// display the output -$smarty->display("index.tpl"); - - - Use a sintaxe para template resources para - mostrar arquivos fora do $template_dir directory. - - -Exemplos de recursos da funo display - -// absolute filepath -$smarty->display("/usr/local/include/templates/header.tpl"); - -// absolute filepath (same thing) -$smarty->display("file:/usr/local/include/templates/header.tpl"); - -// windows absolute filepath (MUST use "file:" prefix) -$smarty->display("file:C:/www/pub/templates/header.tpl"); - -// include from template resource named "db" -$smarty->display("db:header.tpl"); - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-fetch.xml b/docs/pt_BR/programmers/api-functions/api-fetch.xml deleted file mode 100644 index c31a3bc1..00000000 --- a/docs/pt_BR/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - fetch - - stringfetch - stringtemplate - stringcache_id - stringcompile_id - - - Isso retorna a sada do template ao invs de mostr-lo. - Fornecendo um tipo ou path vlido template resource. - Como um segundo parmetro opcional, voc pode passar o cache id. - Veja o caching - section para maiores informaes. - - - Como um terceiro parmetro opcional, voc pode passar um compile id. - Isso est no evento que voc quer compilar diferentes verses do - mesmo template, como ter templates compilados separadamente para - diferentes linguagens. Outro uso para compile_id quando voc - usa mais do que um $template_dir mas somente um $compile_dir. Seta - um compile_id em separado para cada $template_dir, de outra maneira - templates com mesmo nome iro sobrescrever-se uns aos outros. Voc - pode tambm setar a varivel $compile_id ao invs - de pass-la para cada chamada de fetch(). - - -fetch - -include("Smarty.class.php"); -$smarty = new Smarty; - -$smarty->caching = true; - -// only do db calls if cache doesn't exist -if(!$smarty->is_cached("index.tpl")) -{ - - // dummy up some data - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// capture the output -$output = $smarty->fetch("index.tpl"); - -// do something with $output here - -echo $output; - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-get-config-vars.xml b/docs/pt_BR/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index 3a5a8d6c..00000000 --- a/docs/pt_BR/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - get_config_vars - - arrayget_config_vars - stringvarname - - - Isso retorna o valor da varivel de configurao dada. - Se nenhum parmetro dado, um array de todas as variveis dos arquivos de configuraes retornado. - - -get_config_vars - -// get loaded config template var 'foo' -$foo = $smarty->get_config_vars('foo'); - -// get all loaded config template vars -$config_vars = $smarty->get_config_vars(); - -// take a look at them -print_r($config_vars); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-get-registered-object.xml b/docs/pt_BR/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 85e8c848..00000000 --- a/docs/pt_BR/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - get_registered_object - - - array get_registered_object - string object_name - - - - Isso retorna uma referncia para um objeto registrado. - Isso til para dentro de uma funo customizada quando voc - precisa acessar diretamente um objeto registrado. - - -get_registered_object - -function smarty_block_foo($params, &$smarty) { - if (isset[$params['object']]) { - // get reference to registered object - $obj_ref =& $smarty->&get_registered_object($params['object']); - // use $obj_ref is now a reference to the object - } -} - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-get-template-vars.xml b/docs/pt_BR/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index f8566773..00000000 --- a/docs/pt_BR/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - get_template_vars - - arrayget_template_vars - stringvarname - - - Isso retorna o valor de uma varivel fixada. Se nenhum parmetro - dado, um array de todas as varivels fixadas retornado. - - -get_template_vars - -// get assigned template var 'foo' -$foo = $smarty->get_template_vars('foo'); - -// get all assigned template vars -$tpl_vars = $smarty->get_template_vars(); - -// take a look at them -print_r($tpl_vars); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-is-cached.xml b/docs/pt_BR/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index db78b275..00000000 --- a/docs/pt_BR/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - is_cached - - - void is_cached - string template - [string cache_id] - - - - Isso retorna true se h um cache vlido para esse template. - Isso somente funciona se caching est setado para true. - - -is_cached - -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl"); - - - Voc pode tambm passar um cache id como um segundo parmetro opcional - no caso voc quer mltiplos caches para o template dado. - - -is_cached with multiple-cache template - -$smarty->caching = true; - -if(!$smarty->is_cached("index.tpl","FrontPage")) { - // do database calls, assign vars here -} - -$smarty->display("index.tpl","FrontPage"); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-load-filter.xml b/docs/pt_BR/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index 70a30f0d..00000000 --- a/docs/pt_BR/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - load_filter - - - void load_filter - string type - string name - - - - Essa funo pode ser usada para carregar um filtro de plugin. O primeiro - argumento especifica o tipo do filtro para carregar e pode ser um - dos seguintes: 'pre', 'post', ou 'output'. O segundo argumento - especifica o nome do filtro de plugin, por exemplo, 'trim'. - - -Carregando filtros de plugins - -$smarty->load_filter('pre', 'trim'); // load prefilter named 'trim' -$smarty->load_filter('pre', 'datefooter'); // load another prefilter named 'datefooter' -$smarty->load_filter('output', 'compress'); // load output filter named 'compress' - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-block.xml b/docs/pt_BR/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 749fc99f..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - register_block - - - void register_block - string name - mixed impl - bool cacheable - array or null cache_attrs - - - - Use isso para registrar dinamicamente blocos de funes de plugins. - Passe no bloco de nomes de funo, seguido por uma chamada de funo PHP - que implemente isso. - - - - A chamada de uma funo-php impl pode ser (a) - uma string contendo o nome da funo ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um - mtodo desta classe. - - -$cacheable e $cache_attrs podem ser omitidos na maior parte dos casos. Veja Controlando modos de Sada de Cache dos Plugins para obter informaes apropriadas. - - -register_block - -/* PHP */ -$smarty->register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) { - if (isset($content)) { - $lang = $params['lang']; - // do some translation with $content - return $translation; - } -} - -{* template *} -{translate lang="br"} - Hello, world! -{/translate} - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml b/docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index a3d3fd64..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - register_compiler_function - - - void register_compiler_function - string name - mixed impl - bool cacheable - - - - Use isso para registrar dinamicamente uma funo de plugin compilador. - Passe no nome da funo compilador, seguido pela funo - PHP que implemente isso. - - - A chamada para funo-php impl - pode ser uma string contendo o nome da funo ou (b) um array - no formato array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo o mtodo - desta classe. - - - $cacheable pode ser omitido na maioria - dos casos. Veja Controlando modos de Sada de Cache dos Plugins - para obter informaes apropriadas. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-function.xml b/docs/pt_BR/programmers/api-functions/api-register-function.xml deleted file mode 100644 index b31160fc..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - register_function - - - void register_function - string name - mixed impl - bool cacheable - array or null cache_attrs - - - - Use isso para registrar funes de plugins dinamicamente para o template. - Passe no template o nome da funo, - seguido pelo nome da funo PHP que implemente isso. - - - A chamada para funo-php impl pode ser (a) - uma string contendo o nome da funo ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um mtodo - desta classe. - - -$cacheable e $cache_attrs podem ser omitidos na maioria dos casos. Veja Controlando modos de Sada Cache dos Plugins para obter informaes apropriadas. - - -register_function - -$smarty->register_function("date_now", "print_current_date"); - -function print_current_date ($params) { - extract($params); - if(empty($format)) - $format="%b %e, %Y"; - return strftime($format,time()); -} - -// agora voc pode usar isso no Smarty para mostrar a data atual: {date_now} -// ou, {date_now format="%Y/%m/%d"} para formatar isso. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-modifier.xml b/docs/pt_BR/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index be57f1fa..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - register_modifier - - - void register_modifier - string name - mixed impl - - - - Use isso para modificar dinamicamente plugins registrados. - Passe no template o nome do modificador, seguido da funo PHP - que implemente isso. - - - A chamada da funo-php impl - pode ser (a) uma strin contendo o nome da funo - ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um mtodo desta classe. - - - -register_modifier - -// let's map PHP's stripslashes function to a Smarty modifier. - -$smarty->register_modifier("sslash","stripslashes"); - -// now you can use {$var|sslash} to strip slashes from variables - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-object.xml b/docs/pt_BR/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 0017668e..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - register_object - - - void register_object - string object_name - object $object - array allowed methods/properties - boolean format - array block methods - - - - Isso para registrar um objeto para uso no template. Veja a - seo de objetos - do manual para examplos. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml b/docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 1727454c..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - register_outputfilter - - - void register_outputfilter - mixed function - - - - Use isso para registrar dinamicamente filtros de sada para operaes - na sada do template antes de mostr-lo. Veja - Filtros de Sada de Templates - para maiores informaes de como configurar uma - funo de filtro de sada. - - - A chamada da funo-php function pode - ser (a) uma string contendo um nome de funo ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um mtodo - desta classe. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-postfilter.xml b/docs/pt_BR/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 5a729b03..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - register_postfilter - - - void register_postfilter - mixed function - - - - Use isso para registrar dinamicamente psfiltros para rodar templates - aps eles terem sido compilados. Veja - psfiltros de template para - maiores informaes de como configurar funes de psfiltragem. - - - A chamada da funo-php function pode - ser (a) uma string contendo um nome de funo ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um mtodo - desta classe. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-prefilter.xml b/docs/pt_BR/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 5afb1518..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - register_prefilter - - - void register_prefilter - mixed function - - - - Use isso para registrar prfiltros dinamicamente para rodar - templates antes deles serem compilados. Veja template prefilters para - maiores informaes de como configurar uma funo de prfiltragem. - - - A chamada da funo-php function pode - ser (a) uma string contendo um nome de funo ou (b) um array no formato - array(&$object, $method) com - &$object sendo uma referncia para um - objeto e $method sendo uma string - contendo o nome do mtodo ou (c) um array no formato - array(&$class, $method) com - $class sendo um nome de classe e - $method sendo um mtodo - desta classe. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-register-resource.xml b/docs/pt_BR/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index 5af2ca90..00000000 --- a/docs/pt_BR/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - register_resource - - - void register_resource - string name - array resource_funcs - - - - Use isso para registrar dinamicamente um recurso de plugin com a Smarty. - Passe no nome o recurso e o array de funes - PHP que implementam isso. Veja - template resources - para maiores informaes de como configurar uma funo para retornar - templates. - - - Notas Tcnicas - - Um nome de recurso deve ter ao menos dois caracteres de comprimento. - Um caracter do nome de recurso ir ser ignorado e usado como parte do - path do arquivo como, $smarty->display('c:/path/to/index.tpl'); - - - - A funo-php-array resource_funcs - deve ter 4 ou 5 elementos. Com 4 elementos os elementos so - as functions-callbacks para as respectivas funes "source", - "timestamp", "secure" e "trusted" de recurso. - Com 5 elementos o primeiro elemento tem que ser um objeto por referncia - ou um nome de classe do objeto ou uma classe implementando o recurso e os 4 - elementos seguintes tem que ter os nomes de mtodos - implementando "source", "timestamp", - "secure" e "trusted". - - -register_resource - -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-template-exists.xml b/docs/pt_BR/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index bea3ece9..00000000 --- a/docs/pt_BR/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - template_exists - - - bool template_exists - string template - - - - Essa funo checa se o template especificado existe. Isso pode - aceitar um path para o template no filesystem ou um recurso de string - especificando o template. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-trigger-error.xml b/docs/pt_BR/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index fea779a6..00000000 --- a/docs/pt_BR/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - trigger_error - - - void trigger_error - string error_msg - [int level] - - - - Essa funo pode ser usada para sada de uma mensagem de erro usando Smarty. - O parmetro level pode ser um dos valores usados - para a funo de php trigger_error(), ex.: E_USER_NOTICE, - E_USER_WARNING, etc. Por padro E_USER_WARNING. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-block.xml b/docs/pt_BR/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index afce2044..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - unregister_block - - - void unregister_block - string name - - - - Use isso para desregistrar dinamicamente um bloco de funes de plugin. - Passe no bloco o nome da funo. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml b/docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 453fc26a..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - unregister_compiler_function - - - void unregister_compiler_function - string name - - - - Use essa funo para desregistrar uma funo de compilador. Passe - o nome da funo de compilador. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-function.xml b/docs/pt_BR/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 7c16c7be..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - unregister_function - - - void unregister_function - string name - - - - Use isso para desregistrar dinamicamente uma funo de plugin do template. - Passe no template o nome da funo. - - -unregister_function - -// ns no queremos que designers template tenham acesso aos nossos arquivos do sistema - -$smarty->unregister_function("fetch"); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml b/docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 84640052..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - unregister_modifier - - - void unregister_modifier - string name - - - - Use isso para desregistrar dincamimente um modificador de plugin. - Passe no template o nome do modificador. - - -unregister_modifier - -// ns no queremos que designers de template usem strip tags para os elementos - -$smarty->unregister_modifier("strip_tags"); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-object.xml b/docs/pt_BR/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 1caba44a..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - unregister_object - - - void unregister_object - string object_name - - - - Use isso para desregistrar um objeto. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml b/docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 4be1f7f8..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - unregister_outputfilter - - - void unregister_outputfilter - string function_name - - - - Use isso para desregistrar dinamicamente um filtro de sada. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml b/docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index fe2e857e..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - unregister_postfilter - - - void unregister_postfilter - string function_name - - - - Use isso para dinamicamente desregistrar um psfiltro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml b/docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 732f2d65..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - unregister_prefilter - - - void unregister_prefilter - string function_name - - - - Use isso para dinamicamente desregistrar um prfiltro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-functions/api-unregister-resource.xml b/docs/pt_BR/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index a236b438..00000000 --- a/docs/pt_BR/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - unregister_resource - - - void unregister_resource - string name - - - - Use isso para dinamicamente desregistrar um recurso de plugin. - Passe no parmetro nome o nome do recurso. - - -unregister_resource - -$smarty->unregister_resource("db"); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables.xml b/docs/pt_BR/programmers/api-variables.xml deleted file mode 100644 index 44df0492..00000000 --- a/docs/pt_BR/programmers/api-variables.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - Variveis - -&programmers.api-variables.variable-template-dir; -&programmers.api-variables.variable-compile-dir; -&programmers.api-variables.variable-config-dir; -&programmers.api-variables.variable-plugins-dir; -&programmers.api-variables.variable-debugging; -&programmers.api-variables.variable-debug-tpl; -&programmers.api-variables.variable-debugging-ctrl; -&programmers.api-variables.variable-global-assign; -&programmers.api-variables.variable-undefined; -&programmers.api-variables.variable-autoload-filters; -&programmers.api-variables.variable-compile-check; -&programmers.api-variables.variable-force-compile; -&programmers.api-variables.variable-caching; -&programmers.api-variables.variable-cache-dir; -&programmers.api-variables.variable-cache-lifetime; -&programmers.api-variables.variable-cache-handler-func; -&programmers.api-variables.variable-cache-modified-check; -&programmers.api-variables.variable-config-overwrite; -&programmers.api-variables.variable-config-booleanize; -&programmers.api-variables.variable-config-read-hidden; -&programmers.api-variables.variable-config-fix-newlines; -&programmers.api-variables.variable-default-template-handler-func; -&programmers.api-variables.variable-php-handling; -&programmers.api-variables.variable-security; -&programmers.api-variables.variable-secure-dir; -&programmers.api-variables.variable-security-settings; -&programmers.api-variables.variable-trusted-dir; -&programmers.api-variables.variable-left-delimiter; -&programmers.api-variables.variable-right-delimiter; -&programmers.api-variables.variable-compiler-class; -&programmers.api-variables.variable-request-vars-order; -&programmers.api-variables.variable-request-use-auto-globals; -&programmers.api-variables.variable-compile-id; -&programmers.api-variables.variable-use-sub-dirs; -&programmers.api-variables.variable-default-modifiers; -&programmers.api-variables.variable-default-resource-type; - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml b/docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 76dc5471..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $autoload_filters - - Se h algum filtro que voc deseja carregar em cada chamada de template, - voc pode especificar-lhes usando essa varivel e a Smarty ir - automaticamente carreg-los para voc. A varivel um array associativo - onde as chaves so tipos de filtro e os valores so arrays de nomes de filtros. - Por exemplo: - - -$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); - - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml b/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index 7dc1d7bb..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - $cache_dir - - Isso o nome do diretrio onde os caches do template so - armazenados. Por padro isso "./cache", significando que isso ir olhar - para o diretrio de cache no mesmo diretrio que executar scripts PHP. - Voc pode tambe usar sua prpria funo customizada de manuseamento de cache - para manipular arquivos de cache, - que iro ignorar esta configurao. - - - Notas Tcnicas - - Essa configurao deve ser ou um relativo - ou absoluto path. include_path no usado para escrever em arquivos. - - - - Notas Tcnicas - - No recomendado colocar este diretrio sob um diretrio - document root do seu webserver. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml b/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 747f7173..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $cache_handler_func - - Voc pode fornecer uma funo padro para manipular arquivos de cache ao invs de - usar o mtodo built-in usando o $cache_dir. Veja a - seo cache - handler function section para obter detalhes. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml b/docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index a15fe3f2..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - $cache_lifetime - - Isso o comprimento de tempo em segundos que um cache de template vlido. - Uma vez que este tempo est expirado, o cache ir ser regerado. $caching deve - ser configurado para "true" para $cache_lifetime para ter algum propsito. Um valor de -1 - ir forar o cache a nunca expirar. Um valor de 0 ir fazer com que o cache seja sempre regerado - (bom somente para testes, o mtodo mais eficiente de desabilitar caching set-lo para - $caching = false.) - - - Se $force_compile est - habilitado, os arquivos de cache sero regerados todo o tempo, eficazmente - desativando caching. Voc pode limpar todos os arquivos de cache com a funo clear_all_cache(), ou - arquivos individuais de cache (ou grupos) com a funo clear_cache(). - - - Notas Tcnicas - - Se voc quiser dar para certos templates seu prprio tempo de vida de um cache, - voc poderia fazer isso configurando $caching = 2, - ento configure $cache_lifetime para um nico valor somente antes de chamar display() - ou fetch(). - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml b/docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index 4b1bc8b4..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $cache_modified_check - - Se configurado para true, Smarty ir respeitar o If-Modified-Since - header enviado para o cliente. Se o timestamp do arquivo de cache - no foi alterado desde a ltima visita, ento um header "304 Not Modified" - ir ser enviado ao invs do contedo. Isso funciona somente em arquivos - de cache sem tags insert. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-caching.xml b/docs/pt_BR/programmers/api-variables/variable-caching.xml deleted file mode 100644 index 55e8cb6d..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - $caching - - Isto diz Smarty se h ou no sada de cache para o template. - Por padro isso est setado para 0, ou desabilitado. Se seu template gerar - contedo redundante, necessrio ligar o caching. Isso - ir resultar num ganho significativo de performance. Voc pode tambm ter mltiplos - caches para o mesmo template. Um valor de 1 ou 2 caching habilitados. 1 diz - Smarty para usar a varivel atual $cache_lifetime para determinar se o - cache expirou. Um valor 2 diz Smarty para usar o valor cache_lifetime - ento para quando o cache foi gerado. Desta maneira voc pode setar o - cache_lifetime imediatamente antes de buscar o template para ter controle - sobre quando este cache em particular expira. Veja tambm is_cached. - - - Se $compile_check est habilitado, o contedo do cache ir ser regerado se - algum dos templates ou arquivos de configurao que so parte deste cache estiverem - alterados. Se $force_compile est habilitado, o contedo do cache ir sempre ser - regerado. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-compile-check.xml b/docs/pt_BR/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 5a118156..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - $compile_check - - Em cima de cada requisio da aplicao PHP , Smarty testa para ver se o - template atual foi alterado (diferentes time stamp) desde a ltima - compilao. Se isso foi alterado, ele ir recompilar o template. Se o template - no foi compilado, ele ir compilar de qualquer maneira dessa configurao. - Por padro esta varivel setada como true. Uma vez que a aplicao est - em produo (templates no sero alterados), o passo compile_check - no necessrio. Tenha certeza de setar $compile_check para "false" para - maior performance. Note que se voc alterar isso para "false" e o - arquivo de template est alterado, voc *no* ir ver a alterao desde que - o template seja recompilado. Se caching est habilitado e - compile_check est habilitado, ento os arquivos de cache no sero regerados se - um complexo arquivo de ou um arquivo de configurao foi atualizado. Veja $force_compile ou clear_compiled_tpl. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml b/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index f9905394..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $compile_dir - - Esse o nome do diretrio onde os template compilados esto localizados - Por padro isso "./templates_c", significando que isso ir - olhar para o diretrio de templates no mesmo diretrio que est executando - o script PHP. - - - Notas Tcnicas - - Essa configurao deve ser um path relativo ou um path absoluto. - include_path no usado para escrever em arquivos. - - - - Notas Tcnicas - - No recomendado colocar este diretrio sob um diretrio - document root do seu webserver. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-compile-id.xml b/docs/pt_BR/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index 06b6ec75..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compile_id - - Identificador de compilao persistente. Como uma alternativa - para passar o mesmo compile_id para cada chamada de funo, voc - pode setar este compile_id e isso ir ser usado implicitamente aps isso. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-compiler-class.xml b/docs/pt_BR/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index ad6101b5..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compiler_class - - Especifica o nome do compilador de classes que - Smarty ir usar para compilar templates. O padro 'Smarty_Compiler'. - Para usurios avanados somente. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml b/docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index fb4a3918..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $config_booleanize - - Se setado para true, os valores do arquivo de configurao de on/true/yes e off/false/no - ficar convertido para valores booleanos automaticamente. Desta forma voc pode usar os - valores em um template como: {if #foobar#} ... {/if}. Se foobar estiver - on, true ou yes, a condio {if} ir executar. true por padro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-config-dir.xml b/docs/pt_BR/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index a2b0283d..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $config_dir - - Este o diretrio usado para armazenar arquivos de configurao usados nos - templates. O padro "./configs", significando que isso ir - olhar para o diretrio de templates no mesmo diretrio que est executando - o script PHP. - - - Notas Tcnicas - - No recomendado colocar este diretrio sob um diretrio - document root do seu webserver. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml b/docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index 525bb1a4..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $config_fix_newlines - - Se setado para true, mac e dos newlines (\r e \r\n) no arquivo de configurao sero - convertidos para \n quando eles forem interpretados. true o padro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml b/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index 2e3df9bc..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $config_overwrite - - Se configurado para true, variveis lidas no arquivo de configuraes iro sobrescrever - uma a outra. Do contrrio, as variveis sero guardadas em um array. Isso - til se voc quer armazenar arrays de dados em arquivos de configurao, somente lista - tempos de cada elemento mltiplo. true por padro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml b/docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index 85c52985..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $config_read_hidden - - Se configurado para true, esconde sees (nomes de sees comeados com um perodo) - no arquivo de configurao podem ser lidos do template. Tipicamente voc deixaria - isto como false, desta forma voc pode armazenar dados sensitivos no arquivo de configurao - como um parmetro de banco de - dados e sem preocupar-se sobre o template carreg-los. false o padro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml b/docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index afce619f..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $debug_tpl - - Este o nome do arquivo de template usado para o console de debug. - Por padro, nomeado como debug.tpl e est localizado no SMARTY_DIR. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml b/docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index a56fa82c..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $debugging_ctrl - - Isso permite caminhos alternativos de habilitar o debug. NONE no significa - que mtodos alternativos so permitidos. URL significa quando a palavra - SMARTY_DEBUG foi encontrado na QUERY_STRING, que o debug est habilitado - para a chamada do script. - Se $debugging true, esse valor ignorado. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-debugging.xml b/docs/pt_BR/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index 9a1e31d1..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $debugging - - Isso habilita o debugging console. - O console uma janela de javascript que informa voc - sobre os arquivos de template includos e variveis - destinadas para a pgina de template atual. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml b/docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index e1b339ac..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $default_modifiers - - Isso um array de modificadores implicitamente aplicados par cada - varivel no template. Por Exemplo, para cada varivel HTML-escape por padro, - use o array('escape:"htmlall"'); Para fazer a varivel isenta para modificadores - padro, passe o modificador especial "smarty" com um valor de parmetro "nodefaults" - modificando isso, como - {$var|smarty:nodefaults}. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml b/docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index f56c3059..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $default_resource_type - - Isso diz Smarty qual tipo de recurso usar implicitamente. - O valor padro 'file', significando que $smarty->display('index.tpl'); e - $smarty->display('file:index.tpl'); so idnticos no significado. - Veja o captulo resource para detalhes. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml b/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index fe39ab32..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $default_template_handler_func - - Essa funo chamada quando um template no pode ser obtido - de seu recurso. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-error-reporting.xml b/docs/pt_BR/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index d285e8ea..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - $error_reporting - - Quando este valor definido para um valor no nulo, o seu valor usado como o nvel de - error_reporting - do php dentro de display() - e fetch(). Quando debugging esta ativado este valor - ignorado e o nvel de erro mantido intocado. - - - Veja tambm - trigger_error(), - debugging - e - Troubleshooting. - - - - diff --git a/docs/pt_BR/programmers/api-variables/variable-force-compile.xml b/docs/pt_BR/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 3f170c6b..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $force_compile - - Isso fora Smarty para (re)compilar templates a cada requisio. - Essa configurao sobreescreve $compile_check. Por padro - isso est desabilitado. Isso til para desenvolvimento e debug. - Isso nunca deve ser usado em ambiente de produo. Se caching - est habilitado, os arquivo(s) de cache sero regerados todo momento. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-global-assign.xml b/docs/pt_BR/programmers/api-variables/variable-global-assign.xml deleted file mode 100644 index 950cb6fc..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-global-assign.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $global_assign - - Essa a lista de variveis que esto sempre implicitamente fixadas - para o template engine. Isso est acessvel para fazer variveis - globais ou variveis do servidor disponveis para todo o template - sem ter que fix-las manualmente. Cada elemento em - $global_assign deve ser um nome de uma varivel global, - ou um par de chave/valor, onde a chave o nome do array global - array e o valor o array de variveis fixadas deste array global. $SCRIPT_NAME - globalmente fixado por padro - para $HTTP_SERVER_VARS. - - - Notas Tcnicas - - Variveis de servidor podem ser acessadas atravs da varivel - $smarty, como {$smarty.server.SCRIPT_NAME}. Veja a seo - da varivel - $smarty. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml b/docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 5dadfb43..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $left_delimiter - - Este o delimitador esquerdo usado para a linguagem de template. - O padro "{". - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-php-handling.xml b/docs/pt_BR/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index af203d86..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $php_handling - - Isso diz Smarty como manipular cdigos PHP contido nos - templates. H quatro possveis configuraes, padro sendo - SMARTY_PHP_PASSTHRU. Note que isso NO far efeito com cdigos php - dentro de tags {php}{/php} - no template. - - - SMARTY_PHP_PASSTHRU - Smarty echos tags as-is. - SMARTY_PHP_QUOTE - Smarty quotes the - tags as html entities. - SMARTY_PHP_REMOVE - Smarty - ir remover as tags do template. - SMARTY_PHP_ALLOW - Smarty ir executar as - tags como cdigos PHP. - - - NOTE: Usando cdigos PHP code dentro de templates altamente desencorajado. - Use custom functions ou - modifiers ao invs disso. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml b/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index 521a7d50..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - $plugins_dir - - Esse o diretrio onde Smarty ir procurar por plugins que so necessrios. - O Padro "plugins" sob o SMARTY_DIR. Se voces especificar um - path relativo, Smarty ir primeiro procurar sob o SMARTY_DIR, ento - relativo para o cwd (current working directory), ento relativo para cada - entrada no seu PHP include path. - - - Notas tcnicas - - Para uma melhor performance, no configure seu plugins_dir para ter que usar o - PHP include path. Use um path absoluto, ou um path relativo para - SMARTY_DIR ou o cwd. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 07e6d4df..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - $request_use_auto_globals - - Especifica se a Smarty deve usar variveis globais do php $HTTP_*_VARS[] - ($request_use_auto_globals=false que o valor padro) ou - $_*[] ($request_use_auto_globals=true). Isso afeta templates - que fazem uso do {$smarty.request.*}, {$smarty.get.*} etc. . - Ateno: Se voc setar $request_use_auto_globals para true, variable.request.vars.order - no tero efeito mas valores de configuraes do php - gpc_order so usados. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml b/docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index afbf4766..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $request_vars_order - - A ordem na qual as variveis requeridas sero registradas, similar ao - variables_order no php.ini - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml b/docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 90a4a9c4..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $right_delimiter - - Este o delimitador direito usado para a linguagem de template. - O padro "}". - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml b/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index c7c2bd68..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $secure_dir - - Isso um array de todos os diretrios locais que so considerados - seguros. {include} e {fetch} usam estes (diretrios) quando security est habilitado. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-security-settings.xml b/docs/pt_BR/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index b3b4d867..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - $security_settings - - Essas configuraes so usadas para cancelar ou especificar configuraes - de segurana quando security est habilitado. Estas possuem as seguintes configuraes possveis: - - - PHP_HANDLING - true/false. Se setado para true, - a configurao de $php_handling no checada para security. - IF_FUNCS - Isso um array de nomes de funes PHP permitidas - nos blocos IF. - INCLUDE_ANY - true/false. Se setado para true, algum - template pode ser includo para um arquivo do sistema, apesar de toda a lista de - $secure_dir. - PHP_TAGS - true/false. Se setado para true, as tags {php}{/php} - so permitidas nos templates. - MODIFIER_FUNCS - Isso um array de nomes de funes PHP permitidas - usadas como modificadores de varivel. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-security.xml b/docs/pt_BR/programmers/api-variables/variable-security.xml deleted file mode 100644 index be03682c..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $security - - $security true/false, o padro false. Security bom para situaes - quando voc tem partes inconfiveis editando o template - (via ftp por exemplo) e voc quer reduzir os riscos de comprometimento - da segurana do sistema atravs da linguagem de template. - Habilitando-o faz-se cumprir as regras da linguagem de template, - a menos que especificamente cancelada com $security_settings: - - - Se $php_handling est setado para SMARTY_PHP_ALLOW, isso implicitamente - alterado para SMARTY_PHP_PASSTHRU - Funs PHP no so permitidas em blocos IF, - exceto estes especificados no $security_settings - templates podem ser somente incluidos no diretrio - listado em $secure_dir array - Arquivos locais podem ser somente trazidos do diretrio - listado em $secure_dir usando no array {fetch} - Estas tags {php}{/php} no so permitidas - Funes PHP no so permitidas como modificadores, exceto - estes especificados no $security_settings - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-template-dir.xml b/docs/pt_BR/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 0684a4e9..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - $template_dir - - Este o nome padro do diretrio de template. Se voc no fornecer - um tipo de recurso quando incluir arquivos, ento ele ir ser encontrado aqui. - Por padro isso "./templates", significando que isso ir - olhar para o diretrio de templates no mesmo diretrio que est executando - o script PHP. - - - Notas Tcnicas - - No recomendado colocar este diretrio sob um diretrio - document root do seu webserver. - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml b/docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index de8ae64d..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $trusted_dir - - $trusted_dir somente usado quando $security est habilitado. Isso um array - de todos os diretrios que so considerados confiveis. Diretrios confiveis - so onde voc ir deixar seus scripts php que so executados diretamente para o - template com {include_php}. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-undefined.xml b/docs/pt_BR/programmers/api-variables/variable-undefined.xml deleted file mode 100644 index c578d254..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-undefined.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $undefined - - Isso seta o valor de $undefined para Smarty, o padro null. - Atualmente isso somente usado para setar variveis indefinidas em - $global_assign para o valor padro. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml b/docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 1cec10f0..00000000 --- a/docs/pt_BR/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $use_sub_dirs - - Configure isso para false se seu ambiente de PHP no permite a criao de - subdiretrios pela Smarty. Subdiretrios so muito eficientes, ento use-os se voc - conseguir. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/caching.xml b/docs/pt_BR/programmers/caching.xml deleted file mode 100644 index b212a3a5..00000000 --- a/docs/pt_BR/programmers/caching.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - Caching - - Caching usado para aumentar a velocidade de chamada para display() ou fetch() salvando isso num arquivo de sada. Se h uma verso - de cache disponvel para a chamada, isso mostrado ao invs de regerar a sada de dados. - Caching pode fazer coisas tremendamente rpidas, - especialmente templates com longo tempo computacional. Desde a sada de dados do - display() ou fetch() est em cache, um arquivo de cache poderia ser composto por - diversos arquivos de templates, arquivos de configurao, etc. - - - Desde que templates sejam dinmicos, importante isso ter cuidado com - o que voc est fazendo cache e por quanto tempo. Por exemplo, se voc est mostrando - a pgina principal do seu website na qual as alteraes de contedo so muito frequentes, - isso funciona bem para cache dessa por uma hora ou mais. Um outro modo, se voc est - mostrando uma pgina com um mapa do tempo contendo novas informaes por minuto, no - faz sentido fazer cache nesta pgina. - -&programmers.caching.caching-setting-up; -&programmers.caching.caching-multiple-caches; -&programmers.caching.caching-groups; - -&programmers.caching.caching-cacheable; - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/caching/caching-cacheable.xml b/docs/pt_BR/programmers/caching/caching-cacheable.xml deleted file mode 100644 index eaa08f04..00000000 --- a/docs/pt_BR/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - - Controlling Cacheability of Plugins' Output - -Desde Smarty-2.6.0 os caches de plugins pode ser declarados -ao registr-los. O terceiro parmetro para register_block, -register_compiler_function e register_function chamado -$cacheable e o padro para true que tambm -o comportamento de plugins na verso da Smarty antecessores 2.6.0 - - - -Quando registrando um plugin com $cacheable=false o plugin chamado todo o tempo na pgina que est sendo mostrada, sempre se a pgina vier do cache. A funo de plugin tem um comportamento levemente como uma funo insert. - - - -Em contraste para {insert} o atributo para o plugin no est em cache por padro. Eles podem ser declarados para serem cacheados com o quarto parmetro $cache_attrs. $cache_attrs um array de nomes de atributos que devem ser cacheados, ento a funo de plugin pega o valor como isso sendo o tempo que a pgina foi escrita para o cache todo o tempo isso buscado do cache. - - - - Prevenindo uma sada de plugin de ser cacheada - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // fetch $obj from db and assign... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); - - -index.tpl: - -Tempo restante: {remain endtime=$obj->endtime} - -O nmero de segundos at que o endtime de $obj alcana alteraes em cada display de pgina, mesmo que a pgina esteja em cache. Desde o atributo endtime esteja em cache o objeto somente tem que ser puxado do banco de dados quando a pgina est escrita para o cache mas no em requisies subsequentes da pgina. - - - - - - Prevenindo uma passagem inteira do template para o cache - -index.php: - -require('Smarty.class.php'); -$smarty = new Smarty; -$smarty->caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); - - -index.tpl: - -Page created: {"0"|date_format:"%D %H:%M:%S"} - -{dynamic} - -Now is: {"0"|date_format:"%D %H:%M:%S"} - -... do other stuff ... - -{/dynamic} - - - -Quando recarregado a pgina que voc ir notar que ambas as datas diferem. Uma "dinmica" e uma "esttica". Voc pode fazer qualquer coisa entre as tags {dynamic}...{/dynamic} e ter certeza que isso no ir ficar em cache como o restante da pgina. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/caching/caching-groups.xml b/docs/pt_BR/programmers/caching/caching-groups.xml deleted file mode 100644 index 96da13ad..00000000 --- a/docs/pt_BR/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Grupos de Cache - - Voc pode fazer agrupamentos mais elaborados configurando grupos de cache_id. Isso - realizado pela separao de cada sub-grupo com uma barra vertical "|" no valor do - cache_id. Voc pode ter muitos sub-grupos com voc desejar. - - - Grupos de cache_id - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports|basketball" as the first two cache_id groups -$smarty->clear_cache(null,"sports|basketball"); - -// clear all caches with "sports" as the first cache_id group. This would -// include "sports|basketball", or "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports|basketball"); - - - Notas Tcnicas - - O agrupamento de cache id NO use o path do template como alguma parte do cache_id. - Por exemplo, se voc tem display('themes/blue/index.tpl'), voc no pode limpar o cache - para tudo que estiver sob o diretrio "themes/blue". Se voc quiser fazer isso, voc deve - agrup-los no cache_id, como display('themes/blue/index.tpl','themes|blue'); Ento - voc pode limpar os caches para o - tema azul com with clear_cache(null,'themes|blue'); - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/caching/caching-multiple-caches.xml b/docs/pt_BR/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index ea4561d8..00000000 --- a/docs/pt_BR/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Multiple Caches Per Page - - Voc pode ter mltiplos arquivos de cache para uma simples chamada de display() - ou fetch(). Vamos dizer que uma chamada para display('index.tpl') deve ter vrios - contedo de sada diferentes dependendo de alguma condio, e voc quer separar - os caches para cada um. Voc pode fazer isso passando um cache_id como um - segundo parmetro para a chamada da funo. - - - Passando um cache_id para display() - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); - - - Acima, ns estamos passando a varivel $my_cache_id para display() com o - cache_id. Para cada valor nico de $my_cache_id, um cache em separado ir ser - gerado para index.tpl. Nesse exemplo, "article_id" foi passado em URL e usado - como o cache_id. - - - Notas Tcnicas - - Tenha muito cuidado quando passar valores do cliente (web brownser) dentro - da Smarty (ou alguma aplicao PHP.) Embora o exemplo acima usando o article_id - vindo de uma URL parea fcil, isso poderia ter consequncias ruins. O - cache_id usado para criar um diretrio no sistema de arquivos, ento se o usurio - decidir passar um valor extremamente largo para article_id, ou escrever um script - que envia article_ids randmicos em um ritmo rpido, isso poderia possivelmente causar - problemas em nvel de servidor. Tenha certeza de limpar algum dado passado antes de usar isso. Nessa instncia, talvez voc - saiba que o article_id tem um comprimento de 10 caracteres e isso constitudo somente - de alfa-numricos, e deve ser um - article_id vlido no database. Verifique isso! - - - - Tenha certeza de passar o mesmo cache_id como o segundo - parmetro para is_cached() e - clear_cache(). - - - Passando um cache_id para is_cached() - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); - - - Voc pode limpar todos os caches para um cache_id em particular passando - o primeiro parmetro null para clear_cache(). - - - Limpando todos os caches para um cache_id em particular - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear all caches with "sports" as the cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); - - - Desta maneira, voc pode "agrupar" seus - caches juntos dando-lhes o mesmo cache_id. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/caching/caching-setting-up.xml b/docs/pt_BR/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 7069d3c4..00000000 --- a/docs/pt_BR/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - Configurando Caching - - A primeira coisa a fazer habilitar o caching. Isso feito pela configurao $caching = true (or 1.) - - - Habilitando Caching - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -$smarty->display('index.tpl'); - - - Com caching habilitado, a chamada para a funo display('index.tpl') ir trazer - o template como usual, mas tambm - salva uma cpia disso para o arquivo de sada (uma cpia de cache) in the $cache_dir. - Na prxima chamada de display('index.tpl'), a cpia em cache ser usada - ao invs de trazer novamente o template. - - - Notas Tcnicas - - Os arquivos no $cache_dir so nomeados com similaridade ao nome do arquivo de template. - Embora eles terminem com a extenso ".php", eles no so realmente scripts executveis de php. - No edite estes arquivos! - - - - Cada pgina em cache tem um perodo de tempo limitado determinado por $cache_lifetime. O padro do valor - 3600 segundos, ou 1 hora. Aps o tempo expirar, o cache regerado. - possvel dar tempos individuais para caches com seu prprio tempo - de expirao pela configurao $caching = 2. Veja a documentao em $cache_lifetime para detalhes. - - - Configurando cache_lifetime por cache - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = 2; // lifetime is per cache - -// set the cache_lifetime for index.tpl to 5 minutes -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// set the cache_lifetime for home.tpl to 1 hour -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// NOTE: the following $cache_lifetime setting will not work when $caching = 2. -// The cache lifetime for home.tpl has already been set -// to 1 hour, and will no longer respect the value of $cache_lifetime. -// The home.tpl cache will still expire after 1 hour. -$smarty->cache_lifetime = 30; // 30 seconds -$smarty->display('home.tpl'); - - - Se $compile_check est habilitado, - cada arquivo de template e arquivo de configurao que est envolvido com o arquivo em cache - checado por modificaes. Se algum destes arquivos foi modificado desde que o ltimo cache - foi gerado, o cache imediatamente regerado. - Isso ligeiramente uma forma de optimizao de performance de overhead, deixe $compile_check setado para false. - - - Habilitando $compile_check - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); - - - Se $force_compile est habilitado, - os arquivos de cache iro sempre ser regerados. Isso efetivamente desativar caching. - $force_compile usualmente para propsitos de debug somente, um caminho mais - eficiente de desativar caching setar o $caching = false (ou 0.) - - - A funo is_cached() - pode ser usada para testar se um template tem um cache vlido ou no. - Se voc tem um template com cache que requer alguma coisa como um retorno do banco de dados, - voc pode usar isso para pular este processo. - - - Usando is_cached() - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // No cache available, do variable assignments here. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); - - - Voc pode deixar partes da sua pgina dinmica com a funo de template insert. - Vamos dizer que sua pgina inteira pode ter cache exceto para um banner que - mostrado abaixo do lado direito da sua pgina. Usando uma funo insert para o banner, - voc pode deixar esse elemento dinmico dentro do contedo de cache. Veja a documentao - em insert para - detalhes e exemplos. - - - Voc pode limpar todos os arquivos de cache com a funo clear_all_cache(), ou - arquivos de cache individuais (ou grupos) com a funo clear_cache(). - - - Limpando o cache - -require('Smarty.class.php'); -$smarty = new Smarty; - -$smarty->caching = true; - -// clear out all cache files -$smarty->clear_all_cache(); - -// clear only cache for index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins.xml b/docs/pt_BR/programmers/plugins.xml deleted file mode 100644 index 5380636b..00000000 --- a/docs/pt_BR/programmers/plugins.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - Extendendo a Smarty com Plugins - - A Verso 2.0 introduziu a arquitetura de plugin que usada para quase todas as - funcionalidades customizveis da Smarty. Isto inclui: - - funes - modificadores - funes de bloco - funes de compilador - prefiltros - posfiltros - filtros de sada - recursos - inserir - - Com a exceo de recursos, a compatibilidade com a forma antiga de funes de - manipulador de registro via register_* API preservada. Se voc no usou o API mas no lugar disso - modificou as variveis de classe $custom_funcs, $custom_mods, e - outras diretamente, ento voc vai - precisar ajustar seus scripts para ou usar API ou converter suas - funcionalidade customizadas em plugins. - - -&programmers.plugins.plugins-howto; - -&programmers.plugins.plugins-naming-conventions; - -&programmers.plugins.plugins-writing; - -&programmers.plugins.plugins-functions; - -&programmers.plugins.plugins-modifiers; - -&programmers.plugins.plugins-block-functions; - -&programmers.plugins.plugins-compiler-functions; - -&programmers.plugins.plugins-prefilters-postfilters; - -&programmers.plugins.plugins-outputfilters; - -&programmers.plugins.plugins-resources; - -&programmers.plugins.plugins-inserts; - - diff --git a/docs/pt_BR/programmers/plugins/plugins-block-functions.xml b/docs/pt_BR/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index bf85bf17..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - -Block Functions - - - void smarty_block_name - array $params - mixed $content - object &$smarty - - - - Funes de Block so funes da forma: {func} .. {/func}. Em outras palavras, ele enclausura - um bloco de template e opera no contedo deste bloco. Funes de Block tem precedncia sobre - funes customizadas com mesmo nome, - assim, voc no pode ter ambas, funo customizvel {func} e - funo de Bloco {func} .. {/func}. - - - Por definio a implementao de sua funo chamada duas vezes pela Smarty: uma vez pela tag de abertura, - e outra pela tag de fechamento - (veja &$repeat abaixo para como mudar isto). - - - Apenas a tag de abertura da funo de bloco pode ter atributos. - Todos os atributos passados para as funes de - template esto contidos em $params como um array associativo. Voc pode ou acessar - esses valores diretamente, i.e. $params['start'] - ou usar extract($params) - para import-los para dentro da tabela smbolo. Os atributos da tag de - abertura so tambm acessveis a sua funo - quando processando a tag de fechamento. - - - O valor da varivel $content - depende de que se sua funo chamada pela tag de - fechamento ou de abertura. Caso seja a de abertura, ele ser - null, se for a de fechamento - o valor ser do contedo do bloco de template. - Note que o bloco de template j ter sido processado pela - Smarty, ento tudo que voc receber sada do template, no o template original. - - - - O parmetro &$repeat passado por - referncia para a funo de implementao - e fornece uma possibilidade para ele controlar quantas - vezes o bloco mostrado. Por definio - $repeat true na primeira chamada da block-function - (a tag de abertura do bloco) e false - em todas as chamadas subsequentes funo de bloco - (a tag de fechamento do bloco). Cada vez que a - implementao da funo retorna com o &$repeat - sendo true, o contedo entre {func} .. {/func} avaliado - e a implementao da funo chamada novamente com - o novo contedo do bloco no parmetro $content. - - - - - Se voc tem funes de bloco aninhadas, possvel - descobrir qual a funo de bloco pai acessando - a varivel $smarty->_tag_stack. Apenas faa um var_dump() - nela e a estrutura estaria visvel. - - - See also: - register_block(), - unregister_block(). - - - funo de bloco - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: block.translate.php - * Type: block - * Name: translate - * Purpose: translate a block of text - * ------------------------------------------------------------- - */ -function smarty_block_translate($params, $content, &$smarty) -{ - if (isset($content)) { - $lang = $params['lang']; - // do some intelligent translation thing here with $content - return $translation; - } -} - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml b/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index 5556cd06..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - -Funes Compiladoras - - Funes compiladoras s so chamadas durante a compilao do template. - Elas so teis para injeo de cdigo PHP ou contedo esttico time-sensitive - dentro do template. Se h ambos, uma funo - compiladora e uma funo customizvel - registrada sob o mesmo nome, a funo compiladora tem precedncia. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - funo compiladora so passados dois parmetros: - a tag string de argumento da tag - basicamente, tudo a partir - do nome da funo at o delimitador de fechamento, e o objeto da Smarty. suposto que retorna o cdigo PHP - para ser injetado dentro do template compilado. - - - See also - register_compiler_function(), - unregister_compiler_function(). - - - funo compiladora simples - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: compiler.tplheader.php - * Type: compiler - * Name: tplheader - * Purpose: Output header containing the source file name and - * the time it was compiled. - * ------------------------------------------------------------- - */ -function smarty_compiler_tplheader($tag_arg, &$smarty) -{ - return "\necho '" . $smarty->_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> - - Esta funo pode ser chamada em um template da seguinte forma: - - -{* esta funo executada somente no tempo de compilao *} -{tplheader} - - O cdigo PHP resultante no template compilado seria algo assim: - - -<php -echo 'index.tpl compiled at 2002-02-20 20:02'; -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-functions.xml b/docs/pt_BR/programmers/plugins/plugins-functions.xml deleted file mode 100644 index ee1ecad8..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - -Funes de Template - - - void smarty_function_name - array $params - object &$smarty - - - - Todos os atributos passados para as funes de template a - partir do template esto contidas em - $params como um array associativo. Ou acessa esses valores - diretamente i.e $params['start'] ou usa - extract($params) para - import-los para dentro da tabela smbolo. - - - A sada (valor de retorno) da funo ser substituda no lugar da tag da funo no template - (a funo fetch, por exemplo). Alternativamente, a funo pode simplesmente executar - alguma outra tarefa sem ter alguma sada - (a funo assign). - - - Se a funo precisa passar valores a algumas variveis para o template ou utilizar alguma outra funcionalidade - fornecida com a Smarty, ela pode usar - o objeto $smarty fornecido para fazer isso. - - - Veja tambm: - register_function(), - unregister_function(). - - - - funo de plugin com sada - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.eightball.php - * Type: function - * Name: eightball - * Purpose: outputs a random magic answer - * ------------------------------------------------------------- - */ -function smarty_function_eightball($params, &$smarty) -{ - $answers = array('Yes', - 'No', - 'No way', - 'Outlook not so good', - 'Ask again soon', - 'Maybe in your reality'); - - $result = array_rand($answers); - return $answers[$result]; -} -?> - - - - que pode ser usada no template da seguinte forma: - - -Pergunta: Ns sempre teremos tempo para viajar? -Resposta: {eightball}. - - - funo de plugin sem sada - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: function.assign.php - * Type: function - * Name: assign - * Purpose: assign a value to a template variable - * ------------------------------------------------------------- - */ -function smarty_function_assign($params, &$smarty) -{ - extract($params); - - if (empty($var)) { - $smarty->trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?> - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-howto.xml b/docs/pt_BR/programmers/plugins/plugins-howto.xml deleted file mode 100644 index 50748324..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - Como os Plugins Funcionam - - Plugins so sempre lidos quando requisitados. Apenas os modificadores especficos, - funes, recursos, etc convocados em scripts de template sero lidos. Alm disso, cada plugin - lido apenas uma vez, mesmo se voc tem vrias instncias diferentes da Smarty rodando na mesma - requisio. - - - Pre/posfiltros e filtros de sada so uma parte de um caso especial. Visto que eles no so mencionados - nos templates, eles devem ser registrados ou lidos explicitamente via funes de API antes do template - ser processado. - A ordem em que multiplos filtros do mesmo - tipo so executados dependem da ordem em que eles so registrados ou lidos. - - - O diretrio de plugins - pode ser uma string contendo um caminho ou um array - contendo multiplos caminhos. Para instalar um plugin, - simplesmente coloque-o em um dos diretrios e a Smarty ir us-lo automaticamente. - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-inserts.xml b/docs/pt_BR/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index 7f48e7c2..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - -Inserts - - Plugins Insert so usados para implementar funes que so invocadas por tags - insert - no template. - - - - string smarty_insert_name - array $params - object &$smarty - - - - O primeiro parmetro para a funo um array - associativo de atributos passados para o - insert. Ou acessa esses valores diretamente, - i.e. $params['start'] ou usa - extract($params) para import-los para dentro da tabela smbolo. - - - A funo insert deve retornar o - resultado que ser substitudo no lugar da tag - insert no template. - - - Plugin insert - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: insert.time.php - * Type: time - * Name: time - * Purpose: Inserts current date/time according to format - * ------------------------------------------------------------- - */ -function smarty_insert_time($params, &$smarty) -{ - if (empty($params['format'])) { - $smarty->trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-modifiers.xml b/docs/pt_BR/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 97bccee3..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - -Modifiers - - Modificadores so funes que so aplicadas a uma varivel no template antes dela ser mostrada - ou usada em algum outro contexto. - Modificadores podem ser encadeados juntos. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - O primeiro parmetro para o plugin midificador o valor em que o modificador suposto - operar. O resto dos parmetros podem ser opcionais, - dependendo de qual tipo de operao para - ser executada. - - - O modificador deve retornar o resultado de seu processamento. - - - Veja tambm: - register_modifier(), - unregister_modifier(). - - - Plugin modificador simples - - Este plugin basiamente um alias de uma - funo do PHP. Ele no tem nenhum parmetro adicional. - - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.capitalize.php - * Type: modifier - * Name: capitalize - * Purpose: capitalize words in the string - * ------------------------------------------------------------- - */ -function smarty_modifier_capitalize($string) -{ - return ucwords($string); -} -?> - - - - Plugin modificador mais complexo - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: modifier.truncate.php - * Type: modifier - * Name: truncate - * Purpose: Truncate a string to a certain length if necessary, - * optionally splitting in the middle of a word, and - * appending the $etc string. - * ------------------------------------------------------------- - */ -function smarty_modifier_truncate($string, $length = 80, $etc = '...', - $break_words = false) -{ - if ($length == 0) - return ''; - - if (strlen($string) > $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml b/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index c5f14e36..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Convenes de Aparncia - - Arquivos e funes de Plugin devem seguir uma conveno de aparncia muito especfica - a fim de ser localizada pela Smarty. - - - Os arquivos de plugin devem ser nomeados da sequinte forma: -
    - - - tipo.nome.php - - -
    -
    - - Onde tipo um dos seguintes tipos de plugin: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - E nome seria um identificador vlido (letras, - nmeros, e underscores apenas). - - - Alguns exemplos: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - As funes de plugin dentro dos arquivos do plugin devem ser nomeadas da seguinte forma: -
    - - smarty_tipo_nome - -
    -
    - - O significado de tipo e - nome so os mesmos de antes. - - - A Smarty mostrar mensagens de erro apropriadas se o arquivo de plugins que necessrio no encontrado, - ou se o arquivo ou a funo de plugin - esto nomeadas inadequadamente. - -
    - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml b/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 769538a8..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - -Filtros de sada - - Filtros de sada operam na sada do template, depois que o template lido e executado, mas - antes a sada mostrada. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - O primeiro parmetro para a funo do filtro de sada a sada do template que precisa ser processada, e - o segundo parmetro a instncia da Smarty invocando o plugin. - O plugin deve fazer o precessamento e - retornar os resultados. - - - output filter plugin - -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: outputfilter.protect_email.php - * Type: outputfilter - * Name: protect_email - * Purpose: Converts @ sign in email addresses to %40 as - * a simple protection against spambots - * ------------------------------------------------------------- - */ - function smarty_outputfilter_protect_email($output, &$smarty) - { - return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', - '$1%40$2', $output); - } - - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 673b4c90..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Prefiltros/Posfiltros - - Plugins Prefilter e postfilter so muito similares - em conceito; onde eles diferem na execuo -- mais - precisamente no tempo de suas execues. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Prefilters so usados para processar o fonte do template - imediatamente antes da compilao. O primeiro parmetro da - funo de prefilter o fonte do template, possivelmente modificado por alguns outros prefilters. O Plugin - suposto retornar o fonte modificado. Note que este fonte no salvo em lugar nenhum, ele s usado para - a compilao. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Postfilters so usados para processar a sada compilada do template (o cdigo PHP) imediatamente aps - a compilao ser feita e antes do template compilado ser - salvo no sistema de arquivo. O primeiro parmetro - para a funo postfilter o cdigo do template compilado, - possivelmente modificado por outros postfilters. - O plugin suposto retornar a verso modificada deste cdigo. - - - Plugin prefilter - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: prefilter.pre01.php - * Type: prefilter - * Name: pre01 - * Purpose: Convert html tags to be lowercase. - * ------------------------------------------------------------- - */ - function smarty_prefilter_pre01($source, &$smarty) - { - return preg_replace('!<(\w+)[^>]+>!e', 'strtolower("$1")', $source); - } -?> - - - - Plugin postfilter - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: postfilter.post01.php - * Type: postfilter - * Name: post01 - * Purpose: Output code that lists all current template vars. - * ------------------------------------------------------------- - */ - function smarty_postfilter_post01($compiled, &$smarty) - { - $compiled = "<pre>\n<?php print_r(\$this->get_template_vars()); ?>\n</pre>" . $compiled; - return $compiled; - } -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-resources.xml b/docs/pt_BR/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 2ac6bc4f..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - -Recursos (Resources) - - Os plugins de Recursos so como uma forma genrica de fornecer cdigos fontes de template - ou componentes de script PHP para a Smarty. Alguns exemplos de recursos: - banco de dados, LDAP, memria compartilhada, sockets, e assim por diante. - - - - H um total de 4 funes que precisam estar registradas - para cada tipo de recurso. Cada funo receber - o recurso requisitado como o primeiro parmetro e o objeto da Smarty como o ltimo parmetro. O resto - dos parmetros dependem da funo. - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - A primeira funo deve devolver o recurso. Seu segundo parmetro uma varivel passada por - referncia onde o resultado seria armazenado. - A funo deve retornar true se - ela est apta a devolver com sucesso o recurso e - caso contrrio retorna false. - - - - A segunda funo deve devolver a ltima modificao do - recurso requisitado (como um timestamp Unix). - O segundo parmetro uma varivel passada por referncia onde o timestamp seria armazenado. - A funo deve retornar true - se o timestamp poderia ser determinado com sucesso, - e caso contrrio retornaria false. - - - - A terceira funo deve retornar true ou - false, dependendo do recurso requisitado - est seguro ou no. Esta funo usada - apenas para recursos de template mas ainda assim seria definida. - - - - A quarta funo deve retornar true - ou false, dependendo - do recurso requisitado ser confivel ou no. - Esta funo usada apenas para componentes de - script PHP requisitados pelas tags include_php ou - insert com o atributo src. - Entretanto, ela ainda assim mesmo seria definida para os recursos de template. - - - Veja tambm: - register_resource(), - unregister_resource(). - - - Plugin resource (recurso) - -<?php -/* - * Smarty plugin - * ------------------------------------------------------------- - * File: resource.db.php - * Type: resource - * Name: db - * Purpose: Fetches templates from a database - * ------------------------------------------------------------- - */ -function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) -{ - // do database call here to fetch your template, - // populating $tpl_source - $sql = new SQL; - $sql->query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // faz o banco de dados chamar aqui para preencher $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // assume que todos os templates so seguros - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // no usado para templates -} -?> - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/plugins/plugins-writing.xml b/docs/pt_BR/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 586e2f34..00000000 --- a/docs/pt_BR/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Escrevendo Plugins - - Os Plugins podem ser ou lidos pela Smarty automaticamente do sistema de arquivos ou eles podem - ser registrados no tempo de execuo via uma das funes - de API register_* . Eles podem tambm ser - com o uso da funo API unregister_* . - - - Para os plugins que so registrados no tempo de execuo, o nome da(s) funo(es) de plugin - no tm que seguir a conveno de aparncia. - - - Se um plugin depende de alguma funcionalidade fornecida por um outro plugin (como o caso com alguns - plugins embutidos com a Smarty), - ento a forma apropriada para ler o plugin necessrio esta: - - -require_once $smarty->_get_plugin_filepath('function', 'html_options'); - - Como uma regra geral, o objeto da Smarty sempre passado para os plugins como o ltimo parmetro - (com duas excees: modificadores no passam o objeto da Smarty em tudo e blocks passam - &$repeat depois do objeto da Smarty - para manter compatibilidade a antigas - verses da Smarty). - - - \ No newline at end of file diff --git a/docs/pt_BR/programmers/smarty-constants.xml b/docs/pt_BR/programmers/smarty-constants.xml deleted file mode 100644 index ccb4560a..00000000 --- a/docs/pt_BR/programmers/smarty-constants.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - Constantes - - - - SMARTY_DIR - - Isso deve ser o caminho completo do path para a localizao dos arquivos de classe da Smarty. - Se isso no for definido, ento a Smarty ir tentar determinar - o valor apropriado automaticamente. Se definido, o path - deve finalizar com uma barra. - - - SMARTY_DIR - -// set path to Smarty directory -define("SMARTY_DIR","/usr/local/lib/php/Smarty/"); - -require_once(SMARTY_DIR."Smarty.class.php"); - - - - \ No newline at end of file diff --git a/docs/pt_BR/translation.xml b/docs/pt_BR/translation.xml deleted file mode 100644 index e143848a..00000000 --- a/docs/pt_BR/translation.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - This file is used by smarty/docs/scripts/revcheck.php. - It shows who make part of translation and what are they doing. - Very important note: The smarty was translated to portuguese before the implementation - of the revision system, by fernandoc, marcelo and surfmax. And thomasgm made some updates - after this. Because of this there is no way to give the correct credits for who translated - which file. - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/ru/appendixes/bugs.xml b/docs/ru/appendixes/bugs.xml deleted file mode 100644 index 85ccd07d..00000000 --- a/docs/ru/appendixes/bugs.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Ошибки - - Смотрите файл BUGS, который поставляется вместе с - стандартной поставкой Smarty или ищите список на сайте. - - - diff --git a/docs/ru/appendixes/resources.xml b/docs/ru/appendixes/resources.xml deleted file mode 100644 index 1e9d425e..00000000 --- a/docs/ru/appendixes/resources.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - Источники - - Домашняя страница Smarty доступна по адресу - &url.smarty; - - - - - - Вы можете подписаться на список рассылки, отправив e-mail на адрес - &ml.general.sub;. Архив списка рассылки можно - просмотреть здесь. - - - - - - Форумы доступны по адресу &url.forums; - - - - - - Wiki находится по адресу &url.wiki; - - - - - - Заходите в чат на irc.freenode.net#smarty. - - - - - - ЧаВО находятся тут и - тут. - - - - - - diff --git a/docs/ru/appendixes/tips.xml b/docs/ru/appendixes/tips.xml deleted file mode 100644 index 6346b71e..00000000 --- a/docs/ru/appendixes/tips.xml +++ /dev/null @@ -1,457 +0,0 @@ - - - - - Советы - - - Обработка пустых переменных - - Иногда, например, для того чтобы фон таблицы работал корректно, - необходимо вывести вместо пустого значения переменной, значение - по умолчанию, например &nbsp;. - Многие бы использовали конструкцию - {if} - в данной ситуации, - но в Smatry есть более короткий путь - используя модификатор переменной - default. - - - - PHP выдаст ошибку Undefined variable в случае, если - - error_reporting() установлен в E_ALL - и переменная не была присвоена шаблону Smarty. - - - - - - Вывод &nbsp;, если переменная пуста - - - - - - См. также default и - Обработка переменных по умолчанию. - - - - - Обработка переменных по умолчанию - - Если переменная встречается часто, то использование модификатора - default - каждый раз можно избежать, используя функцию - {assign}. - - - Назначение переменной шаблона значения по умолчанию - - - - - - См. также - default и - Обработка пустых переменных. - - - - - Присвоение переменной заголовка (title) шаблону-шапке - - Если большинство ваших шаблонов имеют похожие верхние и нижние - части, то имеет смысл вынести их в отдельные файлы и - подключать их. - Но как быть, если шапка должна иметь различные заголовки на различных - страницах? Вы можете передавать текст заголовка шапке в качестве атрибута в момент её включения. - - - Присвоение переменной заголовка (title) шаблону-шапке - - mainpage.tpl - когда отображается главная страница, - заголовок Main Page передается в - header.tpl, - и будет в дальнейшем использован в качестве заголовка. - - - - - - - archives.tpl - когда отображается страница архива, - заголовок будет Archives. - Обратите внимание, что в этом примере мы - используем переменную из archives_page.conf, вместо - того, чтобы жестко прописать её в шаблоне. - - - - - - - header.tpl - Обратите внимание, что - Smarty News отображается тогда, когда $title не задан, - благодаря модификатору - default. - - - - - {$title|default:'Smarty News'} - - -]]> - - - - footer.tpl - - - - -]]> - - - - - - Даты - - Обычно даты в Smarty всегда передаются как - временные метки (англ. timestamp), - что позволяет проектировщикам шаблонов использовать date_format - для полного контроля над форматированием даты и также делает легким - сравнение дат там, где это необходимо. - - - - Начиная с версии Smarty 1.4.0, вы можете передавать даты в Smarty в виде - меток времени Unix (unix timestamps), mysql, или в любом другом виде, - который понимает функция - strtotime(). - - - - Использование date_format - - - - - Результат работы: - - - - - - - - - Результат работы: - - - - - - Даты можно ставнивать в шаблонах путем сравнения - меток времени следующим образом: - - - - - - - Когда - {html_select_date} - используется в шаблоне, программист наверняка захочет преобразовать - данные из формы назад в формат временной метки. Вот функция, которая - поможет вам сделать это. - - - Преобразование элементов формы ввода даты назад к временной метке - - -]]> - - - - См. также - - {html_select_date}, - - {html_select_time}, - - date_format и - - $smarty.now - - - - - WAP/WML - - WAP/WML шаблоны требуют, чтобы - заголовок Content-Type - был передан вместе с шаблоном. Простейший путь - написать - пользовательскую функцию, которая будет выводить заголовки. - Если вы используете кэширование, - это не сработает, так что мы сделаем это с помощью тэга - {insert}; - не забывайте, что тэги {insert} не кэшируются! - Убедитесь, что перед шаблоном в браузер ничего не выводится, - иначе отправить заголовок не получится. - - - Использование {insert} для отправки заголовка Content-Type для WML - - -]]> - - - ваш шаблон Smarty должен начинаться с тэга insert: - - - - - - - - - - - - -

    - Welcome to WAP with Smarty! - Press OK to continue... -

    -
    - - -

    - Pretty easy isn't it? -

    -
    -
    -]]> -
    -
    -
    - - - Составные шаблоны - - По традиции, программирование шаблонов в вашем приложении идёт следующим - путём: Сначала вы формируете переменные внутри вашего приложения PHP - (возможно, используя запросы к базе данных). Затем вы создаёте экземпляр - объекта Smarty, - назначаете переменные и - отображаете шаблон. - Давайте представим себе такую ситуацию: К примеру, у нас есть котировщик - ценных бумаг в нашем шаблоне. Мы собираем данные о котировках ценных бумаг - в нашем приложении, затем передаём эти переменные в шаблон и отображаем - его. Правда, было бы здорово, если бы этот котировщик можно было перенести - в другое приложение, просто подключив к нему шаблон, не беспокоясь об - источнике данных. - - - Вы можете сделать это, написав собственное расширение для получения - данных и присваивания их переменной шаблона. - - - составной шаблон - - function.load_ticker.php - - поместите файл в - - директорию $plugins - - -assign($params['assign'], $ticker_info); -} -?> -]]> - - - index.tpl - - - - - - - См. также - - {include_php}, - - {include} и - {php}. - - - - - Сокрытие E-mail адреса - - Вы когда-нибудь удивлялись, как ваш e-mail адрес попадает в такое - количество спамерских рассылок? Один из способов сбора e-mail адресов - заключается в просмотре веб-страниц. Чтобы помочь предотвратить эту - проблему, вы можете сделать так, чотбы ваш e-mail адрес отображался - в скрытом за javascript'ом виде в HTML-исходниках, в то же время - выглядя и работая корректно в браузере. Это можно совершить при помощи - расширения - {mailto}. - - - Пример сокрытия e-mail адреса в шаблоне - - - - - - Техническое Замечание - - Этот метод не может гарантировать 100% защиты. - Существует вероятность, что спамер запрограммирует свой - сборщик e-mail адресов на раскодирование этих значений, - но это маловероятно... - будем надеяться... пока что... - куда я там дел свой квантовый компьютер :-?. - - - - См. также модификатор - escape и - {mailto}. - - -
    - diff --git a/docs/ru/appendixes/troubleshooting.xml b/docs/ru/appendixes/troubleshooting.xml deleted file mode 100644 index c93dda70..00000000 --- a/docs/ru/appendixes/troubleshooting.xml +++ /dev/null @@ -1,214 +0,0 @@ - - - - - Решение проблем - - - Ошибки Smarty/PHP - - Smarty может ловить многие ошибки, например отсутствующие атрибуты - тэгов или недопустимые имена переменных. Если это произойдет, вы увидите - ошибку наподобие следующей: - - - Ошибка Smarty - - - - - - Smarty покажет вам имя шаблона, номер строки и ошибку. - Далее сообщение об ошибке состоит из фактического номера строки в классе - Smarty, где возникла ошибка. - - - - Есть определенные ошибки, которые не может поймать Smarty, например - отсутствующие закрывающие тэги. Такие ошибки обычно приводят к ошибкам - разбора PHP на этапе компиляции. - - - - Ошибки разбора PHP - - - - - - - Когда вы встречаетесь с ошибкой разбора PHP, номер строки, в которой - допущена ошибка, будет соответствовать скомпилированному PHP-скрипту, - а НЕ самому шаблону. Обычно вы можете посмотреть на шаблон и увидить - синтаксическую ошибку. Типичные ошибки: отсутствующие закрывающие тэги - для - {if}{/if} или - - {section}{/section}, - или синтаксис логики внутри тэга {if}. - Если вы не можете найти ошибку, вам может понадобиться открыть - скомпилированный PHP-файл и перейти к номеру строки чтобы выяснить, - в чём заключается ошибка в шаблоне. - - - - Другие частые ошибки - - - - - - - - Значение - $template_dir - неверно, эта директория не существует или файл - index.tpl не найден в директории - templates/. - - - - - В шаблоне присутствует функция - {config_load} - (либо была вызвана функция - - config_load()) - и значение - - $config_dir - неверно, эта директория не существует или файл - site.conf находится за пределами этой - директории. - - - - - - - - - - - - - Переменная - - $compile_dir - установлена неверно, эта директория не существует - или templates_c является файлом, а не - директорией. - - - - - - - - - - - - У веб сервера нет прав на запись в директорию - - $compile_dir. - Смотрите конец страницы - Базовая установка - для получения информации о правах доступа. - - - - - - - - - - - - Это означает, что параметр - - $caching включен, но параметр - - $cache_dir - установлен неправильно, эта директория не существует - или cache/ является файлом, а не - директорией. - - - - - - - - - - - - Это означает, что параметр - - $caching включен, но - у веб сервера нет прав на запись в директорию - - $cache_dir. - Смотрите конец страницы - Базовая установка - для получения информации о правах доступа. - - - - - - - См. также - Отладочная консоль, - - $error_reporting и - trigger_error(). - - - - diff --git a/docs/ru/bookinfo.xml b/docs/ru/bookinfo.xml deleted file mode 100755 index 540d4343..00000000 --- a/docs/ru/bookinfo.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Smarty - компилирующий обработчик шаблонов - - - Monte - Ohrt <monte at ohrt dot com> - - - Andrei - Zmievski <andrei@php.net> - - - - - Sergei - Suslenkov <student@bsuir-fcd.org> - - - George - Miroshnikov <freespace@php.net> - - - &build-date; - - 2001-2005 - New Digital Group, Inc. - - - - diff --git a/docs/ru/designers/chapter-debugging-console.xml b/docs/ru/designers/chapter-debugging-console.xml deleted file mode 100644 index e573b5ae..00000000 --- a/docs/ru/designers/chapter-debugging-console.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Отладочная консоль - - В Smarty включена консоль для отладки. Консоль позволяет узнать все - включенные шаблоны, - присвоенные переменные и настройки из - конфинурационных файлов - для текущего экземпляра Smarty. - Шаблон debug.tpl, поставляемый вместе со Smarty, - задает внешний вид консоли. - - - Установите опцию Smarty - - $debugging в true и, если - необходимо, укажите в - - $debug_tpl путь к шаблону - debug.tpl (по умолчанию это - SMARTY_DIR). - Когда вы загружаете страницу, должно появиться всплывающие окно Javascript - и вывести список всех подключенных шаблонов и назначенных переменных - для данной страницы. - - - Для вывода доступных переменных из конкретного шаблона, - см. функцию - {debug}. - Для отключения консоли отладки, установите параметр - - $debugging в false. - Можно также опционально включить консоль отладки, добавив - SMARTY_DEBUG в URL, предварительно включив параметр - - $debugging_ctrl. - - - Техническое Примечание - - Консоль отладки не работает, когда используется функция API - fetch(). - Необходимо использовать только функцию - display(). - Она генерирует javascript код вначале каждой сгенерированной страницы. - Если вам не нравится javascript, можно отредатировать - debug.tpl для - изменения способа отображения по вашему вкусу. - Отладочная информация не кэшируется и в отладочную информацию не - включается информация о debug.tpl. - - - - - Время загрузки каждого шаблона и файла конфигурации выводятся в секундах или - в миллисекундах. - - - - См. также - Решение проблем, - - $error_reporting - и - - trigger_error(). - - - diff --git a/docs/ru/designers/config-files.xml b/docs/ru/designers/config-files.xml deleted file mode 100644 index 09154918..00000000 --- a/docs/ru/designers/config-files.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - Конфигурационные файлы - - С помощью конфигурационных файлов дизайнеру удобно управлять глобальными - переменными из одного файла. Например, цветами в шаблонах. Обычно, если - вы хотите сменить цветувую схему, то необходимо просмотреть каждый шаблон - и в каждом изменить цвета. С помощью файла конфигурации все цвета могут - быть вынесены в отдельный файл и только один файл надо будет исправлять. - - - Пример файла конфигурации - - - - - - Значения переменных в - конфигурационных файлах могут заключаться в кавычки, но это не - обязательно. Можно использовать как двойные, так и одинарные кавычки. - Если у вас есть значение, которое занимает больше, чем одну строку, - необходимо заключить его в тройные кавычки ("""). - Можно включать комментарии в файл конфигурации используя любой синтакис, - который не является допустимым синтаксисом файлов конфигурации. - Для этих целей рекомендуется использовать символ # - (hash) в начале строки. - - - Конфигурационный файл в примере имеет две секции. Названия секций заключены в - квадратные скобки []. Названия секций могут быть произвольными строками, - не содержащими символов [ или ]. Четыре - переменные вначале - глобальные переменные или переменные вне секций. - Эти переменные всегда загружаются из файла конфигурации. Если загружается - определенная секция, то глобальные переменные и переменные из этой секции - становятся доступными. Если переменная существует как глобальная, так и - внутри секции, то используется версия из секции. Если есть две одинаковые - переменные в пределах одной секции, то используеться последний встретившийся - вариант, если только параметр - $config_overwrite - не был предварительно отключен. - - - Файлы конфигурации загружаются в шаблон при помощи - встроенной шаблонной функции - - {config_load} или API-функции config_load(). - - - Можно спрятать отдельные переменные или целые секции, добавив к названию - точку в начале, например [.hidden]. - Это полезно, когда ваше приложение берет некоторые - переменные, ненужные в шаблоне, из файла конфигурации. Если шаблоны могут - редактировать третьи лица, то вы можете быть спокойны за ценную информацию - из файлов конфигураций: они не смогут ее загрузить в шаблон. - - - См. также - {config_load}, - - $config_overwrite, - - get_config_vars(), - clear_config() и - config_load() - - - diff --git a/docs/ru/designers/language-basic-syntax.xml b/docs/ru/designers/language-basic-syntax.xml deleted file mode 100644 index b3b2c248..00000000 --- a/docs/ru/designers/language-basic-syntax.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Базовый синтаксис - - Все тэги шаблонов Smarty располагаются между специальными - разделителями. По умолчанию это { и }, - но они могут быть изменены. - - - В примерах этого руководства мы будем использовать стандартные разделители. - Smarty все содержимое вне разделителей отображает как статический - контент, без изменений. Когда Smarty встречает тэги шаблона, то пытается - интерпретировать их и вывести вместо них соответствующий результат. - - - &designers.language-basic-syntax.language-syntax-comments; - &designers.language-basic-syntax.language-syntax-variables; - &designers.language-basic-syntax.language-syntax-functions; - &designers.language-basic-syntax.language-syntax-attributes; - &designers.language-basic-syntax.language-syntax-quotes; - &designers.language-basic-syntax.language-math; - &designers.language-basic-syntax.language-escaping; - - - diff --git a/docs/ru/designers/language-basic-syntax/language-escaping.xml b/docs/ru/designers/language-basic-syntax/language-escaping.xml deleted file mode 100644 index 5819c882..00000000 --- a/docs/ru/designers/language-basic-syntax/language-escaping.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - Предотвращение обработки Smarty - - Иногда необходимо, чтобы Smarty не обрабатывал часть шаблона, - которая должна по умолчанию обрабатываться. Классическим примером - такой ситуации является встраивание Javascript или CSS-кода в - шаблон. Проблема появляется из-за того, что эти языки используют - символы { и }, которые так же используются в качестве - разделителей - для Smarty. - - - - Самым простым решением является избежание этой ситуации путём выноса Javascript'а - и CSS-кода в отдельные файлы и использования стандартных методов HTML для доступа к ним. - - - - Дословное включение контента возможно при помощи блоков - {literal}..{/literal}. - Подобно тому, как вы используете HTML-сущности (&nbsp; и т.п.), вы можете - использовать {ldelim},{rdelim} или - - {$smarty.ldelim} - для отображения текущих разделителей. - - - - Порой бывает удобно просто изменить свойства - $left_delimiter и - - $right_delimiter - в объекте Smarty. - - - Изменение разделителей - -left_delimiter = ''; - -$smarty->assign('foo', 'bar'); -$smarty->assign('name', 'Albert'); -$smarty->display('example.tpl'); - -?> -]]> - - - Пример шаблона: - - - to Smarty - -]]> - - - - diff --git a/docs/ru/designers/language-basic-syntax/language-math.xml b/docs/ru/designers/language-basic-syntax/language-math.xml deleted file mode 100644 index 15d3f0a8..00000000 --- a/docs/ru/designers/language-basic-syntax/language-math.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Арифметические операции - - Арифметические операции могут совершаться непосредственно над значениями переменных. - - - Примеры арифметики - -bar-$bar[1]*$baz->foo->bar()-3*7} - -{if ($foo+$bar.test%$baz*134232+10+$b+10)} - -{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"} - -{assign var="foo" value="`$foo+$bar`"} -]]> - - - - См. также функцию - {math} для сложных вычислений и - {eval}. - - - diff --git a/docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml deleted file mode 100644 index 6fb94f83..00000000 --- a/docs/ru/designers/language-basic-syntax/language-syntax-attributes.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Параметры - - Большинство - функций - принимают аргументы, которые уточняют или - изменяют ее поведение. Аргументы в Smarty очень похожи на - параметры в HTML. Статические значения не обязательно заключать - в кавычки, но это рекомендуется для текстовых строк. Переменные - также могут быть использованы в качестве параметров, и не должны - заключаться в кавычки. - - - Некоторые параметры принимают логические значения (&true; или &false;). - Они могут быть указаны словами true, - on и yes, или - false, off и - no без кавычек. - - - синтаксис параметров функции - - - {html_options options=$companies selected=$company_id} - -]]> - - - - diff --git a/docs/ru/designers/language-basic-syntax/language-syntax-comments.xml b/docs/ru/designers/language-basic-syntax/language-syntax-comments.xml deleted file mode 100644 index 0a828766..00000000 --- a/docs/ru/designers/language-basic-syntax/language-syntax-comments.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - Комментарии - - Комментарии в шаблонах заключаются в звездочки (*) окруженные - разделителями, - например: - - - - - - - - - Smarty НЕ отображает комментарии в выводе шаблона, в отличие - от <!-- комментариев HTML -->. - Они используются для внутренних примечаний в шаблонах, которые никто - не увидит ;-) - - - Комментарии внутри шаблона - - -{* Я - простой комментарий Smarty, я не существую в скомпилированном выводе *} - - - {$title} - - - -{* другой однострочный комментарий Smarty *} - - -{* этот многострочный комментарий - не отправляется в бразуер -*} - -{********************************************************* - Многострочный блок комментариев с информацие об авторе - @ author: bg@example.com - @ maintainer: support@example.com - @ para: var that sets block style - @ css: the style output -**********************************************************} - -{* Файл-заголовок с главным логотипом и т.д. *} -{include file='header.tpl'} - - -{* Примечание разработчика: переменная $includeFile назначается в скрипте foo.php *} - -{include file=$includeFile} - -{* этот блок - {html_options options=$vals selected=$selected_id} - -*} - - -{* $affiliate|upper *} - -{* вложенные комментарии использовать нельзя *} -{* - -*} - -{* cvs-тэг шаблона: эти 36 ДОЛЖНЫ быть американской валютой, - но в таком случае CVS обработает их *} -{* $Id: Exp $ *} -{* $Id: *} - - -]]> - - - - diff --git a/docs/ru/designers/language-basic-syntax/language-syntax-functions.xml b/docs/ru/designers/language-basic-syntax/language-syntax-functions.xml deleted file mode 100644 index d3159ae7..00000000 --- a/docs/ru/designers/language-basic-syntax/language-syntax-functions.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - Функции - - Каждый тэг Smarty либо выводит значение переменной, либо вызывает - некоторую функцию. Они обрабатываются путём заключения функции и ее - параметров - в разделители, например: - {funcname attr1='val1' attr2='val2'}. - - - Синтаксис функций - -{$name}! -{else} - Hi, {$name}! -{/if} - -{include file='footer.tpl' ad=$random_id} -]]> - - - - - - - И встроенные, - и пользовательские функции - используются с одинаковым синтаксисом. - - - - - - Встроенные функции обеспечивают - внутреннюю работу Smarty, например - {if}, - - {section} и - {strip}. - У вас не должно быть причин для их модификации. - - - - - - Пользовательские функции являются - дополнительными и реализуются через - плагины. - Они могут быть изменены по вашему желанию, также вы можете - создать новые. - Примерами пользовательских функций могут быть - - {html_options} и - {popup}. - - - - - - См. также - - register_function() - - - diff --git a/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml deleted file mode 100644 index 21af5047..00000000 --- a/docs/ru/designers/language-basic-syntax/language-syntax-quotes.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Внедренные переменные в двойных кавычках - - - - - Smarty распознает - присвоенные - переменные, - если они встречаются в строках, заключенных в "двойные кавычки", - если имена переменных состоят из цифр, букв, знака под_чёркивания и - квадратных скобок[]. - См. также Переменные. - - - - - - В случае, если переменная содержит другие символы, например - точки, ссылки на объекты и т.д., переменную необходимо заключить - в `обратные кавычки`. - В данном случае вы не можете использовать - модификаторы, - их следует применять вне кавычек. - - - - - - Вы не можете использовать - модификаторы - подобным образом - они всегда должны применяться за пределами кавычек. - - - - - - Примеры синтаксиса - - - - - - - Практические примеры - - - - - - - См. также - escape. - - - diff --git a/docs/ru/designers/language-basic-syntax/language-syntax-variables.xml b/docs/ru/designers/language-basic-syntax/language-syntax-variables.xml deleted file mode 100644 index adbe62a8..00000000 --- a/docs/ru/designers/language-basic-syntax/language-syntax-variables.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Переменные - - Переменные шаблона начинаются со знака $доллара. Они могут состоять из цифр, - букв, знаков подчёркивания - как и обычные - PHP variable. - Вы можете обращаться к массивам по числовым и нечисловым индексам. - Вы также можете обращаться к свойствам и методам объектов. - Переменные конфигурационного файла - - это исключения из долларового синтаксиса; к ним можно обращаться, окружив - их #решетками# или воспользовавшись специальной переменной - - $smarty.config. - - - Переменные - -bar} <-- отображает свойство "bar" объекта -{$foo->bar()} <-- отображает возвращаемое значение метода "bar" объекта -{#foo#} <-- отображает переменную "foo" конфигурационного файла -{$smarty.config.foo} <-- синоним для {#foo#} -{$foo[bar]} <-- синтаксис доступен только в цикле section, см. {section} -{assign var=foo value='baa'}{$foo} <-- отображает "baa", см. {assign} - -Также доступно множество других комбинаций - -{$foo.bar.baz} -{$foo.$bar.$baz} -{$foo[4].baz} -{$foo[4].$baz} -{$foo.bar.baz[4]} -{$foo->bar($baz,2,$bar)} <-- передача параметра -{"foo"} <-- статические значения также разрешены - -{* отображает серверную переменную "SERVER_NAME" ($_SERVER['SERVER_NAME'])*} -{$smarty.server.SERVER_NAME} -]]> - - - - - Переменные запроса, такие как $_GET, - $_SESSION и т.д. доступны через зарезервированную - переменную - $smarty. - - - - См. также - $smarty, - Переменные файлов конфигурации, - {assign} - и - assign(). - - - diff --git a/docs/ru/designers/language-builtin-functions.xml b/docs/ru/designers/language-builtin-functions.xml deleted file mode 100644 index 0740f221..00000000 --- a/docs/ru/designers/language-builtin-functions.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - Встроенные функции - - В smarty включены несколько встроенных функций. Эти встроенные функции - интегрированы в язык шаблонов. Нельзя создавать - пользовательские функции - с такими же названиями и вам не следует модифицировать встроенные функции. - - - - Некоторые эти функции имеют атрибут assign, - который помещает результати их выполнения в переменную шаблона, вместо вывода - в браузер, практически как функция - {assign}. - - -&designers.language-builtin-functions.language-function-capture; -&designers.language-builtin-functions.language-function-config-load; -&designers.language-builtin-functions.language-function-foreach; -&designers.language-builtin-functions.language-function-if; -&designers.language-builtin-functions.language-function-include; -&designers.language-builtin-functions.language-function-include-php; -&designers.language-builtin-functions.language-function-insert; -&designers.language-builtin-functions.language-function-ldelim; -&designers.language-builtin-functions.language-function-literal; -&designers.language-builtin-functions.language-function-php; -&designers.language-builtin-functions.language-function-section; -&designers.language-builtin-functions.language-function-strip; - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-capture.xml b/docs/ru/designers/language-builtin-functions/language-function-capture.xml deleted file mode 100644 index 53768d04..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-capture.xml +++ /dev/null @@ -1,138 +0,0 @@ - - - - - {capture} - - {capture} используется для того, чтобы собрать результат - обработки части шаблона между тэгами в какую-то переменную, вместо того, - чтобы отобразить результат. - Любое содержимое между {capture name='foo'} и - {/capture} сохраняется в переменную, указанную в атрибуте - name. - - - Захваченные данные могут в дальнейшем использоваться в - шаблоне при помощи специальной переменной $smarty.capture.foo, - где foo - значение, переданное атрибуту name. - Если атрибут name не указан, - то используется default, т.е. $smarty.capture.default. - - - - Функция {capture} поддерживает вложенность. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Нет - default - Имя блока для сохранения - - - assign - string - Нет - n/a - Имя переменной для сохранения результатов - - - - - - - Внимание - - Будте осторожны, сохраняя результат команды {insert}. - Если вы используете - кэширование - и в области кэширования встречаются команды - {insert}, - то не сохраняйте данный вывод. - - - - - - Сохранение вывода шаблона в указанный атрибут - -{$smarty.capture.banner} -{/if} -]]> - - - - - Сохранение содержимого в переменную - - Этот пример также демонстрирует функцию - {popup} - - - -Адрес сервера: {$smarty.server.SERVER_ADDR}
    -Ваш IP: {$smarty.server.REMOTE_ADDR}. -{/capture} - -help -]]> -
    -
    -
    - - См. также - $smarty.capture, - {eval}, - {fetch}, - fetch() - и {assign}. - -
    - diff --git a/docs/ru/designers/language-builtin-functions/language-function-config-load.xml b/docs/ru/designers/language-builtin-functions/language-function-config-load.xml deleted file mode 100644 index 56e84c8a..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-config-load.xml +++ /dev/null @@ -1,190 +0,0 @@ - - - - - {config_load} - - {config_load} используется для загрузки - конфигурационных переменных - (#variables#) из - конфигурационных файлов в шаблон. - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - file - string - Да - n/a - Имя config файла для загрузки - - - section - string - Нет - n/a - Имя секции для загрузки - - - scope - string - Нет - local - - Способ обработки области видимости загруженных - переменных. Должен быть одинм из local, parent - или global. local означает, что переменные загружены - в контекст локального шаблона. parent означает, что - переменные загружены в контекст как локального, так - и родительского шаблона. global означает, что - переменные доступны из любого шаблона. - - - - global - boolean - Нет - No - - Доступны ли переменные из родительского шаблона. - Аналогичен scope=parent. ЗАМЕЧАНИЕ: Этот атрибут - перекрывается атрибутом scope, но все еще - поддерживается. Если scope указан, то это значение - игнорируется. - - - - - - - {config_load} - - Файл example.conf. - - - - - и шаблон - - - - {#pageTitle#|default:"No title"} - - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - Конфигурационные файлы - могут также содержать секции. Вы можете загружать - переменные из определенной секции, указав атрибут - section. Имейте в виду, что глобальные - конфигурационные переменные всегда загружаются вместе с секционными - переменными, которые могут переопределять их. - - - - Секции файлов конфигурации и встроенная - функция - {section} - не имеют ничего общего, кроме схожего названия. - - - - функция {config_load} с секцией - - - - {#pageTitle#|default:"No title"} - - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - - См. $config_overwrite - для массивов конфигурационных переменных. - - - - См. также Конфигурационные файлы, - Конфигурационные переменные, - $config_dir, - get_config_vars() - и - config_load(). - -
    - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-foreach.xml b/docs/ru/designers/language-builtin-functions/language-function-foreach.xml deleted file mode 100644 index 481b2f63..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-foreach.xml +++ /dev/null @@ -1,486 +0,0 @@ - - - - - {foreach},{foreachelse} - - {foreach} используется для работы как с - ассоциативным, - так и с числовыми массивами, в отличие от функции - {section}, - которая предназначена для работы - исключительно с числовыми массивами. - - Синтаксис функции {foreach} намного проще, чем - {section}, - но она может работать только с одним массивом - одновременно. Каждый тэг {foreach} должен иметь - закрывающую пару {/foreach}. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - from - array - Да - n/a - Массив, по которому надо пройтись - - - item - string - Да - n/a - Имя переменной, которая будет значением текущего елемента - - - key - string - Нет - n/a - Имя переменной, которая будет ключом текущего елемента - - - name - string - Нет - n/a - Название цикла foreach для доступа к его свойствам - - - - - - - - - Атрибуты from и item - являются обязательными. - - - - - - Параметр name цикла {foreach} - может состоять из букв, цифр и знака подчеркивания, как и - переменные PHP. - - - - - - Циклы {foreach} могут быть вложенными при условии, что - их имена будут уникальными. - - - - - - Атрибут from, обычно являющийся массивом, - определяет количество проходов цикла {foreach}. - - - - - - Блок {foreachelse} выполняется в том случае, если - в параметре from нет значений. - - - - - - У циклов {foreach} также есть собственные переменные, - которые обрабатывают свойства. - Доступ к ним можно получить таким образом: - - {$smarty.foreach.name.property}, где - name - атрибут name функции - {foreach}. - - - Обратите внимание - - Атрибут name необходим только в том случае, - когда у вас есть необходимость обращаться к свойствам - {foreach}, в отличие от функции - {section}. - Обращение к свойствам {foreach} с неопределенным - name не вызывает ошибки, но ведёт к непредсказуемым - результатам. - - - - - - - {foreach} имеет следующие свойства: - index, - iteration, - first, - last, - show и - total. - - - - - - Атрибут <parameter>item</parameter> - -assign('myArray', $arr); -?> -]]> - - - Шаблон для отображения $myArray в виде - ненумерованного списка - - - -{foreach from=$myArray item=foo} -
  • {$foo}
  • -{/foreach} - -]]> -
    - - Результат выполнения данного примера: - - - -
  • 1000
  • -
  • 1001
  • -
  • 1002
  • - -]]> -
    -
    - - - Пример работы атрибутов <parameter>item</parameter> и <parameter>key</parameter> - - 'Tennis', 3 => 'Swimming', 8 => 'Coding'); -$smarty->assign('myArray', $arr); -?> -]]> - - - Шаблон для отображения $myArray в виде пар ключ/значение, - как foreach - в PHP. - - -{foreach from=$myArray key=k item=v} -
  • {$k}: {$v}
  • -{/foreach} - -]]> -
    - - Результат выполнения данного примера: - - - -
  • 9: Tennis
  • -
  • 3: Swimming
  • -
  • 8: Coding
  • - -]]> -
    -
    - - - {foreach} с ассоциативным атрибутом <parameter>item</parameter> - - array('no' => 2456, 'label' => 'Salad'), - 96 => array('no' => 4889, 'label' => 'Cream') - ); -$smarty->assign('items', $items_list); -?> -]]> - - - Шаблон для отображения элементов $items, в котором - $myId используется в URL'е - - - -{foreach from=$items key=myId item=i} -
  • {$i.no}: {$i.label}
  • -{/foreach} - -]]> -
    - - Результат выполнения данного примера: - - - -
  • 2456: Salad
  • -
  • 4889: Cream
  • - -]]> - -
    - - - {foreach} со вложенными <parameter>item</parameter> и <parameter>key</parameter> - В Smarty передан такой массив, ключ которого содержит ключ для каждого перебираемого значения. - -assign('contacts', array( - array('phone' => '1', - 'fax' => '2', - 'cell' => '3'), - array('phone' => '555-4444', - 'fax' => '555-3333', - 'cell' => '760-1234') - )); -?> -]]> - - Шаблон для отображения $contact. - - - {foreach key=key item=item from=$contact} - {$key}: {$item}
    - {/foreach} -{/foreach} -]]> -
    - - Результат выполнения данного примера: - - - - phone: 1
    - fax: 2
    - cell: 3
    -
    - phone: 555-4444
    - fax: 555-3333
    - cell: 760-1234
    -]]> -
    -
    - - - Пример использования {foreachelse} при работе с базой данных - - Пример работы с базой данных (при помощи PEAR или ADODB) в скрипте поиска, - результаты которого передаются в Smarty. - - -assign('results', $db->getAssoc($sql) ); -?> -]]> - - - Шаблон отобразит сообщение Ничего не найдено при помощи - {foreachelse} в случае, если поиск не дал результатов. - - -{$con.name} - {$con.nick}

    -{foreachelse} - Ничего не найдено -{/foreach} -]]> - - - - - .index - - index contains the current array index, starting with zero. - - - <parameter>index</parameter> example - - - -{foreach from=$items key=myId item=i name=foo} - {if $smarty.foreach.foo.index % 5 == 0} - Title - {/if} - {$i.label} -{/foreach} - -]]> - - - - - - .iteration - - iteration содержит значение текущей итерации цикла - и всегда начинается с единицы, в отличие от - index. - Это значение увеличивается на единицу с каждой следующей итерацией. - - - Примеры работы с <parameter>iteration</parameter> и <parameter>index</parameter> - - - - - - - - - .first - - Свойство first равно &true;, если текущая итерация - {foreach} - первая. - - - Пример использования свойства <parameter>first</parameter> - - -{foreach from=$items key=myId item=i name=foo} - - {if $smarty.foreach.foo.first}НОВОЕ{else}{$myId}{/if} - {$i.label} - -{/foreach} - -]]> - - - - - - .last - - Свойство last равно &true;, если текущая итерация - {foreach} - последняя. - - - Пример использования свойства <parameter>last</parameter> - -) в конце списка *} -{foreach from=$items key=part_id item=prod name=products} - {$prod}{if $smarty.foreach.products.last}
    {else},{/if} -{foreachelse} - ... content ... -{/foreach} -]]> -
    -
    -
    - - - .show - - show используется как параметр для {foreach}. - show - это булевое значение. - Если оно равно &false;, результат работы {foreach} не будет отображен. - Если присутствует директива {foreachelse}, её содержимое - будет отображено. - - - - - .total - - total содержит общее количество итераций, - которое пройдет данный цикл {foreach}. - Его можно использовать во время или после выполнения {foreach}. - - - Пример использования свойства <parameter>total</parameter> - - -{if $smarty.foreach.foo.last} -
    {$smarty.foreach.foo.total} предметов
    -{/if} -{foreachelse} - ... что-то другое ... -{/foreach} -]]> -
    -
    - - - См. также - {section} - и - $smarty.foreach. - -
    -
    - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-if.xml b/docs/ru/designers/language-builtin-functions/language-function-if.xml deleted file mode 100644 index dcbf598f..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-if.xml +++ /dev/null @@ -1,264 +0,0 @@ - - - - - {if},{elseif},{else} - - Конструкция {if} в Smarty такая же гибкая, как и - конструкция - if в PHP, - только с несколькими дополнительными возможностями для шаблонов. - Каждый тэг {if} должен иметь пару - {/if}. {else} и - {elseif} так же допустимы. Досутпны все квалификаторы - и функции - из PHP, такие как ||, or, - &&, and, - is_array() и т.д. - - - - Если $security включена, - то массив IF_FUNCS в массиве $security_settings. - - - - Ниже следует список распознаваемых квалификаторов, которые должны быть - отделены от окружающих элементов пробелами. Обратите внимания, что - объекты в [квадратных скобках] являются необязательными. Иногда указаны - эквиваленты в PHP. - - - - - - - - - - - - Квалификатор - Альтернативы - Пример синтаксиса - Описание - Эквивалент PHP - - - - - == - eq - $a eq $b - равно - == - - - != - ne, neq - $a neq $b - не равно - != - - - > - gt - $a gt $b - больше - > - - - < - lt - $a lt $b - меньше - < - - - >= - gte, ge - $a ge $b - больше или равно - >= - - - <= - lte, le - $a le $b - меньше или равно - <= - - - === - - $a === 0 - проверка идентичности - === - - - ! - not - not $a - отрицание - ! - - - % - mod - $a mod $b - остаток от деления - % - - - is [not] div by - - $a is not div by 4 - возможно деление без остатка - $a % $b == 0 - - - is [not] even - - $a is not even - [не]чётно - $a % 2 == 0 - - - is [not] even by - - $a is not even by $b - [не]чётно значению - ($a / $b) % 2 == 0 - - - is [not] odd - - $a is not odd - [не]нечётно - $a % 2 != 0 - - - is [not] odd by - - $a is not odd by $b - [не]нечётно значению - ($a / $b) % 2 != 0 - - - - - - - примеры использования {if} - - 1000 ) and $volume >= #minVolAmt#} - ... -{/if} - -{* вы также можете использовать функции php *} -{if count($var) gt 0} - ... -{/if} - -{* проверка на массив *} -{if is_array($foo) } - ... -{/if} - -{* проверка на существование *} -{if isset($foo) } - ... -{/if} - -{* проверяет чётность значений *} -{if $var is even} - ... -{/if} -{if $var is odd} - ... -{/if} -{if $var is not odd} - ... -{/if} - -{* проверяет, делится ли $var на 4 без остатка *} -{if $var is div by 4} - ... -{/if} - -{* - проверяет, является ли $var чётным двум, например - 0=чётно, 1=чётно, 2=нечётно, 3=нечётно, 4=чётно, 5=чётно и т.д. -*} -{if $var is even by 2} - ... -{/if} - -{* 0=чётно, 1=чётно, 2=чётно, 3=нечётно, 4=нечётно, 5=нечётно и т.д. *} -{if $var is even by 3} - ... -{/if} -]]> - - - - - ещё несколько примеров использования {if} - - 0) - {* выполнить цикл foreach *} -{/if} -]]> - - - - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-include-php.xml b/docs/ru/designers/language-builtin-functions/language-function-include-php.xml deleted file mode 100644 index 329fc5c2..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-include-php.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - {include_php} - - Техническое замечание - - {include_php} достаточно устарела в Smarty, вы можете достичь этой - функциональности при помощи собственных функций шаблона. - Единственная причина для использования {include_php} - это серьёзная - необходимость отделить PHP-функцию от директории - plugins - или кода вашего приложения. См. примеры составных шаблонов - для дополнительной информации. - - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - file - string - Да - n/a - Имя подключаемого php файла - - - once - boolean - Нет - true - Указывает подключать файл или нет, - если он уже был однажды подключен - - - assign - string - Нет - n/a - Название переменной, которой будет - присвоен вывод include_php - - - - - - - Тэги {include_php} используются для подключения PHP-скрипта в шаблон. - Если режим $security включен, - то PHP-скрипт должен быть расположен в директории - $trusted_dir. - Тэг {include_php} должен иметь атрибут "file", который - указывает путь к подключаемому PHP-файлу, либо относительный к - $trusted_dir, - либо абсолютный путь. - - - По умолчанию, PHP-файлы подключаются только один раз, даже если - вызываются несколько раз в шаблоне. Можно указать, что файл должен - быть подключен каждый раз, указав атрибут once. - Установив once в ложь (false) указывает, что файл должен быть - подключен вне зависимости от того, был ли он подключен раньше. - - - Можно указать опциональный атрибут assign, - который указывает имя переменной, которой будет присвоен вывод - {include_php}, вместо отображения. - - - Объект smarty доступен в подключаемом PHP-файле как $this. - - - Функция {include_php} - load_nav.php - -query('select * from site_nav_sections order by name',SQL_ALL); -$this->assign('sections',$sql->record); - -?> -]]> - - index.tpl - -{$curr_section.name}
    -{/foreach} -]]> -
    -
    - - - См. также - {include}, - {php}, - {capture}, - Ресурсы - и - Составные шаблоны - -
    - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-include.xml b/docs/ru/designers/language-builtin-functions/language-function-include.xml deleted file mode 100644 index cd79ecec..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-include.xml +++ /dev/null @@ -1,200 +0,0 @@ - - - - - {include} - - Тэги {include} используются для включения других шаблонов в текущий. - Любые переменные, доступные в текущем шаблоне, доступны и во - включаемом. Тэг {include} должен иметь атрибут 'file', - который указывает путь к ресурсу шаблона. - - - Опциональный атрибут assign указывает, что - результат выполнения {include} будет присвоен переменной вместо отображения. - - - Все значения присвоенных переменных восстанавливаются после того, - как подключаемый шаблон отработал. Это значит, что вы можете использовать - все переменные из подключающего шаблона в подключаемом, но изменения - переменных внутри подключаемого шаблона не будут видны внутри подключающего - шаблона после команды {include}. - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - file - string - Да - n/a - Имя файла шаблона для включения - - - assign - string - Нет - n/a - Имя переменной, которой присвоится вывод - шаблона - - - [var ...] - [var type] - Нет - n/a - Переменные, переданные в локальную область - включаемого шаблона - - - - - - - Функция {include} - - - - {$title} - - - {include file='page_header.tpl'} - {* тут идёт тело шаблона *} - {include file="$tpl_name.tpl"} <-- заменит $tpl_name его значением - {include file='page_footer.tpl'} - - -]]> - - - - - Вы также можете передать переменные в подключаемый шаблон в - виде атрибутов. - Любая переменная, переданная в подключаемый - шаблон, доступны только в области видимости подключаемого - файла. Переданные переменные имеют преимущество перед - существующими переменными с аналогичными именами. - - - передача переменных в {include} - - - - где header.tpl может быть - - - - -

    {$title}

    - - - -]]> -
    -
    - - - {include} и присвоение переменной - - Этот пример присвоит содержимое nav.tpl переменной $navbar, - которая затем выводится сверху и снизу страницы. - - - -{include file='nav.tpl' assign=navbar} -{include file='header.tpl' title='Main Menu' table_bgcolor='#effeef'} -{$navbar} - -{* тут идёт тело шаблона *} - -{include file='footer.tpl' logo='http://my.example.com/logo.gif'} -{$navbar} - -]]> - - - - Для подключения файлов вне папки - $template_dir - можно указывать файл с помощью - ресурсов. - - - Примеры ресурсов шаблонов в {include} - - - - - - - См. также - {include_php}, - {insert}, - {php}, - Ресурсы and - Составные шаблоны. - - -
    - diff --git a/docs/ru/designers/language-builtin-functions/language-function-insert.xml b/docs/ru/designers/language-builtin-functions/language-function-insert.xml deleted file mode 100644 index 5a98378c..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-insert.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - {insert} - - Тэг {insert} очень похож на тэг {include}, - за исключением того, что {insert} НЕ кэшируется, когда - кэширование включено. - Он будет выполнен при каждом обращении к шаблону. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Да - n/a - Имя функции вставки (insert_name) - - - assign - string - Нет - n/a - Имя переменной, которой будет - присвоен вывод - - - script - string - Нет - n/a - Имя php файла, который будет подключен - перед вызовом функции вставки - - - [var ...] - [var type] - Нет - n/a - Переменные, передаваемые в - функцию вставки - - - - - - - Допустим, вы имеете шаблон с баннером вверху страницы. - Баннер может содержать любую смесь HTML, изображений, - flash и т.д., то есть нельзя использовать просто - статическую ссылку, и мы не хотим, чтобы код баннера - кэшировался с остальной страницей. Тогда используем - тэг {insert}: шаблон знает значения #banner_location_id# и - #site_id# (взяты из конфигурационного файла) - и должен вызвать функцию, чтобы получить код баннера. - - - функция {insert} - -{* пример вставки баннера *} -{insert name="getBanner" lid=#banner_location_id# sid=#site_id#} - - - - В этом примере мы используем имя "getBanner" и передаем параметры - #banner_location_id# и #site_id#. Smarty попробует вызвать - функцию insert_getBanner() в вашей PHP программе, передав - значения #banner_location_id# и #site_id# первым параметром в виде - ассоциативного массива. Все имена функций вставки должны начинаться - с "insert_" для предотвращения возможных конфликтов имен. Функция - insert_getBanner() должна обработать переданные переменные и - вернуть результат. Он будет отображен в шаблоне вместо тэга {insert}. - В данном случае Smarty вызовет функцию insert_getBanner(array("lid" - => "12345","sid" => "67890")); и выведет результат на месте тэга - {insert}. - - - Если указан атрибут "assign", то вывод функции вставки будет - присвоен указанной переменной вместо отображения. ЗАМЕЧАНИЕ: - присвоение вывода тэга {insert} переменной шаблона не очень - полезно, когда кеширование включено. - - - Если указан атрибут "script", то указанный PHP-файл будет - подключен (только однажды) перед вызовом функции вставки. - Это удобно, когда функция может не сущетсвовать, и должен быть - подключен PHP-файл, чтобы определить функцию. Путь к файлу - должен быть либо абсолтным, либо относительным относительно - $trusted_dir. Когда включен режим $security, PHP-файл должен - быть в папке $trusted_dir. - - - Обьект Smarty передается в функцию как второй параметр. - Так вы можете использовать и модифицировать информацию - из объекта Smarty в функциях вставки. - - - Техническое Замечание - - Некоторые части шаблона можно не кэшировать. - Если активировано кэширование, - то тэг {insert} все равно не будет кэширован. Он будет вызван - каждый раз при генерации страницы, даже из кешированных - страниц. Это полезно для таких вещей, как баннеры, опросы, - прогнозы погоды, результаты поиска, области обратной связи - и т.д. - - - - - См. также - {include} - - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-ldelim.xml b/docs/ru/designers/language-builtin-functions/language-function-ldelim.xml deleted file mode 100644 index 22e8ff2a..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-ldelim.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - {ldelim},{rdelim} - - {ldelim} и {rdelim} используются для - предотвращения обработки разделителей, - по-умолчанию "{" и "}". Вы также можете использовать блок - {literal}{/literal} для - предотвращения обработки блоков текста, например кода Javascript или CSS. - См. также - {$smarty.ldelim} - - - {ldelim}, {rdelim} - - - - - Результат выполнения данного примера: - - - - - Другой пример и немного javascript'а - - -function foo() {ldelim} - ... code ... -{rdelim} - -]]> - - выведет - - -function foo() { - .... code ... -} - -]]> - - - - - - another Javascript example - - - function myJsFunction(){ldelim} - alert("The server name\n{$smarty.server.SERVER_NAME}\n{$smarty.server.SERVER_ADDR}"); - {rdelim} - -Click here for Server Info -]]> - - - - См. также - {literal} - и - Предотвращение обработки Smarty - - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-literal.xml b/docs/ru/designers/language-builtin-functions/language-function-literal.xml deleted file mode 100644 index 5c0a6a96..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-literal.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - {literal} - - Тэги {literal} позволяют воспринимать блоки данных буквально. - Обычно они используются вместе с javascript или таблицами стилей, в которых - фигурные скобки конфликтуют с синтаксисом разделителей. - Весь текст внутри тэгов {literal}{/literal} не интерпретируется, а выводится - "как есть". Если вам нужно вставить тэги шаблонов в блок {literal}, - вам следует пойти по другому пути и использовать {ldelim}{rdelim} для экранирования - отдельных разделителей. - - - - Тэги {literal} - - - - -{/literal} -]]> - - - - - Пример функции Javascript - - -{literal} -function myJsFunction(name, ip){ - alert("The server name\n" + name + "\n" + ip); -} -{/literal} - -Click here for the Server Info - ]]> - - - - - Немного CSS в шаблоне - - -{literal} -/* это интересная идея для этого раздела */ -.madIdea{ - border: 3px outset #ffffff; - margin: 2 3 4 5px; - background-color: #001122; -} -{/literal} - -
    With smarty you can embed css in the template
    -]]> -
    -
    - - - См. также - {ldelim} {rdelim} - и - Предотвращение обработки Smarty - -
    - diff --git a/docs/ru/designers/language-builtin-functions/language-function-php.xml b/docs/ru/designers/language-builtin-functions/language-function-php.xml deleted file mode 100644 index 874bdaa5..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-php.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - {php} - - Тэг {php} позволяет вставлять PHP-код прямо в шаблон. Он не - будет как-либо изменен, независимо от $php_handling настроек. - Этот тэг только для продвинутых пользователей, так как обычно - не требуется и не рекоммендуется. - - - тэги {php} - - - - - - - Техническое замечание - - Для доступа к переменным PHP внутри блоков {php}, вам может понадобится - использовать ключевое слово PHP - global - - - - - Тэги {php} с глобальными переменными и назначение переменных - -assign('varX','Strawberry'); -{/php} -{$varX} is my fav ice cream -]]> - - - Следующее действие действительно НЕ рекоммендуется, - так как оно происходит в области видимости шаблона - - - - - - - - См. также - $php_handling, - {include_php}, - {include}, - {insert} - и - Компонентные шаблоны. - - - - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-section.xml b/docs/ru/designers/language-builtin-functions/language-function-section.xml deleted file mode 100644 index 0a0ff5cf..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-section.xml +++ /dev/null @@ -1,807 +0,0 @@ - - - - - {section},{sectionelse} - - Секции используются для обхода - массивов данных - (так же, как и {foreach}). - Каждый тэг {section} должен иметь пару - {/section}. Обязательными параметрами являются - name и loop. Имя цикла - {section} может быть любым, состоящим из букв, цифр и знаков - подчеркивания. Циклы {section} могут быть вложенными - и имена вложенных {section} должны быть уникакльными между собой. - Переменная loop (обычно - массив значений) - определяет количество итераций цикла. - При печати переменных внутри секции, имя секции должно быть указано - рядом с именем переменной внутри квадратных скобок []. - {sectionelse} выполняется в том случае, если - параметр loop не содержит значений. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Да - n/a - Название секции - - - loop - mixed - Да - n/a - Значение, определяющее количество итераций цикла. - - - start - integer - Нет - 0 - - Индекс позиции, с которой будет начинаться - цикл. Если значение отрицательное, то начальная позиция - вычисляется от конца массива. Например, если в переменной - цикла 7 элементов и значение атрибута start равно -2, то - начальный индекс будет 5. Неверные значения (значения, вне - массива) автоматически обрезаются до ближайшего верного - значения. - - - - step - integer - Нет - 1 - - Значение шага, которое используется для прохода по - массиву. Например, step=2 указывает обход массива - по элементам 0,2,4... Если шаг отрицателен, то обход - массива будет производится в обратном направлении. - - - - max - integer - Нет - 1 - Максимальное количество итераций цикла. - - - show - boolean - Нет - true - Указывает, показывать или нет эту секцию - - - - - - - {section} - -assign('custid',$data); - -?> -]]> - - - -{/section} -
    -{* этот пример напечатает все значения массива $custid в обратном порядке *} -{section name=foo loop=$custid step=-1} - {$custid[foo]}
    -{/section} -]]> -
    - - Результат выполнения данного примера: - - - -id: 1001
    -id: 1002
    -
    -id: 1002
    -id: 1001
    -id: 1000
    -]]> -
    - - Ещё немного примеров без присвоенного массива. - - - -{section name=bar loop=21 max=6 step=-2} - {$smarty.section.bar.index} -{/section} -]]> - - - Результат выполнения данного примера: - - - -20 18 16 14 12 10 -]]> - -
    - - - Переменная loop команды {section} - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -?> -]]> - - - - id: {$custid[customer]}
    - name: {$name[customer]}
    - address: {$address[customer]} -

    -{/section} -]]> -
    - - Результат выполнения данного примера: - - - - id: 1000
    - name: John Smith
    - address: 253 N 45th -

    -

    - id: 1001
    - name: Jack Jones
    - address: 417 Mulberry ln -

    -

    - id: 1002
    - name: Jane Munson
    - address: 5605 apple st -

    -]]> -
    -
    - - - именование {section} - - - id: {$custid[anything]}
    - name: {$name[anything]}
    - address: {$address[anything]} -

    -{/section} -]]> -
    -
    - - - вложенные секции - -assign('custid',$id); - -$fullnames = array('John Smith','Jack Jones','Jane Munson'); -$smarty->assign('name',$fullnames); - -$addr = array('253 N 45th', '417 Mulberry ln', '5605 apple st'); -$smarty->assign('address',$addr); - -$types = array( - array( 'home phone', 'cell phone', 'e-mail'), - array( 'home phone', 'web'), - array( 'cell phone') - ); -$smarty->assign('contact_type', $types); - -$info = array( - array('555-555-5555', '666-555-5555', 'john@myexample.com'), - array( '123-456-4', 'www.example.com'), - array( '0457878') - ); -$smarty->assign('contact_info', $info); -?> -]]> - - - - id: {$custid[customer]}
    - name: {$name[customer]}
    - address: {$address[customer]}
    - {section name=contact loop=$contact_type[customer]} - {$contact_type[customer][contact]}: {$contact_info[customer][contact]}
    - {/section} -{/section} -]]> -
    - - Результат выполнения данного примера: - - - - id: 1000
    - name: John Smith
    - address: 253 N 45th
    - home phone: 555-555-5555
    - cell phone: 666-555-5555
    - e-mail: john@myexample.com
    -
    - id: 1001
    - name: Jack Jones
    - address: 417 Mulberry ln
    - home phone: 123-456-4
    - web: www.example.com
    -
    - id: 1002
    - name: Jane Munson
    - address: 5605 apple st
    - cell phone: 0457878
    -]]> -
    -
    - - - секции и ассоциативные массивы - - 'John Smith', 'home' => '555-555-5555', - 'cell' => '666-555-5555', 'email' => 'john@myexample.com'), - array('name' => 'Jack Jones', 'home' => '777-555-5555', - 'cell' => '888-555-5555', 'email' => 'jack@myexample.com'), - array('name' => 'Jane Munson', 'home' => '000-555-5555', - 'cell' => '123456', 'email' => 'jane@myexample.com') - ); -$smarty->assign('contacts',$data); - -?> -]]> - - - - name: {$contacts[customer].name}
    - home: {$contacts[customer].home}
    - cell: {$contacts[customer].cell}
    - e-mail: {$contacts[customer].email} -

    -{/section} -]]> -
    - - Результат выполнения данного примера: - - - - name: John Smith
    - home: 555-555-5555
    - cell: 666-555-5555
    - e-mail: john@myexample.com -

    -

    - name: Jack Jones
    - home phone: 777-555-5555
    - cell phone: 888-555-5555
    - e-mail: jack@myexample.com -

    -

    - name: Jane Munson
    - home phone: 000-555-5555
    - cell phone: 123456
    - e-mail: jane@myexample.com -

    -]]> -
    - - Базы данных (например, PEAR или ADODB) - -assign('contacts',$db->getAll($sql) ); - -?> -]]> - - - - - Name>HomeCellEmail -{section name=co loop=$contacts} - - view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{/section} - -]]> - -
    - - - {sectionelse} - - -{sectionelse} - there are no values in $custid. -{/section} -]]> - - - - Секции так же имеют собственные переменные, которые содержат свойства секций. - Они обозначаются так: - {$smarty.section.sectionname.varname} - - - - Начиная с версии Smarty 1.5.0, синтаксис переменных свойств сессий был - изменен с {%sectionname.varname%} на {$smarty.section.sectionname.varname}. - Старый синтаксис всё ещё поддерживается, но вы увидите лишь примеры - нового синтаксиса. - - - - index - - index используется для отображения текущего индекса массива, - начиная с нуля (или с атрибута start, если он был указан) и увеличиваясь - на единицу (или на значение атрибута step, если он был указан). - - - Техническое Замечание - - Если атрибуты step и start не указаны, то index - аналогичен атрибуту секции iteration, кроме того, - что начинается с 0, а не с 1. - - - - свойства {section} index - - -{/section} -]]> - - - Результат выполнения данного примера: - - - -1 id: 1001
    -2 id: 1002
    -]]> -
    -
    -
    - - - index_prev - - index_prev используется для отображения предыдущего индекса цикла - На первой итерации он установлен в -1. - - - - - index_next - - index_next используется для отображения следующего индекса цикла - На последней итерации он всё же на единицу больше текущего (или на другое - значение, если указан атрибут step). - - - свойства {section} index_next и index_prev - -assign('custid',$data); - -?> -]]> - - - - - indexid - index_prevprev_id - index_nextnext_id - -{section name=cus loop=$custid} - - {$smarty.section.cus.index}{$custid[cus]} - {$smarty.section.cus.index_prev}{$custid[cus.index_prev]} - {$smarty.section.cus.index_next}{$custid[cus.index_next]} - -{/section} - -]]> - - - Результатом выполнения этого примера будет таблица, содержащая следующее: - - - - - - - - - iteration - - iteration используется для отображения текущего номера итерации цикла. - - - - Это значение не зависит от свойств start, step и max, в отличие от - свойства index. - Кроме того, итерации начинаются с единицы, а не с нуля, как индексы. - rownum - это синоним к - свойству iteration, они работают одинаково. - - - - свойство {section} iteration - -assign('custid',$id); - -?> -]]> - - - -{/section} -]]> - - - Результат выполнения данного примера: - - - -iteration=2 index=7 id=3007
    -iteration=3 index=9 id=3009
    -iteration=4 index=11 id=3011
    -iteration=5 index=13 id=3013
    -iteration=6 index=15 id=3015
    -]]> -
    - - Этот пример использует свойство iteration для - вывода заголовка таблицы через каждые пять строчек - (использует {if} - с оператором mod - остаток от деления). - - - -{section name=co loop=$contacts} - {if $smarty.section.co.iteration % 5 == 1} -  Name>HomeCellEmail - {/if} - -
    view - {$contacts[co].name} - {$contacts[co].home} - {$contacts[co].cell} - {$contacts[co].email} - -{/section} - -]]> - - - - - - first - - Параметр first установлен в true, если текущая итерация секции - является первой. - - - - - last - - Параметр last установлен в true, если текущая итерация секции - является последней. - - - свойства {section} first и last - - Этот пример проходит циклом по массиву $customers, - выводит заголовок на первой итерации и футер на последней - (использует свойство {section} total) - - - - idcustomer - {/if} - - - {$customers[customer].id}} - {$customers[customer].name} - - - {if $smarty.section.customer.last} - {$smarty.section.customer.total} customers - - {/if} -{/section} -]]> - - - - - - rownum - - rownum используется для отображения текущего номера итерации цикла, - начиная с единицы. Это синоним свойства iteration, они работа идентично. - - - - - loop - - loop используется для отображения последнего номера индекса, по которому - проходила итерация секции. Это свойство может быть использовано как внутри, - так и вне секции. - - - свойство {section} index - - -{/section} - -There were {$smarty.section.customer.loop} customers shown above. -]]> - - - Результат выполнения данного примера: - - - -1 id: 1001
    -2 id: 1002
    - -There were 3 customers shown above. -]]> -
    -
    -
    - - - show - - show используется в качестве параметра секции. - show является булевым значением, true или false. - Если false, секция не будет отображена. Если присутствует секция {sectionelse}, - вместо этого будет отображена она. - - - атрибут {section} show - - -{/section} - -{if $smarty.section.customer.show} - the section was shown. -{else} - the section was not shown. -{/if} -]]> - - - Результат выполнения данного примера: - - - -2 id: 1001
    -3 id: 1002
    - -the section was shown. -]]> -
    -
    -
    - - - total - - total используется для отображения количества итераций, через которые - пройдет эта секция. Это свойство может быть использовано как внутри, так - и вне секции. - - - свойство {section} total - - -{/section} - - There were {$smarty.section.customer.total} customers shown above. -]]> - - - Результат выполнения данного примера: - - - -2 id: 1002
    -4 id: 1004
    - -There were 3 customers shown above. -]]> -
    -
    - - См. также - {foreach} - и - $smarty.section. - -
    -
    - - diff --git a/docs/ru/designers/language-builtin-functions/language-function-strip.xml b/docs/ru/designers/language-builtin-functions/language-function-strip.xml deleted file mode 100644 index 66a60042..00000000 --- a/docs/ru/designers/language-builtin-functions/language-function-strip.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - {strip} - - Часто вебдизайнеры сталкиваются с проблемой, что пробелы и переносы - строк влияют на отображение HTML в броузере ("фишки" броузера), то - есть может понадобится склеить все тэги в шаблоне вместе, чтобы получить - желаемый результат. Но в результате получается нечитаемый или - трудноредактируемый шаблон. - - - В выводимом тексте, заключенном между тэгами {strip} и {/strip}, - удаляются повторные пробелы и переносы строк, перед отображением. - Так вы можете сохранив шаблон читаемым не волноваться насчет - лишних пробелов. - - - Техническое Замечание - - {strip}{/strip} не влияет на содержимое переменных шаблона. - Для этих целей используйте модификатор strip. - - - - тэги {strip} - - - - - - This is a test - - - - -{/strip} -]]> - - - Результат выполнения данного примера: - - - diff --git a/docs/ru/designers/language-combining-modifiers.xml b/docs/ru/designers/language-combining-modifiers.xml deleted file mode 100644 index be3b7621..00000000 --- a/docs/ru/designers/language-combining-modifiers.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - Комбинирование модификаторов - - Можно применять любое количество модификаторов к переменной. Они будут - применяться в порядке их упоминания слева направо. Модификаторы должны - быть разделены символом | (вертикальная черта). - - - Комбинирование модификаторов - -assign('articleTitle', 'Капля никотина убивает лошадь, хомячка разрывает на куски.'); - -?> -]]> - - - Содержимое шаблона: - - - - - - Результат выполнения данного примера: - - - - - - - diff --git a/docs/ru/designers/language-custom-functions.xml b/docs/ru/designers/language-custom-functions.xml deleted file mode 100644 index 3df1235b..00000000 --- a/docs/ru/designers/language-custom-functions.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Пользовательские Функции - - Smarty поставляется с несколькими пользовательскими - функциями, которые вы можете использовать в шаблонах. - - -&designers.language-custom-functions.language-function-assign; -&designers.language-custom-functions.language-function-counter; -&designers.language-custom-functions.language-function-cycle; -&designers.language-custom-functions.language-function-debug; -&designers.language-custom-functions.language-function-eval; -&designers.language-custom-functions.language-function-fetch; -&designers.language-custom-functions.language-function-html-checkboxes; -&designers.language-custom-functions.language-function-html-image; -&designers.language-custom-functions.language-function-html-options; -&designers.language-custom-functions.language-function-html-radios; -&designers.language-custom-functions.language-function-html-select-date; -&designers.language-custom-functions.language-function-html-select-time; -&designers.language-custom-functions.language-function-html-table; -&designers.language-custom-functions.language-function-mailto; -&designers.language-custom-functions.language-function-math; -&designers.language-custom-functions.language-function-popup; -&designers.language-custom-functions.language-function-popup-init; -&designers.language-custom-functions.language-function-textformat; - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-assign.xml b/docs/ru/designers/language-custom-functions/language-function-assign.xml deleted file mode 100644 index 1b3b1fa0..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-assign.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - {assign} - - {assign} используется для установки значения переменной - в процессе выполнения шаблона. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - var - string - Да - n/a - Имя переменной, значение которой будет - устанавливаться - - - value - string - Да - n/a - Устанавливаемое значение - - - - - - - {assign} - - - - - Результат выполнения данного примера: - - - - - - - - {assign} и арифметика - В этом сложном примере переменные должны заключаться в обратные кавычки - - - - - - - Доступ к переменным {assign} из PHP-скрипта. - - Чтобы получить доступ к переменным {assign} из PHP-скрипта, используйте функцию - get_template_vars(). - Обратите внимание, что переменные доступны только во время и после - выполнения шаблона, как видно из следующего примера: - - - - - -get_template_vars('foo'); - -// получаем шаблон в переменную-пустышку -$dead = $smarty->fetch('index.tpl'); - -// это выведет 'smarty', так как шаблон уже выполнен -echo $smarty->get_template_vars('foo'); - -$smarty->assign('foo','Even smarter'); - -// это выведет 'Even smarter' -echo $smarty->get_template_vars('foo'); - -?> -]]> - - - - - Следующие функции также могут опционально - назначать переменные шаблона. - - - - {capture}, - {include}, - {include_php}, - {insert}, - {counter}, - {cycle}, - {eval}, - {fetch}, - {math}, - {textformat} - - - - См. также - assign() - и - get_template_vars(). - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-counter.xml b/docs/ru/designers/language-custom-functions/language-function-counter.xml deleted file mode 100644 index be8bfe96..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-counter.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - {counter} - - {counter} используется для вывода счетчика. {counter} запоминает значение - счетчика на каждой итерации. Вы можете настроить значение, интервал - и направление счета, а так же определить, следует ли печатать это значение. - Вы можете использовать несколько счетчиков одновременно, назначив каждому - уникальное имя. Если вы явно не указываете имени, используется имя 'default'. - - - Если вы укажете специальный атрибут "assign", вывод счетчика будет назначен - соответствующей переменной шаблона вместо печати в шаблон. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Нет - default - Имя счетчика - - - start - number - Нет - 1 - Изначальное число, с которого начинается счет - - - skip - number - Нет - 1 - Интервал увеличения счетчика - - - direction - string - Нет - up - Направление счета (up/down) - - - print - boolean - Нет - true - Печатать ли значение счетчика - - - assign - string - Нет - n/a - Имя переменной шаблона для сохранения значения счетчика - - - - - - - {counter} - - -{counter}
    -{counter}
    -{counter}
    -]]> -
    - - Результат выполнения данного примера: - - - -2
    -4
    -6
    -]]> -
    -
    -
    - \ No newline at end of file diff --git a/docs/ru/designers/language-custom-functions/language-function-cycle.xml b/docs/ru/designers/language-custom-functions/language-function-cycle.xml deleted file mode 100644 index cecd32f0..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-cycle.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - {cycle} - - {cycle} is used to cycle though a set of values. This makes it easy - to alternate for example between two or more colors in a table, or cycle - through an array of values. - - - {cycle} используется для прохода через множество значений. - С его помощью можно легко реализовать чередование двух или более цветов в - таблице или пройтись циклом по массиву. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Нет - default - Название цикла - - - values - mixed - Да - N/A - - Значения, по которым будет производиться цикл. - Либо список, разделеный запятыми (либо другим указанным разделителем), - либо массив значений. - - - - print - boolean - Нет - true - Выводить значение, или нет - - - advance - boolean - Нет - true - Переключаться или нет на следующее значение - - - delimiter - string - Нет - , - Разделитель, используемый в атрибуте values. - - - assign - string - Нет - n/a - Имя переменной, которой будет присвоен вывод тэга - - - reset - boolean - Нет - false - Цикл будет установлен в начальное значение и не увеличен - - - - - - - Можно проходить через несколько множеств значений одновременно, - указав атрибут name. Имена должны быть уникальными. - - - Можно не отображать данный элемент, установив атрибут print в - false. Удобно для пропуска значения, без его вывода. - - - Атрибут advance используется для повтора значения. Если - установлен в true, то при следующем вызове {cycle} - будет выведено то же значение. - - - Если указан специальный атрибут "assign", то вывод {cycle} - присваивается переменной, вместо отображения. - - - - {cycle} - - - {$data[rows]} - -{/section} -]]> - - - - 1 - - - 2 - - - 3 - -]]> - - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-debug.xml b/docs/ru/designers/language-custom-functions/language-function-debug.xml deleted file mode 100644 index 2ebd51b7..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-debug.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - {debug} - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - output - string - Нет - javascript - Тип вывода (html или javascript) - - - - - - - {debug} выводит консоль отладки. Это работает независимо от - значения опции debug. - Так как этот тэг обрабатывается в процесе выполнения, то возможно - вывести только присвоенные переменные, - но не используемые шаблоны. - Но вы видите все переменные, доступные в области видимости текущего - шаблона. - - - См. также - Отладочная консоль. - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-eval.xml b/docs/ru/designers/language-custom-functions/language-function-eval.xml deleted file mode 100644 index 03481703..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-eval.xml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - {eval} - - {eval} используется для обработки переменной, как шаблона. - Можно использовать для таких вещей, как хранение шаблонных - тэгов/переменных в переменной или в файлах конфигруации. - - - Если указан специальный атрибут "assign", то вывод тэга eval - присваивается переменной, вместо отображения. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - var - mixed - Да - n/a - Переменная (или строка) для обработки - - - assign - string - Нет - n/a - Имя переменной, которой будет присвоен вывод - - - - - - - Техническое Замечание - - Переменные шаблоны обрабатываются так же, как и обычные шаблоны. - Они подвластны тем же правилам и ограничениям безопасности. - - - - - Техническое Замечание - - Переменные шаблоны компилируются при каждом вызове, скомпилированные версии - не сохраняются! - Однако, если кэширование включено, - вывод будет кэширован вместе с остальной частью шаблона. - - - - {eval} - - -emphend = -title = Welcome to {$company}'s home page! -ErrorCity = You must supply a {#emphstart#}city{#emphend#}. -ErrorState = You must supply a {#emphstart#}state{#emphend#}. -]]> - - - Шаблон: - - - - - - Результат выполнения данного примера: - - -city. -You must supply a state. -]]> - - - - - Другой пример использования {eval} - - Отображает имя сервера (заглавными буквами) и IP-адрес. - Переменная $str так же может быть результатом запроса к БД. - - -assign('foo',$str); -]]> - - - Шаблон: - - - - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-fetch.xml b/docs/ru/designers/language-custom-functions/language-function-fetch.xml deleted file mode 100644 index 7d526708..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-fetch.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - {fetch} - - fetch используется для отображения содержимого локальных файлов, - http- или ftp-страниц. - Если имя файла начинается с "http://", то веб-страница будет получена и - выведена. - Если имя файла начинается с "ftp://", то файл будет получен с ftp-сервера и - выведен. Для локальных файлов должен быть указан абсолютный путь, - либо путь относительно выполняемого PHP-файла. - - - Если указать специалньый атрибут "assign", то вывод функции {fetch} - будет присвоен переменной шаблона, вместо отображения. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - file - string - Да - n/a - файл, http или ftp сайт для отображния - - - assign - string - Нет - n/a - Имя переменной, которой будет присвоен вывод - - - - - - - Техническое Замечание - - HTTP переадресация не поддерживается. Убедитесь, что указываете - завершающие слэши, где это необходимо. - - - - Техническое Замечание - - Если включён режим $security - и указан файл из локальной файловой системы, то файл обработается лишь в - том случае, если он находятся в одной из указаных - безопасных папках. - - - - Пример {fetch} - -{$weather} -{/if} -]]> - - - - - См. также - {capture}, - {eval}, - {assign} - и - fetch(). - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml b/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml deleted file mode 100644 index e9d83db5..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-checkboxes.xml +++ /dev/null @@ -1,212 +0,0 @@ - - - - - {html_checkboxes} - - {html_checkboxes} является - пользовательской функцией, - которая создает группу флажков в HTML по указанной информации. - Также она обеспечивает отметку флажков по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. Весь вывод идет в формате XHTML. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Нет - checkbox - название списка флажков - - - values - array - Да, если не указан атрибут options - n/a - Массив значений для флажков - - - output - array - Да, если не указан атрибут options - n/a - массив названий флажков - - - selected - string/array - Нет - пусто - выбранный флажок(флажки) - - - options - associative array - Да, если не указаны атрибуты values и output - n/a - Ассоциативнй массив значений и названий - - - separator - string - Нет - пусто - строка разделяющая каждый флажок - - - labels - boolean - Нет - true - добавляет <label>-тэги к выводу - - - assign - string - Нет - пусто - сохранить тэги флажков в массив вместо вывода - - - - - - - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - - - {html_checkboxes} - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - шаблон: - - -"} -]]> - - - или где PHP код: - - -assign('cust_checkboxes', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') -); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - шаблон: - - -"} -]]> - - - оба примера выведут: - - -Joe Schmoe
    -
    -
    -
    -]]> -
    -
    - - - Пример с базой данных (к примеру, PEAR или ADODB): - - -assign('types',$db->getAssoc($sql)); - -$sql = 'select * from contacts where contact_id=12'; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - -"} -]]> - - - - См. также - {html_radios} - и - {html_options} - -
    - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-image.xml b/docs/ru/designers/language-custom-functions/language-function-html-image.xml deleted file mode 100644 index 6dfb2402..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-image.xml +++ /dev/null @@ -1,158 +0,0 @@ - - - - - {html_image} - - {html_image} является - пользовательской функцией, - которая создает HTML-тэги для изображений. Высота и ширина автоматически - вычислаются из файла изображения, если они не указаны явно. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - file - string - Да - n/a - название/путь к изображению - - - height - string - Нет - реальная высота изображения - высота изображения - - - width - string - Нет - реальная ширина изображения - ширина изображения - - - basedir - string - Нет - корень веб сервера - папка, от которой указаны относительные пути - - - alt - string - Нет - "" - альтернативное описание изображения - - - href - string - Нет - n/a - значение href, куда ссылается картинка - - - path_prefix - string - Нет - n/a - префикс пути результата - - - - - - - basedir - базовая папка для относительных путей. Если не указана, - то используется корень веб сервер - (переменная окружения DOCUMENT_ROOT). - Если $security включено, то путь к - файлу изображения должен быть в пределах безопасной директории. - - - Атрибут link указывает, куда ссылается изображение. Атрибут - link устанавливает значение атрибута href тэга А. Если указан - атрибут link, то изображение окружается выражениями <a - href="LINKVALUE"> и <a>. - - - path_prefix - это необязательный префикс, который - вы можете добавить к пути результата - Это удобно в случае, если вы хотите передать другое серверное имя для - изображения. - - - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - - - Техническое Замечание - - {html_image} требует обращение к диску для чтения изображения - и вычисления его размеров. Если не используется - кэширование шаблонов, - то тэг {html_image} лучше не использовать, а вставлять статичные тэги - изображений для достижения оптимального быстродействия. - - - - Пример работы html_image - - - - - Возможный результат обработки шаблона: - - - - - -]]> - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-options.xml b/docs/ru/designers/language-custom-functions/language-function-html-options.xml deleted file mode 100644 index 3e9ff4e2..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-options.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - - {html_options} - {html_options} является - пользовательской функцией, - которая создает группу HTML-тэгов option по указанной информации. - Также она обеспечивает выбор элемента по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - values - массив - Да, если не указан атрибут options - n/a - массив значений для выпадающего списка - - - output - массив - Да, если не указан атрибут options - n/a - массив названий для выпадающего списка - - - selected - string/array - Нет - пусто - Выбранный элемент(ы) - - - options - ассоциативный массив - Да, если не указаны атрибуты values и output - n/a - ассоциативный массив значений и названий - - - name - string - Нет - пусто - Название выпадающего списка - - - - - - - Если переданное значение - массив, оно будет принято за HTML-тэг <optgroup> - и отображено в виде групп. В элементе <optgroup> поддерживается рекурсия. - Весь вывод совместим с XHTML. - - - Если указан необязательный параметр name, список будет - окружен тэгом <select name="groupname"></select>. - В противном случае будут сгенерированы лишь элементы <option>. - - - Все параметры, которые не указаны выше, выводятся в виде - пар name/value в тэге <select>. Если необязательный - параметр name не указан, они игнорируются. - - - {html_options} - - Пример №1: - - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Шаблон: - - - - {html_options values=$cust_ids output=$cust_names selected=$customer_id} - -]]> - - - Пример №2: - - -assign('cust_options', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Шаблон: - - - - - - Результат выполнения обоих примеров будет следующим: - - - - - - - - -]]> - - - - {html_options} - Пример с базой данных (к примеру, PEAR или ADODB): - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id - from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Шаблон: - - - - - {html_options options=$contact_types selected=$contact.type_id} - -]]> - - - - См. также - {html_checkboxes} - и - {html_radios} - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-radios.xml b/docs/ru/designers/language-custom-functions/language-function-html-radios.xml deleted file mode 100644 index c7ae3034..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-radios.xml +++ /dev/null @@ -1,208 +0,0 @@ - - - - - {html_radios} -{html_radios} является - пользовательской функцией, - которая создает группу радиокнопок в HTML по указанной информации. - Также она обеспечивает выбор радиокнопки по умолчанию. - Параметры values и output являются обязательными, если не указан атрибут - options. Весь вывод идет в формате XHTML. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - name - string - Нет - radio - название элементов выбора - - - values - массив - Да, если не указан атрибут options - n/a - массив значений элементов выбора - - - output - массив - Да, если не указан атрибут options - n/a - массив названий элементов выбора - - - checked - string - Нет - пусто - Значение выбранного элемента - - - options - ассоциативный массив - Да, если не указаны атрибуты values и output - n/a - ассоциативный массив значений и названий - элементов выбора - - - separator - string - Нет - пусто - текст, разделяющий элементы выбора - - - assign - string - Нет - пусто - сохраняет тэги radio в массив, вместо вывода в шаблон - - - - - - - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <input>. - - - - {html_radios} - пример №1 - -assign('cust_ids', array(1000,1001,1002,1003)); -$smarty->assign('cust_names', array( - 'Joe Schmoe', - 'Jack Smith', - 'Jane Johnson', - 'Charlie Brown') - ); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Шаблон: - - -'} -]]> - - - - {html_radios} - пример №2 - -assign('cust_radios', array( - 1000 => 'Joe Schmoe', - 1001 => 'Jack Smith', - 1002 => 'Jane Johnson', - 1003 => 'Charlie Brown')); -$smarty->assign('customer_id', 1001); - -?> -]]> - - - Шаблон: - - -"} -]]> - - - Оба примера выведут следующее: - - - -Joe Schmoe
    -
    -
    -
    -]]> -
    -
    - - {html_radios} - пример с базой данных (к примеру, PEAR или ADODB): - -assign('contact_types',$db->getAssoc($sql)); - -$sql = 'select contact_id, name, email, contact_type_id ' - .'from contacts where contact_id='.$contact_id; -$smarty->assign('contact',$db->getRow($sql)); - -?> -]]> - - - Шаблон: - - -'} -]]> - - - - См. также - {html_checkboxes} - и - {html_options} - -
    - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-select-date.xml b/docs/ru/designers/language-custom-functions/language-function-html-select-date.xml deleted file mode 100644 index b3305f89..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-select-date.xml +++ /dev/null @@ -1,375 +0,0 @@ - - - - - {html_select_date} - - {html_select_date} является - пользовательской функцией, - которая создает выпадающее меню для выбора даты. - Она может отображать поля для года, месяца и дня. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - prefix - string - Нет - Date_ - префикс названий переменных - - - time - timestamp/ГГГГ-ММ-ДД - Нет - - текущее время в формате unix timestamp или ГГГГ-ММ-ДД - - используемое время - - - start_year - string - Нет - текущий год - - Начальный год в выпадающем списке. Либо указывается явно, либо - относительно текущего года (+/- N) - - - - end_year - string - Нет - аналогично start_year - - Конечный год в выпадающем списке. Либо указывается явно, либо - относительно текущего года (+/- N) - - - - display_days - boolean - Нет - true - выводить ли список дней - - - display_months - boolean - Нет - true - выводить ли список месяцев - - - display_years - boolean - Нет - true - выводить ли список лет - - - month_format - string - Нет - %B - Формат названия месяцев (strftime) - - - day_format - string - Нет - %02d - формат названия дней (sprintf) - - - day_value_format - string - Нет - %d - формат значения дней (sprintf) - - - year_as_text - boolean - Нет - false - Выводить ли значение года текстом - - - reverse_years - boolean - Нет - false - Выводить года в обратном порядке - - - field_array - string - Нет - null - - название переменной (name), которая будет - содержать выбранные значения в виде массива: - name[Day], name[Year], name[Month]. - - - - day_size - string - Нет - null - Устанавливает атрибут size тэга select для дней - - - month_size - string - Нет - null - Устанавливает атрибут size тэга select для месяцев - - - year_size - string - Нет - null - Устанавливает атрибут size тэга select для лет - - - all_extra - string - Нет - null - - Устанавливает дополнительные атрибуты для всех тэгов - select/input - - - - day_extra - string - Нет - null - - Устанавливает дополнительные атрибуты тэгов select/input для - дней - - - - month_extra - string - Нет - null - - Устанавливает дополнительные атрибуты тэгов select/input для месяцев - - - - year_extra - string - Нет - null - - Устанавливает дополнительные атрибуты тэгов select/input для лет - - - - field_order - string - Нет - MDY - Порядок следования полей (МДГ) - - - field_separator - string - Нет - \n - текст, разделяющий поля - - - month_value_format - string - Нет - %m - - формат значения месяца (strftime). - По умолчанию - %m (номер месяца). - - - - year_empty - string - Нет - null - - Если указан, первый пункт элемента для выбора года станет такой надписью - с пустым ("") значением. - Это удобно для создания надписей вроде "Пожалуйста, выберите год" в - качестве первого пункта выпадающего меню. - Обратите внимание, что вы можете использовать значения типа "-MM-DD" - для атрибута time, чтобы не выбирать год заранее. - - - - month_empty - string - No - null - - Если указан, первый пункт элемента для выбора месяца станет такой надписью - с пустым ("") значением. - Обратите внимание, что вы можете использовать значения типа "YYYY--DD" - для атрибута time, чтобы не выбирать месяц заранее. - - - - day_empty - string - No - null - - Если указан, первый пункт элемента для выбора дня станет такой надписью - с пустым ("") значением. - Обратите внимание, что вы можете использовать значения типа "YYY-MM-" - для атрибута time, чтобы не выбирать день заранее. - - - - - - - Все параметры, которые не указаны в списке, выводятся в виде - пар name/value в каждом созданном тэге <select> для дня, - месяца и года. - - - {html_select_date} - Шаблон: - - - - - Результат обработки шаблона: - - - - - - - ..... snipped ..... - - - - - - -]]> - - - - - {html_select_date} - - - - - Результатом обработки шаблона будет: (текущий год - 2000) - - - - - - - - - - - - - - - - - -]]> - - - - См. также - {html_select_time}, - date_format, - $smarty.now - и - Советы относительно дат. - - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-select-time.xml b/docs/ru/designers/language-custom-functions/language-function-html-select-time.xml deleted file mode 100644 index 85163405..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-select-time.xml +++ /dev/null @@ -1,343 +0,0 @@ - - - - - {html_select_time} - - {html_select_time} является - пользовательской функцией, - которая создает выпадающее меню для выбора времени. - Она может отображать поля для часа, минуты, секунды и меридиана. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - prefix - string - Нет - Time_ - префикс для имен переменных - - - time - timestamp - Нет - текущее время - какую дату/время использовать - - - display_hours - boolean - Нет - true - отображать ли часы - - - display_minutes - boolean - Нет - true - Отображать ли минуты - - - display_seconds - boolean - Нет - true - Отображать ли секунды - - - display_meridian - boolean - Нет - true - отображать ли меридиан (am/pm) - - - use_24_hours - boolean - Нет - true - использовать ли 24-часовой формат - - - minute_interval - integer - Нет - 1 - интервал пунктов выпадающего меню минут - - - second_interval - integer - Нет - 1 - интервал пунктов выпадающего меню секунд - - - field_array - string - Нет - n/a - присвоить значения массиву с таким именем - - - all_extra - string - Нет - null - добавляет дополнительные атрибуты к тэгам select/input - - - hour_extra - string - Нет - null - добавляет дополнительные атрибуты к тэгу select часа - - - minute_extra - string - Нет - null - добавляет дополнительные атрибуты к тэгу select минуты - - - second_extra - string - Нет - null - добавляет дополнительные атрибуты к тэгу select секунды - - - meridian_extra - string - Нет - null - добавляет дополнительные атрибуты к тэгу select меридиана - - - - - - - Атрибут time может иметь разные форматы. - Он может быть уникальной временной меткой (Unix timestamp), - строкой формата YYYYMMDDHHMMSS или любой другой строкой, - которую может обработать функция PHP - strtotime(). - - - {html_select_time} - Шаблон: - - - - - Результат обработки шаблона: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - См. также - $smarty.now, - {html_select_date} - и - Советы относительно дат. - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-html-table.xml b/docs/ru/designers/language-custom-functions/language-function-html-table.xml deleted file mode 100644 index 79f6a232..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-html-table.xml +++ /dev/null @@ -1,232 +0,0 @@ - - - - - {html_table} - - {html_table} является - пользовательской функцией, - которая распечатывает массив данных в HTML-тэг table. - Атрибут cols указывает, сколько в таблице будет колонок. - Атрибуты table_attr, tr_attr и - td_attr определяют атрибуты соответствующих элементов - таблицы - тэгов table, tr и td. Если параметры tr_attr - или td_attr являются массивами, их значения будут - использоваться циклически. trailpad - это значение, - помещаемое в пустые ячейки последней строки, если такие будут. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - loop - array - Да - n/a - массив данных для обработки - - - cols - mixed - Нет - 3 - - количество колонок в таблице. Если этот атрибут не указан, но указан - атрибут rows, то количество колонок автоматически вычисляется исходя - из количества строк и количества элементов для отображения, чтобы как - раз уместить все элементы. Если оба параметра (и rows, и cols) опущены, - cols принимает значение по умолчанию, равное 3. - Если параметр является списком или массивом, кол-во колонок рассчитывается - исходя из кол-ва элементов в списке или массиве. - - - - rows - integer - Нет - empty - - количество строк в таблице. Если этот атрибут не указан, но указан - атрибут cols, то количество строк автоматически вычисляется исходя - из кооичества колонок и количества элементов для отображения, чтобы как - раз уместить все элементы. - - - - inner - string - Нет - cols - - направление заполнения элементов таблицы из массива. - cols означает заполнение элементов колонки за колонкой. - rows означает заполнение элементов строка за строкой. - - - - caption - string - Нет - пусто - - текст, используемый в качестве заголовка таблицы. - - - - table_attr - string - Нет - border="1" - атрибуты для тэга table - - - th_attr - string - Нет - пусто - атрибуты для тэга th (значения массива отображаются циклично) - - - tr_attr - string - Нет - пусто - атрибуты для тэга tr (значения массива отображаются циклично) - - - td_attr - string - Нет - пусто - атрибуты для тэга td (значения массива отображаются циклично) - - - trailpad - string - Нет - &nbsp; - значение для заполнения пустых ячеек последней строки (если такие есть) - - - hdir - string - Нет - right - - направления заполнения каждой строки. доступные значения: - right (слева-направо) - и - left (справа-налево) - - - - vdir - string - Нет - down - - направление заполнения каждой колонки. доступные значения: - down (сверху-вниз) - и - up (снизу-вверх) - - - - - - - - - {html_table} - -assign('data',array(1,2,3,4,5,6,7,8,9)); -$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"')); -$smarty->display('index.tpl'); - -?> -]]> - - - Шаблон: - - - - - - Результат выполнения данного примера: - - - - -123 -456 -789 - - - - - - - - -
    1234
    5678
    9   
    - - - - - - - - - - - -
    firstsecondthirdfourth
    1234
    5678
    9   
    -]]> -
    -
    -
    - - diff --git a/docs/ru/designers/language-custom-functions/language-function-mailto.xml b/docs/ru/designers/language-custom-functions/language-function-mailto.xml deleted file mode 100644 index bbd9e127..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-mailto.xml +++ /dev/null @@ -1,179 +0,0 @@ - - - - - {mailto} - - {mailto} автоматически создает ссылки "mailto:" и опционально кодирует - их. Кодирование e-mail'ов на вашем сайте усложняет их обнаружение - автоматическими программами-анализаторами и является элементарным - способом защиты от спама. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - address - string - Да - n/a - адрес e-mail - - - text - string - Нет - n/a - название ссылки. По умолчанию: - адрес e-mail - - - encode - string - Нет - none - Способ кодирования e-mail. - Может быть none, - hex, javascript или - javascript_charcode. - - - cc - string - Нет - n/a - адреса e-mail для точной копии. - Адреса разделяются запятыми. - - - bcc - string - Нет - n/a - адреса e-mail для "слепой" копии. - Адреса разделяются запятыми. - - - subject - string - Нет - n/a - тема письма. - - - newsgroups - string - Нет - n/a - в какие конференции передавать. - конференции разделяются запятыми. - - - followupto - string - Нет - n/a - адреса для дальнейшего перенаправления. - Адреса разделяются запятыми. - - - extra - string - Нет - n/a - Дополнительный атрибуты, передаваемые в ссылку - такие как стили (style) - - - - - - - Техническое Замечание - - javascript - скорее всего наиболее полная форма кодирования, - хотя вы так же можете использовать шестнадцатиричное - кодирование. К сожалению, javascript не поддерживает - кодирование русских символов. - - - - Примеры использования {mailto} и результаты их обработки - -me@example.com
    - -{mailto address="me@example.com" text="send me some mail"} -send me some mail - -{mailto address="me@example.com" encode="javascript"} - - -{mailto address="me@example.com" encode="hex"} -m&..snipped...#x6f;m - -{mailto address="me@example.com" subject="Hello to you!"} -me@example.com - -{mailto address="me@example.com" cc="you@example.com,they@example.com"} -me@example.com - -{mailto address="me@example.com" extra='class="email"'} - - -{mailto address="me@example.com" encode="javascript_charcode"} - -]]> - - - - См. также - escape, - Сокрытие E-mail адреса - и - {textformat} - - -
    - diff --git a/docs/ru/designers/language-custom-functions/language-function-math.xml b/docs/ru/designers/language-custom-functions/language-function-math.xml deleted file mode 100644 index e262b349..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-math.xml +++ /dev/null @@ -1,189 +0,0 @@ - - - - - {math} - - {math} позволяет дизайнерам шаблонов проводить математические вычисления - в шаблоне. Любые числовые переменные шаблона могут быть использованы в - уравнениях, и результат будет выведен на месте этого тега. - Переменные, используемые в уравнении, передаются в виде параметров, - которые могут быть переменными шаблона или статическими значениями. - +, -, /, *, abs, ceil, cos, exp, floor, log, log10, max, min, pi, pow, - rand, round, sin, sqrt, srans и tan являются доступными операторами. - Обратитесь к документации PHP для получения дополнительной информации - по этим математическим функциям. - - - Если вы указываете специальный параметр "assign", результат выполнения - функции {math} будет присвоен переменной шаблона вместо вывода в шаблон. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - equation - string - Да - n/a - уравнение для выполнения - - - format - string - Нет - n/a - формат результата (sprintf) - - - var - numeric - Да - n/a - значение переменной уравнения - - - assign - string - Нет - n/a - имя переменной шаблона для сохранения результата - - - [var ...] - numeric - Да - n/a - значение переменной уравнения - - - - - - - Техническое Замечание - - {math} - это очень ресурсоёмкая функция из-за использования ею функции PHP - eval(). - Выполнение математических операций в PHP намного эффективнее, так что - по возможности используйте PHP для математических рассчетов и - присваивайте результат шаблону. - При любых обстоятельствах, избегайте повторяющихся вызовов функции {math}, - например внутри циклов - {section}. - - - - {math} - - Пример №1: - - - - - - Результат выполнения данного примера: - - - - - - Пример №2: - - - - - - Результат выполнения данного примера: - - - - - - Пример №3: - - - - - - Результат выполнения данного примера: - - - - - - Пример №4: - - - - - - Результат выполнения данного примера: - - - - - - - \ No newline at end of file diff --git a/docs/ru/designers/language-custom-functions/language-function-popup-init.xml b/docs/ru/designers/language-custom-functions/language-function-popup-init.xml deleted file mode 100644 index eb90063a..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-popup-init.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - {popup_init} - - {popup} - - это функция для интеграции - overLib, библиотеки, которая - используется для отображения всплывающих окон. Они используются для - контекстно-чувствительной информации, такой как окна справки и всплывающие - подсказки. {popup_init} должна быть вызвана только один раз, - желательно в тэге <head> в пределах каждой страницы, на которой вы - собираетесь использовать функцию - {popup}. - Путь может быть задан относительно обрабатываемого скрипта или в виде полного - адреса с доменом (но не относительно файла шаблона). - - - overLib - написана и поддерживается Эриком Босрупом (Erik Bosrup) и её домашняя страница находится по - адресу &url.overLib;. - - - - {popup_init} - - -{* popup_init должна быть вызвана один раз в начале страницы *} -{popup_init src='javascripts/overlib/overlib.js'} - -{* пример с полным адресом, включая домен *} -{popup_init src='http://www.example.com/my_js_libs/overlib/overlib.js'} - - -// результат выполнения первого примера - - - - -]]> - - - - \ No newline at end of file diff --git a/docs/ru/designers/language-custom-functions/language-function-popup.xml b/docs/ru/designers/language-custom-functions/language-function-popup.xml deleted file mode 100644 index 76471545..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-popup.xml +++ /dev/null @@ -1,449 +0,0 @@ - - - - - {popup} - - {popup} используется для создания высплывающих окон при помощи javascript. - Для обеспечения работы этой функции, предварительно ДОЛЖНА быть вызвана - функция {popup_init}. - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - text - string - Да - n/a - текст/html для отображения во всплывающем окне - - - trigger - string - Нет - onMouseOver - - Какое событие используется для активации всплывающего окна. - Может быть onMouseOver или onClick. - - - - sticky - boolean - Нет - false - Всплывающее окно закрывается кликом - - - caption - string - Нет - n/a - устанавливает заголовок окна - - - fgcolor - string - Нет - n/a - цвет всплывающего окна - - - bgcolor - string - Нет - n/a - цвет рамки всплывающего окна - - - textcolor - string - Нет - n/a - устанавливает цвет текста внутри всплывающего окна - - - capcolor - string - Нет - n/a - устанавливает цвет заголовка всплывающего окна - - - closecolor - string - Нет - n/a - устанавливает цвет надписи "закрыть" - - - textfont - string - Нет - n/a - устанавливает шрифт для главного текста - - - captionfont - string - Нет - n/a - устанавливает шрифт дла заголовка - - - closefont - string - Нет - n/a - устанавливает шрифт надписи "Закрыть" - - - textsize - string - Нет - n/a - устанавливает размер главного текста - - - captionsize - string - Нет - n/a - устанавливает размер заголовка - - - closesize - string - Нет - n/a - устанавливает размер надписи "Закрыть" - - - width - integer - Нет - n/a - устанавливает ширину всплывающего окна - - - height - integer - Нет - n/a - устанавливает высоту всплывающего окна - - - left - boolean - Нет - false - заставляет всплывающее окно появляться слева от курсора мыши - - - right - boolean - Нет - false - заставляет всплывающее окно появляться справа от курсора мыши - - - center - boolean - Нет - false - заставляет всплывающее окно появляться по центру курсора мыши - - - above - boolean - Нет - false - - Заставляет всплывающее окно появляться сверху от курсора. - Внимание: работает только если установлен атрибут height. - - - - below - boolean - Нет - false - заставляет всплывающее окно появляться снизу от курсора мыши - - - border - integer - Нет - n/a - делает рамку вокрут всплывающего окна тоньше или толще - - - offsetx - integer - Нет - n/a - как далеко от курсора будет отображаться всплывающее окно, - по горизонтали - - - offsety - integer - No - n/a - как далеко от курсора будет отображаться всплывающее окно, - по вертикали - - - fgbackground - url к картинке - Нет - n/a - определяет картинку, которая будет использована вместо цвета для - содержимого всплывающего окна. - - - bgbackground - url к картинке - No - n/a - определяет картинку, которая будет использована вместо цвета для - рамки всплывающего окна. Внимание: вам следует установить bgcolor в "", - иначе цвет так же будет отображаться. Внимание: когда присутствует ссылка - "Закрыть", Netscape будет перерисовывать ячеки таблицы, из-за чего результат - может быть неверным - - - closetext - string - Нет - n/a - устанавливает текст для надписи "Закрыть" - - - noclose - boolean - Нет - n/a - не отображать текст "Закрыть" для всплывающих окон с заголовком - - - status - string - Нет - n/a - устанавливает текст в строку статуса браузера - - - autostatus - boolean - Нет - n/a - устанавливает текст всплывающего окна в строку статуса браузера - Внимание: переназначает установку status - - - autostatuscap - string - Нет - n/a - устанавливает текст заголовка всплывающего окна в строку статуса - браузера. - NOTE: переназначает установки status и autostatus - - - inarray - integer - Нет - n/a - говорит overLib прочитать текст по этому индексу в - массиве ol_text, расположеном в overlib.js. Этот параметр - может быть использован вместо параметра text - - - caparray - integer - Нет - n/a - говорит overLib и прочитать заголовок по этому индексу в - массиве ol_caps - - - capicon - url - Нет - n/a - отображает картинку перед заголовком всплывающего окна - - - snapx - integer - Нет - n/a - прикрепляет всплывающее окно к каждому N-ому пикселю по горизонтали - - - snapy - integer - Нет - n/a - прикрепляет всплывающее окно к каждому N-ому пикселю по вертикали - - - fixx - integer - Нет - n/a - блокирует горизонтальное положение всплывающего окна. - Внимание: переназначает всё горизонтальное позиционирование - - - fixy - integer - Нет - n/a - блокирует вертикальное положение всплывающего окна. - Внимание: переназначает всё вертикальное позиционирование - - - background - url - Нет - n/a - устанавливает картинку для использования вместо фона таблицы - - - padx - integer,integer - Нет - n/a - делает горизонтальный отступ фоновой картинки для размещения текста. - Внимание: это двойная команда - - - pady - integer,integer - Нет - n/a - делает вертикальный отступ фоновой картинки для размещения текста. - Внимание: это двойная команда - - - fullhtml - boolean - Нет - n/a - дает вам возможность полностью контролировать html поверх фоновой - картинки. HTML-код ожидается в атрибуте "text" - - - frame - string - Нет - n/a - контролирует всплывающее окно в другом фрейме. - См. домашнюю страницу overlib для дополнительной информации по этой - функции - - - function - string - Нет - n/a - вызывает указанную функцию javascript и отображает возвращенное - значение во всплывающем окне - - - delay - integer - Нет - n/a - заставляет всплывающее окно вести себя как всплывающую подсказку. - Оно всплывет только после определенной задержки в миллисекундах. - - - hauto - boolean - Нет - n/a - автоматически определять, должна ли всплывающая подсказка быть - слева или справа от курсора мыши. - - - vauto - boolean - Нет - n/a - автоматически определять, должна ли всплывающая подсказка быть - выше или ниже курсора мыши. - - - - - - - {popup} - -mypage - -{* вы можете использовать HTML, ссылки и т.д. в тексте *} -mypage - -{* всплывающее окно над ячейкой таблицы *} -{$part_number} -]]> - - - - Другой хороший пример можно найти на в описании тэга - {capture}. - - - См. также - {popup_init} - и - overLib. - - - diff --git a/docs/ru/designers/language-custom-functions/language-function-textformat.xml b/docs/ru/designers/language-custom-functions/language-function-textformat.xml deleted file mode 100644 index 61d8cc59..00000000 --- a/docs/ru/designers/language-custom-functions/language-function-textformat.xml +++ /dev/null @@ -1,301 +0,0 @@ - - - - - {textformat} - - {textformat} - это - блоковая функция, - используемая для форматирования текста. Проще говоря, она убирает - лишние пробелы и спецсимволы, а так же форматирует параграфы добавляя - разрывы строк и отступы. - - - Вы можете указать параметры явно, либо использовать предустановленный - стиль. - На данный момент, единственным таким стилем является "email". - - - - - - - - - - - - Имя атрибута - Тип - Обязателен - По умолчанию - Описание - - - - - style - string - Нет - n/a - предустановленный стиль - - - indent - number - Нет - 0 - Количество символов для отступа на каждой строке - - - indent_first - number - Нет - 0 - Количество символов для отступа на первой строке - - - indent_char - string - Нет - (один пробел) - Символ (или набор символов), при помощи которых будет - осуществляться отступ - - - wrap - number - Нет - 80 - Максимальное количество символов, после которого будет вставлен - перенос строки - - - wrap_char - string - Нет - \n - Символ (или набор символов), при помощи которых будет - осуществляться перенос строки - - - wrap_cut - boolean - Нет - false - Если true, перенос строки будет разбивать строку на любом символе, - а не только на границе слов - - - assign - string - Нет - n/a - переменная шаблона для присвоения результата работы функции - - - - - - - {textformat} - - - - - Результат выполнения данного примера: - - - - - - - - - Результат выполнения данного примера: - - - - - - - - - Результат выполнения данного примера: - - - - - - - - - Результат выполнения данного примера: - - - - - - - См. также - {strip} - и - {wordwrap}. - - - - \ No newline at end of file diff --git a/docs/ru/designers/language-modifiers.xml b/docs/ru/designers/language-modifiers.xml deleted file mode 100644 index 6e2290d2..00000000 --- a/docs/ru/designers/language-modifiers.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - Модификаторы переменных - - Модификаторы переменных могут быть прмменены к - переменным, - пользовательским функциям - или строкам. Для их применения надо после модифицируемого значения - указать символ | (вертикальная черта) и название модификатора. - Так же модификаторы могут принимать параметры, которые влияют на их поведение. - Эти параметры следуют за названием модификатора и разделяются - : (двоеточием). Кроме того, все функции PHP - могут быть использованы в качестве модификаторов (об этом дальше) - и модификаторы можно - комбинировать. - - - Примеры модификаторов - - - {html_options output=$myArray|upper|truncate:20} - -]]> - - - - - - - Если модификатор применяется к переменной-массиву, то он будет применен к - каждому элементу массива. Если же требуется применить модификатор к массиву, - как к переменной, то необходимо перед именем модификатора указать символ - @. - - - Пример - - {$articleTitle|@count} - выведет количество елементов - в массиве $articleTitle используя стандартную - функцию PHP - count() - в качестве модификатора. - - - - - - - - Модификаторы автоматически загружаются из директории $plugins_dir - или могут быть явно зарегистрированы при помощи функции - - register_modifier(); - это удобно для использования функции как в PHP-коде, так и в шаблоне. - - - - Любая PHP-функция может быть использована в качестве модификатора. - Тем не менее, использование PHP-функций в качестве модификаторов - имеет две маленькие "ловушки": - - - - Во-первых, иногда порядок аргументов функции не самый удобный. - Форматирование $foo при помощи - {"%2.f"|sprintf:$float} - это рабочий, но - не совсем удобный вариант. - Больше подойдет {$float|string_format:"%2.f"}, - который предлагает дистрибутив Smarty). - - - - - - Во-вторых, в случае включения $security, все PHP-функции, которые будут - использованы как модификаторы, должны быть объявлены "безопасными" - в элементе MODIFIER_FUNCS массива - - $security_settings. - - - - - - - - - См. также - - register_modifier(), - - Комбинирование модификаторов и - Плагины - расширение функциональности Smarty. - - - &designers.language-modifiers.language-modifier-capitalize; - &designers.language-modifiers.language-modifier-cat; - &designers.language-modifiers.language-modifier-count-characters; - &designers.language-modifiers.language-modifier-count-paragraphs; - &designers.language-modifiers.language-modifier-count-sentences; - &designers.language-modifiers.language-modifier-count-words; - &designers.language-modifiers.language-modifier-date-format; - &designers.language-modifiers.language-modifier-default; - &designers.language-modifiers.language-modifier-escape; - &designers.language-modifiers.language-modifier-indent; - &designers.language-modifiers.language-modifier-lower; - &designers.language-modifiers.language-modifier-nl2br; - &designers.language-modifiers.language-modifier-regex-replace; - &designers.language-modifiers.language-modifier-replace; - &designers.language-modifiers.language-modifier-spacify; - &designers.language-modifiers.language-modifier-string-format; - &designers.language-modifiers.language-modifier-strip; - &designers.language-modifiers.language-modifier-strip-tags; - &designers.language-modifiers.language-modifier-truncate; - &designers.language-modifiers.language-modifier-upper; - &designers.language-modifiers.language-modifier-wordwrap; - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-capitalize.xml b/docs/ru/designers/language-modifiers/language-modifier-capitalize.xml deleted file mode 100644 index 9509066b..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-capitalize.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - capitalize - - Преобразовывает первые буквы каждого в переменной слова в заглавные. - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - boolean - Нет - false - Этот параметр определяет, распространяется ли действие - модификатора на слова с цифрами - - - - - - capitalize - -assign('articleTitle', 'next x-men film, x3, delayed.'); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - lower - и - upper - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-cat.xml b/docs/ru/designers/language-modifiers/language-modifier-cat.xml deleted file mode 100644 index e3a0050f..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-cat.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - cat - - Данная строка добавляется к модифицируемому значению переменной. - - - - - - - - - - - Позиция параметра - Тип - Обязателен - cat - Описание - - - - - 1 - string - Нет - пусто - Данная строка добавляется к - модифицируемому значению. - - - - - - - cat - -assign('articleTitle', "Psychics predict world didn't end"); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-count-characters.xml b/docs/ru/designers/language-modifiers/language-modifier-count-characters.xml deleted file mode 100644 index fa2b27b3..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-count-characters.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - count_characters - - Подсчитывает количество символов в переменной. - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - boolean - Нет - false - Определяет, учитывать ли пробелы при подсчете. - - - - - - - count_characters - -assign('articleTitle', 'Cold Wave Linked to Temperatures.'); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - count_words, - count_sentences - и - count_paragraphs. - - - \ No newline at end of file diff --git a/docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml b/docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml deleted file mode 100644 index 4329aac5..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-count-paragraphs.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - count_paragraphs - - Подсчитывает количество абзацев в переменной. - - - count_paragraphs - -assign('articleTitle', - "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\n - Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation." - ); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - count_characters, - count_sentences - и - count_words. - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml b/docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml deleted file mode 100644 index c47f68ce..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-count-sentences.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - count_sentences - - Подсчитывает количество предложений в переменной. - - - count_sentences - -assign('articleTitle', - 'Two Soviet Ships Collide - One Dies. - Enraged Cow Injures Farmer with Axe.' - ); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - count_characters, - count_paragraphs - и - count_words. - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-count-words.xml b/docs/ru/designers/language-modifiers/language-modifier-count-words.xml deleted file mode 100644 index a9d3a3a6..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-count-words.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - count_words - - Подсчитывает количество слов в переменной. - - - count_words - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); - -?> -]]> - - - Шаблон: - - - - - - Шаблон: - - - - - - - See also count_characters, - count_paragraphs and - count_sentences. - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-date-format.xml b/docs/ru/designers/language-modifiers/language-modifier-date-format.xml deleted file mode 100644 index 098c32aa..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-date-format.xml +++ /dev/null @@ -1,279 +0,0 @@ - - - - - date_format - - Форматирует дату согласно указанному формату - strftime(). - Даты могут быть переданы Smarty в виде - временных меток unix, - временных меток mysql или в виде любой строки, содержащей день, месяц и - год, которую может обработать функция - strtotime(). - Дизайнер могут использовать date_format для получения полного контроля - над форматированием даты. Если дата, переданная в - date_format, пуста и второй аргумент передан, он будет - использоваться в качестве даты для форматирования. - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Нет - %b %e, %Y - Это формат для обрабатываемой даты. - - - 2 - string - Нет - n/a - Это дата по умолчанию, если входящее значение пустое. - - - - - - - - - Начиная со Smarty-2.6.10, числовые значения, передаваемые в date_format, - всегда рассматриваются как временная метка unix - (кроме временных меток mysql, см. ниже). - - - До Smarty-2.6.10, числовые строки, которые так же могли быть обработаны - функцией strtotime() в php (к примеру, "ГГГГММДД"), иногда - - в зависимости от конкретной реализации strtotime() - интерпретировались - как строки с датой, а не временные метки. - - - Единственное исключение - это временные метки mysql: Они так же - являются числовыми и состоят из 14 символов ("ГГГГММДДЧЧММСС"). - Временные метки mysql имеют более высокий приоритет, чем временные - метки unix. - - - - - date_format - -assign('config',$config); -$smarty->assign('yesterday', strtotime('-1 day')); - -?> -]]> - - - Шаблон (использует $smarty.now): - - - - - - Результат обработки: - - - - - - - Конверсионные указатели date_format: - - - %a - сокращенное название дня недели, в зависимости от текущей локали - - - %A - полное название дня недели, в зависимости от текущей локали - - - %b - сокращенное название месяца, в зависимости от текущей локали - - - %B - полное название месяца, в зависимости от текущей локали - - - %c - формат даты и времени по умолчанию для текущей локали - - - %C - номер века (год, деленный на 100, представленный в виде целого в промежутке от 00 до 99) - - - %d - день месяца в десятичном формате (от 01 до 31) - - - %D - синоним %m/%d/%y - - - %e - день месяца в десятичном формате без ведущего нуля (от 1 до 31) - - - %g - Week-based year within century [00,99] - - - %G - Week-based year, including the century [0000,9999] - - - %h - синоним %b - - - %H - часы по 24-часовым часам (от 00 до 23) - - - %I - часы по 12-часовым часам (от 01 до 12) - - - %j - день года (от 001 до 366) - - - %k - часы по 24-часовым часам без ведущего нуля (от 0 до 23) - - - %l - часы по 12-часовым часам без ведущего нуля (от 1 до 12) - - - %m - номер месяца (от 01 до 12) - - - %M - минуты - - - %n - символ новой строки - - - %p - `am' или `pm', в зависимости от заданного формата времени и текущей локали. - - - %r - time in a.m. and p.m. notation - - - %R - time in 24 hour notation - - - %S - секунды - - - %t - символ табуляции - - - %T - время в формате %H:%M:%S - - - %u - номер дня недели [1,7], где 1-ый день - понедельник - - - %U - номер недели в году, считая первое воскресенья года первым днем первой недели - - - %V - номер недели в году (по ISO 8601:1988) в диапазоне от 01 до 53, где первая неделя - та, у которой хотя бы 4 дня находятся в данном году. Понедельник считается - первым днем недели. - - - %w - номер дня недели, где 0 - воскресенье - - - %W - номер недели в году, считаю первый понедельник первым днем первой недели. - - - %x - предпочтительное представление даты для текущих настроек locale без времени - - - %X - предпочтительное представление времени для текущих настроек locale без даты - - - %y - год в виде десятичного числа без века (от 00 до 99) - - - %Y - год в виде десятичного числа включая век - - - %Z - часовой пояс или имя или сокращение - - - %% - буквальный символ `%' - - - - Замечание для программистов - - date_format является обычной оберткой для функции - PHP strftime(). - Вы можете располагать больш или меньшим количеством - доступных конверсионных указателей в зависимости от функции - strftime() той системы, - где был скомпилирован PHP. Обратитесь к руководству вашей системы для - получения полного списка доступных указателей. - - - - - См. также - $smarty.now, - функция php strftime(), - {html_select_date} - и - даты. - - - - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-default.xml b/docs/ru/designers/language-modifiers/language-modifier-default.xml deleted file mode 100644 index 5a175656..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-default.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - default - - Используется для установки значения по умолчанию для переменной. - Если переменная не установлена или является пустой строкой, указанное - значение по умолчанию будет подставлено вместо неё. - - - - - - Если директива error_reporting установлена в E_ALL, необъявленные переменные - всегда будут отображать ошибку в шаблоне. Эта функция полезна для замены - пустых значений или строк нулевой длинны. - - - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Нет - empty - Это значение по умолчанию для вывода, если переменная пуста. - - - - - - - default - -assign('articleTitle', 'Dealers Will Hear Car Talk at Noon.'); -$smarty->assign('email',''); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - Обработка переменных по умолчанию - и - Обработка пустых переменных. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-escape.xml b/docs/ru/designers/language-modifiers/language-modifier-escape.xml deleted file mode 100644 index 3f1d8af4..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-escape.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - escape - - Используется для кодирования / экранирования спецсимволов по алгоритмам - экранирования HTML, URL'ов, одиночных кавычек, hex-экранирования, - hex-сущностей, javascript и экранирования почтовых адресов. - По умолчанию активирован режим экранирования HTML. - - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - Possible Values - По умолчанию - Описание - - - - - 1 - string - Нет - html,htmlall,url,urlpathinfo,quotes,hex,hexentity,javascript,mail - html - формат экранирования - - - 2 - string - Нет - ISO-8859-1, UTF-8, ... любая кодировка, поддерживаемая функцией htmlentities() - - ISO-8859-1 - Кодировка для экранирования, передаваемая в htmlentities() и т.д. - - - - - - - escape - -assign('articleTitle', - "'Stiff Opposition Expected to Casketless Funeral Plan'" - ); -$smarty->assign('EmailAddress','smarty@example.com'); -?> -]]> - - - Шаблон: - - - *} -{$articleTitle|escape:'htmlall'} {* экранирует ВСЕ HTML-сущности *} -{$articleTitle|escape:'url'} -{$articleTitle|escape:'quotes'} -{$EmailAddress|escape:"hexentity"} -{$EmailAddress|escape:'mail'} {* конвертирует e-mail в текст *} -{'mail@example.com'|escape:'mail'} -]]> - - - Результат обработки: - - -bob..snip..et -smarty [AT] example [DOT] com -mail [AT] example [DOT] com -]]> - - - Обратите внимание, что родные функции PHP могут использоваться в качестве - модификаторов, так что следующие приёмы сработают - - -click here - ]]> - - - Это очень полезно для e-mail'ов, но см. также - {mailto} - - -{$EmailAddress|escape:'mail'} -]]> - - - - - См. также - Предотвращение обработки Smarty, - {mailto} - и - Сокрытие E-mail адреса. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-indent.xml b/docs/ru/designers/language-modifiers/language-modifier-indent.xml deleted file mode 100644 index 81aadb6c..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-indent.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - indent - - Создает отступы в начале каждой строки, по умолчанию - 4 пробела. - В качестве необязательных аргументов можно указать количество повторений - символа и сам символ, который будет использоваться для создания отступов. - (используйте "\t" для табуляции). - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - integer - Нет - 4 - Определяет количество повторений символа при создании отступа. - - - 2 - string - Нет - (один пробел) - Символ, который используется при создании отступа. - - - - - - - indent - -assign('articleTitle', - 'NJ judge to rule on nude beach. -Sun or rain expected today, dark tonight. -Statistics show that teen pregnancy drops off significantly after 25.' - ); - - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - strip, - wordwrap - и - spacify. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-lower.xml b/docs/ru/designers/language-modifiers/language-modifier-lower.xml deleted file mode 100644 index efb68035..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-lower.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - lower - - Переводит строку в нижний регистр. Является эквивалентом функции PHP - strtolower(). - - - lower - -assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - upper - и - capitalize. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-nl2br.xml b/docs/ru/designers/language-modifiers/language-modifier-nl2br.xml deleted file mode 100644 index 13fddef9..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-nl2br.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - nl2br - - Превращает каждый перевод строки в тэг <br /> в указанной переменной. - Это эквивалент функции PHP - nl2br(). - - - nl2br - -assign('articleTitle', - "Sun or rain expected\ntoday, dark tonight" - ); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - -today, dark tonight -]]> - - - - См. также - word_wrap, - count_paragraphs - и - count_sentences. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml b/docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml deleted file mode 100644 index 99c50d65..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-regex-replace.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - regex_replace - - Поиск и замена при помощи регулярного выражения в переменной. - Используйте синтаксис из руководства к функции PHP preg_replace(). - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Да - n/a - Регулярное выражение для проведения замены. - - - 2 - string - Да - n/a - Строка, на которую будет проведена замена. - - - - - - - regex_replace - -assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say."); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - replace - и - escape. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-replace.xml b/docs/ru/designers/language-modifiers/language-modifier-replace.xml deleted file mode 100644 index 540e9cc4..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-replace.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - replace - - Простой поиск и замена в переменной. Это эквивалент функции PHP - str_replace(). - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Да - n/a - Строка текста, которую следует заменить. - - - 2 - string - Yes - n/a - Строка текста, на которую следует заменить. - - - - - - - replace - -assign('articleTitle', "Child's Stool Great for Use in Garden."); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - regex_replace - и - escape. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-spacify.xml b/docs/ru/designers/language-modifiers/language-modifier-spacify.xml deleted file mode 100644 index d8d4ce8d..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-spacify.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - spacify - - spacify is a way to insert a space between every character of a variable. - You can optionally pass a different character (or string) to insert. - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Нет - один пробел - Это вставляется между каждым символом переменной. - - - - - - - spacify - -assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.'); - -?> -]]> - - - Шаблон: - - - - - - Результат: - - - - - - - См. также - wordwrap - и - nl2br. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-string-format.xml b/docs/ru/designers/language-modifiers/language-modifier-string-format.xml deleted file mode 100644 index 7afe9e81..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-string-format.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - string_format - - Этот модификатор используется для форматирования строк, таких как десятичные - числа и т.д. - Используйте синтаксис от - sprintf() для форматирования. - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - string - Да - n/a - Формат для использования (sprintf). - - - - - - - string_format - -assign('number', 23.5787446); - -?> -]]> - - - Шаблон: - - - - - - This should output: - - - - - - - См. также - date_format. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml b/docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml deleted file mode 100644 index 730b9ad1..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-strip-tags.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - strip_tags - - Удаляет тэги разметки. Грубо говоря, всё, что находится между < и >, - включительно. - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - bool - Нет - true - Определяет, будут тэги заменяться на ' ' или на '' - - - - - - - strip_tags - -assign('articleTitle', - "Blind Woman Gets New -Kidney from Dad she Hasn't Seen in years." - ); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - -New Kidney from Dad she Hasn't Seen in years. -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years . -Blind Woman Gets New Kidney from Dad she Hasn't Seen in years. -]]> - - - - \ No newline at end of file diff --git a/docs/ru/designers/language-modifiers/language-modifier-strip.xml b/docs/ru/designers/language-modifiers/language-modifier-strip.xml deleted file mode 100644 index 52d6170c..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-strip.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - strip - - Заменяет все повторяющиеся пробелы, переводы строк и символы табуляции - одним пробелом (или другой указанной строкой). - - - Обратите внимание - - Если вы хотите обработать блоки текста в шаблоне аналогичным образом, - воспользуйтесь функцией {strip}. - - - - strip - -assign('articleTitle', "Grandmother of\neight makes\t hole in one."); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - {strip} - и - truncate. - - - \ No newline at end of file diff --git a/docs/ru/designers/language-modifiers/language-modifier-truncate.xml b/docs/ru/designers/language-modifiers/language-modifier-truncate.xml deleted file mode 100644 index e9d6dfaf..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-truncate.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - truncate - - Обрезает переменную до определенной длинны, по умолчанию - 80 символов. - В качестве необязательного второго параметра, вы можете передать строку - текста, которая будет отображатся в конце обрезанной переменной. - Символы этой строки не включаются в общую длинну обрезаемой строки. - По умолчанию, truncate попытается обрезать строку в промежутке между словами. - Если вы хотите обрезать строку строго на указаной длинне, передайте в третий - необязательный параметр значение true. - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - integer - Нет - 80 - Определяет максимальную длинну обрезаемой строки. - - - 2 - string - Нет - ... - Текстовая строка, которая заменяет обрезанный текст. Её длинна - НЕ включена в максимальную длинну обрезаемой строки. - - - 3 - boolean - Нет - false - Определяет, обрезать ли строку в промежутке между словами (false) - или строго на указаной длинне (true). - - - 4 - boolean - Нет - false - Определяет, нужно ли обрезать строку в конце (false) или в - середине строки (true). Обратите внимание, что при включении этой - опции, промежутки между словами игнорируются. - - - - - - - truncate - -assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-upper.xml b/docs/ru/designers/language-modifiers/language-modifier-upper.xml deleted file mode 100644 index 9fd29a39..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-upper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - upper - - Переводит строку в верхний регистр. Является эквивалентом функции PHP - strtoupper(). - - - upper - -assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); - -?> -]]> - - - Шаблон: - - - - - - Результат обработки: - - - - - - - См. также - lower - и - capitalize. - - - - diff --git a/docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml b/docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml deleted file mode 100644 index e7ad15f5..00000000 --- a/docs/ru/designers/language-modifiers/language-modifier-wordwrap.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - wordwrap - - wordwrap вставляет переводы строк на определенной ширине - колонки, по умолчанию - 80 символов. В качестве необязательного второго - аргумента вы можете передать текстовую строку, используемую в качестве - перевода строки (по умолчанию - символ перевода строки \n). - По умолчанию, wordwrap попытается вставить перевод строки в промежуток между - словами. Если вы хотите, чтобы строка обрывалась строго на определенной - длинне, передайте в третий необязательный параметр значение true. - Это эквивалент функции PHP wordwrap(). - - - - - - - - - - - - Позиция параметра - Тип - Обязателен - По умолчанию - Описание - - - - - 1 - integer - Нет - 80 - Определяет количество колонок, после которых текст будет переведен - на новую строку. - - - 2 - string - Нет - \n - Эта строка используется в качестве символа перевода строки. - - - 3 - boolean - Нет - false - Определяет, переводить ли строку в промежутках между словами - (false), или строго на заданой длинне строки (true). - - - - - - - wordwrap - -assign('articleTitle', - "Blind woman gets new kidney from dad she hasn't seen in years." - ); - -?> -]]> - - - Шаблон: - - -\n"} - -{$articleTitle|wordwrap:30:"\n":true} -]]> - - - Результат обработки: - - - -from dad she hasn't seen in
    -years. - -Blind woman gets new kidney -from dad she hasn't seen in -years. -]]> -
    -
    - - См. также nl2br - и - {textformat}. - -
    - - - diff --git a/docs/ru/designers/language-variables.xml b/docs/ru/designers/language-variables.xml deleted file mode 100644 index d92c017d..00000000 --- a/docs/ru/designers/language-variables.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - Переменные - - Smarty имеет несколько различных типов переменных. Он зависит от - символа, с которого начинается, или в какой заключена переменная. - - - Переменные в Smarty могут быть отображены или использованы как - функции, - аргументы, - модификаторы, - внутри выражений условных операторов и т.д. Для - вывода значения переменной необходимо указать имя переменной - между разделителями. - - - Пример использования переменных - -{$product.description} - -{$Contacts[row].Phone} - - -]]> - - - - Полезный совет - - При помощи - отладочной консоли - можно легко просмотреть значения переменных Smarty. - - - - - &designers.language-variables.language-assigned-variables; - &designers.language-variables.language-config-variables; - &designers.language-variables.language-variables-smarty; - - - diff --git a/docs/ru/designers/language-variables/language-assigned-variables.xml b/docs/ru/designers/language-variables/language-assigned-variables.xml deleted file mode 100644 index 54511004..00000000 --- a/docs/ru/designers/language-variables/language-assigned-variables.xml +++ /dev/null @@ -1,197 +0,0 @@ - - - - - Переменные, назначенные из PHP - - К переменным, которые были - назначены из PHP можно обратиться, - указав перед их именем знак доллара ($). - Переменные, назначенные внутри шаблона при помощи функции - {assign} - работают таким же образом. - - - Назначенные переменные - PHP-скрипт - -assign('firstname', 'Doug'); -$smarty->assign('lastname', 'Evans'); -$smarty->assign('meetingPlace', 'New York'); - -$smarty->display('index.tpl'); - -?> -]]> - - - Содержимое index.tpl: - - - -{* это не сработает, потому что переменные чувствительны к регистру *} -This weeks meeting is in {$meetingplace}. -{* а это - сработает *} -This weeks meeting is in {$meetingPlace}. -]]> - - - Результат обработки: - - - -This weeks meeting is in . -This weeks meeting is in New York. -]]> - - - - Ассоциативные массивы - - Вы можете также обращаться к ассоциативным массивам, которые - назначены из PHP, указав ключ после символа '.' (точка). - - - Обращение к ассоциативному массиву - -assign('Contacts', - array('fax' => '555-222-9876', - 'email' => 'zaphod@slartibartfast.example.com', - 'phone' => array('home' => '555-444-3333', - 'cell' => '555-111-1234') - ) - ); -$smarty->display('index.tpl'); -?> -]]> - - - Содержимое index.tpl: - - - -{$Contacts.email}
    -{* you can print arrays of arrays as well *} -{$Contacts.phone.home}
    -{$Contacts.phone.cell}
    -]]> -
    - - Результат обработки: - - - -zaphod@slartibartfast.example.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - Индексы массивов - - Вы можете обращаться к массивам по их индексам примерно так же, - как и в самом PHP. - - - Обращение к массиву по индексу - -assign('Contacts', array( - '555-222-9876', - 'zaphod@slartibartfast.example.com', - array('555-444-3333', - '555-111-1234') - )); -$smarty->display('index.tpl'); -?> -]]> - - - Содержимое index.tpl: - - - -{$Contacts[1]}
    -{* you can print arrays of arrays as well *} -{$Contacts[2][0]}
    -{$Contacts[2][1]}
    -]]> -
    - - Результат обработки: - - - -zaphod@slartibartfast.example.com
    -555-444-3333
    -555-111-1234
    -]]> -
    -
    -
    - - Объекты - - К свойствам объектов, - назначенных из PHP, можно обратиться, указав имя свойства после символов - '->'. - - - Обращение к свойствам объекта - -name}
    -email: {$person->email}
    -]]> -
    - - Результат обработки: - - - -email: zaphod@slartibartfast.example.com
    -]]> -
    -
    -
    -
    - - diff --git a/docs/ru/designers/language-variables/language-config-variables.xml b/docs/ru/designers/language-variables/language-config-variables.xml deleted file mode 100644 index 9e11acf2..00000000 --- a/docs/ru/designers/language-variables/language-config-variables.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - Переменные файлов конфигурации - - Для использования переменных, полученных из - конфигурационных файлов, - необходимо заключить их имя между знаками # или через переменную - $smarty.config. - Для употребления их в качестве внедренныых переменных можно - использовать только второй способ. - - - Переменные из файлов конфигурации - - foo.conf: - - - - - - - - - index.tpl: - - - - - - -{#pageTitle#} - - - - - - - -
    FirstLastAddress
    - - -]]> - -
    - - - - index.tpl: (альтернативный синтаксис) - - - - - - -{$smarty.config.pageTitle} - - - - - - - -
    FirstLastAddress
    - - -]]> - -
    - - - результат выполнения обоих примеров: - - - - - - -This is mine - - - - - - - -
    FirstLastAddress
    - - -]]> -
    -
    - - Переменные из файлов конфигурации не могут быть использованы, - пока они не будут загружены. Эта процедура описана далее - в данном руководстве (config_load). - - - См. также - Переменные - и - Зарезервированная переменная - $smarty - -
    - diff --git a/docs/ru/designers/language-variables/language-variables-smarty.xml b/docs/ru/designers/language-variables/language-variables-smarty.xml deleted file mode 100644 index 24d32663..00000000 --- a/docs/ru/designers/language-variables/language-variables-smarty.xml +++ /dev/null @@ -1,207 +0,0 @@ - - - - - Зарезервированная переменная {$smarty} - - Зарезервированная переменная {$smarty} может быть использована для получения - доступа к нескольким переменным окружения и запроса. Далее следует их полный - список. - - - Переменные запроса - - К переменным запроса, - таким как $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV и $_SESSION - (см. $request_vars_order - и $request_use_auto_globals - ), можно получить доступ, как показано в следующем примере: - - - Отображение переменных запроса - - - - - - - По историческим соображениям, доступ к переменной {$SCRIPT_NAME} можно - получить непосредственно, хотя предпочтительным способом является обращение - {$smarty.server.SCRIPT_NAME}. - - -click me -click me -]]> - - - - - {$smarty.now} - - Текущая временная метка - содержится в переменной {$smarty.now}. Это значение отражает количество - секунд, которые прошли с момента наступления так называемой Эпохи - (1 января 1970 года). Её можно прямо передавать модификатору - date_format - для отображения текущей даты/времени. Обратите внимание, - что time() вызывается при каджом обращении; к примеру, скрипт, работающий - три секунды и вызывающий $smarty.now в начале и в конце работы, покажет - разницу в три секунды. - - - Использование {$smarty.now} - - - - - - - {$smarty.const} - - Вы можете обращаться к константам PHP напрямую. См. также Константы Smarty - - - Использование {$smarty.const} для доступа к константам - - - - - - - - - - - {$smarty.capture} - - Результат обработки шаблона, сохраненный конструкцией {capture}..{/capture}, - доступен при помощи переменной {$smarty.capture}. См. раздел о - {capture} - для получения примера. - - - - - {$smarty.config} - - Переменная {$smarty} может использоваться для обращения к загруженным конфигурационным переменным. - {$smarty.config.foo} является синонимом {#foo#}. См. раздел о - {config_load} - для получения примера. - - - - - {$smarty.section}, {$smarty.foreach} - - Переменную {$smarty} можно использовать для обращения к свойствам циклов - {section} и - {foreach}. - Это очень полезные значения вроде .first, .index и т.д. - - - - - {$smarty.template} - - Возвращает имя текущего обрабатываемого шаблона. Этот пример показывает - container.tpl и включенные в него banner.tpl, оба имеют вызов - {$smarty.template} - - -Main container is {$smarty.template} -{include file='banner.tpl} -]]> - - - результат обработки шаблона: - - -Main page if container.tpl -banner.tpl -]]> - - - - {$smarty.version} - - Возвращает версию Smarty, с которой был скомпилирован шаблон. - - -Powered by Smarty {$smarty.version} -]]> - - - - {$smarty.ldelim}, {$smarty.rdelim} - - Эти переменные используются для отображения левого и правого ограничителей - - так же, как и {ldelim},{rdelim}. - - - См. также - Переменные - и - Конфигурационные переменные - - - - diff --git a/docs/ru/getting-started.xml b/docs/ru/getting-started.xml deleted file mode 100644 index 74e00480..00000000 --- a/docs/ru/getting-started.xml +++ /dev/null @@ -1,714 +0,0 @@ - - - - - Приступая к работе - - - Что такое Smarty? - - Smarty - это компилирующий обработчик шаблонов для PHP. - Говоря более четко, он предоставляет один из инструментов, которые - позволяет добиться отделения прикладной логики и данных от - представления. Это очень удобно в ситуациях, когда программист и - верстальщик шаблона - различные люди. - - - - Например, скажем, вы создаете страницу, которая показывает газетную - статью. - - - - - Название статьи, автор и сама статья - элементы, которые не - содержат никакой информации о том, как они будут представлены. Их - передают - в Smarty из приложения. - - - - - Затем верстальщик шаблона редактирует - шаблоны и использует комбинацию тэгов HTML и - тэгов шаблона, - чтобы отформатировать представление этих - переменных, - содержащих элементы типа таблиц HTML, фоновых цветов, размеров шрифта, - стилей, SVG и т.д.). - - - - - Однажды программист захочет изменить способ хранения статьи, то есть - внести изменения в логику приложения. - Это изменение не вызовет изменений в шаблонах. Содержание будет все еще - передаваться в шаблон таким же самым способом. - - - - - Аналогично, если верстальщик захочет полностью перепроектировать - шаблоны, это не потребует никаких изменений в прикладной логике. - - - - - Таким образом, программист может вносить изменения в прикладную логику - без необходимости изменения шаблонов, а дизайнер шаблонов может - вносить изменения в шаблоны без вреда для прикладной логики. - - - - - - Одно из предназначений Smarty - это отделение логики приложения от - представления. - - - - - - Конечно же, шаблоны могут содержать в себе логику, но - лишь при условии, что эта логика необходима для правильного представления - данных. Такие задачи, как - подключение - других шаблонов, - чередующаяся - окраска строчек в таблице, - приведение букв к верхнему - регистру, - циклический проход - по массиву для его - отображения и т.д. - всё это - примеры логики представления. - - - - - Тем не менее, не следует полагать, что Smarty заставляет вас разделять - прикладную логику и логику представления. - Smarty не видит разницы между этими вещами, так что переносить - прикладную логику в шаблоны вы можете на свой страх и риск. - - - - - Если же вы считаете, что в шаблоне вообще - не должно быть логики, вы можете ограничиться использованием чистого - текста и переменных. - - - - - - Одна из уникальных возможностей Smarty - компилирование шаблонов. Это - означает, что Smarty читает файлы шаблонов и создает PHP-код на их основе. - Код создаётся один раз и потом только выполняется. Поэтому нет - необходимости в медленной обработке файл шаблона для каждого запроса. - Каждый шаблон может пользоваться всеми преимуществами таких компиляторов - PHP и кэшируюших решений, как - eAccelerator, - ionCube, - mmCache, - Zend Accelerator - и прочих. - - - Некоторые особенности Smarty: - - - - - Он очень быстр. - - - - - Он эффективен, так как обработчик PHP делает за него грязную работу. - - - - - Никакой лишней обработки шаблонов, они компилируются только один раз. - - - - - Перекомпилируются - только те шаблоны, которые изменились. - - - - - Вы можете легко создавать собственные пользовательские функции и - модификаторы переменных, - что делает язык шаблонов чрезвычайно расширяемым. - - - - - Настраиваемые - {разделители} тэгов - шаблона, то есть вы можете использовать - {$foo}, {{$foo}}, - <!--{$foo}--> и т.д. - - - - - Конструкции - - {if}..{elseif}..{else}..{/if} - передаются обработчику PHP, так что синтаксис выражения - {if...} может быть настолько простым или сложным, - насколько вам угодно. - - - - - Допустимо неограниченное вложение - секций, - условий и т.д. - - - - - Существует возможность - включения PHP-кода - прямо в ваш шаблон, однако обычно в этом нет необходимости - (и это не рекоммендуется), так как движок весьма гибок и - расширяем. - - - - - Встроенный механизм кэширования. - - - - - Произвольные источники - шаблонов. - - - - - Пользовательские функции - кэширования. - - - - - Компонентная архитектура. - - - - - - - - - - - Установка - - - Требования - - Для установки и работы Smarty необходим веб-сервер с установленным PHP - версии 4.0.6 или выше. - - - - Базовая установка - - Скопируйте файлы Smarty, которые находятся в субдиректории - /libs/ - дистрибутива. Редактировать эти PHP-файлы НЕ СЛЕДУЕТ. Они должны - использоваться всеми приложениями и изменяться только при обновлении - Smarty до новой версии. - - - В следующих примерах архив с исходным кодом Smarty был распакован в - - - - /usr/local/lib/Smarty-v.e.r/ - для машин под *nix - - - - - и - c:\webroot\libs\Smarty-v.e.r\ - для машин под Windows. - - - - - - - Необходимые файлы библиотеки Smarty - - - - - - Smarty использует константу PHP - - SMARTY_DIR, которая указывает - полный путь к директории - libs/ из Smarty. - Обычно, если ваше приложение может - найти файл Smarty.class.php, то нет необходимости - устанавливать - SMARTY_DIR - - Smarty сам во всём разберётся. - Однако, если - Smarty.class.php не может - быть найден в вашем include_path или вы не указывали абсолютный путь к - нему в приложении, то вы должны определить - SMARTY_DIR вручную. - SMARTY_DIR должна включать - завершающий слэш. - - - - - Вот как следует создавать экземпляр объекта Smarty в ваших PHP-скриптах: - - - -]]> - - - - - Попробуйте выполнить вышеуказанный код. Если Вы получаете ошибку о том, - что Smarty.class.php не найден, попробуйте следующие - варианты действий: - - - - Ручная установка константы SMARTY_DIR - - -]]> - - - - - Передача абсолютного пути к файлам библиотеки - - -]]> - - - - - Добавление библиотеки в путь в файле <filename>php.ini</filename> - - - - - - - - Дописывание include_path из PHP-скрипта используя - <literal><ulink url="&url.php-manual;ini-set">ini_set()</ulink></literal> - - - -]]> - - - - - Теперь, когда все файлы находятся на своих местах, пришло время - установки директорий Smarty в вашем приложении. - - - - - Smarty нужно четыре директории, которые по умолчанию называются - templates/, - templates_c/, - configs/ и - cache/ - - - - - Каждая из них определяется свойствами класса Smarty: - - $template_dir, - - $compile_dir, - - $config_dir и - - $cache_dir соответственно. - Настойчиво рекомендуется использовать разные наборы - этих директорий для каждого приложения, использующего Smarty. - - - - - - В нашем примере мы будем устанавливать Smarty для некоторой гостевой - книги. Приложение было выбрано только для того, чтобы использовать его - имя в именах директорий. Вы можете использовать те же настройки с любым - другим приложением, просто меняя guestbook/ - на имя вашего приложения. - - - - Вот как выглядит файловая структура - - - - - - - Убедитесь, что вы знаете расположение корневой директории документов - вашего веб-сервера. В следующих примерах, корневой директорией документов - является /web/www.example.com/guestbook/htdocs/. - Доступ к директориям Smarty происходит только из библиотеки Smarty и - никогда не происходит через веб-браузер. Поэтому, в целях безопасности - рекоммендуется располагать эти директории за пределами - корневой директории документов сервера, хотя это и не обязательно. - - - Вам понадобиться как минимум один файл внутри корневой директории - документов - это скрипт, вызываемый веб-браузером. Мы назовем наш скрипт - index.php и положим его в поддиректорию внутри - корневой директории документов /htdocs/. - - - - Smarty понадобятся права на запись - (пользователей Windows это не касается) в директории - - $compile_dir и - - $cache_dir - (templates_c/ и - cache/), - так что убедитесь, что у веб-сервера есть эти права. - - - - Обычно это пользователь nobody и группа - nobody. Для пользователей OS X, пользователь по умолчанию - - это www и группа - www. - Если вы используете Apache, вы можете узнать используемые - имя пользователя и группу из файла httpd.conf. - - - - - - Установка прав доступа к файлам и директориям - - - - - - - Примечание - - chmod 770 даёт достаточно жесткую защиту - - разрешает только пользователю - nobody и группе nobody доступ - на чтение и запись в эти директории. - Если вы хотите открыть доступ на чтение для всех (обычно для собственного - удобства при просмотре этих файлов), вы можете использовать значение - 775. - - - - - Нам необходимо создать файл index.tpl, - которы будет загружаться Smarty. - Он будет расположен в - - $template_dir. - - - - /web/www.example.com/guestbook/templates/index.tpl - - - - - - - Техническое замечание - - {* Smarty *} - это - комментарий шаблона. - Он не является обязательным, но его размещение в начале каждого шаблона - является хорошим тоном. Это позволяет проще различать файлы независимо - от их расширения. К примеру, текстовые редакторы могут узнавать этот - файл и включать особенную подсветку синтаксиса. - - - - - Теперь давайте отредактируем index.php. - Мы создадим экземпляр Smarty, - присвоим значение переменной шаблона и - отобразим файл - index.tpl. - - - - /web/www.example.com/docs/guestbook/index.php - -template_dir = '/web/www.example.com/guestbook/templates/'; -$smarty->compile_dir = '/web/www.example.com/guestbook/templates_c/'; -$smarty->config_dir = '/web/www.example.com/guestbook/configs/'; -$smarty->cache_dir = '/web/www.example.com/guestbook/cache/'; - -$smarty->assign('name', 'Катруська'); - -//** раскомментируйте следующую строку для отображения отладочной консоли -//$smarty->debugging = true; - -$smarty->display('index.tpl'); -?> -]]> - - - - - Примечание - - В нашем примере мы устанавливаем абсолютные пути ко всем директориям - Smarty. Если /web/www.example.com/guestbook/ - находится в include_path вашего PHP, то эти настройки не обязательны. - Тем не менее, более эффективным и (из опыта) менее глюкоопасным является - использование абсолютных путей. Это придаст уверенность в том, что Smarty - получает файлы из тех директорий, из которых вы хотите. - - - - - Теперь перейдите к файлу index.php при помощи вашего - веб-браузера. Вы должны увидеть надпись - "Привет, Катруська! Добро пожаловать в Smarty!" - - - Вы закончили базовую установку Smarty! - - - - Расширенная установка - - - Эта глава является продолжением базовой установки; пожалуйста, - сперва прочитайте её. - - - Немного более гибким способом установки Smarty является - наследование класса - и инициализация вашего собственного окружения Smarty. Таким образом, вместо - того, чтобы постоянно устанавливать пути директорий, присваивать одни и те - же переменные и т.д., мы можем всё это сделать в одном месте. - - - Давайте создадим новую директорию /php/includes/guestbook/,а в ней - - новый файл, который назовем setup.php. По условиям - нашего примера, /php/includes - находится в include_path. Убедитесь, чтобы - то же самое было и у вас, или используетй абсолютные пути. - - - - /php/includes/guestbook/setup.php - -Smarty(); - - $this->template_dir = '/web/www.example.com/guestbook/templates/'; - $this->compile_dir = '/web/www.example.com/guestbook/templates_c/'; - $this->config_dir = '/web/www.example.com/guestbook/configs/'; - $this->cache_dir = '/web/www.example.com/guestbook/cache/'; - - $this->caching = true; - $this->assign('app_name', 'Guest Book'); - } - -} -?> -]]> - - - - - Теперь давайте изменим index.php, - чтобы он использовал setup.php: - - - - /web/www.example.com/guestbook/htdocs/index.php - -assign('name','Ned'); - -$smarty->display('index.tpl'); -?> -]]> - - - - - Теперь вы видите, что создать экземпляр Smarty довольно просто - нужно лишь - использовать Smarty_GuestBook, который автоматически - инициализирует все настройки для нашего приложения. - - - - - - - - diff --git a/docs/ru/language-defs.ent b/docs/ru/language-defs.ent deleted file mode 100644 index 61d624ad..00000000 --- a/docs/ru/language-defs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/docs/ru/language-snippets.ent b/docs/ru/language-snippets.ent deleted file mode 100644 index 85ec1e5c..00000000 --- a/docs/ru/language-snippets.ent +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Техническое замечание - - Пераметр merge учитывает ключи массива, - поэтому если вы объединяете массивы с числовыми индексами, то они могут - наложиться друг на друга или привести к непоследовательному порядку ключей. - Результат отличается от действия функции PHP - array_merge(), - которая заново нумерует элементы в массиве с числовоми ключами. - -'> - - - Техническое замечание - - Если значение параметра function указано в виде - array(&$object, $method), только один экземпляр - данного класса с данным методом $method может быть зарегистрирован. - В таком случае, в силу вступает последний зарегистрированный параметр - function. - -'> - - - В качестве необязательного третьего аргумента вы можете передать - $compile_id. - Это полезно в случае, если вы хотите - скомпилировать несколько различных версий одного шаблона, например - несколько версий одного шаблона на разных языках. - Другое применение - $compile_id можно найти, - если вы используете несколько - $template_dir, - но только одну - $compile_dir. - Устанавливайте свой compile_id для каждой - $template_dir, - иначе шаблоны с одинаковыми именами будут сохраняться поверх друг друга. - Также вы можете один раз указать - $compile_id, - вместо того, чтобы каждый раз передавать его при вызове этой функции. -'> - - - Callback-функция PHP может быть: - - - - Либо строкой, содержащей имя функции. - - - - - Либо массивом вида array(&$object, $method), - где &$object - ссылка на объек, а - $method - строка, содержащая имя метода. - - - - - Либо массивом вида array($class, $method), - где $class - строка, содержащая имя класса, а - $method - строка, содержащая имя метода этого класса. - - - -'> diff --git a/docs/ru/livedocs.ent b/docs/ru/livedocs.ent deleted file mode 100644 index eca78c7b..00000000 --- a/docs/ru/livedocs.ent +++ /dev/null @@ -1,8 +0,0 @@ - - - - -'> -'> - - diff --git a/docs/ru/make_chm_index.html b/docs/ru/make_chm_index.html deleted file mode 100644 index cc6395ba..00000000 --- a/docs/ru/make_chm_index.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - Руководство Smarty - - - - - - - -

    - -

    -
    -

    Руководство Smarty

    -
    Monte Ohrt
    -
    Andrei Zmievski
    -
    Sergei Suslenkov
    -
    George Miroshnikov
    -
    -

    Этот файл был сгенерирован: [GENTIME]
    -Свежая версия этого руководства доступна по адресу -http://smarty.php.net/download-docs.php.

    - -
    - -
    - diff --git a/docs/ru/preface.xml b/docs/ru/preface.xml deleted file mode 100644 index 56797111..00000000 --- a/docs/ru/preface.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - Предисловие - - Несомненно, один из наиболее часто задаваемых вопросов в списках - рассылки PHP - "Как мне сделать свои PHP-скрипты независимыми - от дизайна?". Хотя PHP называют "скриптовым языком, встраиваемым - в HTML", после написания нескольких проектов, в которых PHP и HTML - свободно перемешиваются, многие понимают, что отделение формы от - содержания - это Хорошая Вещь [TM]. Кроме того, во многих компаниях - должности дизайнера и программиста разделены между собой. Так - начинается поиск обработчика шаблонов... - - - Например, в нашей компании разработка приложения идёт таким образом: - после того, как готова вся проектная документация, дизайнер интерфейса - создаёт макеты и передаёт их программисту. Программист реализовывает - логику приложения на PHP и использует макеты интерфейса для создания - базовых шаблонов. Затем проект передаётся HTML-дизайнеру/верстальщику, - который доводит шаблоны до совершенства. Проект может несколько раз - переходить из этапа HTML-вёрстки к этапу программирования и обратно. - Таким образом, важно иметь хорошую поддержку шаблонов, потому что - программисты не хотят иметь дела с HTML и не хотят, чтобы HTML-дизайнеры - копались в PHP-коде. Дизайнерам нужна поддержка конфигурационных - файлов, динамических блоков и прочих интерфейсных нюансов, но они не - хотят иметь дела со сложностями языка программирования PHP. - - - Глядя на множество обработчиков шаблонов, доступных сегодня для PHP, - большинство из них предоставляет базовые возможности подстановки - переменных в шаблоны и имеет ограниченную поддержку динамических блоков. - Но нам требовалось нечто большее. Мы хотели, чтобы программисты - ВООБЩЕ не имели дела с HTML, но это было практически неизбежно. - К примеру, если дизайнер хотел, чтобы два фоновых цвета чередовались - при отображении динамических блоков, эту задачу необходимо было решать - вместе с программистом. Нам также требовалось, чтобы дизайнеры могли - использовать собственные конфигурационные файлы и вставлять переменные - из этих файлов в шаблоны. И так далее. - - - Мы начали написание спецификации для обработчика шаблонов ещё в - 1999 году. Когда мы закончили спецификацию, мы начали работать - над обработчиком шаблонов, написанным на Си, которому, как мы надеялись, - разрешат стать частью PHP. Мы не только наткнулись на множество - технических барьеров, но было и большое количество споров относительно - того, что должен и не должен делать обработчик шаблонов. Благодаря этому - опыту мы решили, что обработчик шаблонов должен быть написан на PHP - в виде класса, чтобы каждый мог использовать его так, как хочет. - Затем мы написали движок, который соответствовал этим требованиям - и SmartTemplate появился на свет - (примечание: этот класс никогда не был опубликован). - Это был класс, который делал практически всё, что нам требовалось: - обыкновенная подстановка переменных, поддержка подключения других - шаблонов, интеграция с конфигурационными файлами, встраивание - PHP-кода, ограниченная поддержка условий 'if' и улучшенная - поддержка вложенных динамических блоков. Всё это достигалось - использованием регулярных выражений и в итоге у нас получился код, - который, скажем так, не позволял вносить в себя какие-либо изменения. - Кроме того, он прилично тормозил в крупных приложениях из-за большого - количества парсинга и регулярных выражений, которые обрабатывались - при каждом запросе. Наибольшей проблемой с программистской точки - зрения была та работа, которую нужно было провести над PHP-скриптом - для настройки и обработки шаблонов и динамических блоков. - Как же мы можем упростить это? - - - Затем пришло видение того, что в последствии переросло в Smarty. - Мы знали, как быстр PHP-код, если его не перегружать обработкой шаблонов. - Мы также знали, как всеобъемлюще и непонятно может выглядить язык PHP - для среднестатистического дизайнера, и что это можно замаскировать - при помощи более простого синтаксиса шаблонов. А почему бы нам - не объединить две эти силы? Так и родился Smarty... :-) - - - - diff --git a/docs/ru/programmers/advanced-features.xml b/docs/ru/programmers/advanced-features.xml deleted file mode 100644 index c4890edb..00000000 --- a/docs/ru/programmers/advanced-features.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Расширенные возможности - &programmers.advanced-features.advanced-features-objects; - &programmers.advanced-features.advanced-features-prefilters; - &programmers.advanced-features.advanced-features-postfilters; - &programmers.advanced-features.advanced-features-outputfilters; - &programmers.advanced-features.section-template-cache-handler-func; - &programmers.advanced-features.template-resources; - - diff --git a/docs/ru/programmers/advanced-features/advanced-features-objects.xml b/docs/ru/programmers/advanced-features/advanced-features-objects.xml deleted file mode 100644 index b14bf734..00000000 --- a/docs/ru/programmers/advanced-features/advanced-features-objects.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - Объекты - - Smarty позволяет использовать в шаблонах - объекты PHP. - Существуют два способа их вызова. Первый - - зарегистрировать объект для - шаблона, затем вызвать его примерно так же, как и - пользовательские функции. - Второй - назначить объект шаблону и использовать его, - как любую другую присвоенную переменную. Первый метод гораздо аккуратнее - и безопаснее, так как у зарегистрированного объекта можно ограничить - свойства и методы. Но, в тоже время, зарегистрированный объект - нельзя использовать в циклах, нельзя помещать в массив объектов, - и так далее. Выбор способа за вами, но используйте по - возможности первый, чтобы максимально упростить синтаксис шаблона. - - - В безопасном режиме - недоступны приватные методы и функции (имена которых начинаются с "_"). - Если существует и метод, и свойство с одинаковыми именами, - то будет использован метод. - - - Вы можете ограничить использование объекта только некоторыми - методами и свойствами. Для этого перечислите их в массиве и укажите - этот массив третьим параметром при регистрации объекта. - - - По умолчанию, параметры из шаблона передаются объекту точно так же, - как и - пользовательской функции. - Первым параметром передаётся - ассоциативный массив, вторым - объект Smarty. Если вы хотите передавать - параметры по одному, как при традиционном обращении с объектами, установите - четвёртый параметр вызова в false. - - - Необязательный пятый параметр вступает в силу только в том случае, если - свойство format равно true. - Он содержит список методов, которые должны обрабатываться как блоки. - Это означает, что в шаблоне у методы будут иметь закрывающие тэги - ({foobar->meth2}...{/foobar->meth2}) и параметры - методов будут иметь такие же синопсисы, как и параметры для - block-function-plugins: - $params, - $content, - &$smarty - и - &$repeat. Кроме того, они ведут себя так же, как и - block-function-plugins. - - - использование зарегистрированного или присвоенного объекта - -register_object('foobar',$myobj); -// если мы хотим ограничить доступ к определенным методам или свойствам, перечисляем их -$smarty->register_object('foobar',$myobj,array('meth1','meth2','prop1')); -// если мы хотим использовать традиционный формат параметров объекта, передаем false -$smarty->register_object('foobar',$myobj,null,false); - -// Мы так же можем назначать объекты. Назначение идёт по ссылке, если это возможно. -$smarty->assign_by_ref('myobj', $myobj); - -$smarty->display('index.tpl'); -?> -]]> - - - А вот так можно получить доступ к объекту в index.tpl: - - -meth1 p1='foo' p2=$bar} - -{* вывод объекта можно сохранить в переменную *} -{foobar->meth1 p1='foo' p2=$bar assign='output'} -the output was {$output} - -{* обращаемся к нашему назначенному объекту *} -{$myobj->meth1('foo',$bar)} -]]> - - - - См. также - register_object() - и - assign() - - - diff --git a/docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml b/docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml deleted file mode 100644 index 106e3303..00000000 --- a/docs/ru/programmers/advanced-features/advanced-features-outputfilters.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - Фильтры вывода - - Когда шаблон выводится через - display() или - fetch(), результат может быть - пропущен через один или несколько фильтров вывода. Отличие их от - постфильтров - состоит в том, что постфильтры действуют на уже скомпилированный - шаблон, перед его записью на диск, в то время как фильтры вывода обрабатывают - шаблон в момент его исполнения. - - - - Фильтры вывода могут быть или - зарегистрированы или - загружены из - папки плагинов - с помощью - функции load_filter(), или - с помощью установки переменной - $autoload_filters. - Smarty передаёт фильтру результат обработки шаблона в качестве первого - аргумента и предполагает, что функция вернёт результат своей работы. - - - Использование фильтра вывода - -register_outputfilter('protect_email'); -$smarty->display('index.tpl'); - -// теперь все адреса электронной почты в выводе шаблона будут -// обработаны несложной функцией защиты от спам-ботов -?> -]]> - - - - См. также - register_outpurfilter(), - load_filter(), - $autoload_filters, - постфильтрі - и - $plugins_dir. - - - diff --git a/docs/ru/programmers/advanced-features/advanced-features-postfilters.xml b/docs/ru/programmers/advanced-features/advanced-features-postfilters.xml deleted file mode 100644 index fbba6127..00000000 --- a/docs/ru/programmers/advanced-features/advanced-features-postfilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Постфильтры - - Постфильтры шаблона - это функции PHP, которые обрабатывают шаблон после его - компиляции. Постфильтры могут быть или - зарегистрированы - или загружены из - директории плагинов - при помощи функции - load_filter(), или - с помощью установки переменной - $autoload_filters. - Smarty передаёт фильтру скомпилированный код шаблона в качестве первого - аргумента и предполагает, что функция вернёт результат своей работы. - - - использование постфильтра - -;\n\"; ?>\n".$tpl_source; -} - -// регистрация постфильтра -$smarty->register_postfilter('add_header_comment'); -$smarty->display('index.tpl'); -?> -]]> - - - Теперь скомпилированный шаблон Smarty index.tpl выглядит так: - - - -{* остальной код шаблона... *} -]]> - - - - См. также - register_postfilter(), - префильтры - и - load_filter(). - - - diff --git a/docs/ru/programmers/advanced-features/advanced-features-prefilters.xml b/docs/ru/programmers/advanced-features/advanced-features-prefilters.xml deleted file mode 100644 index 14293dd6..00000000 --- a/docs/ru/programmers/advanced-features/advanced-features-prefilters.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Префильтры - - Префильтры шаблона - это функции PHP, которые обрабатывают шаблон перед его - компиляцией. Это удобно для удаления лишних комментариев и прочих ненужных - после компиляции данных. - - - Префильтры могут быть или - заргистрированы - или загружены из - директории плагинов - с помощью функции - load_filter() или - с помощью установки переменной - $autoload_filters. - - - Smarty передаёт фильтру исходный код шаблона в качестве первого аргумента - и предполагает, что функция вернёт результат своей работы. - - - использование префильтра - - Этот пример удалит все комментарии из исходного текста шаблона. - - -/U','',$tpl_source); -} - -// регистрация префильтра -$smarty->register_prefilter('remove_dw_comments'); -$smarty->display('index.tpl'); -?> -]]> - - - - См. также - register_prefilter(), - постфильтры - и - load_filter(). - - - diff --git a/docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml b/docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml deleted file mode 100644 index d72f7dc3..00000000 --- a/docs/ru/programmers/advanced-features/section-template-cache-handler-func.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - Управление кэшированием - - Вместо стандартного механизма кэширования, использующего файлы, - вы можете использовать свои функции для чтения, записи и очистки кэшированных шаблонов. - - - Добавьте в ваше приложение функцию, которую Smarty сможет использовать для - управления кэшем. Укажите её имя в переменной класса - $cache_handler_func. - Теперь Smarty будет использовать её для операций с кэшированным содержимым. - Первый параметр вашей функции - действие, принимает значения - 'read', 'write' или 'clear' (соответственно, 'прочитать', 'записать' - или 'очистить'). Вторым параметром передаётся объект smarty. Третьим - данные для - кэширования. - Третий параметр используется только при чтении и записи. При записи Smarty передаёт - через него кэшированный контент. При чтении предполагается, что через него - передаётся ссылка на переменную, в которую контент будет загружен. - При очистке значение третьего параметра не обрабатывается. - Четвёртый параметр - имя файла с шаблоном (используется при чтении/записи), - пятый - идентификатор кэша (опционально), шестой - идентификатор компиляции (опционально, - используется для построения разных кэшей для одного шаблона), - седьмой - срок годности кэша (опционально). - - Примечание: последний параметр ($exp_time) добавлен в Smarty 2.6.0. - - - Применение MySQL в качестве хранилища кэшированных данных - -cache_handler_func = 'mysql_cache_handler'; - -$smarty->display('index.tpl'); - - -код для MySQL таблицы: - -create database SMARTY_CACHE; - -create table CACHE_PAGES( -CacheID char(32) PRIMARY KEY, -CacheContents MEDIUMTEXT NOT NULL -); - -*/ - -function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null, $exp_time=null) -{ - // параметры подключения к базе данных - хост, логин, пароль, название базы - $db_host = 'localhost'; - $db_user = 'myuser'; - $db_pass = 'mypass'; - $db_name = 'SMARTY_CACHE'; - // установите в true для использования gzip компрессии кэшированных данных - $use_gzip = false; - - // создаём уникальный идентификатор кэша - $CacheID = md5($tpl_file.$cache_id.$compile_id); - - if(! $link = mysql_pconnect($db_host, $db_user, $db_pass)) { - $smarty_obj->_trigger_error_msg('cache_handler: не могу подключиться к базе данных'); - return false; - } - mysql_select_db($db_name); - - switch ($action) { - case 'read': - // чтение кэша из базы - $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'"); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $row = mysql_fetch_array($results,MYSQL_ASSOC); - - if($use_gzip && function_exists('gzuncompress')) { - $cache_content = gzuncompress($row['CacheContents']); - } else { - $cache_content = $row['CacheContents']; - } - $return = $results; - break; - case 'write': - // сохранение кэша в базе - - if($use_gzip && function_exists("gzcompress")) { - // сжимаем контент чтобы сэкономить место - $contents = gzcompress($cache_content); - } else { - $contents = $cache_content; - } - $results = mysql_query("replace into CACHE_PAGES values( - '$CacheID', - '".addslashes($contents)."') - "); - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $return = $results; - break; - case 'clear': - // очистка кэша - if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { - // clear them all - $results = mysql_query('delete from CACHE_PAGES'); - } else { - $results = mysql_query('delete from CACHE_PAGES where CacheID="'.$CacheID.'"'); - } - if(!$results) { - $smarty_obj->_trigger_error_msg('cache_handler: ошибка запроса.'); - } - $return = $results; - break; - default: - // ошибка, указан неизвестный метод - $smarty_obj->_trigger_error_msg('cache_handler: неизвестный метод "'.$action.'"'); - $return = false; - break; - } - mysql_close($link); - return $return; - -} - -?> -]]> - - - diff --git a/docs/ru/programmers/advanced-features/template-resources.xml b/docs/ru/programmers/advanced-features/template-resources.xml deleted file mode 100644 index 07a482bb..00000000 --- a/docs/ru/programmers/advanced-features/template-resources.xml +++ /dev/null @@ -1,254 +0,0 @@ - - - - - Ресурсы - - Шаблоны можно получать из самых разных источников. Когда вы - отображаете или - вызываете шаблон, - либо когда вы подключаете один шаблон к другому, вы указываете тип ресурса, - вместе с соответствующим путём и названием шаблона. - Если тип ресурса явно не задан, используется значения свойства - $default_resource_type. - - - - Шаблоны из папки $template_dir - - Шаблоны, которые находятся в папке - $template_dir, - не требуют при вызове указания - типа ресурса, хотя вы можете использовать префикс file: для сохранения - стиля. Для вызова просто укажите относительный от - $template_dir - путь к шаблону. - - - Вызов шаблона из папки $template_dir - -display('index.tpl'); -$smarty->display('admin/menu.tpl'); -$smarty->display('file:admin/menu.tpl'); // тоже самое, что и строкой выше -?> - -{* код в шаблоне Smarty *} -{include file="index.tpl"} -{include file="file:index.tpl"} {* тоже самое, что и строкой выше *} -]]> - - - - - - Шаблоны из произвольной папки - - Для вызова шаблонов из папки вне - $template_dir - необходимо использовать префикс file: с последующим указанием асболютного - пути и имени шаблона. - - - Вызов шаблона из произвольной папки - -display('file:/export/templates/index.tpl'); -$smarty->display('file:/path/to/my/templates/menu.tpl'); -?> -]]> - - - А изнутри шаблона Smarty: - - - - - - - - Файловые пути в Windows - - Если вы работаете под Windows, то пути к файлам, как правило, - начинаются с буквы логического диска (например, C:). Не забудьте - указать префикс "file:" в начале пути, чтобы избежать конфликтов - имён и достичь необходимого результата. - - - использование шаблонов с файловіми путями Windows - -display('file:C:/export/templates/index.tpl'); -$smarty->display('file:F:/path/to/my/templates/menu.tpl'); -?> -]]> - - - А изнутри шаблона Smarty: - - - - - - - - - - Шаблоны из прочих источников - - Вы можете вызывать шаблоны, используя любые доступные через PHP источники: - базы данных, сокеты, LDAP и так далее. - Для этого нужно написать соответствующий плагин ресурса и зарегистрировать - его в Smarty. - - - - Смотрите раздел плагины ресурсов - для более подробной информации о тех функциях, которые вы должны - предоставить. - - - - - Обратите внимание на то, что вы не можете переопределить встроенный ресурс - file, но в ваших силах написать и зарегистрировать ресурс с - другим именем, который будет использовать другой способ вызова шаблонов из - файловой системы. - - - - Использование собственных ресурсов - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) -{ - // обращаемся к базе, запрашиваем поле $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function db_get_secure($tpl_name, &$smarty_obj) -{ - // предполагаем, что наши шаблоны совершенно безопасны - return true; -} - -function db_get_trusted($tpl_name, &$smarty_obj) -{ - // не используется для шаблонов -} - -// регистрируем ресурс под именем "db" -$smarty->register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); - -// используем ресурс из PHP скрипта -$smarty->display("db:index.tpl"); -?> -]]> - - - А изнутри шаблона Smarty: - - - - - - - - - Функция для обработки шаблона по умолчанию - - Вы можете определить функцию, которая будет использована, - если шаблон не может быть вызван из соответствующего ресурса. - Это можно использовать, к примеру, для построения недостающего - шаблона на лету. - - - использование функции для обработки шаблона по умолчанию - -_write_file($resource_name,$template_source); - return true; - } - } else { - // не файл - return false; - } -} - -// определение обработчика -$smarty->default_template_handler_func = 'make_template'; -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions.xml b/docs/ru/programmers/api-functions.xml deleted file mode 100644 index 9484720c..00000000 --- a/docs/ru/programmers/api-functions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - Методы класса Smarty - &programmers.api-functions.api-append; - &programmers.api-functions.api-append-by-ref; - &programmers.api-functions.api-assign; - &programmers.api-functions.api-assign-by-ref; - &programmers.api-functions.api-clear-all-assign; - &programmers.api-functions.api-clear-all-cache; - &programmers.api-functions.api-clear-assign; - &programmers.api-functions.api-clear-cache; - &programmers.api-functions.api-clear-compiled-tpl; - &programmers.api-functions.api-clear-config; - &programmers.api-functions.api-config-load; - &programmers.api-functions.api-display; - &programmers.api-functions.api-fetch; - &programmers.api-functions.api-get-config-vars; - &programmers.api-functions.api-get-registered-object; - &programmers.api-functions.api-get-template-vars; - &programmers.api-functions.api-is-cached; - &programmers.api-functions.api-load-filter; - &programmers.api-functions.api-register-block; - &programmers.api-functions.api-register-compiler-function; - &programmers.api-functions.api-register-function; - &programmers.api-functions.api-register-modifier; - &programmers.api-functions.api-register-object; - &programmers.api-functions.api-register-outputfilter; - &programmers.api-functions.api-register-postfilter; - &programmers.api-functions.api-register-prefilter; - &programmers.api-functions.api-register-resource; - &programmers.api-functions.api-trigger-error; - - &programmers.api-functions.api-template-exists; - &programmers.api-functions.api-unregister-block; - &programmers.api-functions.api-unregister-compiler-function; - &programmers.api-functions.api-unregister-function; - &programmers.api-functions.api-unregister-modifier; - &programmers.api-functions.api-unregister-object; - &programmers.api-functions.api-unregister-outputfilter; - &programmers.api-functions.api-unregister-postfilter; - &programmers.api-functions.api-unregister-prefilter; - &programmers.api-functions.api-unregister-resource; - - diff --git a/docs/ru/programmers/api-functions/api-append-by-ref.xml b/docs/ru/programmers/api-functions/api-append-by-ref.xml deleted file mode 100644 index e18154d2..00000000 --- a/docs/ru/programmers/api-functions/api-append-by-ref.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - append_by_ref() - добавляет значение по ссылке - - - Описание - - voidappend_by_ref - stringvarname - mixedvar - boolmerge - - - Используется для добавления значений - в шаблон по ссылке. Если вы добавляете значение переменной по ссылке и это - значение изменяется в шаблоне, эти изменения будут отражены в начальной - переменной. Для объектов, - append_by_ref() также позволяет избежать внутреннего копирования добавляемого - объекта. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - Если вы укажете необязательный третий аргумент, равный true, значение будет - совмещено с существующим массивом, вместо добавления. - - ¬e.parameter.merge; - - append_by_ref - -append_by_ref('Name', $myname); -$smarty->append_by_ref('Address', $address); -?> -]]> - - - - См. также - append() - и - assign(). - - - - - diff --git a/docs/ru/programmers/api-functions/api-append.xml b/docs/ru/programmers/api-functions/api-append.xml deleted file mode 100644 index a9f17e53..00000000 --- a/docs/ru/programmers/api-functions/api-append.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - append() - добавляет элемент к назначенному массиву - - - Описание - - voidappend - mixedvar - - - voidappend - stringvarname - mixedvar - boolmerge - - - Если вы добавляете значение к строковому значению, последнее будет - предварительно преобразовано в массив. Вы можете явно передавать пары - ключей / значений, либо ассоциативный массив, содержащий пары - ключей / значений. - Если вы укажете необязательный третий аргумент, равный true, значение будет - совмещено с существующим массивом, вместо добавления. - - ¬e.parameter.merge; - - append - -append("Name", "Fred"); -$smarty->append("Address", $address); - -// передаем ассоциативный массив -$smarty->append(array('city' => 'Lincoln', 'state' => 'Nebraska')); -?> -]]> - - - См. также - append_by_ref(), - assign() - и - get_template_vars() - - - - diff --git a/docs/ru/programmers/api-functions/api-assign-by-ref.xml b/docs/ru/programmers/api-functions/api-assign-by-ref.xml deleted file mode 100644 index 1eec7b51..00000000 --- a/docs/ru/programmers/api-functions/api-assign-by-ref.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - assign_by_ref() - назначает переменную по ссылке - - - Описание - - voidassign_by_ref - stringvarname - mixedvar - - - Используется для назначения переменных - шаблонуу по ссылке, вместо создания копии. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - - - Техническое Замечание - - Эта функция используется для назначения переменных шаблону по ссылке. - Если вы назначаете переменную по ссылке и значение этой переменной - изменяется в шаблоне, эти изменения будут отражены в начальной переменной. - Для объектов, - assign_by_ref() также позволяет избежать внутреннего копирования добавляемого - объекта. - См. руководство PHP для более подробного описания работы передачи переменных - по ссылкам. - - - - assign_by_ref() - -assign_by_ref('Name', $myname); -$smarty->assign_by_ref('Address', $address); -?> -]]> - - - - См. также - assign(), - clear_all_assign(), - append() - и - {assign} - - - - - - diff --git a/docs/ru/programmers/api-functions/api-assign.xml b/docs/ru/programmers/api-functions/api-assign.xml deleted file mode 100644 index 9bf91dde..00000000 --- a/docs/ru/programmers/api-functions/api-assign.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - assign() - назначает значение шаблону - - - Описание - - voidassign - mixedvar - - - voidassign - stringvarname - mixedvar - - - Вы можете явно передавать пары ключей / значений, либо ассоциативный - массив, содержащий пары ключей / значений. - - - assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// передача ассоциативного массива -$smarty->assign(array('city' => 'Lincoln', 'state' => 'Nebraska')); - -// передача строки из базы данных (напр. ADODB) -$sql = 'select id, name, email from contacts where contact ='.$id; -$smarty->assign('contact', $db->getRow($sql)); -?> -]]> - - - Обращаемся к переменным из шаблона - - - - - - - Для более сложных назначений массивов см. - {foreach} - и - {section} - - - - См. также - assign_by_ref(), - get_template_vars(), - clear_assign(), - append() - и - {assign} - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-all-assign.xml b/docs/ru/programmers/api-functions/api-clear-all-assign.xml deleted file mode 100644 index bcc30e90..00000000 --- a/docs/ru/programmers/api-functions/api-clear-all-assign.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - clear_all_assign() - очищает список назначенных переменных - - - Описание - - voidclear_all_assign - - - - clear_all_assign() - -assign('Name', 'Fred'); -$smarty->assign('Address', $address); - -// выведет только что назначенные переменные -print_r($smarty->get_template_vars()); - -// очищаем список назначенных переменных -$smarty->clear_all_assign(); - -// не выведет ничего -print_r($smarty->get_template_vars()); - -?> -]]> - - - - См. также - clear_assign(), - clear_config(), - assign() - и - append() - - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-all-cache.xml b/docs/ru/programmers/api-functions/api-clear-all-cache.xml deleted file mode 100644 index 5cd285a4..00000000 --- a/docs/ru/programmers/api-functions/api-clear-all-cache.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - clear_all_cache() - полностью очищает кэш шаблонов - - - Описание - - voidclear_all_cache - intexpire_time - - - В качестве необязательного параметра, вы можете указать минимальный возраст - файлов кэша в секундах, прежде чем они будут очищены. - - - clear_all_cache - -clear_all_cache(); -?> -]]> - - - - См. также - clear_cache(), - is_cached() - и - кэширование - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-assign.xml b/docs/ru/programmers/api-functions/api-clear-assign.xml deleted file mode 100644 index 7119a880..00000000 --- a/docs/ru/programmers/api-functions/api-clear-assign.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - clear_assign() - очищает назначенную переменную - - - Описание - - voidclear_assign - mixedvar - - - Может принимать имя переменной, либо массив с именами переменных. - - - clear_assign() - -clear_assign('Name'); - -// очищает несколько переменных -$smarty->clear_assign(array('Name', 'Address', 'Zip')); -?> -]]> - - - - См. также - clear_all_assign(), - clear_config(), - get_template_vars(), - assign() - и - append() - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-cache.xml b/docs/ru/programmers/api-functions/api-clear-cache.xml deleted file mode 100644 index 5b68e894..00000000 --- a/docs/ru/programmers/api-functions/api-clear-cache.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - clear_cache() - очищает кэш определенного шаблона - - - Описание - - voidclear_cache - stringtemplate - stringcache_id - stringcompile_id - - intexpire_time - - - Если вы используете - множественное кэширование - для шаблона, вы можете очистить определенный кэш, передавая - cache_id в качестве второго аргумента. - Также, вы можете педать - $compile_id - в качестве третьего аргумента. - Вы можете "группировать" шаблоны - вместе, чтобы их можно было удалять группой. - См. раздел Кэширование для получения - дополнительной информации. - В качестве необязательного четвертого аргумента вы можете передать минимальный - возраст файла кэша в секундах, прежде чем он будет очищен. - - - clear_cache() - -clear_cache('index.tpl'); - -// очищает определенный идентификатор кэша для шаблонов со множественным кэшированием -$smarty->clear_cache('index.tpl', 'CACHEID'); -?> -]]> - - - - См. также - clear_all_cache() - и - кэширование. - - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml b/docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml deleted file mode 100644 index e961d518..00000000 --- a/docs/ru/programmers/api-functions/api-clear-compiled-tpl.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - clear_compiled_tpl() - очищает скомпилированную версию указанного шаблона - - - Описание - - voidclear_compiled_tpl - stringtpl_file - stringcompile_id - - intexp_time - - - Очищает скомпилированную версию указанного шаблона, либо все скомпилированные - файлы, если конкретный файл не указан. - Если вы укажете аргумент - $compile_id, будут очищены - только те скомпилированные версии, которые имеют такой идентификатор. - Если вы укажете аргумент exp_time, будут очищены только те скомпилированные - версии, которые будут старше этого кол-ва секунд. - По умолчанию очищаются все скомпилированные шаблоны, независимо от их - возраста. - Эта функция предназначена для продвинутого использования и для решения - обычных задачь необходимости в ней нет. - - - clear_compiled_tpl() - -clear_compiled_tpl("index.tpl"); - -// очищает скомпилированные версии всех шаблонов -$smarty->clear_compiled_tpl(); -?> -]]> - - - - - - diff --git a/docs/ru/programmers/api-functions/api-clear-config.xml b/docs/ru/programmers/api-functions/api-clear-config.xml deleted file mode 100644 index 20bde371..00000000 --- a/docs/ru/programmers/api-functions/api-clear-config.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - clear_config() - очищает назначенную конфигурационную переменную - - - Описание - - voidclear_config - stringvar - - - Очищает все назначенные - конфигурационные переменные. - Если указано имя переменной, только эта переменная будет очищена. - - - clear_config() - -clear_config(); - -// очищает одну конфигурационную переменную -$smarty->clear_config('foobar'); -?> -]]> - - - - См. также - get_config_vars(), - config variables, - config files, - {config_load}, - config_load() - и - clear_assign() - - - - diff --git a/docs/ru/programmers/api-functions/api-config-load.xml b/docs/ru/programmers/api-functions/api-config-load.xml deleted file mode 100644 index aca0743c..00000000 --- a/docs/ru/programmers/api-functions/api-config-load.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - config_load() - загружает данные из конфигурационного файла и назначает их шаблону - - - Описание - - voidconfig_load - stringfile - stringsection - - - Эта функция загружает данные из - конфигурационного файла - и назначает их шаблону. Работает идентично функции шаблона - {config_load}. - - - Техническое Замечание - - Начиная с версии Smarty 2.4.0, присвоенные переменные шаблона сохраняются - между вызовами методов - fetch() - и - display(). - Конфигурационные переменные, загруженные через config_load(), всегда - находятся в глобальной зоне видимости. Конфигурационные файлы также - компилируются для более быстрой обработки, и учитывают настройки - $force_compile - и - $compile_check. - - - - config_load() - -config_load('my.conf'); - -// загружаем секцию -$smarty->config_load('my.conf', 'foobar'); -?> -]]> - - - - См. также - {config_load}, - get_config_vars(), - clear_config(), - и - конфигурационные переменные. - - - - diff --git a/docs/ru/programmers/api-functions/api-display.xml b/docs/ru/programmers/api-functions/api-display.xml deleted file mode 100644 index e7128b90..00000000 --- a/docs/ru/programmers/api-functions/api-display.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - display() - отображает шаблон - - - Описание - - voiddisplay - stringtemplate - stringcache_id - stringcompile_id - - - - Данная функция отображает шаблон, в отличие от - fetch(). - В качестве первого аргумента следуедует указать доступный тип и путь к - ресурсу шаблона. - В качестве второго необязательного аргумета, вы можете передать идентификатор - кэша. - См. раздел - Кэширование - для получения дополнительной информации. - - ¶meter.compileid; - - display() - -caching = true; - -// выполняем запрос к БД только в том случае, если кэш не существует -if(!$smarty->is_cached("index.tpl")) { - - // немного данных для примера - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" => "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// выводим результат -$smarty->display("index.tpl"); -?> -]]> - - - - Используйте синтаксис ресурсов шаблона для отображения файлов - за пределами директории - $template_dir. - - - Пример работы функции display() с ресурсами шаблона - -display('/usr/local/include/templates/header.tpl'); - -// абсолютный файловый путь (тот же результат) -$smarty->display('file:/usr/local/include/templates/header.tpl'); - -// абсолютный файловый путь под Windows (префикс "file:" ОБЯЗАТЕЛЕН) -$smarty->display('file:C:/www/pub/templates/header.tpl'); - -// использование ресурса шаблона с именем "db" -$smarty->display('db:header.tpl'); -?> -]]> - - - - См. также - fetch() - и - template_exists(). - - - - - - diff --git a/docs/ru/programmers/api-functions/api-fetch.xml b/docs/ru/programmers/api-functions/api-fetch.xml deleted file mode 100644 index 88bedce9..00000000 --- a/docs/ru/programmers/api-functions/api-fetch.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - fetch - - - - - <methodsynopsis> - <type>string</type><methodname>fetch</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Функция возвращает вывод шаблона вместо его отображения на экран. - Укажите верный тип <link - linkend="template.resources">ресурса шаблонов</link> - и путь. В качестве необязательного второго параметра можно передать - cache id. Смотрите раздел - <link linkend="caching">Кэширование</link> - для получения дополнительной информации. - </para> - ¶meter.compileid; - <para> - <example> - <title>fetch - -caching = true; - -// обращаемся к БД только если отсутствует кэш -if(!$smarty->is_cached("index.tpl")) -{ - - // присваиваем некоторые значения - $address = "245 N 50th"; - $db_data = array( - "City" => "Lincoln", - "State" => "Nebraska", - "Zip" = > "68502" - ); - - $smarty->assign("Name","Fred"); - $smarty->assign("Address",$address); - $smarty->assign($db_data); - -} - -// перехватываем вывод -$output = $smarty->fetch("index.tpl"); - -// здесь выполняем какие-либо действия с $output - -echo $output; -?> -]]> - - - - - См. также - display() и - template_exists. - - - - diff --git a/docs/ru/programmers/api-functions/api-get-config-vars.xml b/docs/ru/programmers/api-functions/api-get-config-vars.xml deleted file mode 100644 index a2374f9b..00000000 --- a/docs/ru/programmers/api-functions/api-get-config-vars.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - get_config_vars - - - - - <methodsynopsis> - <type>array</type><methodname>get_config_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает значение переданной конфигурационной переменной. Если аргумент не передан, - то будет возвращен массив всех конфигурационных переменных. - </para> - <example> - <title>get_config_vars - -get_config_vars('foo'); - -// получаем все загруженные конфигурационные переменные шаблона -$config_vars = $smarty->get_config_vars(); - -// смотрим, что у нас получилось -print_r($config_vars); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-get-registered-object.xml b/docs/ru/programmers/api-functions/api-get-registered-object.xml deleted file mode 100644 index 1eb1a07f..00000000 --- a/docs/ru/programmers/api-functions/api-get-registered-object.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - get_registered_object - - - - - <methodsynopsis> - <type>array</type><methodname>get_registered_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает ссылку на зарегестрированный объект. Может быть полезно в случае - необходимости получения прямого доступа к - зарегестрированному объекту из пользовательской функции. - </para> - <example> - <title>get_registered_object - -&get_registered_object($params['object']); - // теперь используем $obj_ref как ссылку на объект - } -} -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-get-template-vars.xml b/docs/ru/programmers/api-functions/api-get-template-vars.xml deleted file mode 100644 index 0ff4adf9..00000000 --- a/docs/ru/programmers/api-functions/api-get-template-vars.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - get_template_vars - - - - - <methodsynopsis> - <type>array</type><methodname>get_template_vars</methodname> - <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает значение переменной. Если аргумент не передан, - будет возвращен массив всех назначенными переменными. - </para> - <example> - <title>get_template_vars - -get_template_vars('foo'); - -// получаем все назначенные переменные шаблона -$tpl_vars = $smarty->get_template_vars(); - -// поглядим, что из этого вышло -print_r($tpl_vars); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-is-cached.xml b/docs/ru/programmers/api-functions/api-is-cached.xml deleted file mode 100644 index 6be3096c..00000000 --- a/docs/ru/programmers/api-functions/api-is-cached.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - is_cached - - - - - <methodsynopsis> - <type>bool</type><methodname>is_cached</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>cache_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>compile_id</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает true если существует кэш для указанного шаблона. - Работает только в том случае, если значение <link - linkend="variable.caching">caching</link> установлено в true. - </para> - <example> - <title>is_cached - -caching = true; - -if(!$smarty->is_cached("index.tpl")) { - // обращаемся к БД, назначаем переменные -} - -$smarty->display("index.tpl"); -?> -]]> - - - - Также вы можете передавать cache id в качестве необязательного второго - параметра, если у вас используется множественное кэширование шаблона. - - - Также вы можете передавать compile id в качестве необязательного третьего параметра. - Если вы не передадите этот параметр, будет использован текущий - $compile_id. - - - Если вы не хотите передавать cache id, но хотите передать compile - id, вы должны передать null в качестве cache id. - - - is_cached при множественном кэшировании шаблона - -caching = true; - -if(!$smarty->is_cached("index.tpl", "FrontPage")) { - // обращаемся к БД, назначаем переменные -} - -$smarty->display("index.tpl", "FrontPage"); -?> -]]> - - - - - - Техническое замечание - - Если is_cached возвращает true, при этом она загружает - кэшированный вывод и хранит его в памяти. Любые последующие вызовы - display() или - fetch() - будут возвращать этот хранимый в памяти вывод и не будут пытаться перезагрузить - файл кэша. Это предотвращает неприятную ситуацию, которая может возникнуть если - другой процесс очищает кэш между вызовами is_cached и - display в предыдущем примере. Это также означает, что - clear_cache() - и другие изменения настроек кэширования могут не вступить в силу после того, как - is_cached вернула true. - - - - - diff --git a/docs/ru/programmers/api-functions/api-load-filter.xml b/docs/ru/programmers/api-functions/api-load-filter.xml deleted file mode 100644 index be105192..00000000 --- a/docs/ru/programmers/api-functions/api-load-filter.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - load_filter - - - - - <methodsynopsis> - <type>void</type><methodname>load_filter</methodname> - <methodparam><type>string</type><parameter>type</parameter></methodparam> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция может быть использована для загрузки плагина фильтра. Первый аргумент - определяет тип загружаемого фильтра и может быть одним из следующих: - 'pre', 'post' или 'output'. Второй аргумент - определяет имя плагина фильтра, к примеру 'trim'. - </para> - <example> - <title>Загрузка плагинов фильтров - -load_filter('pre', 'trim'); // загружаем префильтр под названием 'trim' -$smarty->load_filter('pre', 'datefooter'); // загружаем еще один префильтр - 'datefooter' -$smarty->load_filter('output', 'compress'); // загружаем фильтр вывода 'compress' -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-register-block.xml b/docs/ru/programmers/api-functions/api-register-block.xml deleted file mode 100644 index 06b4f073..00000000 --- a/docs/ru/programmers/api-functions/api-register-block.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - register_block - - - - - <methodsynopsis> - <type>void</type><methodname>register_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Используйте для динамической регистрации плагинов - блоковых функций. В качестве аргументов передаются - имя блоковой функции и имя функции, реализующей ее. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_block - -register_block("translate", "do_translation"); - -function do_translation ($params, $content, &$smarty, &$repeat) -{ - if (isset($content)) { - $lang = $params['lang']; - // выполняем перевод $content - return $translation; - } -} -?> -]]> - - - Содержимое шаблона: - - - - - - - - diff --git a/docs/ru/programmers/api-functions/api-register-compiler-function.xml b/docs/ru/programmers/api-functions/api-register-compiler-function.xml deleted file mode 100644 index 4375a1f1..00000000 --- a/docs/ru/programmers/api-functions/api-register-compiler-function.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - register_compiler_function - - - - - <methodsynopsis> - <type>bool</type><methodname>register_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam><type>bool</type><parameter>cacheable</parameter></methodparam> - </methodsynopsis> - <para> - Используется для динамической регистрации плагина функции компилятора. - Передается наименование функции компилятора, далее имя функции, реализующей ее. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-register-function.xml b/docs/ru/programmers/api-functions/api-register-function.xml deleted file mode 100644 index f651be5c..00000000 --- a/docs/ru/programmers/api-functions/api-register-function.xml +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: freespace Status: ready --> -<refentry id="api.register.function"> - <refnamediv> - <refname>register_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>cacheable</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter>cache_attrs</parameter></methodparam> - </methodsynopsis> - <para> - Используется для динамической регистрации плагинов функций шаблона. - Передается наименование функции шаблона и имя функции, реализующей ее. - </para> - <para> - Функция обратного вызова PHP <parameter>impl</parameter> может быть - (a) строка, содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_function - -register_function("date_now", "print_current_date"); - -function print_current_date($params) -{ - if(empty($params['format'])) { - $format = "%b %e, %Y"; - } else { - $format = $params['format']; - return strftime($format,time()); - } -} - -// теперь вы можете использовать ее в Smarty чтобы вывести текущую дату: {date_now} -// или {date_now format="%Y/%m/%d"} чтобы задать формат. -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-register-modifier.xml b/docs/ru/programmers/api-functions/api-register-modifier.xml deleted file mode 100644 index 6963cb39..00000000 --- a/docs/ru/programmers/api-functions/api-register-modifier.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - register_modifier - - - - - <methodsynopsis> - <type>void</type><methodname>register_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации плагина модификатора. В функцию - передаются имя модификатора и имя функции, реализующей его. - </para> - <para> - Коллбек-функцией php <parameter>impl</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - <para> - <parameter>cacheable</parameter> и <parameter>cache_attrs</parameter> - в большинстве случаев могут быть опущены. Смотрите <link - linkend="caching.cacheable">Управление кэшированием результатов работы плагинов</link> - для получения информации об их правильном использовании. - </para> - <example> - <title>register_modifier - -register_modifier("sslash"," stripslashes"); - -// теперь можно использовать {$var|sslash} чтобы вырезать слеши из переменной -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-register-object.xml b/docs/ru/programmers/api-functions/api-register-object.xml deleted file mode 100644 index 370bbd95..00000000 --- a/docs/ru/programmers/api-functions/api-register-object.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - register_object - - - - - <methodsynopsis> - <type>void</type><methodname>register_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - <methodparam><type>object</type><parameter>object</parameter></methodparam> - <methodparam><type>array</type><parameter>allowed_methods_properties</parameter></methodparam> - <methodparam><type>boolean</type><parameter>format</parameter></methodparam> - <methodparam><type>array</type><parameter>block_methods</parameter></methodparam> - </methodsynopsis> - <para> - Функция регестрирует объект для использования в шаблоне. Обратитесь к - разделу <link linkend="advanced.features.objects">Объекты</link> - за примерами. - </para> - <para> - См. также - <link linkend="api.unregister.object">unregister_object</link>. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-register-outputfilter.xml b/docs/ru/programmers/api-functions/api-register-outputfilter.xml deleted file mode 100644 index 7c26b5b3..00000000 --- a/docs/ru/programmers/api-functions/api-register-outputfilter.xml +++ /dev/null @@ -1,55 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.outputfilter"> - <refnamediv> - <refname>register_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_outputfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации фильтров - вывода, чтобы управлять выводом шаблона перед тем, как он - будет отображен. Обратитесь к - <link linkend="advanced.features.outputfilters">фильтрам - вывода шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-register-postfilter.xml b/docs/ru/programmers/api-functions/api-register-postfilter.xml deleted file mode 100644 index 2cef10e5..00000000 --- a/docs/ru/programmers/api-functions/api-register-postfilter.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.postfilter"> - <refnamediv> - <refname>register_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_postfilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации постфильтров, - в целях управления выводом шаблонов уже после их компиляции. - Обратитесь к <link linkend="advanced.features.postfilters">постфильтрам - шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-register-prefilter.xml b/docs/ru/programmers/api-functions/api-register-prefilter.xml deleted file mode 100644 index 35a2ae1b..00000000 --- a/docs/ru/programmers/api-functions/api-register-prefilter.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.prefilter"> - <refnamediv> - <refname>register_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_prefilter</methodname> - <methodparam><type>mixed</type><parameter>function</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической регистрации префильтра, - в целях управления содержимым шаблона перед его компиляцией. - Обратитесь к <link linkend="advanced.features.prefilters">префильтрам - шаблонов</link> для получения дополнительной информации. - </para> - <para> - Коллбек-функцией php <parameter>function</parameter> может быть (a) строка, - содержащая имя функции, или (b) массив вида - <literal>array(&$object, $method)</literal>, где - <literal>&$object</literal> является ссылкой на - объект, а <literal>$method</literal> является строкой, - содержащей имя метода, или (c) массив в форме - <literal>array($class, $method)</literal>, где - <literal>$class</literal> является именем класса, а - <literal>$method</literal> является методом этого - класса. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-register-resource.xml b/docs/ru/programmers/api-functions/api-register-resource.xml deleted file mode 100644 index dbb9672b..00000000 --- a/docs/ru/programmers/api-functions/api-register-resource.xml +++ /dev/null @@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.register.resource"> - <refnamediv> - <refname>register_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>register_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam><type>array</type><parameter>resource_funcs</parameter></methodparam> - </methodsynopsis> - <para> - Используйте эту функцию, чтобы динамически зарегистрировать - плагин ресурса в Smarty. Передается имя ресурса и массив php-функций. - Обратитесь к <link linkend="template.resources">ресурсам шаблонов</link> - для получениядополнительной информации. - </para> - <note> - <title>Техническое замечание - - Имя ресурса должно состоять минимум из двух букв. Однобуквенные - имена ресурсов будут игнорироваться и испольщоваться как часть файлового - пути, например $smarty->display('c:/path/to/index.tpl'); - - - - Массив php-функций resource_funcs - должен содержать 4 или 5 элементов. - В случае четырех элементов, элементы являются - соответствующими коллбек-функциями: "source", - "timestamp", "secure" и "trusted" функции ресурса. - В случае пяти элементов, первый элемент должен быть - ссылкой на объект или имя класса, объект или класс которого - реализовывает ресурс, а 4 следующих элементов должны быть названиями методов, - реализующимх "source", "timestamp", "secure" и "trusted". - - - register_resource - -register_resource("db", array("db_get_template", - "db_get_timestamp", - "db_get_secure", - "db_get_trusted")); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-template-exists.xml b/docs/ru/programmers/api-functions/api-template-exists.xml deleted file mode 100644 index 1d5ad2cf..00000000 --- a/docs/ru/programmers/api-functions/api-template-exists.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - template_exists - - - - - <methodsynopsis> - <type>bool</type><methodname>template_exists</methodname> - <methodparam><type>string</type><parameter>template</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция проверяет, существует ли определенный шаблон. - Здесь можно указать путь к шаблону в файловой системе или - строку ресурса, соответствующую шаблону. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-trigger-error.xml b/docs/ru/programmers/api-functions/api-trigger-error.xml deleted file mode 100644 index 60893deb..00000000 --- a/docs/ru/programmers/api-functions/api-trigger-error.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.trigger.error"> - <refnamediv> - <refname>trigger_error</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>trigger_error</methodname> - <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция может быть использована для вывода сообщения об - ошибке средствами Smarty. Параметр <parameter>level</parameter> - может быть равен одному из значений, используемых для PHP-функции - trigger_error(), т.е. E_USER_NOTICE, E_USER_WARNING, и др. - По умолчанию установлено значение E_USER_WARNING. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-block.xml b/docs/ru/programmers/api-functions/api-unregister-block.xml deleted file mode 100644 index ba712119..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-block.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.block"> - <refnamediv> - <refname>unregister_block</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_block</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации плагина блоковой функции. - В качестве аргумента передается имя функции. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-compiler-function.xml b/docs/ru/programmers/api-functions/api-unregister-compiler-function.xml deleted file mode 100644 index 80269db3..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-compiler-function.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.compiler.function"> - <refnamediv> - <refname>unregister_compiler_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_compiler_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - функции компиляции. В качестве аргумента передается - имя функции компиляции. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-function.xml b/docs/ru/programmers/api-functions/api-unregister-function.xml deleted file mode 100644 index 039c9a20..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-function.xml +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.function"> - <refnamediv> - <refname>unregister_function</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_function</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической деригистрации плагина функции шаблона. - В качестве аргумента передается имя функции шаблона. - </para> - <example> - <title>unregister_function - -unregister_function("fetch"); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-unregister-modifier.xml b/docs/ru/programmers/api-functions/api-unregister-modifier.xml deleted file mode 100644 index 49ef9a8b..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-modifier.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - unregister_modifier - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_modifier</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - плагина модификатора. В качестве аргумента передается - имя модификатора. - </para> - <example> - <title>unregister_modifier - -unregister_modifier("strip_tags"); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-functions/api-unregister-object.xml b/docs/ru/programmers/api-functions/api-unregister-object.xml deleted file mode 100644 index 207f7ef4..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-object.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - unregister_object - - - - - <methodsynopsis> - <type>void</type><methodname>unregister_object</methodname> - <methodparam><type>string</type><parameter>object_name</parameter></methodparam> - </methodsynopsis> - <para> - Используется для дерегистрации объекта. - </para> - <para> - См. также - <link linkend="api.register.object">register_object</link> и раздел - <link linkend="advanced.features.objects">Объекты</link> - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-outputfilter.xml b/docs/ru/programmers/api-functions/api-unregister-outputfilter.xml deleted file mode 100644 index 0489d83f..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-outputfilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.outputfilter"> - <refnamediv> - <refname>unregister_outputfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_outputfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации фильтра вывода. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-postfilter.xml b/docs/ru/programmers/api-functions/api-unregister-postfilter.xml deleted file mode 100644 index 4ee1fdeb..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-postfilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.postfilter"> - <refnamediv> - <refname>unregister_postfilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_postfilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации постфильтра. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-prefilter.xml b/docs/ru/programmers/api-functions/api-unregister-prefilter.xml deleted file mode 100644 index 5dcd8187..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-prefilter.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.prefilter"> - <refnamediv> - <refname>unregister_prefilter</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_prefilter</methodname> - <methodparam><type>string</type><parameter>function_name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте для динамической дерегистрации префильтра. - </para> - </refsect1> -</refentry> -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"../../../../manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> diff --git a/docs/ru/programmers/api-functions/api-unregister-resource.xml b/docs/ru/programmers/api-functions/api-unregister-resource.xml deleted file mode 100644 index 7c637db2..00000000 --- a/docs/ru/programmers/api-functions/api-unregister-resource.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 0 Maintainer: tony2001 Status: ready --> -<refentry id="api.unregister.resource"> - <refnamediv> - <refname>unregister_resource</refname> - <refpurpose></refpurpose> - </refnamediv> - <refsect1> - <title /> - <methodsynopsis> - <type>void</type><methodname>unregister_resource</methodname> - <methodparam><type>string</type><parameter>name</parameter></methodparam> - </methodsynopsis> - <para> - Используйте функцию для динамической дерегистрации - плагина ресурса. В качестве аргумента передается имя ресурса. - </para> - <example> - <title>unregister_resource - -unregister_resource("db"); -?> -]]> - - - - - diff --git a/docs/ru/programmers/api-variables.xml b/docs/ru/programmers/api-variables.xml deleted file mode 100644 index db32eea7..00000000 --- a/docs/ru/programmers/api-variables.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - Переменные класса Smarty - &programmers.api-variables.variable-template-dir; - &programmers.api-variables.variable-compile-dir; - &programmers.api-variables.variable-config-dir; - &programmers.api-variables.variable-plugins-dir; - &programmers.api-variables.variable-debugging; - &programmers.api-variables.variable-debug-tpl; - &programmers.api-variables.variable-debugging-ctrl; - &programmers.api-variables.variable-autoload-filters; - &programmers.api-variables.variable-compile-check; - &programmers.api-variables.variable-force-compile; - &programmers.api-variables.variable-caching; - &programmers.api-variables.variable-cache-dir; - &programmers.api-variables.variable-cache-lifetime; - &programmers.api-variables.variable-cache-handler-func; - &programmers.api-variables.variable-cache-modified-check; - &programmers.api-variables.variable-config-overwrite; - &programmers.api-variables.variable-config-booleanize; - &programmers.api-variables.variable-config-read-hidden; - &programmers.api-variables.variable-config-fix-newlines; - &programmers.api-variables.variable-default-template-handler-func; - &programmers.api-variables.variable-php-handling; - &programmers.api-variables.variable-security; - &programmers.api-variables.variable-secure-dir; - &programmers.api-variables.variable-security-settings; - &programmers.api-variables.variable-trusted-dir; - &programmers.api-variables.variable-left-delimiter; - &programmers.api-variables.variable-right-delimiter; - &programmers.api-variables.variable-compiler-class; - &programmers.api-variables.variable-request-vars-order; - &programmers.api-variables.variable-request-use-auto-globals; - &programmers.api-variables.variable-error-reporting; - &programmers.api-variables.variable-compile-id; - &programmers.api-variables.variable-use-sub-dirs; - &programmers.api-variables.variable-default-modifiers; - &programmers.api-variables.variable-default-resource-type; - - diff --git a/docs/ru/programmers/api-variables/variable-autoload-filters.xml b/docs/ru/programmers/api-variables/variable-autoload-filters.xml deleted file mode 100644 index 0a75879e..00000000 --- a/docs/ru/programmers/api-variables/variable-autoload-filters.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - $autoload_filters - - При необходимости загрузки при каждом вызове шаблонов некоторого - количества фильтров, вы можете определить их, используя эту переменную, - и Smarty автоматически их загрузит. Переменная представляет из себя - ассоциативный массив, ключи в котором являются типами фильтров, а значения - - массивами имен фильтров. Например: - - -autoload_filters = array('pre' => array('trim', 'stamp'), - 'output' => array('convert')); -?> -]]> - - - - - - diff --git a/docs/ru/programmers/api-variables/variable-cache-dir.xml b/docs/ru/programmers/api-variables/variable-cache-dir.xml deleted file mode 100644 index d5e3adfe..00000000 --- a/docs/ru/programmers/api-variables/variable-cache-dir.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $cache_dir - - Имя каталога, в котором хранится кэш шаблонов. По умолчанию - установлено в "./cache". Это означает, что поиск каталога с кэшем - будет производиться в том же каталоге, в котором выполняется - скрипт. Вы также можете использовать собственную функцию-обработчик - для управления файлами кэша, которая будет игнорировать этот параметр. - - - Техническое замечание - - При установке этого параметра можно использовать как относительные, - так и абсолютные пути. Для создаваемых файлов include_path не используется. - - - - Техническое замечание - - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - - - - diff --git a/docs/ru/programmers/api-variables/variable-cache-handler-func.xml b/docs/ru/programmers/api-variables/variable-cache-handler-func.xml deleted file mode 100644 index 51745a3d..00000000 --- a/docs/ru/programmers/api-variables/variable-cache-handler-func.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $cache_handler_func - - Вы можете добавить собственную функцию для управления файлами кэша - вместо вызовов встроенного метода, используя $cache_dir. - За дополнительной информацией обратитесь к разделу - Управление - кэшированием. - - - diff --git a/docs/ru/programmers/api-variables/variable-cache-lifetime.xml b/docs/ru/programmers/api-variables/variable-cache-lifetime.xml deleted file mode 100644 index b6058db8..00000000 --- a/docs/ru/programmers/api-variables/variable-cache-lifetime.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - $cache_lifetime - - Задает длительность времени в секундах, в течение которого кэш шаблона - будет актуальным. По истечении этого времени кэш будет регенерирован. - Переменная $caching должна быть установлена в "true" при использовании - $cache_lifetime. Значение переменной -1 задает неограниченное время - жизни кэша. Значение переменной 0 вызовет постоянную его регенерацию - (подходит только для тестирования, для отключения кэширования более - целесообразно устанавливать - $caching = false.) - - - Если $force_compile - активировано, файлы кэша каждый раз будут регенерироваться, - отключая таким образом кэширование. Вы можете очистить сразу все файлы кэша, - используя функцию clear_all_cache(), - или в случае с конкретными файлами (группами) кэша - при помощи функции - clear_cache(). - - - Техническое замечание - - Если вы хотите назначить конкретным шаблонам собственное время жизни их кэша, - вы можете сделать это путем установки $caching - = 2, затем установкой $cache_lifetime в нужное значение перед вызовом - display() или fetch(). - - - - diff --git a/docs/ru/programmers/api-variables/variable-cache-modified-check.xml b/docs/ru/programmers/api-variables/variable-cache-modified-check.xml deleted file mode 100644 index abab974b..00000000 --- a/docs/ru/programmers/api-variables/variable-cache-modified-check.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $cache_modified_check - - Если установлено в true, Smarty будет учитывать If-Modified-Since - заголовок, посланный клиентом. Если время создания кэшированного - файла не изменилось с момента последнего посещения, то взамен его - содержимого будет послан заголовок "304 Not Modified". Это работает - только в случае, если кэшированное содержимое не содержит тэгов - insert. - - - diff --git a/docs/ru/programmers/api-variables/variable-caching.xml b/docs/ru/programmers/api-variables/variable-caching.xml deleted file mode 100644 index c82d6ebe..00000000 --- a/docs/ru/programmers/api-variables/variable-caching.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $caching - - Сообщает Smarty, будет или нет кэшироваться вывод шаблонов. По умолчанию - этот параметр установлен в 0, т.е. не активирован. Если ваши шаблоны - генерируют большие объемы кода, рекомендуется активировать кэширование - это - даст ощутимый прирост в производительности. Вы также можете использовать - множественный кэш шаблонов. Значение 1 или 2 активирует кэширование. - При задании значения 1, для определения времени жизни кэша используется - текущее значение переменной $cache_lifetime. Значение 2 задает Smarty - использовать значение cache_lifetime во время окончания генерации кэша. В - этом случае вы можете устанавливать cache_lifetime непосредственно перед - обработкой шаблона для осуществления гибкого контроля за истечением времени - жизни конкретного экземпляра кэша. См. также - is_cached. - - - Если параметр $compile_check активирован, кэш будет обновляться в случае, - когда любой из шаблонов или конфигурационных файлов, являющихся частью - этого кэша, был изменен. Если активирован $force_compile, кэш будет - обновляться во всех случаях. - - - diff --git a/docs/ru/programmers/api-variables/variable-compile-check.xml b/docs/ru/programmers/api-variables/variable-compile-check.xml deleted file mode 100644 index 92c3de3e..00000000 --- a/docs/ru/programmers/api-variables/variable-compile-check.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - $compile_check - - При каждом вызове РНР-приложения Smarty проверяет, изменился или нет - текущий шаблон с момента последней компиляции. Если шаблон изменился, - он перекомпилируется. В случае, если шаблон еще не был скомпилирован, - его компиляция производится с игнорированием значения этого параметра. - По умолчанию эта переменная установлена в true. В момент, когда приложение - начнет работать в реальных условиях (шаблоны больше не будут изменяться), - этап проверки компиляции становится ненужным. В этом случае проверьте, чтобы - переменная $compile_check была установлена в "false" для достижения - максимальной производительности. Учтите, что если вы присвоите этой переменной - значение "false", и файл шаблона будет изменен, вы *НЕ* увидите изменений - в выводе шаблона до тех пор, пока шаблон не будет перекомпилирован. Если - caching и compile_check активированы, файлы кэша будут регенерированы при - обновлении связанных с ним шаблонов или конфигурационных файлов. См. - $force_compile или - clear_compiled_tpl. - - - diff --git a/docs/ru/programmers/api-variables/variable-compile-dir.xml b/docs/ru/programmers/api-variables/variable-compile-dir.xml deleted file mode 100644 index af583165..00000000 --- a/docs/ru/programmers/api-variables/variable-compile-dir.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $compile_dir - - Имя каталога, в котором хранятся компилированные шаблоны. По - умолчанию установлено в "./templates_c", т.е. поиск каталога с - компилированными шаблонами будет производиться в том же каталоге, - в котором выполняется скрипт. - - - Техническое замечание - - При установке этого параметра можно использовать как относительные, - так и абсолютные пути. Для создаваемых файлов include_path не используется. - - - - Техническое замечание - - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - - - - diff --git a/docs/ru/programmers/api-variables/variable-compile-id.xml b/docs/ru/programmers/api-variables/variable-compile-id.xml deleted file mode 100644 index c1778b5d..00000000 --- a/docs/ru/programmers/api-variables/variable-compile-id.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - $compile_id - - Постоянный идентификатор компиляции. Как альтернативу использованию одного - и того же compile_id при каждом вызове функции, вы можете самостоятельно - задавать этот идентификатор, и в этом случае будет безусловно автоматически - это значение. - - - С помощью compile_id вы можете обойти ограничение, из-за которого вы не - можете использовать один compile_dir для разных template_dir. - Если вы установите уникальный compile_id для каждого template_dir, Smarty - сможет различать компилированные шаблоны по их compile_id. - - - К примеру, если у вас есть префильтр, локализирующий ваш ваши шаблоны - (проще говоря, переводит части шаблонов на другой язык) во время - компиляции, то вам следует использовать текущий язык в качестве - compile_id и вы получите по набору скомпилированных шаблонов для - каждого используемого языка. - - - Другим примером может быть использование одной компиляционной директории - для нескольких доменов / нескольких vhost'ов, к примеру: - - - compile_id - -compile_id = $_SERVER['SERVER_NAME']; - $smarty->compile_dir = 'path/to/shared_compile_dir'; -]]> - - - - diff --git a/docs/ru/programmers/api-variables/variable-compiler-class.xml b/docs/ru/programmers/api-variables/variable-compiler-class.xml deleted file mode 100644 index c60512cd..00000000 --- a/docs/ru/programmers/api-variables/variable-compiler-class.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $compiler_class - - Задает имя класса-компилятора, который Smarty будет использовать - для компиляции шаблонов. По умолчанию это 'Smarty_Compiler'. Только - для продвинутых пользователей. - - - diff --git a/docs/ru/programmers/api-variables/variable-config-booleanize.xml b/docs/ru/programmers/api-variables/variable-config-booleanize.xml deleted file mode 100644 index 1b3b4f41..00000000 --- a/docs/ru/programmers/api-variables/variable-config-booleanize.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $config_booleanize - - Если установлено в true, значения параметров конфигурационных файлов - on/true/yes и off/false/no будут конвертированы в булевы значения автоматически. - В этом случае вы можете использовать в шаблоне конструкции, подобные этой: - {if #foobar#} ... {/if}. Если foobar равно on, true или yes, будет осуществлен - переход по условию {if}. По умолчанию равно true. - - - diff --git a/docs/ru/programmers/api-variables/variable-config-dir.xml b/docs/ru/programmers/api-variables/variable-config-dir.xml deleted file mode 100644 index 8dc38865..00000000 --- a/docs/ru/programmers/api-variables/variable-config-dir.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - $config_dir - - Каталог для хранения конфигурационных файлов, используемых - в шаблонах. По умолчанию установлено в "./configs", т.е. поиск - каталога с конфигурационными файлами будет производиться в том - же каталоге, в котором выполняется скрипт. - - - Техническое замечание - - Не рекомендуется помещать этот каталог внутри корневого каталога документов - веб-сервера. - - - - diff --git a/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml b/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml deleted file mode 100644 index cd4a688d..00000000 --- a/docs/ru/programmers/api-variables/variable-config-fix-newlines.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $config_fix_newlines - - Если установлено в true, переводы строк в стиле mac и dos (\r и \r\n) - в конфигурационных файлах будут конвертированы в \n при синтаксическом - разборе. По умолчанию равно true. - - - diff --git a/docs/ru/programmers/api-variables/variable-config-overwrite.xml b/docs/ru/programmers/api-variables/variable-config-overwrite.xml deleted file mode 100644 index bc8f6e40..00000000 --- a/docs/ru/programmers/api-variables/variable-config-overwrite.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $config_overwrite - - Если установлено в true, переменные, полученные из конфигурационных файлов, - будут перекрывать все остальные. В лбом случае, перемнные будут помещены в - массив. Это удобно, когда вы хотите хранить массив данных в конфигурационном - файле - просто задавайте каждый элемент много раз. По умолчанию true. - - - diff --git a/docs/ru/programmers/api-variables/variable-config-read-hidden.xml b/docs/ru/programmers/api-variables/variable-config-read-hidden.xml deleted file mode 100644 index cba1ef6f..00000000 --- a/docs/ru/programmers/api-variables/variable-config-read-hidden.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $config_read_hidden - - Если установлено в true, скрытые разделы (имеющие имя, начинающиеся с точки) - в конфигурационных файлах могут быть доступными из шаблонов. Как правило, - следует устанавливать значение этого параметра в false: в этом случае вы - можете хранить важные данные (например, параметры подключения к базе данных) - в конфигурационных файлах, не беспокоясь, что они будут загружены в шаблон. - По умолчанию false. - - - diff --git a/docs/ru/programmers/api-variables/variable-debug-tpl.xml b/docs/ru/programmers/api-variables/variable-debug-tpl.xml deleted file mode 100644 index 61c3cb46..00000000 --- a/docs/ru/programmers/api-variables/variable-debug-tpl.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - $debug_tpl - - Имя файла шаблона, используемого для панели отладки (debugging console). - По умолчанию это файл debug.tpl, расположенный в SMARTY_DIR. - - - diff --git a/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml b/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml deleted file mode 100644 index 4737c199..00000000 --- a/docs/ru/programmers/api-variables/variable-debugging-ctrl.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $debugging_ctrl - - Позволяет активировать режим отладки альтернативными путями. - Значение NONE запрещает использовать альтернативные методы. При - значении переменной URL, режим отладки будет активирован для данного - вызова скрипта в случае, если в QUERY_STRING будет обнаружено - ключевое слово SMARTY_DEBUG. Этот параметр игнорируется, если - $debugging установлено в true. - - - diff --git a/docs/ru/programmers/api-variables/variable-debugging.xml b/docs/ru/programmers/api-variables/variable-debugging.xml deleted file mode 100644 index c18cde78..00000000 --- a/docs/ru/programmers/api-variables/variable-debugging.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $debugging - - Активирует debugging - console - порожденное при помощи javascript окно браузера, - содержащее информацию о подключенных шаблонах и загруженных - переменных для текущей страницы. - - - diff --git a/docs/ru/programmers/api-variables/variable-default-modifiers.xml b/docs/ru/programmers/api-variables/variable-default-modifiers.xml deleted file mode 100644 index 36d824fe..00000000 --- a/docs/ru/programmers/api-variables/variable-default-modifiers.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $default_modifiers - - Массив модификаторов, неявно применяемых ко всем переменным шаблона. - Например, для HTML-экранирования каждой переменной по умолчанию, используется - конструкция array('escape:"htmlall"'); Для исключения действия таких - модификаторов на какую-либо переменную, применяйте специальный "smarty" - модификатор с параметром "nodefaults", например {$var|smarty:nodefaults}. - - - diff --git a/docs/ru/programmers/api-variables/variable-default-resource-type.xml b/docs/ru/programmers/api-variables/variable-default-resource-type.xml deleted file mode 100644 index 387687b5..00000000 --- a/docs/ru/programmers/api-variables/variable-default-resource-type.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - $default_resource_type - - Это свойство говорит Smarty, какой тип ресурсов использовать по умолчанию. - Значением этого свойства по умолчанию является 'file', так что - $smarty->display('index.tpl'); и $smarty->display('file:index.tpl'); - имеют одинаковый смысл. Обратитесь к главе ресурсы для дополнительной информации. - - - diff --git a/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml b/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml deleted file mode 100644 index d4d049ce..00000000 --- a/docs/ru/programmers/api-variables/variable-default-template-handler-func.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $default_template_handler_func - - Функция, вызываемая в случае, если шаблон не был получен из - своего источника. - - - diff --git a/docs/ru/programmers/api-variables/variable-error-reporting.xml b/docs/ru/programmers/api-variables/variable-error-reporting.xml deleted file mode 100644 index 70254ccd..00000000 --- a/docs/ru/programmers/api-variables/variable-error-reporting.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - $error_reporting - - Если это свойство имеет ненулевое значние, то оно используется - в качестве значения error_reporting внутри - display() и - fetch(). - При включенном режиме отладки это значение - игнорируется и уровень обработки ошибок не меняется. - - - diff --git a/docs/ru/programmers/api-variables/variable-force-compile.xml b/docs/ru/programmers/api-variables/variable-force-compile.xml deleted file mode 100644 index 844d0a6d..00000000 --- a/docs/ru/programmers/api-variables/variable-force-compile.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $force_compile - - Указывает Smarty (пере)компилировать шаблоны при каждом вызове. - Этот параметр перекрывает действие $compile_check и по умолчанию - не активирован. Действие параметра удобно использовать в процессе - разработки и отладки, однако никогда не используйте его в условиях - реальной эксплуатации: если кэширование активировано, файл(ы) кэша - будут каждый раз перезаписываться. - - - diff --git a/docs/ru/programmers/api-variables/variable-left-delimiter.xml b/docs/ru/programmers/api-variables/variable-left-delimiter.xml deleted file mode 100644 index 7b85a1f9..00000000 --- a/docs/ru/programmers/api-variables/variable-left-delimiter.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $left_delimiter - - Левый разделитель, используемый в языке шаблонов. - По умолчанию равно "{". - - - См. также - $right_delimiter. - - - diff --git a/docs/ru/programmers/api-variables/variable-php-handling.xml b/docs/ru/programmers/api-variables/variable-php-handling.xml deleted file mode 100644 index 24378c3e..00000000 --- a/docs/ru/programmers/api-variables/variable-php-handling.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $php_handling - - Этот параметр говорит Smarty, как обращаться с PHP-кодом, встроенным в - шаблоны. Существует четыре возможных значения, значением по умолчанию является - SMARTY_PHP_PASSTHRU. Обратите внимание, что это НЕ влияет на PHP-код - внутри тэгов {php}{/php} - в шаблоне. - - - SMARTY_PHP_PASSTHRU - Smarty показывает тэги без обработки. - SMARTY_PHP_QUOTE - Smarty превращает спецсимволы тэгов в HTML-сущности. - SMARTY_PHP_REMOVE - Smarty удаляет тэги из шалона. - SMARTY_PHP_ALLOW - Smarty будет выполнять тэги как PHP-код. - - - - Встраивать PHP-код в шаблоны весьма не рекоммендуется. - Вместо этого, используется пользовательские функции или - модификаторы. - - - - diff --git a/docs/ru/programmers/api-variables/variable-plugins-dir.xml b/docs/ru/programmers/api-variables/variable-plugins-dir.xml deleted file mode 100644 index ac36d580..00000000 --- a/docs/ru/programmers/api-variables/variable-plugins-dir.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - $plugins_dir - - Это директория (или директории), в которых Smarty будет искать - необходимые ему плагины. По умолчанию это поддиректория "plugins" - директории SMARTY_DIR. Если вы укажете относительный путь, Smarty - будет в первую очередь искать относительно SMARTY_DIR, затем - оносительно текущей рабочей директории (cwd, current working - directory), а затем относительно каждой директории в PHP-директиве - include_path. Если $plugins_dir является массивом директорий, - Smarty будет искать ваш плагин в каждой директории плагинов - в том порядке, в котором они указаны. - - - Техническое замечание - - Для улучшения производительности, не нужно настраивать plugins_dir для использования - include_path. Используйте абсолютные пути или относительные пути от - SMARTY_DIR или текущей рабочей директории. - - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml b/docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml deleted file mode 100644 index 12f1a6c7..00000000 --- a/docs/ru/programmers/api-variables/variable-request-use-auto-globals.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - $request_use_auto_globals - - Определяет должен ли Smarty использовать $HTTP_*_VARS[] - ($request_use_auto_globals=false - значением по умолчанию) или - $_*[] ($request_use_auto_globals=true). Это влияет на поведение шаблонов, - которые используют {$smarty.request.*}, {$smarty.get.*} и т.д. - Внимание: если вы установите $request_use_auto_globals в true, variable.request.vars.order - не учитывается, а вместо него используется значение - gpc_order из настроек php. - - - diff --git a/docs/ru/programmers/api-variables/variable-request-vars-order.xml b/docs/ru/programmers/api-variables/variable-request-vars-order.xml deleted file mode 100644 index 8e7103cf..00000000 --- a/docs/ru/programmers/api-variables/variable-request-vars-order.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $request_vars_order - - Порядок, в котором будут регистрироваться переменные запроса, - наподобие variables_order из php.ini - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-right-delimiter.xml b/docs/ru/programmers/api-variables/variable-right-delimiter.xml deleted file mode 100644 index 2b737036..00000000 --- a/docs/ru/programmers/api-variables/variable-right-delimiter.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - $right_delimiter - - Правый разделитель, используемый в языке шаблонов. - По умолчанию равно "}". - - - См. также - $left_delimiter. - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-secure-dir.xml b/docs/ru/programmers/api-variables/variable-secure-dir.xml deleted file mode 100644 index 289fdddf..00000000 --- a/docs/ru/programmers/api-variables/variable-secure-dir.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - $secure_dir - - Это массив всех локальных директори, которые считаются безопасными. - {include} и {fetch} используют этот параметр при влюченном безопасном режиме. - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-security-settings.xml b/docs/ru/programmers/api-variables/variable-security-settings.xml deleted file mode 100644 index c984a40f..00000000 --- a/docs/ru/programmers/api-variables/variable-security-settings.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - $security_settings - - Это используется для изменения или указания настроек безопасности - когда безопасносить (security) включена. Допустимые значения: - - - PHP_HANDLING - true/false. Если установлено в true, параметр - $php_handling не проверяется на безопасность. - IF_FUNCS - Это массив имён PHP-функций, разрешенных - к использованию в условиях IF. - INCLUDE_ANY - true/false. Если установлено в true, любой - шаблон может быть подключен из файловой системы, независимо от списка - $secure_dir. - PHP_TAGS - true/false. Если установлено в true, тэги - {php}{/php} разрешены к использованию в шаблонах. - MODIFIER_FUNCS - Это массив имён PHP-функций, разрешенных - к использованию в качестве модификаторов переменных. - ALLOW_CONSTANTS - true/false. Если установлено в true, - разрешается использование констант вида {$smarty.const.name}. - По умолчанию равно "false" из соображений безопасности. - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-security.xml b/docs/ru/programmers/api-variables/variable-security.xml deleted file mode 100644 index 8b2da3b5..00000000 --- a/docs/ru/programmers/api-variables/variable-security.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - $security - - $security true/false, по умолчанию false. Безопасность (security) - полезна в ситуациях, когда ваши шаблоны редактируют лица, - не заслуживающе вашего доверия (например, через ftp) и вы хотите - сократить риски взлома системы с помощью языка шаблонов. - Включение безопасного режима накладывает следующие ограничения - на язык шаблонов, если только они не изменяются параметром $security_settings: - - - Если $php_handling установлен в SMARTY_PHP_ALLOW, это - неявно меняет его на SMARTY_PHP_PASSTHRU - PHP-функции запрещены в условиях IF, - кроме тех, которые указаны в $security_settings - Шаблоны могут быть подключены только из директорий, - перечисленных в массиве $secure_dir - Локальные файлы могут быть прочитаны при помощи {fetch} - только из директорий, перечисленных в массиве $secure_dir - Тэги {php}{/php} запрещены - PHP-функции запрещено использовать в виде модификаторов, - кроме тех, которые указаны в $security_settings - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-template-dir.xml b/docs/ru/programmers/api-variables/variable-template-dir.xml deleted file mode 100644 index 7b9899e1..00000000 --- a/docs/ru/programmers/api-variables/variable-template-dir.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - $template_dir - - Это название директории шаблонов по умолчанию. Если вы не - передадите тип ресурса во время подключения файлов, они будут - искаться здесь. Значение по умолчанию - "./templates", а это значит, что - движок будет искать шаблоны в поддиректории templates той директории, в которой - выполняется php-скрипт. - - - Техническое замечание - - Не рекоммендуется размещать эту директорию в пределах - корневой директории веб-сервера. - - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-trusted-dir.xml b/docs/ru/programmers/api-variables/variable-trusted-dir.xml deleted file mode 100644 index 5882aa5f..00000000 --- a/docs/ru/programmers/api-variables/variable-trusted-dir.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - $trusted_dir - - $trusted_dir используется только при включенном параметре $security. Это массив - всех директорий, которые считаются надёжными. Надёжные директории - это директории, - в которых вы храните свои php-скрипты, которые включаются прямо в шаблоны при помощи - директивы {include_php}. - - - \ No newline at end of file diff --git a/docs/ru/programmers/api-variables/variable-use-sub-dirs.xml b/docs/ru/programmers/api-variables/variable-use-sub-dirs.xml deleted file mode 100644 index 5a0c0b32..00000000 --- a/docs/ru/programmers/api-variables/variable-use-sub-dirs.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - $use_sub_dirs - - Установите это в false если ваше окружение PHP не разрешает создание директорий - от имени Smarty. Поддиректории более эффективны, так что используйте их, - если можете. - - - Техническое замечание - - Начиная с версии Smarty 2.6.2, значением по умолчанию для use_sub_dirs является false. - - - - \ No newline at end of file diff --git a/docs/ru/programmers/caching.xml b/docs/ru/programmers/caching.xml deleted file mode 100644 index 7ac589ed..00000000 --- a/docs/ru/programmers/caching.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Кэширование - - Кэширование используется для ускорения вызовов display() или fetch() при помощи сохранения результатов - их работы в файл. Если доступна кэшированная версия вызова, она отображается - вместо повторной обработки шаблона. Кэширование может значительно ускорить - работу, особенно в случае длительно обрабатываемых шаблонов. - Так как результат работы методов display() или fetch() кэшируется, один файл кэша вполне может - состоять из нескольких файлов шаблонов, конфигурационных файлов и т.д. - - - Так как шаблоны динамичны, очень важно быть осторожным относительно того, - что вы кэшируете и на какой период. Например, если вы отображаете главную - страницу вашего сайта, которая меняет своё содержимое достаточно редко, - хорошей идеей может быть кэширование этой страницы на час и более. - С другой стороны, если вы отображаете страницу с картой погоды, которая - обновляется ежеминутно, смысла в кэшировании этой страницы нет. - - &programmers.caching.caching-setting-up; - &programmers.caching.caching-multiple-caches; - &programmers.caching.caching-groups; - &programmers.caching.caching-cacheable; - - diff --git a/docs/ru/programmers/caching/caching-cacheable.xml b/docs/ru/programmers/caching/caching-cacheable.xml deleted file mode 100644 index 2479671e..00000000 --- a/docs/ru/programmers/caching/caching-cacheable.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - Управление кэшированием результатов работы плагинов - - Начиная с плагинов Smarty-2.6.0, кэшируемость плагинов может быть объявлена - во время их регистрации. Третий аргумент у register_block, - register_compiler_function и register_function называется - $cacheable и имеет значение по умолчанию true, - что соответствует поведению плагинов Smarty версии ранее 2.6.0 - - - - Если плагин регистрируется с $cacheable=false, плагин вызывается - каждый раз, когда страница отображается, даже если сама страница - кэширована. Поведение плагина немного похоже на функцию - insert. - - - - В отличие от {insert}, - атрибуты плагина не кэшируются по умолчанию. Они могут быть - объявлены как кэшируемые при помощи четвертого параметра - - $cache_attrs. $cache_attrs - это массив имен атрибутов, которые должны кэшироваться, чтобы - функция плагина брала значение в том виде, в котором оно было в момент - помещения страницы в кэш, каждый раз, когда страница запрашивается из кэша. - - - - Предотвращение кэширования результата работы плагина - -caching = true; - -function remaining_seconds($params, &$smarty) { - $remain = $params['endtime'] - time(); - if ($remain >=0) - return $remain . " second(s)"; - else - return "done"; -} - -$smarty->register_function('remaining', 'remaining_seconds', false, array('endtime')); - -if (!$smarty->is_cached('index.tpl')) { - // извлекаем $obj из БД и присваиваем... - $smarty->assign_by_ref('obj', $obj); -} - -$smarty->display('index.tpl'); -?> -]]> - - - Шаблон index.tpl: - - -endtime} -]]> - - - Количество секунд до endtime объекта $obj изменяется при каждом - обновлении страницы, даже если страница кэширована. Так как - атрибут endtime кэширован, объект извлекается из базы данных в тот момент, - когда страница помещается в кэш, но не во время последующих запросов - к странице. - - - - - Предотвращение кэширования части страницы - -caching = true; - -function smarty_block_dynamic($param, $content, &$smarty) { - return $content; -} -$smarty->register_block('dynamic', 'smarty_block_dynamic', false); - -$smarty->display('index.tpl'); -?> -]]> - - - Шаблон index.tpl: - - - - - - - - Во время обновления страницы вы заметите, что даты отличаются. - Одна является "динамической", другая - "статической". Вы можете поместить - в конструкцию {dynamic}...{/dynamic} любой код и быть уверенным, - что он не будет помещён в кэш вместе с остальной частью страницы. - - - - - diff --git a/docs/ru/programmers/caching/caching-groups.xml b/docs/ru/programmers/caching/caching-groups.xml deleted file mode 100644 index 1b06d475..00000000 --- a/docs/ru/programmers/caching/caching-groups.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - Групповое кэширование - - Вы можете сделать группировку более продуманной, используя групповые значения cache_id. - В таком случае, каждая подгруппа отделяется знаком вертикальной черты "|" в - значении cache_id. Возможно создавать любое количество подгрупп. - - - Вы можете представить себе группы кэширования в виде иерархии каталогов. - К примеру, группа кэширования "a|b|c" соответствует структуре каталогов - "/a/b/c/". clear_cache(null,"a|b|c") - это всё равно, что удалить файлы из - "/a/b/c/*". clear_cache(null,"a|b") соответствует удалению файлов - "/a/b/*". Если вы укажете compile_id, например - clear_cache(null,"a|b","foo"), он добавляется в конец группы кэширования: - "/a/b/c/foo/". Если вы укажете имя шаблона, например - clear_cache("foo.tpl","a|b|c"), то Smarty попытается удалить - "/a/b/c/foo.tpl". Вы НЕ можете удалить определенный шаблон из - нескольких групп кэширования, наподобие "/a/b/*/foo.tpl" - группы кэширования - работают ТОЛЬКО слева направо. Вам нужно будет сгруппировать шаблоны - под единой иерархией групп кэширования, чтобы иметь возможность очистить - их как группу. - - - Групповое кэширование не следует путать с иерархией директорий шаблонов. - Групповое кэширование не имеет представления о том, как структурированы - ваши шаблоны. К примеру, если структура ваших шаблонов выглядит как - "themes/blue/index.tpl" и вы хотите иметь возможность очистить все файлы кэша - для темы "blue", вам нужно создать такую структуру групп кэширования, которая - бы повторяла файловую структуру ваших шаблонов, например - display("themes/blue/index.tpl","themes|blue"), а затем очистить их вот так: - clear_cache(null,"themes|blue"). - - - Группы в cache_id - -caching = true; - -// Удалить все кэшированные копии подгруппы "sports|basketball" -$smarty->clear_cache(null,"sports|basketball"); - -// Удалить все кэшированные копии группы "sports", -// включая "sports|basketball", или "sports|(anything)|(anything)|(anything)|..." -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports|basketball"); -]]> - - - - diff --git a/docs/ru/programmers/caching/caching-multiple-caches.xml b/docs/ru/programmers/caching/caching-multiple-caches.xml deleted file mode 100644 index e71d7f37..00000000 --- a/docs/ru/programmers/caching/caching-multiple-caches.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - Множественное кэширование страниц - - Вы можете создавать несколько кэшированных копий для одного вызова функции display() или - fetch(). Предположим, что по вызову display('index.tpl') должны отображаться данные, - содержимое которых зависит от определенных условий, и вы хотите иметь несколько вариантов - соответствующих кэшированных копий. Для этого необходимо передать в функцию идентификатор - кэша (cache_id) в качестве второго параметра. - - - Вызов display() с идентификатором кэша - -caching = true; - -$my_cache_id = $_GET['article_id']; - -$smarty->display('index.tpl',$my_cache_id); -]]> - - - - В примере мы передали переменную $my_cache_id в функцию display() - в качестве cache_id. Для каждого уникального значения $my_cache_id будет создана - кэшированная копия вывода index.tpl. Здесь, значение "article_id" было передано в скрипт - через URL, присвоено переменной $my_cache_id и использовано как cache_id. - - - Техническое замечание - - Будьте очень осторожными при передаче значений от клиента (браузера) - в Smarty (как и в любое PHP-приложение). Хотя приведенный пример - фактического использования article_id прямо из URL выглядит нормально, - он может иметь неприятные последствия. Значение cache_id используется для - создания директории в файловой системе, поэтому, если пользователь решит - передать крайне большое значение article_id или написать скрипт, - который посылает случайные article_id с огромной частотой, это может вызвать - проблемы на уровне сервера. Поэтому вам необходимо в обязательном порядке - проверять данные из форм, перед тем как использовать их. В нашем случае, - мы заранее знаем, что значение article_id имеет длину в 10 символов, состоит - только из букв и цифр, а так же должно являться реальным - идентификатором в базе данных. Все это необходимо проверить! - - - - Имейте ввиду, что тоже самое значение cache_id необходимо использовать - как второй параметр - в функциях is_cached() и - clear_cache(), если вы хотите применить - их к конкретному кэшу. - - - Передача cache_id в is_cached() - -caching = true; - -$my_cache_id = $_GET['article_id']; - -if(!$smarty->is_cached('index.tpl',$my_cache_id)) { - // Кэша нет, поэтому присваиваем значение переменным. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl',$my_cache_id); -]]> - - - - Вы можете удалить все кэшированные копии с конкретным cache_id, передав null в качестве - первого параметра clear_cache(). - - - Удаление всех кэшированных копий с конкретным cache_id - -caching = true; - -// удаляем все кэшированные копии со значением "sports" в качестве cache_id -$smarty->clear_cache(null,"sports"); - -$smarty->display('index.tpl',"sports"); -]]> - - - - Таким образом, вы можете группировать ваши кэшированные копии, назначая им - одинаковые cache_id. - - - diff --git a/docs/ru/programmers/caching/caching-setting-up.xml b/docs/ru/programmers/caching/caching-setting-up.xml deleted file mode 100644 index 5be82b89..00000000 --- a/docs/ru/programmers/caching/caching-setting-up.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - - Настройка кэширования - - Прежде всего, кэширование необходимо активировать. Это можно сделать, - установив $caching = true (или 1). - - - Включение кэширования - -caching = true; - -$smarty->display('index.tpl'); -]]> - - - - При включенном кэшировании, вызываемая функция display('index.tpl') интерпретирует - шаблон как обычно, но также сохраняет копию вывода в файл (кэшированую копию) - в $cache_dir. - При следующем вызове display('index.tpl'), вместо повторной интерпретации шаблона, - будет использована кешированая копия. - - - Техническое замечание - - Файлы в директории $cache_dir имеют те же имена, что и соответствующие - шаблоны. Их имена оканчиваются расширением ".php", но на самом деле они не являются - выполняемыми php-скриптами. Не редактируйте эти файлы! - - - - Каждая кэшированая страничка существует на протяжении определенного времени, - указанного в $cache_lifetime. - Значение по умолчанию равно 3600 секундам или 1 часу. После того, как это время - истекает, кэш обновляется. Существует возможность присвоить каждой - кэшированой страничке собственное время жизни, установив $caching = 2. - Смотрите документацию $cache_lifetime - для получения подробных сведений. - - - Установка собственного cache_lifetime для кэшированой копии - -caching = 2; // Срок действия только для этой копии - -// устанавливаем cache_lifetime для index.tpl в 5 минут -$smarty->cache_lifetime = 300; -$smarty->display('index.tpl'); - -// устанавливаем cache_lifetime для home.tpl в 1 час -$smarty->cache_lifetime = 3600; -$smarty->display('home.tpl'); - -// Примечание: следующая $cache_lifetime настройка не будет работать, когда $caching = 2. -// Срок жизни кэша для home.tpl уже был установлен -// в 1 час, и Smarty больше не будет обращать внимание на значение $cache_lifetime. -// Время жизни кэша home.tpl по прежнему будет истекать по прошествию одного часа. -$smarty->cache_lifetime = 30; // 30 секунд -$smarty->display('home.tpl'); -]]> - - - - Если включен параметр $compile_check, - то каждый файл шаблона и конфигурации, связанный с файлом кэша, проверяется на - наличие изменений. Если один из этих файлов был модифицирован с тех пор, как - кэш был создан, кэш немедленно обновляется. Это незначительно повышает нагрузку, - поэтому, для оптимальной производительности оставьте значение $compile_check - равным false. - - - Включение $compile_check - -caching = true; -$smarty->compile_check = true; - -$smarty->display('index.tpl'); -]]> - - - - Если $force_compile - активирован, файлы кэша всегда будут обновляться. Это средство можно - использовать для отключения кэширования во время отладки. - $force_compile обычно используется только в целях отладки, так как более - правильным способом отключения кеширования является установка - $caching = false (или 0). - - - Функция is_cached() может быть - использована для определения, имеется ли у шаблона работоспособный кэш. - Если у вас есть кэшированый шаблон, которому необходимо, например, - получить выборку из базы данных, вы можете использовать эту функцию, - чтобы пропустить процесс обращения к базе. - - - Использование is_cached() - -caching = true; - -if(!$smarty->is_cached('index.tpl')) { - // Кэш отсутствует, значит присваеваем значения переменным. - $contents = get_database_contents(); - $smarty->assign($contents); -} - -$smarty->display('index.tpl'); -]]> - - - - Вы можете сделать так, чтобы часть страницы оставалась динамической, даже - если страница кэшируется, при помощи встроенной функции insert. Например, - кэшироваться может вся страница, за исключением баннера. - Используя функцию insert для баннера, вы можете сохранять - этот элемент динамичным, внутри кэшированой странички. Смотрите - документацию по insert для - получения подробностей и примеров. - - - Очистить все файлы кэша можно при помощи функции - clear_all_cache(), а - конкретный файл кэша (или группу) - вызвав - clear_cache() функцию. - - - Очистка кэша - -caching = true; - -// очищаем все файлы кэша -$smarty->clear_all_cache(); - -// очищаем только кэш шаблона index.tpl -$smarty->clear_cache('index.tpl'); - -$smarty->display('index.tpl'); -]]> - - - - diff --git a/docs/ru/programmers/plugins.xml b/docs/ru/programmers/plugins.xml deleted file mode 100644 index b28bf116..00000000 --- a/docs/ru/programmers/plugins.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - Плагины - расширение функциональности Smarty - - Архитектура версии 2.0 позволяет внедрять плагины, которыми являются - практически все настраиваемые элементы функционала Smarty. Сюда входят: - - функции - модификаторы - блоковые функции - функции компилятора - префильтры - постфильтры - фильтры вывода - ресурсы - вставки - - За исключением ресурсов, в целях обратной совместимости с - предыдущими версиями, сохранена возможность регистрации функций - посредством register_* API. - Если вы не используете API, а вместо этого модифицируете свойства - $custom_funcs, $custom_mods и - некоторые другие напрямую, тогда вам придется подогнать ваши скрипты под - использование API или преобразовать добавленную вами функциональность в - плагины. - - &programmers.plugins.plugins-howto; - &programmers.plugins.plugins-naming-conventions; - &programmers.plugins.plugins-writing; - &programmers.plugins.plugins-functions; - &programmers.plugins.plugins-modifiers; - &programmers.plugins.plugins-block-functions; - &programmers.plugins.plugins-compiler-functions; - &programmers.plugins.plugins-prefilters-postfilters; - &programmers.plugins.plugins-outputfilters; - &programmers.plugins.plugins-resources; - &programmers.plugins.plugins-inserts; - - diff --git a/docs/ru/programmers/plugins/plugins-block-functions.xml b/docs/ru/programmers/plugins/plugins-block-functions.xml deleted file mode 100644 index c5770693..00000000 --- a/docs/ru/programmers/plugins/plugins-block-functions.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Блоковые функции - - - void smarty_block_name - array $params - mixed $content - object &$smarty - boolean &$repeat - - - - Блоковые функции выглядят следующим образом: {func} .. {/func}. Другими словами, - они заключены в определенном блоке шаблона и оперируют содержимым этого блока. - Блоковые функции имеют приоритет перед пользовательскими функциями, имеющими то же имя, - поэтому, вы не сможете использовать одновременно свои функции вида {func} и - блоковые функции {func} .. {/func}. - - - Smarty вызывает ваши функции дважды: - первый раз при открытии тэга и второй раз при закрытии тэга. - - - Только открывающий тэг блоковой функции может иметь атрибуты. Все - атрибуты, переданные в функцию из шаблона сохраняются - в $params в виде ассоциативного массива. Вы можете - получить прямой доступ к их значениям: - $params['start'] или использовать - extract($params) для импорта. - Атрибуты, переданные в открывающем тэге доступны для вашей функции - до обработки закрывающего тэга включительно. - - - Значение переменной $content зависит от того, - вызывается ли ваша функция для открывающего тэга или вызов происходит при закрытии тэга. - В случае с открывающим тэгом, это значение будет равно null, а в случае - закрывающего тэга, значение будет равно содержимому блока в шаблоне. - Заметьте, что этот блок шаблона уже будет обработан - Smarty и на выводе вы получите результат обработки, а не - исходный код шаблона. - - - - Параметр &$repeat передается по - ссылке в функцию и дает ей возможность контролировать - количество отображений блока. - По умолчанию $repeat равен true - во время первого вызова блоковой функции (открывающий тэг блока) - и false при всех последующих вызовах блоковой функции - (закрывающий тэг блока). - Каждый раз, когда ваша функция возвращает параметр &$repeat - равный true, содержимое между - {func} .. {/func} обрабатывается и ваша функция вновь вызывается, причем новое содержимое - блока передается в параметре $content. - - - - Если вы используете вложенные блоковые функции, есть возможность определять родительские - блоковые функции. Достаточно получить значение переменной - $smarty->_tag_stack. Затем останется только применить var_dump() - для нее и структура будет видна. - - - Смотрите также: - register_block(), - unregister_block(). - - - Блоковая функция - - -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-compiler-functions.xml b/docs/ru/programmers/plugins/plugins-compiler-functions.xml deleted file mode 100644 index e49a6536..00000000 --- a/docs/ru/programmers/plugins/plugins-compiler-functions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - Функции компилятора - - Функции компилятора, как вы наверное догадались, вызываются - только в процессе компиляции шаблона. Они могут быть полезными - для вставки кода PHP или чувствительного ко времени статического - контента в шаблон. Если одновременно зарегестрированы две - одноименные функции - пользовательская и компилятора, то приоритет - будет у функции компилятора. - - - - mixed smarty_compiler_name - string $tag_arg - object &$smarty - - - - Функция компилятора имеет два параметра: строку аргументов тэга - - чаще всего это все, что следует от наименования функции до правого - разделителя, и объект Smarty. Функция должна возвращать PHP-код - для вствки в скомпилированный шаблон. - - - Смотрите также - register_compiler_function(), - unregister_compiler_function(). - - - Простой пример функции компилятора - -_current_file . " compiled at " . date('Y-m-d H:M'). "';"; -} -?> -]]> - - Эта функция может быть вызвана из шаблона следующим образом: - - - - - - Результирующий код PHP в скомпилированном шаблоне будет выглядеть примерно так: - - - -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-functions.xml b/docs/ru/programmers/plugins/plugins-functions.xml deleted file mode 100644 index 3006eb78..00000000 --- a/docs/ru/programmers/plugins/plugins-functions.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - Функции шаблона - - - void smarty_function_name - array $params - object &$smarty - - - - Все атрибуты, передаваемые в функции шаблона из самого шаблона, - хранятся в $params в виде ассоциативного массива. - Получить доступ к его значениям можно напрямую: - $params['start'] или используя - extract($params) для импорта в таблицу. - - - Вывод (возвращаемое значение) функции будет подставлен в место расположения - тэга функции в шаблоне (функция fetch например). - В качестве альтернативы, функция может выполнять какие либо действия - без какого-либо вывода (assign функция). - - - Если функция должна присвоить(assign) значения некоторым переменным в шаблоне или - использовать иные возможности Smarty, то можно работать с объектом - $smarty как обычно. - - - См. также: - register_function(), - unregister_function(). - - - - Функция-плагин с выводом - - -]]> - - - - - которая может быть использована в шаблоне следующим образом: - - - - - - - Функция-плагин без вывода - -trigger_error("assign: missing 'var' parameter"); - return; - } - - if (!in_array('value', array_keys($params))) { - $smarty->trigger_error("assign: missing 'value' parameter"); - return; - } - - $smarty->assign($var, $value); -} -?> -]]> - - - - - diff --git a/docs/ru/programmers/plugins/plugins-howto.xml b/docs/ru/programmers/plugins/plugins-howto.xml deleted file mode 100644 index ec206f97..00000000 --- a/docs/ru/programmers/plugins/plugins-howto.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - Как работают плагины - - Плагины загружаются только по необходимости. Только те модификаторы, - функции, ресурсы и т.д., которые используются в шаблоне, будут - загружены. К тому же, каждый плагин загружается только один раз, - даже если у вас есть несколько экземпляров Smarty, работающих - в пределах одного запроса. - - - Пре/постфильтры и фильтры вывода заслуживают отдельного упоминания. - Так как они не упоминаются в шаблонах, они должны быть зарегистрированы - и загружены неявно через API-функции ещё до обработки шаблона. - Порядок выполнения нескольких фильтров одного типа зависит от - порядка, в котором они регистрировались или загружались. - - - Директория плагинов - может быть строкой, содержащей путь, или массивом, содержащим - множество путей. Чтобы установить плагин, просто поместите его - в одну из этих директорий и Smarty автоматически будет его использовать. - - - - diff --git a/docs/ru/programmers/plugins/plugins-inserts.xml b/docs/ru/programmers/plugins/plugins-inserts.xml deleted file mode 100644 index b2258d0b..00000000 --- a/docs/ru/programmers/plugins/plugins-inserts.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - Вставки - - Плагины вставок используются для исполнения функций, вызываемых тэгом - insert - в шаблоне. - - - - string smarty_insert_name - array $params - object &$smarty - - - - Первый параметр функции представляет собой ассоциативный массив атрибутов, - переданых для вставки. Доступ к этим значениям можно получить как напрямую: - т.е. $params['start'] так и используя - extract($params) для импорта. - - - Функция вставки возвращает результат, которым будет - заменен тэг insert в шаблоне. - - - Плагин вставки - -trigger_error("insert time: missing 'format' parameter"); - return; - } - - $datetime = strftime($params['format']); - return $datetime; -} -?> -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-modifiers.xml b/docs/ru/programmers/plugins/plugins-modifiers.xml deleted file mode 100644 index 72308f04..00000000 --- a/docs/ru/programmers/plugins/plugins-modifiers.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - Модификаторы - - Модификаторы - это маленькие функции, которые воздействуют на переменные в - шаблоне перед тем, как те будут выведены на экран или использованы в ином контексте. - Для каждой переменной шаблона, одновременно могут быть использованы несколько модификаторов. - - - - mixed smarty_modifier_name - mixed $value - [mixed $param1, ...] - - - - Первый параметр плагина-модификатора это значение в отношении которого - модификатор будет применен. Остальные параметры могут быть - произвольными, в зависимости от операций, которые они осуществляют. - - - Модификатор должен возвращать результат, полученный в процессе своего выполнения. - - - Смотрите также: - register_modifier(), - unregister_modifier(). - - - Простой плагин-модификатор - - Этот плагин в своей основе является аналогом одной из PHP-функций. Он - не имеет никаких дополнительных параметров. - - - -]]> - - - - Более сложный модификатор - - $length) { - $length -= strlen($etc); - $fragment = substr($string, 0, $length+1); - if ($break_words) - $fragment = substr($fragment, 0, -1); - else - $fragment = preg_replace('/\s+(\S+)?$/', '', $fragment); - return $fragment.$etc; - } else - return $string; -} -?> -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-naming-conventions.xml b/docs/ru/programmers/plugins/plugins-naming-conventions.xml deleted file mode 100644 index b7d49078..00000000 --- a/docs/ru/programmers/plugins/plugins-naming-conventions.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - Соглашение об именах - - При присвоении имен файлам и функциям плагинов, необходимо придерживаться определенных - правил, чтобы Smarty находил и мог использовать эти плагины. - - - Имена файлов плагинов должны формироваться по следующей схеме: -
    - - - type.name.php - - -
    -
    - - Где type (тип) это один из следующих типов плагинов: - - function - modifier - block - compiler - prefilter - postfilter - outputfilter - resource - insert - - - - и name (имя) соответствует правилам наименования идентификаторов в PHP - (только буквы, цифры и знак подчеркивания). - - - Несколько примеров: function.html_select_date.php, - resource.db.php, - modifier.spacify.php. - - - Функции, находящиеся внутри файлов плагинов, должны именоваться следующим образом: -
    - - smarty_type_name - -
    -
    - - Значения type и name те же, что прежде. - - - Smarty выдаст сообщение об ошибке, если необходимый файл плагина - не будет найден, или файл плагина, а так же функция плагина - будут названы неправильно. - -
    - diff --git a/docs/ru/programmers/plugins/plugins-outputfilters.xml b/docs/ru/programmers/plugins/plugins-outputfilters.xml deleted file mode 100644 index 542c61c3..00000000 --- a/docs/ru/programmers/plugins/plugins-outputfilters.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - Фильтры вывода - - Плагины фильтров вывода оперирут выходным кодом шаблона после того, как - шаблон был загружен и обработан, но перед его выводом в браузер. - - - - string smarty_outputfilter_name - string $template_output - object &$smarty - - - - Первый параметр функции фильтра вывода - это выходной код шаблона - который должен быть обработан, а второй параметр - это - экземпляр объекта Smarty, вызвавший этот плагин. Плагин предназначен для обработки - и возврата результата. - - - Плагин фильтра вывода - - -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml b/docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml deleted file mode 100644 index 0ec4f359..00000000 --- a/docs/ru/programmers/plugins/plugins-prefilters-postfilters.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - Префильтры/Постфильтры - - Концепция плагинов префильтров и постфильтров очень проста; они - отличаются местом исполнения, или, точнее, временем их исполнения. - - - - string smarty_prefilter_name - string $source - object &$smarty - - - - Префильтры используются для обработки исходного кода шаблона непосредственно - перед компиляцией. Первый параметр функции префильтра - это - исходный код шаблона, который, возможно, уже изменен другими префильтрами. - Такой плагин возвращает модифицированый исходный код. Заметьте, что - этот исходный код нигде не сохраняется, он используется только для компиляции. - - - - string smarty_postfilter_name - string $compiled - object &$smarty - - - - Постфильтры используются для обработки скомпилированного вывода шаблона - (по сути - PHP-кода) сразу по завершению компиляции, но перед сохранением - откомпилированного шаблона в файловой системе. Первым параметром - функции постфильтра является скомпилированный код шаблона, возможно - уже модифицированый другими постфильтрами. Плагин возвращает - модифицированную версию этого кода. - - - Плагин префильтра - -;]+>!e', 'strtolower("$1")', $source); - } - ?> -]]> - - - - - Плагин постфильтра - -\nget_template_vars()); ?>\n" . $compiled; - return $compiled; - } -?> -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-resources.xml b/docs/ru/programmers/plugins/plugins-resources.xml deleted file mode 100644 index 054a4b78..00000000 --- a/docs/ru/programmers/plugins/plugins-resources.xml +++ /dev/null @@ -1,160 +0,0 @@ - - - - - Ресурсы - - Плагины ресурсов описывают источники данных, из которых берется исходный - код шаблона или компоненты PHP-скрипта для Smarty. Вот примеры ресурсов: - базы данных, LDAP, разделяемая память (shared memory), сокеты, и прочее. - - - - Необходимо 4 функции для того, чтобы зарегестрировать - каждый тип ресурса. Каждая такая функция получает запрашиваемый ресурс в качестве - первого параметра и объект Smarty как последний параметр. - Остальные параметры зависят от функции. - - - - - bool smarty_resource_name_source - string $rsrc_name - string &$source - object &$smarty - - - bool smarty_resource_name_timestamp - string $rsrc_name - int &$timestamp - object &$smarty - - - bool smarty_resource_name_secure - string $rsrc_name - object &$smarty - - - bool smarty_resource_name_trusted - string $rsrc_name - object &$smarty - - - - - Первая функция получает ресурс. Ее первый - параметр, это переменная, переданная по ссылке. В нее будет сохранен результат. - Функция вернет true если - сможет удачно получить ресурс и - false в ином случае. - - - - Вторая функция получает время последней модификации - запрошенного ресурса (в виде UNIX timestamp). Второй параметр - представляет собой переменную, переданную по ссылке, в которой и будет сохранено время. - Функция вернет true если - timestamp будет определен в правильной форме, и false - в ином случае. - - - - Третья функция возвращает true или - false в зависимости от того, является ли - запрашиваемый ресурс безопасным. Эта функция используется только для ресурсов шаблона, но - в любом случае должна быть определена. - - - - Четвертая функция возвращает true или - false в зависимости от того, заслуживает ли запрашиваемый ресурс доверия - (is trusted) или нет. Эта функция используется только для компонентов PHP-скрипта, - запрошенных тэгом include_php или - insert с src - атрибутом. Тем не менее, она должна объявляться даже для ресурсов шаблона. - - - Смотрите также: - register_resource(), - unregister_resource(). - - - Плагин ресурса - -query("select tpl_source - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_source = $sql->record['tpl_source']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) -{ - // выполняем обращение к базе данных для присвоения значения $tpl_timestamp. - $sql = new SQL; - $sql->query("select tpl_timestamp - from my_table - where tpl_name='$tpl_name'"); - if ($sql->num_rows) { - $tpl_timestamp = $sql->record['tpl_timestamp']; - return true; - } else { - return false; - } -} - -function smarty_resource_db_secure($tpl_name, &$smarty) -{ - // предполагаем, что шаблоны безопасны - return true; -} - -function smarty_resource_db_trusted($tpl_name, &$smarty) -{ - // не используется для шаблонов -} -?> -]]> - - - - diff --git a/docs/ru/programmers/plugins/plugins-writing.xml b/docs/ru/programmers/plugins/plugins-writing.xml deleted file mode 100644 index 4ee8c898..00000000 --- a/docs/ru/programmers/plugins/plugins-writing.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Написание плагинов - - Smarty может подгружать плагины автоматически из - файловой системы или регистрировать их во время выполнения - (at runtime) посредством одной из register_* API функций. - Их также можно дерегистрировать, используя unregister_* API функции. - - - Плагинам, которые регистрируются во время выполнения, - могут присваиваться имена не соответствующие правилам соглашения об именах. - - - Если плагин зависит от некоторых функций другого плагина - (как в некоторых случаях с плагинами, поставляемыми вместе со Smarty), то - такой плагин можно загрузить следующим образом: - - -_get_plugin_filepath('function', 'html_options'); -?> -]]> - - - Важно знать, что объект Smarty всегда передаётся в плагин последним параметром - (за двумя исключениями: модификатором объект Smarty вообще не передаётся, а - блоки получают &$repeat следом за объектом Smarty - в целях обратной совместимости с ранними версиями Smarty). - - - diff --git a/docs/ru/programmers/smarty-constants.xml b/docs/ru/programmers/smarty-constants.xml deleted file mode 100644 index 739e36b3..00000000 --- a/docs/ru/programmers/smarty-constants.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Константы - - - SMARTY_DIR - - Эта константа должна содержать полный путь - к файлам класса Smarty. - Если константа не определена, Smarty будет пытаться определить путь - самостоятельно. При определении данной константы, - слэш в конце строки обязателен. - - - SMARTY_DIR - - -]]> - - - - См. также - $smarty.const - и - константы $php_handling - - - - - SMARTY_CORE_DIR - - Это полный путь к файлам ядра (core) Smarty. - Если он не установлен, Smarty будет использовать значение по умолчанию - - путь к поддиректории internals/ директории - SMARTY_DIR. - Если константа определена, путь должен заканчиваться слэшем. - Используйте эту константу, когда вручную подключаете любой из - core.* файлов. - - - SMARTY_CORE_DIR - - -]]> - - - - См. также - $smarty.const - - - - diff --git a/docs/scripts/.cvsignore b/docs/scripts/.cvsignore deleted file mode 100755 index 8c9f575e..00000000 --- a/docs/scripts/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -file-entities.php diff --git a/docs/scripts/file-entities.php.in b/docs/scripts/file-entities.php.in deleted file mode 100644 index 193701b4..00000000 --- a/docs/scripts/file-entities.php.in +++ /dev/null @@ -1,290 +0,0 @@ - | - | Gabor Hojtsy | - +----------------------------------------------------------------------+ - - $Id$ -*/ - -/** - * - * Create smarty/docs/entities/file-entities.ent with respect - * to all the specialities needed: - * - * . Translated language files with English ones as fallbacks - * - * Also take in account, that if XSLT style sheets are used, - * special file:/// prefixed path values are needed. - * - */ - -// Always flush output -ob_implicit_flush(); -// This script runs for a long time -set_time_limit(0); - -// ......:ARGUMENT PARSING:..................................................... - -$not_windows = !eregi('WIN',PHP_OS); - -// The dir for PHP. If the cygwin wasn't compiled on Cygwin, the path needs to be striped. -$out_dir = ($not_windows || eregi('CYGWIN',php_uname()))? "@WORKDIR@" : abs_path(strip_cygdrive("@WORKDIR@")); - - -// ......:ENTITY CREATION:...................................................... - -// Put all the file entitites info $entities -$entities = array(); -file_entities("$out_dir/en", "$out_dir/@LANG@", "$out_dir/en", $entities); - -// Open file for appending and write out all entitities -$fp = fopen("$out_dir/entities/file-entities.ent", "w"); -if (!$fp) { - die("ERROR: Failed to open $out_dir/entities/file-entities.ent for writing\n"); -} - -echo "\ncreating entities/file-entities.ent...\n"; - -// File header -fputs($fp, "\n\n"); - - -// Write out all entities -foreach ($entities as $entity) { - fputs($fp, $entity); -} -fclose($fp); - -// Here is the end of the code -exit; - -// ......:FUNCTION DECLARATIONS:................................................ - -/** - * Generate absolute path from a relative path, taking accout - * the current working directory. - * - * @param string $path Relative path - * @return string Absolute path generated - */ -function abs_path($path) { - - // This is already an absolute path (begins with / or a drive letter) - if (preg_match("!^(/|\\w:)!", $path)) { return $path; } - - // Get directory parts - - $absdir = str_replace("\\", "/", getcwd()); - $absdirs = explode("/", preg_replace("!/scripts$!", "", $absdir)); - $dirs = explode("/", $path); - - // Generate array representation of absolute path - foreach ($dirs as $dir) { - if (empty($dir) or $dir == ".") continue; - else if ($dir == "..") array_pop($absdirs); - else array_push($absdirs, $dir); - } - - // Return with string - return join("/", $absdirs); -} - -/** - * Create file entities, and put them into the array passed as the - * last argument (passed by reference). - * - * @param string $work_dir English files' directory - * @param string $trans_dir Translation's directory - * @param string $orig_dir Original directory - * @param array $entities Entities string array - * @return boolean Success signal - */ -function file_entities($work_dir, $trans_dir, $orig_dir, &$entities) { - - // Compute translated version's path - $trans_path = str_replace($orig_dir, $trans_dir, $work_dir); - - // Try to open English working directory - $dh = opendir($work_dir); - if (!$dh) { return FALSE; } - - // If the working directory is a reference functions directory - if (preg_match("!/reference/.*/functions$!", $work_dir)) { - - // Start new functions file with empty entity set - $function_entities = array(); - $functions_file = "$work_dir.xml"; - - // Get relative file path to original directory, and form an entity - $functions_file_entity = str_replace("$orig_dir/", "", $work_dir); - $functions_file_entity = fname2entname($functions_file_entity); - $entities[] = entstr($functions_file_entity, $functions_file); - } - - // While we can read that directory - while (($file = readdir($dh)) !== FALSE) { - - // If file name begins with . skip it - if ($file{0} == ".") { continue; } - - // If we found a directory, and it's name is not - // CVS, recursively go into it, and generate entities - if (is_dir($work_dir . "/" . $file)) { - if ($file == "CVS") { continue; } - file_entities($work_dir . "/" . $file, $trans_dir, $orig_dir, $entities); - } - - // If the file name ends in ".xml" - if (preg_match("!\\.xml$!", $file)) { - - // Get relative file name and get entity name for it - $name = str_replace( - "$orig_dir/", - "", - $work_dir . "/" . preg_replace("!\\.xml$!", "", $file) - ); - $name = fname2entname($name); - - // If this is a functions directory, collect it into - // the special $function_entities array - if (isset($function_entities)) { - $function_entities[] = "&$name;"; - } - - // If we have a translated file, use it, otherwise fall back to English - if (file_exists("$trans_path/$file")) { - $path = "$trans_path/$file"; - } else { - $path = "$work_dir/$file"; - } - - // Append to entities array - $entities[] = entstr($name, $path); - - } // end of "if xml file" - } // end of readdir loop - - // Close directory - closedir($dh); - - // If we created a function entities list, write it out - if (isset($function_entities)) { - - // Sort by name - sort($function_entities); - - // Write out all entities with newlines - $fp = fopen($functions_file, "w"); - foreach ($function_entities as $entity) { - fputs($fp, "$entity\n"); - } - fclose($fp); - } - - // Find all files available in the translation but not in the original English tree - if ($orig_dir != $trans_dir && file_exists($trans_path) && is_dir($trans_path)) { - - // Open translation path - $dh = @opendir($trans_path); - - if ($dh) { - - while (($file = readdir($dh)) !== FALSE) { - if ($file{0} =="." || $file == "CVS") { continue; } - if (is_dir($trans_path."/".$file)) { continue; } - - // If this is an XML file - if (preg_match("!\\.xml$!",$file)) { - - // Generate relative file path and entity name out of it - $name = str_replace( - "$orig_dir/", - "", - $work_dir . "/" . preg_replace("!\\.xml$!", "", $file) - ); - $name = fname2entname($name); - - // If the file found is not in the English dir, append to entities list - if (!file_exists("$work_dir/$file")) { - $path = "$trans_path/$file"; - $entities[] = entstr($name, $path); - } - - } // if this is an XML file end - - } // readdir iteration end - closedir($dh); - } - } - -} // end of funciton file_entities() - -/** - * Convert a file name (with path) to an entity name. - * - * Converts: _ => - and / => . - * - * @param string $fname File name - * @return string Entity name - */ -function fname2entname($fname) -{ - return str_replace("_", "-", str_replace("/", ".", $fname)); -} - -/** - * Return entity string with the given entityname and filename. - * - * @param string $entname Entity name - * @param string $filename Name of file - * @return string Entity declaration string - */ -function entstr($entname, $filename) -{ - // If we have no file, than this is not a system entity - if ($filename == "") { - return sprintf("\n", $entname); - } else { - return sprintf("\n", $entname, file2jade($filename)); - } -} - -/** - * Return windows style path for cygwin. - * - * @param string $path Orginal path - * @return string windows style path - */ -function strip_cygdrive($path){ - return preg_replace(array('!^/cygdrive/(\w)/!', '@^/home/.+$@'), array('\1:/', strtr(dirname(dirname(__FILE__)), '\\', '/')), $path); -} - - -/* Converts a path to the appropriate style for Jade */ -function file2jade($path) { - - if ($GLOBALS['not_windows']) - return $path; - - if ((bool)@WINJADE@) { - return strip_cygdrive($path); - } else { - return preg_replace('@^([a-zA-Z]):/@S', '/cygdrive/$1/', $path); - } -} - -?> diff --git a/docs/scripts/generate_web.php b/docs/scripts/generate_web.php deleted file mode 100755 index 49edfb3e..00000000 --- a/docs/scripts/generate_web.php +++ /dev/null @@ -1,58 +0,0 @@ - | - +----------------------------------------------------------------------+ - | Small hack to generate the manual for the web | - +----------------------------------------------------------------------+ - - $Id$ -*/ - -ini_set('pcre.backtrack_limit', 150000); // Default is 100000, available since PHP 5.2.0 -set_time_limit(0); - -$search = array( - '/(]+>)/mSs', - '/(<\/BODY\s*><\/HTML\s*>)/mS' -); - -$replace = array( - '\1', - '";} ?>' -); - -if ($dir = opendir('phpweb')) { - echo "Processing the manual...\n"; - - while (false !== ($file = readdir($dir))) { - if(substr($file, -4) == '.php') { - - $text = file_get_contents('phpweb/' . $file); - - $text = preg_replace($search, $replace, $text); - - $handler = fopen('phpweb/' . $file, 'w+'); - fputs($handler, $text); - fclose($handler); - } - } - - closedir($dir); -} else { - die('Could not open the specified dir!'); -} - -?> diff --git a/docs/scripts/html_syntax.php b/docs/scripts/html_syntax.php deleted file mode 100755 index ccfe1b66..00000000 --- a/docs/scripts/html_syntax.php +++ /dev/null @@ -1,71 +0,0 @@ - | - | Nuno Lopes | - +----------------------------------------------------------------------+ - | Highlight PHP examples | - +----------------------------------------------------------------------+ - - $Id$ -*/ - -if ($_SERVER["argc"] < 3) { - exit("Purpose: Syntax highlight PHP examples in DSSSL generated HTML manual.\n" - .'Usage: html_syntax.php [ "html" | "php" ] [ filename.ext | dir | wildcard ] ...' ."\n" - .'"html" - highlight_string() is applied, "php" - highlight_string() is added' ."\n" - ); -} -set_time_limit(5*60); // can run long, but not more than 5 minutes - -function callback_html_number_entities_decode($matches) { - return chr($matches[1]); -} - -function callback_highlight_php($matches) { - $with_tags = preg_replace_callback("!&#([0-9]+);!", "callback_html_number_entities_decode", $matches[1]); - if ($GLOBALS["TYPE"] == "php") { - return "\n\n"; - } else { // "html" - return highlight_string($with_tags, true); - } -} - -$files = $_SERVER["argv"]; -array_shift($files); // $argv[0] - script filename -$TYPE = array_shift($files); // "html" or "php" -while (($file = array_shift($files)) !== null) { - if (is_file($file)) { - $process = array($file); - } elseif (is_dir($file)) { - $lastchar = substr($file, -1); - $process = glob($file . ($lastchar == "/" || $lastchar == "\\" ? "*" : "/*")); - } else { // should be wildcard - $process = glob($file); - } - foreach ($process as $filename) { - if (!is_file($filename)) { // do not recurse - continue; - } - $original = file_get_contents($filename); - $highlighted = preg_replace_callback("!(.*)!sU", "callback_highlight_php", $original); - if ($original != $highlighted) { - $fp = fopen($filename, "w"); - fwrite($fp, $highlighted); - fclose($fp); - } - } -} -?> diff --git a/docs/scripts/revcheck.php b/docs/scripts/revcheck.php deleted file mode 100755 index 2e1ed038..00000000 --- a/docs/scripts/revcheck.php +++ /dev/null @@ -1,1062 +0,0 @@ - | - | Gabor Hojtsy | - | Mark Kronsbein | - | Jan Fabry - +----------------------------------------------------------------------+ -*/ -if ($argc < 2 || $argc > 3) { -?> - -Check the revision of translated files against -the actual english xml files, and print statistics - - Usage: - [] [>] - - must be a valid language code used - in the repository - - If you specify , the script only checks - the files maintained by the person you add here - - If you specify >, the output is an html file. - - Read more about Revision comments and related - functionality in the PHP Documentation Howto: - http://php.net/manual/howto/translation-revtrack.html - - Authors: Thomas Schfbeck - Gabor Hojtsy - Mark Kronsbein - Jan Fabry - - "act", - REV_NOREV => "norev", - REV_CRITICAL => "crit", - REV_OLD => "old", - REV_NOTAG => "wip", - REV_NOTRANS => "wip", - REV_CREDIT => "wip", - REV_WIP => "wip", -); - -// Option for the link to cvs.php.net: -define('CVS_OPT', '&view=patch'); -define('CVS_OPT_NOWS', '&view=diff&diff_format=h'); - -// Initializing variables from parameters -$LANG = $argv[1]; -if ($argc == 3) { - $MAINT = $argv[2]; -} else { - $MAINT = ""; -} - -// Main directory of the PHP documentation (depends on the -// sapi used). We do need the trailing slash! -if ("cli" === php_sapi_name()) { - if (isset($PHPDOCDIR) && is_dir($PHPDOCDIR)) - $DOCDIR = $PHPDOCDIR."/"; - else - $DOCDIR = "./"; -} else - $DOCDIR = "../"; - -// ========================================================================= -// Functions to get revision info and credits from a file -// ========================================================================= - -// Grabs the revision tag and stores credits from the file given -function get_tags($file, $val = "en-rev") -{ - // Read the first 500 chars. The comment should be at - // the begining of the file - $fp = @fopen($file, "r") or die ("Unable to read $file."); - $line = fread($fp, 500); - fclose($fp); - - // Check for English CVS revision tag (. is for $ in the preg!), - // Return if this was needed (it should be there) - if ($val == "en-rev") { - preg_match("//", $line, $match); - return $match[1]; - } - - // Handle credits (only if no maintainer is specified) - if ($val == "\\S*") { - - global $files_by_maint; - - // Find credits info, let more credits then one, - // using commas as list separator - if (preg_match("''U", $line, $match_credit)) { - - // Explode with commas a separators - $credits = explode(",", $match_credit[1]); - - // Store all elements - foreach ($credits as $num => $credit) { - $files_by_maint[trim($credit)][REV_CREDIT]++; - } - - } - } - - // No match before the preg - $match = array(); - - // Check for the translations "revision tag" - preg_match ("//U", - $line, - $match - ); - - // The tag with revision number is not found so search - // for n/a revision comment (comment where revision is not known) - if (count($match) == 0) { - preg_match ("''U", - $line, - $match - ); - } - - // Return with found revision info (number, maint, status) - return $match; - -} // get_tags() function end - - -// ========================================================================= -// Functions to check file status in translated directory, and store info -// ========================================================================= - -// Checks a file, and gather status info -function get_file_status($file) -{ - // The information is contained in these global arrays and vars - global $DOCDIR, $LANG, $MAINT, $files_by_mark, $files_by_maint; - global $file_sizes_by_mark; - global $missing_files, $missing_tags, $using_rev; - - // Transform english file name to translated file name - $trans_file = preg_replace("'^".$DOCDIR."en/'", $DOCDIR.$LANG."/", $file); - - // If we cannot find the file, we push it into the missing files list - if (!@file_exists($trans_file)) { - $files_by_mark[REV_NOTRANS]++; - $trans_name = substr($trans_file, strlen($DOCDIR) + strlen($LANG) + 1); - $size = intval(filesize($file)/1024); - $missing_files[$trans_name] = array( $size ); - $file_sizes_by_mark[REV_NOTRANS] += $size; - // compute en-tags just if they're needed in the WIP-Table - if($using_rev) { - $missing_files[$trans_name][] = get_tags($file); - } - return FALSE; - } - - // No specific maintainer, check for a revision tag - if (empty($MAINT)) { - $trans_tag = get_tags($trans_file, "\\S*"); - } - // If we need to check for a specific translator - else { - // Get translated files tag, with maintainer - $trans_tag = get_tags($trans_file, $MAINT); - - // If this is a file belonging to another - // maintainer, than we would not like to - // deal with it anymore - if (count($trans_tag) == 0) { - $trans_tag = get_tags($trans_file, "\\S*"); - // We found a tag for another maintainer - if (count($trans_tag) > 0) { - return FALSE; - } - } - } - - // Compute sizes and diffs - $en_size = intval(filesize($file) / 1024); - $trans_size = intval(filesize($trans_file) / 1024); - $size_diff = intval($en_size) - intval($trans_size); - - // If we found no revision tag, then collect this - // file in the missing tags list - if (count($trans_tag) == 0) { - $files_by_mark[REV_NOTAG]++; - $file_sizes_by_mark[REV_NOTAG] += $en_size; - $missing_tags[] = array(substr($trans_file, strlen($DOCDIR)), $en_size, $trans_size, $size_diff); - return FALSE; - } - - // Distribute values in separate vars for further processing - list(, $this_rev, $this_maint, $this_status) = $trans_tag; - - // Get English file revision - $en_rev = get_tags($file); - - // If we have a numeric revision number (not n/a), compute rev. diff - if (is_numeric($this_rev)) { - $rev_diff = intval($en_rev) - intval($this_rev); - $trans_rev = $this_rev; - } else { - // If we have no numeric revision, make all revision - // columns hold the rev from the translated file - $rev_diff = $trans_rev = $this_rev; - } - - // If the file is up-to-date - if ($rev_diff === 0) { - // Store file by status and maintainer - $files_by_mark[REV_UPTODATE]++; - $files_by_maint[$this_maint][REV_UPTODATE]++; - $file_sizes_by_mark[REV_UPTODATE] += $en_size; - - return FALSE; - } - - // Compute times and diffs - $en_date = intval((time() - filemtime($file)) / 86400); - $trans_date = intval((time() - filemtime($trans_file)) / 86400); - $date_diff = $en_date - $trans_date; - - // Make decision on file category by revision, date and size - if ($rev_diff >= ALERT_REV || $size_diff >= ALERT_SIZE || $date_diff <= ALERT_DATE) { - $status_mark = REV_CRITICAL; - } elseif ($rev_diff === "n/a") { - $status_mark = REV_NOREV; - } else { - $status_mark = REV_OLD; - } - - // Store files by status, and by maintainer too - $files_by_mark[$status_mark]++; - $files_by_maint[$this_maint][$status_mark]++; - $file_sizes_by_mark[$status_mark] += $en_size; - - return array( - "full_name" => $file, - "short_name" => basename($trans_file), - "revision" => array($en_rev, $trans_rev, $rev_diff), - "size" => array($en_size, $trans_size, $size_diff), - "date" => array($en_date, $trans_date, $date_diff), - "maintainer" => $this_maint, - "status" => $this_status, - "mark" => $status_mark - ); - -} // get_file_status() function end - -// ========================================================================= -// A function to check directory status in translated directory -// ========================================================================= - -// Check the status of files in a diretory of smarty/doc XML files -// The English directory is passed to this function to check -function get_dir_status($dir) -{ - - // Collect files and diretcories in these arrays - $directories = array(); - $files = array(); - - // Open the directory - $handle = @opendir($dir); - - // Walk through all names in the directory - while ($file = @readdir($handle)) { - - // If we found a file with one or two point as a name, - // or a CVS directory, skip the file - if (preg_match("/^\.{1,2}/",$file) || $file == 'CVS') - continue; - - // Collect files and directories - if (is_dir($dir.$file)) { $directories[] = $file; } - else { $files[] = $file; } - - } - - // Close the directory - @closedir($handle); - - // Sort files and directories - sort($directories); - sort($files); - - // Go through files first - $dir_status = array(); - foreach ($files as $file) { - // If the file status is OK, append the status info - if ($file_status = get_file_status($dir.$file)) { - $dir_status[] = $file_status; - } - } - - // Then go through subdirectories, merging all the info - // coming from subdirs to one array - foreach ($directories as $file) { - $dir_status = array_merge( - $dir_status, - get_dir_status($dir.$file.'/') - ); - } - - // Return with collected file info in - // this dir and subdirectories [if any] - return $dir_status; - -} // get_dir_status() function end - - -// Check for files removed in the EN tree, but still living in the translation -function get_old_files($dir) -{ - - global $DOCDIR, $LANG; - - // Collect files and diretcories in these arrays - $directories = array(); - $files = array(); - - $special_files = array( - // french - 'LISEZ_MOI.txt', - 'TRADUCTIONS.txt', - 'Translators', - 'translation.xml' - - // todo: add all missing languages - ); - - // Open the directory - $handle = @opendir($dir); - - // Walk through all names in the directory - while ($file = @readdir($handle)) { - - // If we found a file with one or two point as a name, - // or a CVS directory, skip the file - if (preg_match("/^\.{1,2}/", $file) || $file == 'CVS') - continue; - - // skip this files - if (in_array($file, $special_files)) { - continue; - } - - // Collect files and directories - if (is_dir($dir.$file)) { - $directories[] = $file; - } else { - $files[] = $file; - } - - } - - // Close the directory - @closedir($handle); - - // Sort files and directories - sort($directories); - sort($files); - - // Go through files first - $old_files_status = array(); - foreach ($files as $file) { - - $en_dir = preg_replace("'^".$DOCDIR.$LANG."/'", $DOCDIR."en/", $dir); - - if (!@file_exists($en_dir.$file) ) { - $old_files_status[$dir.$file] = array(0=>intval(filesize($dir.$file)/1024)); - } - - } - - // Then go through subdirectories, merging all the info - // coming from subdirs to one array - foreach ($directories as $file) { - $old_files_status = array_merge( - $old_files_status, - get_old_files($dir.$file.'/') - ); - } - - return $old_files_status; - -} // get_old_files() function end - - -// ========================================================================= -// Functions to read in the translation.xml file and process contents -// ========================================================================= - -// Get a multidimensional array with tag attributes -function parse_attr_string ($tags_attrs) -{ - $tag_attrs_processed = array(); - - // Go through the tag attributes - foreach($tags_attrs as $attrib_list) { - - // Get attr name and values - preg_match_all("!(.+)=\\s*([\"'])\\s*(.+)\\2!U", $attrib_list, $attribs); - - // Assign all attributes to one associative array - $attrib_array = array(); - foreach ($attribs[1] as $num => $attrname) { - $attrib_array[trim($attrname)] = trim($attribs[3][$num]); - } - - // Collect in order of tags received - $tag_attrs_processed[] = $attrib_array; - - } - - // Retrun with collected attributes - return $tag_attrs_processed; - -} // parse_attr_string() end - -// Parse the translation.xml file for -// translation related meta information -function parse_translation($DOCDIR, $LANG, $MAINT) -{ - global $files_by_mark; - - // Path to find translation.xml file, set default values, - // in case we can't find the translation file - $translation_xml = $DOCDIR.$LANG."/translation.xml"; - $output_charset = 'UTF-8'; - $translation = array( - "intro" => "", - "persons" => array(), - "files" => array(), - "allfiles" => array(), - ); - - // Check for file availability, return with default - // values, if we cannot find the file - if (!@file_exists($translation_xml)) { - return array($output_charset, $translation); - } - - // Else go on, and load in the file, replacing all - // space type chars with one space - $txml = join("", file($translation_xml)); - $txml = preg_replace("/\\s+/", " ", $txml); - - // Get intro text (different for a persons info and - // for a whole group info page) - if (empty($MAINT)) { - preg_match("!(.+)!s", $txml, $match); - $translation["intro"] = trim($match[1]); - } else { - $translation["intro"] = "Personal Statistics for ".$MAINT; - } - - // Get encoding for the output, from the translation.xml - // file encoding (should be the same as the used encoding - // in HTML) - preg_match("!<\?xml(.+)\?>!U", $txml, $match); - $xmlinfo = parse_attr_string($match); - $output_charset = $xmlinfo[1]["encoding"]; - - // Get persons list preg pattern, only check for a specific - // maintainer, if the users asked for it - if (empty($MAINT)) { - $pattern = "!!U"; - } else { - $pattern = "!!U"; - } - - // Find all persons matching the pattern - preg_match_all($pattern, $txml, $matches); - $translation['persons'] = parse_attr_string($matches[1]); - - // Get list of work in progress files - if (empty($MAINT)) { - - // Get all wip files - preg_match_all("!!U", $txml, $matches); - $translation['files'] = parse_attr_string($matches[1]); - - // Provide info about number of WIP files - $files_by_mark[REV_WIP] += count($translation['files']); - - } else { - - // Only check for a specific maintainer, if we were asked to - preg_match_all("!!U", $txml, $matches); - $translation['files'] = parse_attr_string($matches[1]); - - // Other maintainers wip files need to be cleared from - // available files list in the future, so store that info too. - preg_match_all("!!U", $txml, $matches); - $translation['allfiles'] = parse_attr_string($matches[1]); - - // Provide info about number of WIP files - $files_by_mark[REV_WIP] += count($translation['allfiles']); - - } - - // Return with collected info in two vars - return array($output_charset, $translation); - -} // parse_translation() function end() - -// ========================================================================= -// Start of the program execution -// ========================================================================= - -// Check for directory validity -if (!@is_dir($DOCDIR . $LANG)) { - die("The $LANG language code is not valid"); -} - -// Parse translation.xml file for more information -list($charset, $translation) = parse_translation($DOCDIR, $LANG, $MAINT); - -// Add WIP files to maintainers file count and figure out, -// if we need to use optional date and revision columns -$using_date = FALSE; $using_rev = FALSE; -foreach ($translation["files"] as $num => $fileinfo) { - $files_by_maint[$fileinfo["person"]][REV_WIP]++; - if (isset($fileinfo["date"])) { $using_date = TRUE; } - if (isset($fileinfo["revision"])) { $using_rev = TRUE; } -} - -// Get all files status -$files_status = get_dir_status($DOCDIR."en/"); - -// Get all old files in directory -$old_files = get_old_files($DOCDIR.$LANG."/"); - -$navbar = "

    Introduction | " . - "Translators | " . - "File summary by type | " . - "Files | "; -if (count($translation["files"]) != 0) - $navbar .= "Work in progress | "; -$navbar .= "Missing revision numbers | " . - "Untranslated files | " . - "Old files

    \n"; - - -// Figure out generation date -$date = date("r"); - -// ========================================================================= -// Start of HTML page -// ========================================================================= - -print << - - -Smarty Manual Revision-check - - - - - - -
    - - -

    Status of the translated Smarty Manual

    Generated: {$date}   /   Language: $LANG

    -
    -END_OF_MULTILINE; - -print ($navbar); - -// ========================================================================= -// Intro block goes here -// ========================================================================= - -// If we have an introduction text, print it out, with an anchor -if (!empty($translation["intro"])) { - print ''; - print '
    ' . - $translation['intro'] . '
    '; -} - -// ========================================================================= -// Translators table goes here -// ========================================================================= - -// If person list available (valid translation.xml file in lang), print out -// the person list, with respect to the maintainer parameter specified -if (!empty($translation["persons"])) { - -print << - - - - - - - - - - - - - - - - - -END_OF_MULTILINE; - - // ' Please leave this comment here - - // We will collect the maintainers by nick here - $maint_by_nick = array(); - - // Print out a line for each maintainer (with respect to - // maintainer setting provided in command line) - foreach($translation["persons"] as $num => $person) { - - // Do not print out this person, if a - // specific maintainer info is asked for - if (!empty($MAINT) && $person["nick"] != $MAINT) { - continue; - } - - // Put maintaner number into associative array - // [Used in further tables for referencing] - $maint_by_nick[$person["nick"]] = $num; - - // Decide on the CVS text and the color of the line - if ($person["cvs"] === "yes") { - $cvsu = "x"; - $col = "old"; - } else { - $cvsu = " "; - $col = "wip"; - } - - // Try to do some antispam actions - $person["email"] = str_replace( - "@", - ":at:", - $person["email"] - ); - - // Get file info for this person - if (isset($files_by_maint[$person["nick"]])) { - $pi = $files_by_maint[$person["nick"]]; - } else { - $pi = array(); - } - - print("" . - "" . - "" . - "" . - "" . - "" . - "" . - "" . - "" . - "" . - "" . - "" . - "\n"); - } - - print "
    Translator's nameContact emailNickC
    V
    S
    Files maintained
    cre-
    dits
    upto-
    date
    oldcri-
    tical
    no
    rev
    wipsum
    $person[name]$person[email]$person[nick]$cvsu" . $pi[REV_CREDIT] . "" . $pi[REV_UPTODATE] . "" . $pi[REV_OLD] . "" . $pi[REV_CRITICAL] . "" . $pi[REV_NOREV] . "" . $pi[REV_WIP] . "" . array_sum($pi) . "
    \n

     

    \n"; -} - -// ========================================================================= -// Files summary table goes here -// ========================================================================= - -// Do not print out file summary table, if we are printing out a page -// for only one maintainer (his personal summary is in the table above) -if (empty($MAINT)) { - - print << - - - - - - - - -END_OF_MULTILINE; - - $files_sum = array_sum($files_by_mark); - $file_sizes_sum = array_sum($file_sizes_by_mark); - - $file_types = array( - array (REV_UPTODATE, "Up to date files"), - array (REV_OLD, "Old files"), - array (REV_CRITICAL, "Critical files"), - array (REV_WIP, "Work in progress"), - array (REV_NOREV, "Files without revision number"), - array (REV_NOTAG, "Files without revision tag"), - array (REV_NOTRANS, "Files available for translation") - ); - - foreach ($file_types as $num => $type) { - print "". - "". - "". - "". - "". - "\n"; - } - - print "\n". - "
    File status typeNumber of filesPercent of filesSize of files (kB)Percent of size
    ".$type[1]."".intval($files_by_mark[$type[0]])."".number_format($files_by_mark[$type[0]] * 100 / $files_sum, 2 ). - "%".intval($file_sizes_by_mark[$type[0]])."".number_format($file_sizes_by_mark[$type[0]] * 100 / $file_sizes_sum, 2). - "%
    Files total$files_sum100%$file_sizes_sum100%
    \n

     

    \n"; - -} - -print ($navbar."

     

    \n"); - - -// ========================================================================= -// Files table goes here -// ========================================================================= - -if (count($files_status) != 0) { - -print << - - - - - - - - - - - - - - - - - - - - -END_OF_MULTILINE; - - // This was the previous directory [first] - $prev_dir = $new_dir = $DOCDIR."en"; - - // Go through all files collected - foreach ($files_status as $num => $file) { - - // Make the maintainer a link, if we have that maintainer in the list - if (isset($maint_by_nick[$file["maintainer"]])) { - $file["maintainer"] = '' . $file["maintainer"] . ''; - } - - // If we have a 'numeric' revision diff and it is not zero, - // make a link to the CVS repository's diff script - if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) { - $url = 'http://code.google.com/p/smarty-php/source/diff?' - . 'old=' . $file['revision'][1] . '&' - . 'r=' . $file['revision'][0] . '&' - . 'format=side&' - . 'path=' . urlencode('/trunk/' . preg_replace("'^".$DOCDIR."'", 'docs/', $file['full_name'])); - - $file['short_name'] = ''. $file["short_name"] . ''; - } - - // Guess the new directory from the full name of the file - $new_dir = dirname($file["full_name"]); - - // If this is a new directory, put out old dir lines - if ($new_dir != $prev_dir && isset($lines)) { - echo $prev_diplay_dir; - echo " ($line_number)"; - echo $lines; - - $lines = ''; - $line_number = 0; - - // Store the new actual directory - $prev_dir = $new_dir; - } - // Drop out the unneeded parts from the dirname... - $display_dir = str_replace($DOCDIR."en/", "", dirname($file["full_name"])); - $prev_diplay_dir = "". - "" . - "". - "". - "". - "". - "". - "". - "". - "". - "". - "\n"; - $line_number++; - - } - - // echo the last dir and $lines - echo "$prev_diplay_dir ($line_number)"; - echo $lines; - - print("
    Translated fileRevisionSize in kBAge in daysMaintainerStatus
    en$LANGdiffen$LANGdiffen$LANGdiff
    $display_dir"; - - // Save the line for the current file (get file name shorter) - $lines .= "
    {$file['short_name']} {$file['revision'][0]} {$file['revision'][1]}{$file['revision'][2]} {$file['size'][0]} {$file['size'][1]} {$file['size'][2]} {$file['date'][0]} {$file['date'][1]} {$file['date'][2]} {$file['maintainer']}".trim($file['status'])."
    \n

     

    \n$navbar

     

    \n"); - -} - - -// ========================================================================= -// Work in progress table goes here -// ========================================================================= - -// If work-in-progress list is available (valid translation.xml file in lang) -if (count($translation["files"]) != 0) { - - // Print out files table header - print "\n" . - "\n" . - "". - "". - "". - ""; - - // Print out date and revision columns if needed - if ($using_date) { - print ''; - } - if ($using_rev) { - print '' . - ''; - } - print "\n"; - - // Go through files, and print out lines for them - foreach($translation["files"] as $num => $finfo) { - - // If we have a valid maintainer, link to the summary - if (isset($maint_by_nick[$finfo["person"]])) { - $finfo["person"] = '' . $finfo["person"] . ''; - } - - // Print out the line with the first columns - print "" . - ""; - - // If we need the date column, print it out - if ($using_date) { - print ""; - } - - // If we need the revision column, print it out - if ($using_rev) { - print ""; - } - - // End the line - print "\n"; - - // Collect files in WIP list - $wip_files[$finfo["name"]] = TRUE; - } - - print "
    Work in progress filesTranslatorTypeDateCO-RevisionEN-Revision
    $finfo[name]$finfo[person]$finfo[type]$finfo[date]$finfo[revision]" . - $missing_files[$finfo["name"]][1] . - "
    \n

     

    \n$navbar

     

    \n"; - -} - -// Files translated, but without a revision comment -$count = count($missing_tags); -if ($count > 0) { - print "" . - "\n". - "". - "\n". - "\n"; - foreach($missing_tags as $val) { - // Shorten the filename (we have directory headers) - $short_file = basename($val[0]); - - // Guess the new directory from the full name of the file - $new_dir = dirname($val[0]); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header - print "\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - print "". - "\n"; - } - print "
    Files without Revision-comment ($count files):Sizes in kB
    en$LANGdiff
    $new_dir
    $short_file$val[1]$val[2]$val[3]
    \n

     

    \n$navbar

     

    \n"; -} - -// Merge all work in progress files collected -$wip_files = array_merge( - $translation["files"], // Files for this translator - $translation["allfiles"] // Files for all the translators -); - -// Delete wip entires from available files list -foreach ($wip_files as $file) { - if (isset($missing_files[$file['name']])) { - unset($missing_files[$file['name']]); - } -} - -// Files not translated and not "wip" -$count = count($missing_files); -if ($count > 0) { - print "" . - "\n" . - "\n"; - foreach($missing_files as $file => $info) { - // Shorten the filename (we have directory headers) - $short_file = basename($file); - - // Guess the new directory from the full name of the file - $new_dir = dirname($file); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header if not "." - print "\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - - print "" . - "\n"; - } - print "
    " . - " Available for translation ($count files):kB
    $new_dir
    $short_file$info[0]
    \n

     

    \n$navbar

     

    \n"; - -} - -// Files not in EN tree -$count = count($old_files); -if ($count > 0) { - print "" . - "\n" . - "\n"; - - foreach($old_files as $file => $info) { - // Shorten the filename (we have directory headers) - $short_file = basename($file); - - // Guess the new directory from the full name of the file - $new_dir = dirname($file); - - // If this is a new directory, put out dir headline - if ($new_dir != $prev_dir) { - - // Print out directory header if not "." - print "\n"; - - // Store the new actual directory - $prev_dir = $new_dir; - } - - print "" . - "\n"; - } - print "
    " . - " Not in EN Tree ($count files):kB
    $new_dir
    $short_file$info[0]
    \n

     

    \n$navbar

     

    \n"; - - - - -} - - -// All OK, end the file -print "\n\n"; - -?> diff --git a/docs/xsl/common.xsl b/docs/xsl/common.xsl deleted file mode 100644 index 184030c1..00000000 --- a/docs/xsl/common.xsl +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (void) - - - - - - - - - - - - - - ( - - [ - - - - - - - - [, - - - , - - - - - - - ] - - - - ] - - ) - - - - - - - - - - - - - , - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/xsl/docbook/BUGS b/docs/xsl/docbook/BUGS deleted file mode 100755 index 5723ffd3..00000000 --- a/docs/xsl/docbook/BUGS +++ /dev/null @@ -1,6 +0,0 @@ -The fo stylesheet is probably not in perfect sync with the html stylesheet - -Using Equations w/o titles results in incorrectly numbered - equations with titles. Use InformalEquation instead. - -The 'char' alignment in tables is not supported diff --git a/docs/xsl/docbook/PHPDOC-NOTE b/docs/xsl/docbook/PHPDOC-NOTE deleted file mode 100755 index 699ccb41..00000000 --- a/docs/xsl/docbook/PHPDOC-NOTE +++ /dev/null @@ -1,13 +0,0 @@ -This is a minimal version of the DocBook XSL Style Sheet -distribution, which you can download from -http://docbook.sourceforge.net/. - -Nothing is modified in these files, all files are left untouched, -so these are the same ones you can find in the distribution. We -omitted some files and directories though, and only left those that -we use for output generation. - -The reason to put this to phpdoc was to encourage compatibility, -so we don't need to force users to have a specific version of -the XSL style sheets locally, but we can still rely on a version -of the sheets we tested our customizations with. \ No newline at end of file diff --git a/docs/xsl/docbook/README b/docs/xsl/docbook/README deleted file mode 100755 index a7190b38..00000000 --- a/docs/xsl/docbook/README +++ /dev/null @@ -1,107 +0,0 @@ -README for the DocBook Stylesheets - -These are XSL stylesheets for the DocBook XML DTD. (They would -also work for the DocBook DTD, modulo certain namecase problems -and the fact that there aren't (yet) any XSL implementations -that work with SGML source documents.) - -As of version 1.0, most of the elements in DocBook are handled -in some way or another, usually reasonably, but there's still -lots of work to be done. - -For more information, see http://docbook.sourceforge.net/ - -Manifest --------- - -README this file -TODO planned features not yet implemented (may be incomplete :-) -BUGS known problems (may also be incomplete :-) -VERSION the current version number (note that this is an XSL stylesheet, - included by both fo/docbook.xsl and html/docbook.xsl) -WhatsNew changes since the last public release (for a complete list - of changes, see the ChangeLog file(s)) -common/ contains code common to both stylesheets -doc/ documentation -docsrc/ documentation sources -extensions/ Java extensions -fo/ stylesheets that produce XSL FO -html/ stylesheets that produce HTML -htmlhelp/ stylesheets that produce HTML Help -images/ images -javahelp/ stylesheets that produce Java Help -lib/ contains schema-independent functions -template/ contains templates for building stylesheet customization layers -xhtml/ stylesheets that produce XHTML - -Changes -------- - -See the ChangeLog in each directory for additional information -about the specific changes. - -See WhatsNew for changes since the last release. - -Installation ------------- - -Unpack the distribution somewhere. - -Use ---- - -Process your DocBook documents with one of the following stylesheets -using your favorite XSLT processor: - - xhtml/docbook.xsl - for XHTML - html/docbook.xsl - for HTML (as a single file) - html/chunk.xsl - for HTML (multiple files) - fo/docbook.xsl - for XSL FO - htmlhelp/htmlhelp.xsl - for HTML Help - javahelp/javahelp.xsl - for JavaHelp - -Copyright ---------- - -Copyright (C) 1999, 2000, 2001, 2002 Norman Walsh - -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 stylesheet 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 Author ---------------------- - -These stylesheets are maintained by Norman Walsh, . diff --git a/docs/xsl/docbook/VERSION b/docs/xsl/docbook/VERSION deleted file mode 100755 index d0ad7437..00000000 --- a/docs/xsl/docbook/VERSION +++ /dev/null @@ -1,6 +0,0 @@ - - -1.60.1 - - diff --git a/docs/xsl/docbook/common/ChangeLog b/docs/xsl/docbook/common/ChangeLog deleted file mode 100755 index d9bb6cb2..00000000 --- a/docs/xsl/docbook/common/ChangeLog +++ /dev/null @@ -1,472 +0,0 @@ -2003-01-23 Adam Di Carlo - - * Makefile: make use of cvstools/Makefile.incl - -2003-01-20 Norman Walsh - - * gentext.xsl: Added object.titleabbrev.markup for consistency - - * gentext.xsl: Support experimental parameter to specify that number-and-title xrefs should be used even when things are numbered - - * l10n.xsl: Added gentext.template.exists to test if a gentext template exists. Clever name, huh? - - * titles.xsl: Expanded support for obtaining titleabbrevs - -2003-01-10 Norman Walsh - - * .cvsignore, l10n.xml: Added bg.xml - - * Makefile: Add Bulgarian - -2003-01-02 Norman Walsh - - * labels.xsl, titles.xsl: Support setindex (there were all sorts of things wrong with it) - -2003-01-01 Norman Walsh - - * table.xsl: CALS says the default for colsep and rowsep is 1. - - * table.xsl: Fix variable scoping problem - - * titles.xsl: Support titleabbrev (outside of info elements anyway) - -2002-12-18 Robert Stayton - - * common.xsl: The select.mediaobject.index template now uses the - $stylesheet.result.type parameter to choose the role - value, with xhtml falling back to html if needed. - -2002-12-17 Robert Stayton - - * common.xsl: Changed selection of mediaobject to be more consistent using - a separate select.mediaobject.index template. Also added - text-align to block containing external-graphic in fo output. - -2002-11-23 Robert Stayton - - * common.xsl: Fixed bug in orderedlist-starting-number test when - @continuation not set. - -2002-11-14 Norman Walsh - - * common.xsl: Handle nested refsections in section.level - - * gentext.xsl: Pass full xpath name to gentext.template instead of just the local-name - - * l10n.xsl: Make gentext.template search through /-separated names - -2002-10-19 Norman Walsh - - * l10n.xsl: Support output of language attribute - -2002-10-09 Norman Walsh - - * l10n.xsl: Make 3166 language codes work in upper or lowercase - -2002-10-02 Norman Walsh - - * common.xsl: Added orderedlist-starting-number and orderedlist-item-number templates - -2002-10-01 Robert Stayton - - * common.xsl: Changed the section.level template to return a number that matches - the section level (sect1 = 1, etc.). - -2002-09-27 Norman Walsh - - * l10n.xml: Add Thai - -2002-09-15 Norman Walsh - - * .cvsignore, Makefile, l10n.xml: Added LT and VI localizations - -2002-09-04 Norman Walsh - - * common.xsl: Refactor person.name templates so that it's easy to override them - - * l10n.xsl: Move l10n.* parameters into ../params so they can be properly documented; made l10n.gentext.use.xref.language a numeric boolean parameter instead of a proper boolean - -2002-09-03 Norman Walsh - - * common.xsl: Remove spurious character on line 432 - - * table.xsl: Make sure row-level colsep and rowsep values are 'inherited' onto missing cells - -2002-09-02 Norman Walsh - - * common.xsl: Support person-name style from localization data in personal names - -2002-08-28 Norman Walsh - - * table.xsl: Make inherited attributes work for 'missing' table cells - -2002-07-29 Robert Stayton - - * targetdatabase.dtd: Changed the targetptr attribute from #REQUIRED to #IMPLIED - since it is not required on all objects. - - * targetdatabase.dtd: Forgot to fix the attribute on the element - as well. - - * targetdatabase.dtd: Replaced targetid attribute on document with targetptr - per the decision of the DocBook Technical Committee. - -2002-07-17 Norman Walsh - - * labels.xsl: Don't count equations without titles when labelling equations - - * labels.xsl: Fixed thinko - -2002-07-13 Robert Stayton - - * targets.xsl: Fixed output encoding to utf-8 so a targets database - can handle mixed languages. - Added omit-xml-declaration to get around the standalone - attribute in the XML declaration not being permitted - in system entities. - -2002-07-09 Norman Walsh - - * labels.xsl: Bug #558333: use containing section for the label of a bridgehead if section.autolabel is non-zero - -2002-07-07 Robert Stayton - - * common.xsl: Changed the name of the second-order itemizedlist mark - from 'round' (not supported in browsers'